/**
 * ASSIST Store - Main Design System & Visual Identity
 * Midnight Obsidian (`#080d1a` / `#0b1329`) & Champagne Gold (`#b88947` - `#f5e5a2`)
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Core Palette */
  --bg-darkest: #060a14;
  --bg-main: #080d1a;
  --bg-surface: #0b1329;
  --bg-card: #0f1a36;
  --bg-card-hover: #142247;
  --bg-card-glass: rgba(15, 26, 54, 0.75);

  /* Luxury Gold Gradients & Accents */
  --gold-primary: #dfba68;
  --gold-dark: #b88947;
  --gold-light: #f5e5a2;
  --gold-glow: rgba(223, 186, 104, 0.25);
  --gold-border: rgba(184, 137, 71, 0.28);
  --gold-border-hover: rgba(223, 186, 104, 0.6);
  --gold-gradient: linear-gradient(135deg, #b88947 0%, #dfba68 50%, #f5e5a2 100%);
  --gold-gradient-hover: linear-gradient(135deg, #dfba68 0%, #f5e5a2 50%, #dfba68 100%);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-platinum: #ececec;
  --text-muted: #94a3b8;
  --text-dark: #080d1a;
  --text-gold: #f5e5a2;

  /* State Colors */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold-subtle: 1px solid var(--gold-border);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 30px rgba(184, 137, 71, 0.22);

  /* Sizing & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Cairo', 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-platinum);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(184, 137, 71, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 26, 56, 0.8) 0%, transparent 50%);
}

[lang="en"] body {
  font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  user-select: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(184, 137, 71, 0.35);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(184, 137, 71, 0.5);
  color: #000;
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.btn-gold-outline:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: transparent;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-link-gold {
  color: var(--gold-primary);
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.btn-link-gold:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Toast System - Top Center Banner */
.assist-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

[dir="rtl"] .assist-toast-container {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.assist-toast {
  background: rgba(11, 19, 41, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold-primary);
  color: var(--text-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(223, 186, 104, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  transform: translateY(-40px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.assist-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.assist-toast .toast-icon {
  font-size: 1.35rem;
}

.assist-toast .toast-msg {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

/* Hide Toast on Mobile to Keep UI Clean */
@media (max-width: 768px) {
  .assist-toast-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
