/* ==========================================================================
   GO Asesores Design System — Design Tokens (variables.css)
   Apple + Linear aesthetics · Liquid Glass
   Marca: naranja #fd8700 · cyan #16c1fd · gris cálido #bfb9b3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT — Shared tokens (theme-agnostic)
   -------------------------------------------------------------------------- */
/* scroll-behavior handled via JS to avoid scroll-restoration bugs */

:root {
  /* --- Brand palette ---------------------------------------------------- */
  --color-primary:          #fd8700;
  --color-primary-hover:    #e57600;
  --color-primary-light:    #fd87001a;   /* 10% opacity */
  --color-primary-muted:    #fd870033;   /* 20% opacity */

  --color-secondary:        #16c1fd;
  --color-secondary-hover:  #0ba9e0;
  --color-secondary-light:  #16c1fd1a;
  --color-secondary-muted:  #16c1fd33;

  /* Accent — ámbar derivado del primario, para highlights donde el gris
     neutral no funciona. El terciario del manual vive en --color-neutral */
  --color-accent:           #ffb340;
  --color-accent-hover:     #e69a2e;
  --color-accent-light:     #ffb3401a;
  --color-accent-muted:     #ffb34033;

  /* Terciario del manual de marca — superficies y detalles neutros */
  --color-neutral:          #bfb9b3;
  --color-neutral-hover:    #a8a19a;
  --color-neutral-light:    #bfb9b31a;
  --color-neutral-muted:    #bfb9b333;

  /* --- Semantic colours ------------------------------------------------- */
  --color-success:          #22c55e;
  --color-warning:          #f59e0b;
  --color-error:            #ef4444;
  --color-info:             #3b82f6;

  /* WhatsApp */
  --color-whatsapp:         #25D366;
  --color-whatsapp-hover:   #1fb855;

  /* Gradient end — deeper vibrant orange */
  --color-gradient-end:     #e57600;

  /* --- Typography — font families -------------------------------------- */
  --font-sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* --- Typography — weights -------------------------------------------- */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* --- Typography — scale (fluid with clamp) --------------------------- */
  --text-2xs:     clamp(0.5625rem, 0.525rem + 0.15vw, 0.625rem);     /* ~9-10px (device chrome, kbd) */
  --text-xs:      clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);       /* ~11-12px */
  --text-sm:      clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);          /* ~12-14px */
  --text-base:    clamp(0.875rem, 0.825rem + 0.25vw, 1rem);          /* ~14-16px */
  --text-md:      clamp(1rem, 0.925rem + 0.35vw, 1.125rem);          /* ~16-18px */
  --text-lg:      clamp(1.125rem, 1rem + 0.5vw, 1.25rem);            /* ~18-20px */
  --text-xl:      clamp(1.25rem, 1.1rem + 0.65vw, 1.5rem);           /* ~20-24px */
  --text-2xl:     clamp(1.5rem, 1.25rem + 1vw, 2rem);                /* ~24-32px */
  --text-2-5xl:   clamp(1.675rem, 1.375rem + 1.25vw, 2.25rem);      /* ~27-36px */
  --text-3xl:     clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);           /* ~30-40px */
  --text-4xl:     clamp(2.25rem, 1.75rem + 2vw, 3rem);               /* ~36-48px */
  --text-5xl:     clamp(2.75rem, 2rem + 3vw, 4rem);                  /* ~44-64px */
  --text-hero:    clamp(2rem, 1.25rem + 4vw, 5rem);                   /* ~35-80px */
  --text-hero-xl: clamp(2.75rem, 1.5rem + 6vw, 7rem);                /* ~44-112px — hero protagonista */

  /* --- Line heights ----------------------------------------------------- */
  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.8;

  /* --- Letter spacing --------------------------------------------------- */
  --tracking-tight:   -0.025em;
  --tracking-normal:   0;
  --tracking-wide:     0.025em;
  --tracking-wider:    0.05em;
  --tracking-widest:   0.1em;

  /* --- Spacing — 4px base with multipliers ----------------------------- */
  --space-0:   0;
  --space-px:  1px;
  --space-0-5: 2px;
  --space-1:   4px;          /* 1x   base */
  --space-1-5: 6px;
  --space-2:   8px;          /* 2x   */
  --space-3:   12px;         /* 3x   */
  --space-4:   16px;         /* 4x   */
  --space-5:   20px;
  --space-6:   24px;         /* 6x   */
  --space-8:   32px;         /* 8x   */
  --space-10:  40px;
  --space-12:  48px;         /* 12x  */
  --space-16:  64px;         /* 16x  */
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* --- Border radii ----------------------------------------------------- */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;

  /* --- Z-index scale ---------------------------------------------------- */
  --z-behind:   -1;
  --z-base:      0;
  --z-dropdown:  200;
  --z-sticky:    20;
  --z-overlay:   30;
  --z-modal:     40;
  --z-popover:   50;
  --z-toast:     60;
  --z-tooltip:   70;
  --z-max:       9999;

  /* --- Easing functions ------------------------------------------------- */
  --ease-default:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in:         cubic-bezier(0.55, 0, 1, 0.45);
  --ease-out:        cubic-bezier(0, 0.55, 0.45, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce:     cubic-bezier(0.34, 1.8, 0.64, 1);
  --ease-smooth:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slide:      cubic-bezier(0.32, 0.72, 0, 1);
  --ease-tooltip:    cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Transition durations --------------------------------------------- */
  --duration-instant:  75ms;
  --duration-fast:     150ms;
  --duration-normal:   250ms;
  --duration-slow:     400ms;
  --duration-slower:   600ms;
  --duration-slowest:  800ms;

  /* --- Transition shorthands -------------------------------------------- */
  --transition-fast:    all var(--duration-fast)   var(--ease-default);
  --transition-normal:  all var(--duration-normal) var(--ease-default);
  --transition-slow:    all var(--duration-slow)   var(--ease-smooth);
  --transition-spring:  all var(--duration-normal) var(--ease-spring);

  /* --- Container widths ------------------------------------------------- */
  --container-max:   1280px;
  --container-wide:  1440px;
  --container-narrow: 720px;

  /* --- Mobile pill-nav dock height (dock ~48px + bottom offset 12px) ---- */
  --dock-height: 60px;

  /* --- Liquid Glass — legacy (used by cards, hero device, other surfaces) -- */
  --glass-blur:      40px;
  --glass-saturate:  200%;
  --glass-blur-soft: 12px;       /* Cards, overlays — frosted sutil */
  --glass-backdrop:      blur(var(--glass-blur)) saturate(var(--glass-saturate));
  --glass-backdrop-soft: blur(var(--glass-blur-soft)) saturate(var(--glass-saturate));

  /* --- Liquid Glass — iOS 26 reflex system ------------------------------- */
  /* Tint + light/dark colors for color-mix() multi-layer shadows           */
  --glass-color:          #bfb9b3;
  --glass-light:          #fff;
  --glass-dark:           #000;
  --glass-reflex-light:   1;     /* Multiplier: light inset highlights     */
  --glass-reflex-dark:    1;     /* Multiplier: dark inset/outer shadows   */

  /* Computed backgrounds */
  --glass-bg:             color-mix(in srgb, var(--glass-color) 12%, transparent);
  --glass-bg-hover:       color-mix(in srgb, var(--glass-color) 22%, transparent);
  --glass-bg-strong:      color-mix(in srgb, var(--glass-color) 36%, transparent);

  /* 10-layer box-shadow: 4 light insets + 4 dark insets + 2 outer          */
  /* Adapts automatically via --glass-reflex-light / --glass-reflex-dark     */
  --glass-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 1.8px 3px 0px -2px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 90%), transparent),
    inset -2px -2px 0px -2px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 80%), transparent),
    inset -3px -8px 1px -6px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 60%), transparent),
    inset -0.3px -1px 4px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 12%), transparent),
    inset -1.5px 2.5px 0px -2px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 0px 3px 4px -2px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 2px -6.5px 1px -4px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0px 1px 5px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0px 6px 16px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 8%), transparent);

  /* Lightweight glass shadow — 5 layers for listed/multiplied elements      */
  --glass-shadow-light:
    inset 0 0 0 1px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 1.8px 3px 0px -2px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 80%), transparent),
    inset -0.3px -1px 4px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 12%), transparent),
    0px 1px 5px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0px 6px 16px 0px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 8%), transparent);

  /* --- Text Glow — neon brand halo for headings on dark surfaces -------- */
  --text-glow:
    0 0 10px rgba(253, 135, 0, 0.9),
    0 0 30px rgba(253, 135, 0, 0.7),
    0 0 60px rgba(22, 193, 253, 0.5),
    0 0 100px rgba(22, 193, 253, 0.3);
  /* filter: variant — for gradient text where text-shadow doesn't apply */
  --text-glow-filter:
    drop-shadow(0 0 0.5px var(--color-primary))
    drop-shadow(0 0 0.5px var(--color-primary))
    drop-shadow(0 0 18px color-mix(in srgb, var(--color-primary) 65%, transparent))
    drop-shadow(0 0 44px color-mix(in srgb, var(--color-secondary) 30%, transparent));

  /* --- Liquid Glass — interactive button tokens (swiper, etc.) ---------- */
  --glass-btn-bg:      color-mix(in srgb, #e57600 6%, transparent);
  --glass-btn-border:  rgba(229, 118, 0, 0.15);
  --glass-btn-color:   #e57600;

  /* --- Device Mockups — MacBook (aluminium bezel) ----------------------- */
  --device-bezel:        #c8c8cc;
  --device-bezel-border: #d4d4d8;
  --device-bezel-accent: #b8b8bc;
  --device-bezel-cam:    #a8a8ac;
  --device-base-top:     #d4d4d8;
  --device-base-bottom:  #c0c0c4;
  --device-base-indent:  #b8b8bc;

  /* --- Device Mockups — Browser (traffic light dots) -------------------- */
  --device-dot-close:    #ff5f57;
  --device-dot-minimize: #febc2e;
  --device-dot-maximize: #28c840;

  /* --- Device Mockups — iPhone ------------------------------------------ */
  --device-phone-frame:    #1a1a1a;
  --device-phone-border:   #2a2a2a;
  --device-phone-island:   #1a1a1a;    /* Dynamic Island */
  --device-phone-button:   #d4d4d8;    /* Side buttons, power, home indicator */
  --device-phone-frame-lt: #e8e8ec;    /* Light mode frame override */
  --device-phone-border-lt:#d4d4d8;    /* Light mode border override */

  /* --- Breakpoints (for reference — used in media queries) -------------- */
  /* --bp-mobile:  639px   (max-width) */
  /* --bp-tablet:  640px   (min-width) */
  /* --bp-desktop: 1024px  (min-width) */
  /* --bp-wide:    1440px  (min-width) */

  /* --- Sileo toast (gooey SVG notifications) --------------------------- */
  --sileo-duration:        600ms;
  --sileo-toast-width:     360px;
  --sileo-toast-height:    40px;
  --sileo-toast-roundness: 16px;
  --sileo-toast-blur:      8px;            /* roundness * 0.5 */
  --sileo-toast-fill:      #1a1a1a;
  --sileo-toast-fg:        rgba(255, 255, 255, 0.82);   /* description — readable at small size */
  --sileo-toast-fg-strong: rgba(255, 255, 255, 0.95);   /* reserved for emphasis */

  /* Apple-style spring easing (matches Motion's bounce:0.25 / duration:0.6) */
  --sileo-spring-easing: linear(
    0, 0.002 0.6%, 0.007 1.2%, 0.015 1.8%, 0.026 2.4%, 0.041 3.1%,
    0.06 3.8%, 0.108 5.3%, 0.157 6.6%, 0.214 8%, 0.467 13.7%,
    0.577 16.3%, 0.631 17.7%, 0.682 19.1%, 0.73 20.5%, 0.771 21.8%,
    0.808 23.1%, 0.844 24.5%, 0.874 25.8%, 0.903 27.2%, 0.928 28.6%,
    0.952 30.1%, 0.972 31.6%, 0.988 33.1%, 1.01 35.7%, 1.025 38.5%,
    1.034 41.6%, 1.038 45%, 1.035 50.1%, 1.012 64.2%, 1.003 73%,
    0.999 83.7%, 1
  );

  /* State tones — OKLCH from Sileo upstream */
  --sileo-state-success: oklch(0.723 0.219 142.136);
  --sileo-state-loading: oklch(0.556 0 0);
  --sileo-state-error:   oklch(0.637 0.237 25.331);
  --sileo-state-warning: oklch(0.795 0.184 86.047);
  --sileo-state-info:    oklch(0.685 0.169 237.323);
  --sileo-state-action:  oklch(0.623 0.214 259.815);
}


/* --------------------------------------------------------------------------
   2. LIGHT MODE (default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* --- Surface / Background — all white, fluid ------------------------- */
  --bg-primary:      #ffffff;
  --bg-secondary:    #ffffff;
  --bg-tertiary:     #ffffff;
  --bg-elevated:     #ffffff;
  --bg-inset:        #f8f7f5;

  /* --- Text ------------------------------------------------------------- */
  /* Contrast ratios on #ffffff bg (WCAG AA = 4.5:1 normal / 3:1 large) */
  --text-primary:    #09090b;
  --text-secondary:  #3f3f46;
  --text-tertiary:   #52525b;
  --text-muted:      #71717a;
  --text-inverted:   #fafafa;
  --text-on-primary: #ffffff;

  /* --- Borders ---------------------------------------------------------- */
  --border-default:  #eae8e5;
  --border-subtle:   #f2f0ee;
  --border-strong:   #d6d2cd;
  --border-focus:    var(--color-primary);

  /* --- Gradients — light = familia NARANJA monocromática, sin anclas oscuras */
  --gradient-primary:  linear-gradient(135deg, #fd8700 0%, #e57600 100%);
  --gradient-subtle:   linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --gradient-card:     linear-gradient(135deg, rgba(253,135,0,0.04) 0%, rgba(229,118,0,0.04) 100%);
  --gradient-text-from: #e57600;
  --gradient-text-to:   #ffb340;
  --gradient-text:     linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
  --gradient-fill:     linear-gradient(155deg, #ff9d2e 0%, #fd8700 40%, #e57600 100%);
  --gradient-border:   linear-gradient(135deg, rgba(253,135,0,0.3), rgba(229,118,0,0.15));
  --gradient-active-from: #ff9d2e;
  --gradient-active-mid:  #fd8700;
  --gradient-active-to:   #e57600;

  /* --- Shadows ---------------------------------------------------------- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.04),
                 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.06),
                 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.08),
                 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.08),
                 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px rgba(253, 135, 0, 0.2),
                 0 0 60px rgba(253, 135, 0, 0.1);

  /* --- Overlay / Backdrop ----------------------------------------------- */
  --overlay:         rgba(9, 9, 11, 0.5);
  --backdrop-blur:   blur(12px);

  /* --- Card-specific ---------------------------------------------------- */
  --card-bg:         rgba(255, 255, 255, 0.8);
  --card-border:     rgba(234, 232, 229, 0.8);
  --card-hover-border: rgba(253, 135, 0, 0.3);

  /* --- Nav (Liquid Glass) ----------------------------------------------- */
  --nav-bg:          rgba(255, 255, 255, 0.55);
  --nav-border:      rgba(234, 232, 229, 0.6);

  /* --- Selection -------------------------------------------------------- */
  --selection-bg:    rgba(253, 135, 0, 0.15);
  --selection-text:  #09090b;

  /* --- Scrollbar -------------------------------------------------------- */
  --scrollbar-track: #ffffff;
  --scrollbar-thumb: #d6d2cd;
  --scrollbar-hover: #a8a19a;
}


/* --------------------------------------------------------------------------
   3. DARK MODE
   Applied to [data-theme="dark"] always. En dark la marca pivota al cyan
   (igual que SecurApp pivota al violeta): gradientes y acentos en #16c1fd.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  /* --- Liquid Glass — reflex multipliers (dark) -------------------------- */
  --glass-reflex-light:  0.3;
  --glass-reflex-dark:   2;

  /* --- Surface / Background — deep neutral, sutilmente cálido ----------- */
  --bg-primary:      #0a0a0c;
  --bg-secondary:    #111114;
  --bg-tertiary:     #18181c;
  --bg-elevated:     #1f1f24;
  --bg-inset:        #060608;

  /* --- Text ------------------------------------------------------------- */
  --text-primary:    #fafafa;
  --text-secondary:  #d4d4d8;
  --text-tertiary:   #a1a1aa;
  --text-muted:      #71717a;
  --text-inverted:   #09090b;
  --text-on-primary: #ffffff;

  /* --- Borders ----------------------------------------------------------- */
  --border-default:  #232328;
  --border-subtle:   #1a1a1f;
  --border-strong:   #32323a;
  --border-focus:    var(--color-primary);

  /* --- Gradients — dark = familia CYAN monocromática, sin anclas oscuras -- */
  --gradient-primary:  linear-gradient(135deg, #16c1fd 0%, #2fcaff 100%);
  --gradient-subtle:   linear-gradient(180deg, #0a0a0c 0%, #18181c 100%);
  --gradient-card:     linear-gradient(135deg, rgba(22,193,253,0.06) 0%, rgba(47,202,255,0.06) 100%);
  --gradient-text-from: #16c1fd;
  --gradient-text-to:   #7de8ff;
  --gradient-text:     linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
  --gradient-fill:     linear-gradient(155deg, #2fcaff 0%, #16c1fd 40%, #0ba9e0 100%);
  --gradient-border:   linear-gradient(135deg, rgba(22,193,253,0.4), rgba(47,202,255,0.2));
  --gradient-active-from: #2fcaff;
  --gradient-active-mid:  #16c1fd;
  --gradient-active-to:   #7de8ff;

  /* --- Liquid Glass — interactive button tokens (dark) ------------------- */
  --glass-btn-bg:      color-mix(in srgb, #0ba9e0 8%, transparent);
  --glass-btn-border:  rgba(11, 169, 224, 0.2);
  --glass-btn-color:   #0ba9e0;

  /* --- Shadows ---------------------------------------------------------- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3),
                 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.4),
                 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.5),
                 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.5),
                 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(22, 193, 253, 0.25),
                 0 0 60px rgba(22, 193, 253, 0.12);
  --text-glow-filter:
    drop-shadow(0 0 0.5px var(--color-secondary))
    drop-shadow(0 0 0.5px var(--color-secondary))
    drop-shadow(0 0 18px color-mix(in srgb, var(--color-secondary) 65%, transparent))
    drop-shadow(0 0 44px color-mix(in srgb, var(--color-primary) 30%, transparent));

  /* --- Overlay / Backdrop ----------------------------------------------- */
  --overlay:         rgba(0, 0, 0, 0.7);
  --backdrop-blur:   blur(16px);

  /* --- Card-specific ---------------------------------------------------- */
  --card-bg:         rgba(17, 17, 20, 0.8);
  --card-border:     rgba(35, 35, 40, 0.6);
  --card-hover-border: rgba(22, 193, 253, 0.35);

  /* --- Nav (Liquid Glass) ----------------------------------------------- */
  --nav-bg:          rgba(10, 10, 12, 0.45);
  --nav-border:      rgba(35, 35, 40, 0.5);

  /* --- Selection -------------------------------------------------------- */
  --selection-bg:    rgba(22, 193, 253, 0.2);
  --selection-text:  #fafafa;

  /* --- Scrollbar -------------------------------------------------------- */
  --scrollbar-track: #18181c;
  --scrollbar-thumb: #32323a;
  --scrollbar-hover: #3e3e48;

  /* --- Device Mockups — MacBook (dark bezel) ----------------------------- */
  --device-bezel:        #0a0a0a;
  --device-bezel-border: #1a1a1a;
  --device-bezel-accent: #888888;
  --device-bezel-cam:    #1f1f1f;
  --device-base-top:     #c0c0c0;
  --device-base-bottom:  #a8a8a8;
  --device-base-indent:  #999999;

  /* --- Device Mockups — iPhone (dark = same frame, lighter buttons) ----- */
  --device-phone-frame:    #1a1a1a;
  --device-phone-border:   #2a2a2a;
  --device-phone-island:   #1a1a1a;
  --device-phone-button:   #3a3a3a;
  --device-phone-frame-lt: #1a1a1a;    /* Not used in dark, stays dark */
  --device-phone-border-lt:#2a2a2a;

  /* Sileo toast — flip to light fill so it contrasts against the dark page */
  --sileo-toast-fill:      #f5f5f7;
  --sileo-toast-fg:        rgba(26, 26, 30, 0.78);      /* description — readable at small size */
  --sileo-toast-fg-strong: rgba(26, 26, 30, 0.9);       /* reserved for emphasis */
}


/* --------------------------------------------------------------------------
   4. AUTO THEME — Respects OS preference
   The JS theme system handles this: when theme is "auto", it reads
   prefers-color-scheme and applies either "light" or "dark" to
   data-theme. If JS is disabled, auto falls back to light.
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   6. SECTION OVERRIDES — Forced themes per-section
   -------------------------------------------------------------------------- */

/* Force dark surfaces regardless of global theme */
.section--dark {
  --bg-primary:      #0a0a0c;
  --bg-secondary:    #111114;
  --bg-tertiary:     #18181c;
  --text-primary:    #fafafa;
  --text-secondary:  #d4d4d8;
  --text-tertiary:   #a1a1aa;
  --text-muted:      #71717a;
  --border-default:  #232328;
  --border-subtle:   #1a1a1f;
  --card-bg:         rgba(17, 17, 20, 0.8);
  --card-border:     rgba(35, 35, 40, 0.6);
  --card-hover-border: rgba(22, 193, 253, 0.35);
  --shadow-glow:     0 0 20px rgba(22, 193, 253, 0.25),
                     0 0 60px rgba(22, 193, 253, 0.12);
  --gradient-primary:  linear-gradient(135deg, #16c1fd 0%, #2fcaff 100%);
  --gradient-text-from: #16c1fd;
  --gradient-text-to:   #7de8ff;
  --gradient-text:     linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
  --gradient-fill:     linear-gradient(155deg, #2fcaff 0%, #16c1fd 40%, #0ba9e0 100%);
  --gradient-active-from: #2fcaff;
  --gradient-active-mid:  #16c1fd;
  --gradient-active-to:   #7de8ff;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Force light surfaces regardless of global theme */
.section--light {
  --bg-primary:      #ffffff;
  --bg-secondary:    #ffffff;
  --bg-tertiary:     #ffffff;
  --text-primary:    #09090b;
  --text-secondary:  #3f3f46;
  --text-tertiary:   #71717a;
  --text-muted:      #a1a1aa;
  --border-default:  #eae8e5;
  --border-subtle:   #f2f0ee;
  --card-bg:         rgba(255, 255, 255, 0.8);
  --card-border:     rgba(234, 232, 229, 0.8);
  --card-hover-border: rgba(253, 135, 0, 0.3);
  --shadow-glow:     0 0 20px rgba(253, 135, 0, 0.2),
                     0 0 60px rgba(253, 135, 0, 0.1);
  --gradient-primary:  linear-gradient(135deg, #fd8700 0%, #e57600 100%);
  --gradient-text-from: #e57600;
  --gradient-text-to:   #ffb340;
  --gradient-text:     linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
  --gradient-fill:     linear-gradient(155deg, #ff9d2e 0%, #fd8700 40%, #e57600 100%);
  --gradient-active-from: #ff9d2e;
  --gradient-active-mid:  #fd8700;
  --gradient-active-to:   #e57600;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}
