/* ==========================================================================
   Lylac Health Design System
   A warm, modern, women-focused design language.
   ========================================================================== */

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

/* ==========================================================================
   1. DESIGN TOKENS (Custom Properties)
   ========================================================================== */

:root {
    /* ── Primary palette ─────────────────────────────────── */
    --primary:          #7c3aed;
    --primary-hover:    #6d28d9;
    --primary-light:    #ede9fe;
    --primary-lighter:  #f5f3ff;
    --secondary:        #c084fc;
    --accent:           #f472b6;
    --accent-light:     #fce7f3;

    /* ── Semantic colors ─────────────────────────────────── */
    --green:            #4ade80;
    --green-bg:         #dcfce7;
    --green-text:       #166534;
    --yellow:           #fbbf24;
    --yellow-bg:        #fef9c3;
    --yellow-text:      #854d0e;
    --red:              #f87171;
    --red-bg:           #fee2e2;
    --red-text:         #991b1b;

    /* ── Surface & background ────────────────────────────── */
    --bg:               #faf7f5;
    --bg-warm:          #f5f0ec;
    --card:             #ffffff;
    --surface:          #ffffff;
    --header-bg:        #1a1a2e;
    --header-bg-alt:    #16162a;

    /* ── Text ────────────────────────────────────────────── */
    --heading:          #1a1a2e;
    --text:             #374151;
    --text-light:       #6b7280;
    --text-muted:       #9ca3af;

    /* ── Border & misc ───────────────────────────────────── */
    --border:           #e5e0db;
    --border-light:     #f0ebe6;
    --ring:             rgba(124, 58, 237, 0.35);
    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow:           0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:        0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-purple:    0 4px 14px rgba(124, 58, 237, 0.25);

    /* ── Radius ──────────────────────────────────────────── */
    --radius-sm:        6px;
    --radius:           12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      50px;

    /* ── Typography ──────────────────────────────────────── */
    --font-heading:     'Montserrat', sans-serif;
    --font-body:        'Inter', sans-serif;
    --text-xs:          0.75rem;
    --text-sm:          0.875rem;
    --text-base:        1rem;
    --text-lg:          1.25rem;
    --text-xl:          1.75rem;
    --text-2xl:         2.5rem;

    /* ── Spacing scale ───────────────────────────────────── */
    --space-1:          0.25rem;
    --space-2:          0.5rem;
    --space-3:          0.75rem;
    --space-4:          1rem;
    --space-5:          1.5rem;
    --space-6:          2rem;
    --space-8:          3rem;
    --space-10:         4rem;

    /* ── Transitions ─────────────────────────────────────── */
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --duration:         200ms;
    --duration-slow:    350ms;

    /* ── Legacy aliases (backward compat) ────────────────── */
    --purple:           var(--primary);
    --purple-dark:      var(--primary-hover);
    --purple-hover:     var(--primary-hover);
    --purple-light:     var(--primary-light);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    letter-spacing: 1.5px;
    line-height: 1.3;
    font-weight: 800;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

::selection {
    background: var(--primary-light);
    color: var(--primary-hover);
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-6);
}

.page-content {
    padding: var(--space-6) 0;
    min-height: calc(100vh - 64px - 100px);
}


/* ==========================================================================
   4. NAVIGATION / HEADER
   ========================================================================== */

.header {
    background: var(--header-bg);
    padding: 0 var(--space-6);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
}

.logo:hover { opacity: 0.9; }

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.logo-icon-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .header { padding: 0 var(--space-4); }
    .logo-text { font-size: 1.05rem; letter-spacing: 1px; }
    .logo-icon-img { width: 28px; height: 28px; }
}

.nav {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--duration) var(--ease);
    position: relative;
    padding: 4px 0;
}

.nav a:hover {
    color: #ffffff;
}

.nav a.active {
    color: #ffffff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm) !important;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease) !important;
    box-shadow: var(--shadow-purple);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35) !important;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary)) !important;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        height: 100vh;
        background: var(--header-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 80px var(--space-5) var(--space-5);
        gap: var(--space-3);
        transform: translateX(-100%);
        transition: transform var(--duration-slow) var(--ease);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 105;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .nav.nav-open {
        transform: translateX(0);
    }

    .nav a {
        font-size: var(--text-base) !important;
        width: 100%;
        padding: var(--space-2) 0;
        box-sizing: border-box;
    }

    .nav-btn {
        text-align: center;
        display: block !important;
        margin-top: var(--space-2);
        width: 100%;
        box-sizing: border-box;
    }
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: var(--space-3);
}

.card-highlighted {
    border-left: 4px solid var(--primary);
}

.card-status-green { border-top: 3px solid var(--green); }
.card-status-amber { border-top: 3px solid var(--yellow); }
.card-status-red   { border-top: 3px solid var(--red); }


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary — purple gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: #ffffff;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Secondary — outlined */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Outline (legacy alias for secondary) */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Danger — soft coral */
.btn-danger {
    background: var(--red);
    color: #ffffff;
}

.btn-danger:hover {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.35);
}

/* Ghost — text only */
.btn-ghost {
    background: transparent;
    color: var(--text-light);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: var(--bg-warm);
    color: var(--heading);
}

/* Pill — compact rounded */
.btn-pill {
    padding: 6px 16px;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
}

/* Sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: var(--text-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Filter button (shop) */
.filter-btn {
    font-size: var(--text-sm);
    padding: 6px 16px;
}


/* ==========================================================================
   7. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 0.4rem;
    color: var(--heading);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--heading);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-control:disabled {
    background: var(--bg-warm);
    color: var(--text-light);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* ── pH slider ───────────────────────────────────────────── */
.ph-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right,
        #fbbf24 0%,
        #4ade80 25%,
        #4ade80 50%,
        #fbbf24 75%,
        #f87171 100%
    );
    outline: none;
    margin: var(--space-2) 0;
}

.ph-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.ph-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.45);
}

.ph-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.ph-value-display {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--heading);
    margin: var(--space-2) 0;
}

/* ── Checkboxes & Radios ─────────────────────────────────── */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all var(--duration) var(--ease);
    user-select: none;
    background: var(--surface);
}

.checkbox-pill:hover {
    border-color: var(--secondary);
    background: var(--primary-lighter);
}

.checkbox-pill:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-hover);
    font-weight: 500;
}

.checkbox-pill input { display: none; }

/* Custom checkbox (standalone) */
input[type="checkbox"] {
    accent-color: var(--primary);
}

input[type="radio"] {
    accent-color: var(--primary);
}


/* ==========================================================================
   8. DASHBOARD
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.dashboard-grid .full-width {
    grid-column: 1 / -1;
}

/* Hero pH card */
.hero-card {
    background: linear-gradient(135deg, var(--primary), #9333ea, var(--secondary));
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.hero-card .card-title { color: rgba(255, 255, 255, 0.7); }
.hero-card .hero-ph { color: #ffffff; }

.hero-ph {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.hero-ph-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Stats row */
.stats-row {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

.stat-item {
    text-align: center;
    padding: var(--space-4) var(--space-5);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 130px;
    border: 1px solid var(--border-light);
    transition: transform var(--duration) var(--ease);
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--heading);
}

.stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Stat card (grid version) */
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* Chart */
.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Insight card */
.insight-card {
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-light));
    border: 1px solid var(--primary-light);
}


/* ==========================================================================
   9. HEALTH STATUS BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.badge-green,
.status-healthy {
    background: var(--green-bg);
    color: var(--green-text);
}

.badge-yellow,
.status-elevated {
    background: var(--yellow-bg);
    color: var(--yellow-text);
}

.badge-red,
.status-alert {
    background: var(--red-bg);
    color: var(--red-text);
}

.badge-purple {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* Pulse animation for status */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    transform: translateY(-50%);
    animation: pulseAnim 2s ease-in-out infinite;
}

@keyframes pulseAnim {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50%      { opacity: 0.5; transform: translateY(-50%) scale(1.4); }
}


/* ==========================================================================
   10. CHAT
   ========================================================================== */

.chat-panel {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    scroll-behavior: smooth;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: 1.6;
    animation: fadeIn var(--duration-slow) var(--ease);
}

.chat-bubble.user,
.message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant,
.message-ai {
    align-self: flex-start;
    background: var(--bg-warm);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}

.chat-input-row {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    border-top: 1px solid var(--border-light);
    background: var(--bg);
    border-radius: 0 0 var(--radius) var(--radius);
}

.chat-input-row input {
    flex: 1;
    padding: 11px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    background: var(--surface);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.chat-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.chat-input-row button {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-purple);
}

.chat-input-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1; }
}


/* ==========================================================================
   11. SHOP / PRODUCTS
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-5);
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 170px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-light), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--primary-hover);
    font-weight: 500;
    padding: var(--space-4);
    text-align: center;
}

.product-info {
    padding: var(--space-4);
}

.product-name {
    font-weight: 600;
    color: var(--heading);
    margin-bottom: var(--space-1);
    font-size: var(--text-base);
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.verified-badge,
.lylac-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary-hover);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-2);
}

/* Category pills (shop filters) */
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.price {
    color: var(--primary);
    font-weight: 700;
}


/* ==========================================================================
   12. PROFILE
   ========================================================================== */

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}


/* ==========================================================================
   13. TABLES (Admin, History)
   ========================================================================== */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

.data-table,
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

th {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--bg);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

/* Striped rows */
.data-table tbody tr:nth-child(even) td,
table tbody tr:nth-child(even) td {
    background: var(--bg);
}

tr:hover td {
    background: var(--primary-lighter);
}


/* ==========================================================================
   14. MODALS & TOASTS
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn var(--duration) var(--ease);
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    max-width: 500px;
    width: 90%;
    animation: slideUp var(--duration-slow) var(--ease);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--heading);
    margin-bottom: var(--space-4);
}

.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: var(--heading);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 1100;
    animation: slideUp var(--duration-slow) var(--ease);
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error   { border-left: 4px solid var(--red); }
.toast-info    { border-left: 4px solid var(--primary); }


/* ==========================================================================
   15. ALERTS / FEEDBACK
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.alert-success {
    background: var(--green-bg);
    color: var(--green-text);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-warning {
    background: var(--yellow-bg);
    color: var(--yellow-text);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.alert-error {
    background: var(--red-bg);
    color: var(--red-text);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid rgba(124, 58, 237, 0.2);
}


/* ==========================================================================
   16. LANDING PAGE
   ========================================================================== */

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--header-bg) 0%, #2d1b69 50%, #1a1a2e 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: var(--space-4);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-6);
    line-height: 1.7;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 16px 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    padding: var(--space-10) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-lg);
    transition: transform var(--duration-slow) var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.feature-card p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.7;
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.footer {
    background: var(--header-bg);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: var(--space-8) var(--space-6);
    font-size: var(--text-sm);
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}


/* ==========================================================================
   18. LOADING / SPINNERS
   ========================================================================== */

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shimmer loading placeholder */
.shimmer {
    background: linear-gradient(90deg,
        var(--bg-warm) 25%,
        var(--border-light) 50%,
        var(--bg-warm) 75%
    );
    background-size: 200% 100%;
    animation: shimmerAnim 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmerAnim {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ==========================================================================
   19. EMPTY STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.6;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ==========================================================================
   20. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn  { animation: fadeIn var(--duration-slow) var(--ease); }
.animate-slideUp { animation: slideUp var(--duration-slow) var(--ease); }


/* ==========================================================================
   21. UTILITY CLASSES
   ========================================================================== */

/* ── Text alignment ──────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* ── Text styles ─────────────────────────────────────────── */
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.text-lg      { font-size: var(--text-lg); }
.text-muted   { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-bold    { font-weight: 600; }

/* ── Margins ─────────────────────────────────────────────── */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }

/* ── Padding ─────────────────────────────────────────────── */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ── Flexbox ─────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-end      { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ── Grid helpers ────────────────────────────────────────── */
.grid   { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Display ─────────────────────────────────────────────── */
.hidden    { display: none !important; }
.block     { display: block; }
.inline    { display: inline; }

/* ── Accessibility ───────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Misc ────────────────────────────────────────────────── */
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow      { box-shadow: var(--shadow); }
.shadow-md   { box-shadow: var(--shadow-md); }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full      { width: 100%; }


/* ==========================================================================
   22. RESPONSIVE DESIGN
   ========================================================================== */

/* ── Tablet (640px - 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .grid-4   { grid-template-columns: repeat(2, 1fr); }
    .grid-3   { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (< 640px) ────────────────────────────────────── */
@media (max-width: 768px) {
    .dashboard-grid   { grid-template-columns: 1fr; }
    .features         { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .product-grid     { grid-template-columns: 1fr 1fr; }

    .hero h1 { font-size: 2.2rem; }
    .hero     { padding: 3rem var(--space-4); }

    /* Hide social proof dividers on mobile */
    .social-proof-divider { display: none !important; }

    .container,
    .container-narrow { padding: var(--space-4); }

    /* nav hamburger handled above */

    .hero-ph { font-size: 2.5rem; }

    .stats-row { gap: var(--space-2); }
    .stat-item { min-width: 100px; padding: var(--space-3) var(--space-4); }
    .stat-value { font-size: var(--text-lg); }

    .chat-panel { height: 350px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }

    .header {
        padding: 0 var(--space-4);
    }

    .nav-btn {
        padding: 6px 14px;
        font-size: var(--text-xs) !important;
    }

    h1 { font-size: var(--text-xl); }
    h2 { font-size: var(--text-lg); }

    .btn { padding: 10px 22px; font-size: var(--text-sm); }

    .chat-bubble { max-width: 90%; }
}


/* ==========================================================================
   23. ACCESSIBILITY
   ========================================================================== */

/* Focus-visible purple ring */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ring);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   24. DARK MODE
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --bg:               #0f0f1a;
        --bg-warm:          #1a1a2e;
        --card:             #1e1e32;
        --surface:          #252540;
        --header-bg:        #0a0a14;
        --heading:          #f0edf6;
        --text:             #d8d3e6;          /* 11.7:1 on #1e1e32 — AAA */
        --text-light:       #c0bad4;          /* 8.7:1  on #1e1e32 — AAA */
        --text-muted:       #b3acc8;          /* 7.5:1  on #1e1e32 — AAA, plenty of margin */
        --border:           #2e2e48;
        --border-light:     #252540;
        --primary-light:    rgba(124, 58, 237, 0.2);
        --primary-lighter:  rgba(124, 58, 237, 0.1);
        --accent-light:     rgba(244, 114, 182, 0.15);
        --green-bg:         rgba(74, 222, 128, 0.15);
        --green-text:       #86efac;
        --yellow-bg:        rgba(251, 191, 36, 0.15);
        --yellow-text:      #fde68a;
        --red-bg:           rgba(248, 113, 113, 0.15);
        --red-text:         #fca5a5;
        --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow:           0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-lg:        0 10px 30px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
        --ring:             rgba(124, 58, 237, 0.4);
    }

    .hero {
        background: linear-gradient(135deg, #0a0a14 0%, #1a0a30 50%, #0f0f1a 100%);
    }

    .hero::before {
        background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 50%, rgba(244, 114, 182, 0.06) 0%, transparent 60%);
    }

    .product-image {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(244, 114, 182, 0.1), rgba(192, 132, 252, 0.12));
    }

    .chat-bubble.assistant,
    .message-ai {
        background: var(--surface);
        border-color: var(--border);
    }

    tr:hover td {
        background: var(--surface);
    }

    th {
        background: var(--bg-warm);
    }

    .form-control:disabled {
        background: var(--bg-warm);
    }

    img, svg {
        filter: brightness(0.95);
    }
}


/* ==========================================================================
   25. MEDICAL DISCLAIMER BAR
   ========================================================================== */

.disclaimer-bar {
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.disclaimer-bar svg {
    opacity: 0.6;
    flex-shrink: 0;
}


/* ==========================================================================
   26. PROFESSIONAL FOOTER
   ========================================================================== */

.footer {
    background: var(--header-bg);
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6) var(--space-6);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-3);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--text-sm);
    padding: 4px 0;
    transition: color var(--duration) var(--ease);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-5) var(--space-6);
    text-align: center;
    font-size: var(--text-xs);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p + p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
        padding: var(--space-6) var(--space-4) var(--space-4);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   27. COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: var(--space-4);
    left: var(--space-4);
    z-index: 1050;
    animation: slideUp var(--duration-slow) var(--ease);
}

.cookie-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5);
    max-width: 380px;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: var(--space-2);
        right: var(--space-2);
        bottom: var(--space-2);
    }
    .cookie-content {
        max-width: 100%;
    }
}


/* ==========================================================================
   28. TOAST NOTIFICATIONS (Enhanced)
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1100;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-2);
}

.toast {
    position: relative;
    background: var(--heading);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--duration-slow) var(--ease);
    max-width: 400px;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error   { border-left: 4px solid var(--red); }
.toast-info    { border-left: 4px solid var(--primary); }


/* ==========================================================================
   29. PRODUCT IMAGE CATEGORY GRADIENTS
   ========================================================================== */

.product-image[data-category="intimate_care"] {
    background: linear-gradient(135deg, #e9d5ff 0%, #f9a8d4 50%, #d8b4fe 100%);
}
.product-image[data-category="supplements"] {
    background: linear-gradient(135deg, #bbf7d0 0%, #6ee7b7 50%, #a7f3d0 100%);
}
.product-image[data-category="testing"] {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 50%, #a5b4fc 100%);
}
.product-image[data-category="fertility"] {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f9a8d4 100%);
}
.product-image[data-category="period_care"] {
    background: linear-gradient(135deg, #fecaca 0%, #f9a8d4 50%, #fda4af 100%);
}
.product-image[data-category="menopause"] {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 50%, #a78bfa 100%);
}


/* ==========================================================================
   30. ENHANCED PAGE TRANSITIONS
   ========================================================================== */

.fade-in {
    animation: fadeIn var(--duration-slow) var(--ease) both;
}

.slide-up {
    animation: slideUp var(--duration-slow) var(--ease) both;
}

.slide-in-right {
    animation: slideInRight var(--duration-slow) var(--ease) both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Stagger children */
.stagger > * {
    opacity: 0;
    animation: slideUp var(--duration-slow) var(--ease) both;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }


/* ==========================================================================
   31. SHIMMER LOADING SKELETONS (Enhanced)
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg,
        var(--bg-warm) 25%,
        var(--border-light) 37%,
        var(--bg-warm) 63%
    );
    background-size: 400% 100%;
    animation: shimmerAnim 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text   { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-title  { height: 24px; width: 60%; margin-bottom: 12px; border-radius: 4px; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card   { height: 200px; border-radius: var(--radius); }


/* ==========================================================================
   32. VERIFIED BADGE ENHANCED
   ========================================================================== */

.verified-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary-hover);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1px solid var(--primary-light);
}

.verified-badge-lg svg {
    color: var(--primary);
}


/* ==========================================================================
   33. CARD VARIANTS
   ========================================================================== */

.card-interactive {
    cursor: pointer;
    transition: transform var(--duration-slow) var(--ease), box-shadow var(--duration-slow) var(--ease);
}

.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   34. TRUST INDICATORS
   ========================================================================== */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.trust-item {
    text-align: center;
    padding: var(--space-4) var(--space-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease);
}

.trust-item:hover {
    border-color: var(--primary-light);
}

.trust-item svg {
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.trust-item span {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-light);
}


/* ==========================================================================
   APP DOWNLOAD BADGES (landing page only)
   Hidden inside the native apps via {% if not is_in_app %} in landing.html.
   ========================================================================== */
.app-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    min-width: 200px;
}
.app-badge:hover {
    transform: translateY(-2px);
    background: #232323;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-decoration: none;
}
.app-badge svg { flex-shrink: 0; }
.app-badge-text {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.app-badge-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
}
.app-badge-platform {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}
.app-badge-soon {
    opacity: 0.78;
    cursor: default;
    position: relative;
}
.app-badge-soon::after {
    content: "Soon";
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.app-badge-soon:hover {
    transform: none;
    background: #1a1a1a;
    box-shadow: none;
}

/* ==========================================================================
   END OF DESIGN SYSTEM
   ========================================================================== */
