/* ==========================================================================
   Spect-IT — Enhanced design system (loaded last; overrides base styles.css)
   Upgrades the marketing shell: typography, header, hero, cards, sections,
   motion and accessibility. Does NOT change any JS hooks / component classes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #2d6a6a;
    --accent: #c9a962;
    --accent-light: #e8d5a3;
    --accent-dark: #a8864a;
    --ink: #0f1419;
    --ink-2: #1e2936;
    --muted: #5c6570;
    --muted-2: #8a9199;
    --line: #e5e0d8;
    --line-gold: rgba(201, 169, 98, .35);
    --surface: #faf9f7;
    --surface-2: #f3f1ec;
    --surface-3: #ebe8e2;

    --brand-grad: linear-gradient(135deg, #152a45 0%, #1e3a5f 45%, #2d5a7a 100%);
    --brand-grad-soft: linear-gradient(135deg, #f3f1ec 0%, #ebe8e2 100%);
    --gold-grad: linear-gradient(135deg, #a8864a 0%, #c9a962 40%, #e8d5a3 100%);
    --gold-grad-soft: linear-gradient(135deg, #faf6ee 0%, #f3ecdc 100%);

    --shadow-sm: 0 1px 2px rgba(15, 20, 25, .05), 0 1px 3px rgba(15, 20, 25, .06);
    --shadow-md: 0 4px 16px rgba(15, 20, 25, .07), 0 2px 4px rgba(15, 20, 25, .04);
    --shadow-lg: 0 20px 44px -14px rgba(21, 42, 69, .22), 0 8px 20px -8px rgba(15, 20, 25, .1);
    --shadow-xl: 0 32px 72px -20px rgba(21, 42, 69, .28);
    --shadow-gold: 0 8px 24px -6px rgba(201, 169, 98, .28);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --container: 1180px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.008em;
}

.container { max-width: var(--container); padding: 0 28px; }

h1, h2, h3, .logo, .test-title, .bk-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.015em;
    font-weight: 600;
}

::selection { background: rgba(201, 169, 98, .22); color: var(--ink); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
    background: rgba(250, 249, 247, .88);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding: .9rem 0;
    transition: padding .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
header.scrolled {
    padding: .6rem 0;
    box-shadow: 0 10px 32px -14px rgba(15, 20, 25, .14);
    background: rgba(250, 249, 247, .96);
    border-bottom-color: var(--line-gold);
}

.logo { color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.logo-icon {
    font-size: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--brand-grad); border-radius: 11px; box-shadow: var(--shadow-md);
    border: 1px solid rgba(201, 169, 98, .35);
}

.nav-links { gap: .25rem; align-items: center; }
.nav-link {
    color: var(--muted); font-weight: 500; font-size: .92rem;
    padding: .5rem .85rem; border-radius: var(--radius-pill);
    transition: color .2s var(--ease), background .2s var(--ease);
    letter-spacing: .01em;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active { background: var(--gold-grad-soft); color: var(--primary-dark); }

/* Header CTA (added in markup) */
.nav-cta {
    background: var(--gold-grad) !important; color: var(--primary-dark) !important;
    padding: .58rem 1.25rem !important; box-shadow: var(--shadow-gold);
    border: 1px solid rgba(168, 134, 74, .25) !important;
    font-weight: 700 !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); color: var(--primary-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    padding: .85rem 1.65rem; border-radius: var(--radius-pill); font-weight: 600;
    font-size: .95rem; letter-spacing: .02em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    will-change: transform;
}
.btn-primary { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-gradient { background: var(--gold-grad); color: var(--primary-dark); box-shadow: var(--shadow-gold); border: 1px solid rgba(168, 134, 74, .2); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary-dark); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(201, 169, 98, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(232, 213, 163, .6); transform: translateY(-2px); }

.btn-test {
    background: var(--brand-grad); color: #fff; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md); font-weight: 600; letter-spacing: .03em;
    border: 1px solid rgba(201, 169, 98, .2);
}
.btn-test:hover { background: linear-gradient(135deg, #1a3354 0%, #254a6e 100%); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 900px 500px at 80% 10%, rgba(201, 169, 98, .12) 0%, transparent 55%),
        radial-gradient(ellipse 700px 600px at 10% 90%, rgba(45, 106, 106, .15) 0%, transparent 50%),
        linear-gradient(165deg, #0c1524 0%, #152a45 38%, #1e3a5f 72%, #254a6e 100%);
    padding: 6.5rem 0 7rem; color: #fff; text-align: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; opacity: .6;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--surface));
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(40px); opacity: .25; z-index: 1;
    background: radial-gradient(circle, rgba(201, 169, 98, .5), transparent 70%);
}
.hero-orb.o1 { width: 380px; height: 380px; top: -80px; left: -80px; animation: float 12s ease-in-out infinite; }
.hero-orb.o2 { width: 260px; height: 260px; bottom: 5%; right: 8%; opacity: .18; animation: float 14s ease-in-out infinite reverse; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }

.premium-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(201, 169, 98, .12); border: 1px solid rgba(201, 169, 98, .45);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: .45rem 1.15rem !important; border-radius: var(--radius-pill);
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-light); animation: none !important; box-shadow: none !important;
}
.premium-badge::before { content: none !important; display: none !important; }

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.8rem); font-weight: 600; line-height: 1.05;
    margin: 1.35rem 0 0; text-shadow: 0 2px 24px rgba(0,0,0,.2);
}
.hero h1 .grad-word {
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-style: italic;
}
.hero-subtitle {
    font-size: clamp(1.02rem, 2vw, 1.22rem); opacity: .88; max-width: 620px;
    margin: 1.35rem auto 0; line-height: 1.75; font-weight: 400; color: rgba(255,255,255,.82);
    letter-spacing: .01em;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

.hero-features { gap: .85rem; margin: 2.75rem auto 0; max-width: 780px; }
.feature-item {
    background: rgba(255,255,255,.06); border: 1px solid rgba(201, 169, 98, .22);
    padding: .65rem 1.15rem; border-radius: var(--radius-pill); font-weight: 500; font-size: .88rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
    letter-spacing: .02em;
}
.feature-item:hover { transform: translateY(-2px); background: rgba(201, 169, 98, .1); border-color: rgba(201, 169, 98, .4); }
.feature-icon { font-size: 1rem; opacity: .9; }

.hero-trust { margin-top: 2.75rem; display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; opacity: .75; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* --------------------------------------------------------------------------
   Generic section rhythm & headings
   -------------------------------------------------------------------------- */
.tests-section, .results-section, .specialists-section, .shop-section { padding: 5.5rem 0; }
.tests-section { background: var(--surface); }
.results-section { background: var(--surface-2); }
.specialists-section { background: var(--surface); }
.shop-section { background: var(--surface-2); }

.tests-section h2, .results-section h2, .shop-section h2, .section-heading h2 {
    text-align: center; font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 600; color: var(--ink);
    margin-bottom: .65rem;
}
.section-subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 3rem; line-height: 1.65; }

.eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent-dark); background: var(--gold-grad-soft);
    padding: .38rem .95rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
    border: 1px solid var(--line-gold);
}
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 3.25rem; }
.section-heading p { color: var(--muted); font-size: 1.05rem; margin-top: .65rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Test cards
   -------------------------------------------------------------------------- */
.tests-grid { gap: 1.5rem; }
.test-card {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.25rem 1.85rem; box-shadow: var(--shadow-sm); text-align: left; overflow: hidden;
    background: #fff;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.test-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.test-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.test-card:hover::before { transform: scaleX(1); }

.test-icon {
    font-size: 1.65rem; width: 58px; height: 58px; display: grid; place-items: center;
    background: var(--gold-grad-soft); border-radius: 14px; margin-bottom: 1.25rem;
    border: 1px solid var(--line-gold);
}
.test-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .55rem; }
.test-card p { color: var(--muted); font-size: .95rem; min-height: 2.8em; line-height: 1.65; }
.test-details { justify-content: flex-start; gap: .55rem; margin: 1.15rem 0 0; flex-wrap: wrap; }
.test-details span {
    background: var(--surface-2); color: var(--ink-2); padding: .32rem .75rem;
    border-radius: var(--radius-pill); font-size: .78rem; font-weight: 500;
    border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-section { padding: 5.5rem 0; background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.step-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 2.1rem 1.85rem; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.step-num {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-grad); color: var(--accent-light); font-weight: 600;
    font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
    margin-bottom: 1.15rem; box-shadow: var(--shadow-md);
    border: 1px solid rgba(201, 169, 98, .3);
}
.step-card h3 { font-size: 1.28rem; margin-bottom: .55rem; font-weight: 600; }
.step-card p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-band {
    background: var(--brand-grad); color: #fff; padding: 4rem 0;
    border-top: 1px solid rgba(201, 169, 98, .25);
    border-bottom: 1px solid rgba(201, 169, 98, .25);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-big {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 600; line-height: 1; color: var(--accent-light);
}
.stat-caption { margin-top: .55rem; opacity: .82; font-weight: 400; font-size: .92rem; letter-spacing: .03em; }

/* --------------------------------------------------------------------------
   Features / why
   -------------------------------------------------------------------------- */
.why-section { padding: 5.5rem 0; background: var(--surface-2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.why-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.1rem; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.why-icon {
    font-size: 1.45rem; width: 54px; height: 54px; display: grid; place-items: center;
    background: var(--gold-grad-soft); border-radius: 14px; margin-bottom: 1.15rem;
    border: 1px solid var(--line-gold);
}
.why-card h3 { font-size: 1.25rem; margin-bottom: .55rem; font-weight: 600; }
.why-card p { color: var(--muted); line-height: 1.7; font-size: .95rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section { padding: 5.5rem 0; background: var(--surface); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .85rem; background: #fff; overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); transition: transform .25s var(--ease); font-weight: 400; font-family: 'DM Sans', sans-serif; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.5rem 1.35rem; color: var(--muted); line-height: 1.75; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-band { padding: 5rem 0; background: var(--surface-2); }
.cta-card {
    position: relative; overflow: hidden; border-radius: 24px; padding: 4.25rem 2rem; text-align: center; color: #fff;
    background:
        radial-gradient(700px 350px at 15% 0%, rgba(201, 169, 98, .15), transparent 55%),
        var(--brand-grad);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(201, 169, 98, .25);
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; margin-bottom: .85rem; }
.cta-card p { opacity: .85; max-width: 540px; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: #0c1524; padding: 3.5rem 0 2.25rem; border-top: 1px solid rgba(201, 169, 98, .2); }
footer .container { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
footer p { opacity: .72; font-size: .92rem; letter-spacing: .01em; }
.disclaimer { max-width: 640px; line-height: 1.65; }
footer a { color: var(--accent-light); text-decoration: none; transition: color .2s var(--ease); }
footer a:hover { color: var(--accent); text-decoration: none; }

/* --------------------------------------------------------------------------
   Scroll reveal + accessibility
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
        flex-direction: column; align-items: stretch; gap: .25rem;
        background: var(--surface); padding: 5.5rem 1.25rem 2rem; box-shadow: -20px 0 60px -20px rgba(15,20,25,.28);
        border-left: 1px solid var(--line-gold);
        transform: translateX(100%); transition: transform .35s var(--ease); z-index: 1200;
    }
    body.nav-open .nav-links { transform: translateX(0); }
    .nav-link { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
    .nav-cta { text-align: center; margin-top: .5rem; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(12, 21, 36, .45); z-index: 1100; }
}

@media (max-width: 768px) {
    .hero { padding: 4.5rem 0 5rem; }
    .hero-features { flex-direction: row; flex-wrap: wrap; }
    .feature-item { font-size: .82rem; padding: .55rem .9rem; }
    .test-card { padding: 1.8rem 1.4rem; }
    .tests-section, .results-section, .specialists-section, .shop-section,
    .how-section, .why-section, .faq-section { padding: 4rem 0; }
    .cta-card { padding: 3rem 1.25rem; }
}

/* ==========================================================================
   Component polish — brings modals, tests, shop & specialists in line with
   the new design system (loaded after styles.css, so these win by source order)
   ========================================================================== */

/* --- Modals (test + result) --- */
.modal { background: rgba(12, 21, 36, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-content, .result-modal-content, .result-modal .result-modal-content {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
    border: 1px solid var(--line-gold);
}
.modal-close {
    background: var(--surface-3); color: var(--muted); width: 40px; height: 40px;
    border-radius: 50%; font-size: 1.4rem; transition: all .2s var(--ease);
}
.modal-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

.test-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.test-instructions {
    background: var(--gold-grad-soft); border: 1px solid var(--line-gold);
    border-radius: var(--radius); color: var(--ink-2);
}
.test-display { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }

.test-controls button, .btn-correct, .btn-incorrect, .btn-next {
    border-radius: var(--radius-pill); padding: .8rem 1.6rem; font-weight: 700;
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.test-controls button:hover, .btn-correct:hover, .btn-incorrect:hover, .btn-next:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.03);
}
.btn-next { background: var(--brand-grad); border: 1px solid rgba(201, 169, 98, .2); }

.result-modal { background: rgba(12, 21, 36, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.result-modal-close { border-radius: 50%; transition: all .2s var(--ease); }
.result-modal-close:hover { background: var(--surface-3); }
.result-score-large, .result-test-name { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

/* --- Results / dashboard readability --- */
.results-section .no-results, .result-card {
    border-radius: var(--radius-lg); border: 1px solid var(--line);
}
#premium-dashboard, .premium-dashboard { color: var(--ink); }

/* --- Shop --- */
.category-tab {
    border-radius: var(--radius-pill); border: 1.5px solid var(--line); font-weight: 600;
    transition: all .2s var(--ease);
}
.category-tab:hover { border-color: var(--accent-dark); color: var(--primary-dark); background: var(--gold-grad-soft); }
.category-tab.active { background: var(--brand-grad); border-color: rgba(201, 169, 98, .3); color: #fff; box-shadow: var(--shadow-md); }

.search-bar input {
    border-radius: var(--radius-pill); border: 1.5px solid var(--line); padding: .8rem 1.25rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-bar input:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(201, 169, 98, .15); }

.products-grid { gap: 1.5rem; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #fff; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.product-image { background: var(--surface-3); }
.product-name { font-weight: 600; }
.price-amount { color: var(--accent-dark); font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.stock-badge { border-radius: var(--radius-pill); font-weight: 600; box-shadow: var(--shadow-sm); }
.btn-add-cart { background: var(--brand-grad); border-radius: var(--radius-pill); font-weight: 600; border: 1px solid rgba(201, 169, 98, .2); }
.btn-add-cart:hover:not(:disabled) { background: var(--brand-grad); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- Shopping cart --- */
.cart-sidebar { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); }
.cart-button { background: var(--brand-grad); box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 169, 98, .25); }
.cart-button:hover { box-shadow: var(--shadow-xl); }
.cart-total, .checkout-total, .cart-item-price { color: var(--accent-dark); }

/* --- Specialists --- */
.specialist-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #fff; }
.specialist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.specialist-header h3 { font-weight: 600; font-family: 'Cormorant Garamond', serif; }
.specialist-type { border-radius: var(--radius-pill); font-weight: 600; }
.specialist-actions .btn { border-radius: var(--radius-pill); }
.specialist-actions .btn-secondary { background: var(--surface-3); color: var(--ink-2); }
.specialist-actions .btn-secondary:hover { background: var(--line); }
.specialist-actions .btn-primary { background: var(--brand-grad); color: #fff; border: 1px solid rgba(201, 169, 98, .2); }
.specialist-actions .btn-primary:hover { color: #fff; box-shadow: var(--shadow-md); }

/* --- Forms --- */
.form-group input, .form-group textarea, .form-group select {
    border-radius: 12px; border: 1.5px solid var(--line); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(201, 169, 98, .12);
}

/* ==========================================================================
   Appointment booking modal
   ========================================================================== */
.rx-modal {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(12, 21, 36, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: 1rem;
}
.rx-modal.active { display: flex; }
.rx-modal-card {
    background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px;
    max-height: 92vh; overflow-y: auto; position: relative; padding: 2rem 1.75rem;
    box-shadow: var(--shadow-xl); animation: bkIn .28s var(--ease);
    border: 1px solid var(--line-gold);
}
@keyframes bkIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rx-modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%;
    border: none; background: var(--surface-3); color: var(--muted); font-size: 1.3rem; cursor: pointer;
    transition: all .2s var(--ease);
}
.rx-modal-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

.bk-practice { text-align: center; color: var(--muted); font-size: .92rem; }
.bk-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.65rem; text-align: center; margin-bottom: 1.1rem; }
.bk-sub { text-align: center; color: var(--muted); margin-bottom: 1.2rem; }

.bk-list { display: flex; flex-direction: column; gap: .6rem; }
.bk-choice {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
    font-weight: 600; cursor: pointer; transition: all .2s var(--ease); text-align: left; font-size: 1rem;
}
.bk-choice:hover { border-color: var(--accent-dark); background: var(--gold-grad-soft); }
.bk-choice.on { border-color: transparent; background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-md); }
.bk-mins { font-size: .82rem; opacity: .8; font-weight: 600; }

.bk-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.btn-ghost-dark { background: var(--surface-3); color: var(--ink-2); }
.btn-ghost-dark:hover { background: var(--line); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.bk-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.bk-day {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .6rem .2rem;
    border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: all .2s var(--ease);
}
.bk-day:hover { border-color: var(--accent-dark); }
.bk-day.on { border-color: transparent; background: var(--brand-grad); color: #fff; }
.bk-wd { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.bk-dm { font-weight: 700; font-size: .9rem; }

.bk-slots-title { font-weight: 700; margin: 1.1rem 0 .5rem; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.bk-slot { padding: .55rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.bk-slot:hover:not(.taken) { border-color: var(--accent-dark); }
.bk-slot.on { border-color: transparent; background: var(--brand-grad); color: #fff; }
.bk-slot.taken { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.bk-note { font-size: .82rem; color: var(--muted-2); margin-top: .8rem; text-align: center; }

.bk-form { display: flex; flex-direction: column; gap: .85rem; }
.bk-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.bk-form input, .bk-form textarea {
    padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400;
}
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(201, 169, 98, .12); }
.bk-check { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500 !important; color: var(--muted) !important; }
.bk-check input { width: 18px; height: 18px; }

.bk-confirm { text-align: center; }
.bk-check-badge { width: 68px; height: 68px; border-radius: 50%; background: var(--brand-grad); color: var(--accent-light); font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 1rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 169, 98, .35); }
.bk-summary { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
.bk-summary > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.bk-summary span { color: var(--muted); } .bk-summary strong { text-align: right; }

.bk-appt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.bk-appt.past { opacity: .55; }
.bk-appt-main { display: flex; flex-direction: column; gap: 2px; }
.bk-appt-main span { font-size: .85rem; color: var(--muted); }
.bk-appt-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.bk-status { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .65rem; border-radius: 999px; background: #faf6ee; color: #8a6d2f; border: 1px solid var(--line-gold); }
.bk-status.confirmed { background: #eef5f0; color: #2d5a45; border-color: rgba(45, 106, 106, .25); }
.bk-status.completed { background: #eef2f6; color: var(--primary); border-color: rgba(30, 58, 95, .2); }
.bk-status.cancelled, .bk-status.declined { background: #faf0f0; color: #8b4040; border-color: rgba(139, 64, 64, .2); }
.bk-cancel { background: none; border: none; color: var(--danger); font-weight: 600; cursor: pointer; font-size: .85rem; }

/* "My appointments" launcher */
.bk-launch { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; }

/* Results export toolbar */
.export-toolbar {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-bottom: 1.5rem; padding: 1rem; background: var(--surface-2);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.export-toolbar .btn { font-size: .88rem; padding: .65rem 1.1rem; }

