/* ============================================================
   assets/css/main.css
   AuctionHub — shared styles used by every page
   ============================================================ */

/* ─── 1. Reset & tokens ─────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-surface:       #ffffff;
    --nav-surface-hover: #f1f5f9;
    --nav-surface-soft:  #f8fafc;
    --nav-line:          #e2e8f0;
    --nav-line-strong:   #cbd5e1;
    --nav-text:          #1e293b;
    --nav-text-strong:   #0f172a;
    --nav-muted:         #64748b;
    --nav-muted-2:       #94a3b8;
    --nav-accent:        #8b5cf6;
    --nav-accent-dark:   #7c3aed;
    --nav-accent-soft:   rgba(139, 92, 246, .12);
    --nav-accent-ring:   rgba(139, 92, 246, .32);
    --nav-live:          #dc2626;
    --nav-h:             72px;

    --ok-bg:   #dcfce7;
    --ok-br:   #bbf7d0;
    --ok-tx:   #166534;
    --err-bg:  #fee2e2;
    --err-br:  #fecaca;
    --err-tx:  #991b1b;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    color: var(--nav-text);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

/* ============================================================
   2. NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--nav-text-strong);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.2px;
    white-space: nowrap;
}

.brand .mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .30);
}

.brand b { color: var(--nav-accent); }

.nav-toggle,
.sub-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--nav-line-strong);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}

.hamburger:hover {
    background: var(--nav-surface-hover);
    border-color: var(--nav-muted-2);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--nav-text);
    transition: transform .3s ease, opacity .2s ease;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 11px;
    font-size: .945rem;
    font-weight: 500;
    color: var(--nav-muted);
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    transition: color .22s ease, background .22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-accent-dark);
    background: var(--nav-accent-soft);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nav-live);
    animation: navPulse 1.9s infinite;
}

@keyframes navPulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.has-submenu { position: relative; }

.chev {
    transition: transform .28s ease;
    opacity: .75;
    flex: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 236px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid var(--nav-line);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid var(--nav-line);
    border-top: 1px solid var(--nav-line);
    border-radius: 3px 0 0 0;
    transform: translateX(-50%) rotate(45deg);
}

.submenu a {
    display: block;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: .89rem;
    color: var(--nav-muted);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.submenu a:hover {
    background: var(--nav-accent-soft);
    color: var(--nav-accent-dark);
    padding-left: 18px;
}

@media (min-width: 901px) {
    .has-submenu::after {
        content: "";
        position: absolute;
        top: 100%;
        left: -8px;
        right: -8px;
        height: 14px;
        background: transparent;
        pointer-events: auto;
        z-index: 1;
    }

    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .has-submenu:hover > .sub-label .chev,
    .has-submenu:focus-within > .sub-label .chev {
        transform: rotate(180deg);
    }
}

.brand:focus-visible,
.nav-link:focus-visible,
.submenu a:focus-visible {
    outline: 2px solid var(--nav-accent);
    outline-offset: 2px;
    color: var(--nav-accent-dark);
}

.nav-toggle:focus-visible ~ .hamburger {
    outline: 2px solid var(--nav-accent);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    :root { --nav-h: 64px; }

    .nav-container { height: 64px; padding: 0 16px; }

    .hamburger { display: inline-flex; }

    .nav-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-toggle:checked ~ .hamburger {
        background: var(--nav-accent-soft);
        border-color: var(--nav-accent-ring);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: #ffffff;
        border-top: 1px solid var(--nav-line);
        box-shadow: 0 20px 40px rgba(15, 23, 42, .10);
        transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
    }

    .nav-toggle:checked ~ .nav-menu {
        max-height: 640px;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 14px 16px 22px;
    }

    .nav-link {
        width: 100%;
        padding: 14px 14px;
        font-size: .98rem;
        border-radius: 12px;
    }

    .nav-link::after { display: none; }

    .has-submenu { width: 100%; }
    .has-submenu::after { display: none; }

    .sub-label { justify-content: space-between; }

    .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: var(--nav-surface-soft);
        border: 1px solid transparent;
        box-shadow: none;
        transition: max-height .35s ease, margin .35s ease, border-color .35s ease;
    }

    .submenu::before { display: none; }

    .sub-toggle:checked ~ .submenu {
        max-height: 340px;
        margin: 4px 0 8px;
        border-color: var(--nav-line);
    }

    .sub-toggle:checked ~ .sub-label .chev { transform: rotate(180deg); }

    .submenu a { padding: 12px 16px; font-size: .9rem; }
    .submenu a:hover { padding-left: 20px; }
}

/* ============================================================
   3. PAGE INTRO (hero)
   ============================================================ */
.page-intro {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 82px 22px 92px;
    background: linear-gradient(180deg, #ffffff 0%, #f9f8ff 100%);
    border-bottom: 1px solid var(--nav-line);
    text-align: center;
}

.page-intro-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-intro-bg .orb {
    position: absolute;
    border-radius: 50%;
    -webkit-filter: blur(80px);
            filter: blur(80px);
    opacity: .55;
    will-change: transform;
}

.page-intro-bg .orb-1 {
    width: 520px; height: 520px;
    top: -220px;
    left: calc(50% - 416px);
    background: radial-gradient(circle at center, rgba(139, 92, 246, .55), transparent 70%);
    animation: orbFloat 16s ease-in-out infinite;
}
.page-intro-bg .orb-2 {
    width: 400px; height: 400px;
    top: -120px; right: -100px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, .48), transparent 70%);
    animation: orbFloat 20s ease-in-out infinite reverse;
}
.page-intro-bg .orb-3 {
    width: 360px; height: 360px;
    bottom: -180px; left: -100px;
    background: radial-gradient(circle at center, rgba(236, 72, 153, .38), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(24px, -22px) scale(1.06); }
}

.page-intro::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 35%, #000 25%, transparent 80%);
            mask-image: radial-gradient(ellipse 65% 65% at 50% 35%, #000 25%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.page-intro-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-intro-main {
    max-width: none;
    animation: heroFadeUp .8s cubic-bezier(.4, 0, .2, 1) both;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6d28d9;
    background: rgba(139, 92, 246, .10);
    border: 1px solid rgba(139, 92, 246, .22);
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.hero-eyebrow .live-dot {
    width: 6px;
    height: 6px;
    background: #dc2626;
}

.page-intro-main h1 {
    font-size: 54px;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    color: var(--nav-text-strong);
    letter-spacing: -1.4px;
    line-height: 1.08;
    margin: 0 0 20px;
    display: block;
}

.page-intro-main h1 .hero-grad {
    background: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #3b82f6 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-intro-main h1 .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 5px 12px;
    border-radius: 30px;
    vertical-align: middle;
}

.page-intro-main p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--nav-muted);
    margin: 0 auto 30px;
    max-width: 640px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.page-intro-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.page-intro.compact {
    padding: 54px 22px 58px;
    text-align: center;
}

.page-intro.compact .page-intro-inner { max-width: 780px; }

.page-intro.compact .page-intro-main h1 {
    font-size: 42px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.page-intro.compact .page-intro-main p {
    font-size: 16px;
    margin-bottom: 20px;
}

.page-intro.compact .hero-eyebrow { margin-bottom: 18px; }

@media (max-width: 640px) {
    .page-intro { padding: 56px 20px 64px; }
    .page-intro.compact { padding: 40px 20px 44px; }
    .page-intro-main h1 { font-size: 28px; letter-spacing: -.9px; }
    .page-intro-main p { font-size: 15px; }

    .page-intro-bg .orb { -webkit-filter: blur(60px); filter: blur(60px); opacity: .4; }
    .page-intro-bg .orb-1 { width: 360px; height: 360px; left: calc(50% - 288px); }
    .page-intro-bg .orb-2 { width: 280px; height: 280px; }
    .page-intro-bg .orb-3 { width: 260px; height: 260px; }
}



















/* ============================================================
   4. USER BAR — placed under the navbar
   ============================================================ */
/*.user-bar {*/
/*    max-width: 98vw;*/
/*    width: calc(100% - 40px);*/
/*    margin: 20px auto 28px;*/
/*    position: relative;*/
/*    z-index: 5;*/
/*}*/

/*.user-bar-inner {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 24px;*/
/*    padding: 18px 24px;*/
/*    background: linear-gradient(135deg, #ffffff 0%, #fbfcfe 100%);*/
/*    border: 1px solid #e9edf2;*/
/*    border-radius: 16px;*/
/*    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);*/
/*    flex-wrap: wrap;*/
/*}*/

/*.user-identity {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 14px;*/
/*    flex: 1;*/
/*    min-width: 260px;*/
/*}*/

/*.user-avatar {*/
/*    width: 48px;*/
/*    height: 48px;*/
/*    border-radius: 50%;*/
/*    background: linear-gradient(135deg, #8b5cf6, #6d28d9);*/
/*    color: #fff;*/
/*    display: grid;*/
/*    place-items: center;*/
/*    font-size: 19px;*/
/*    font-weight: 700;*/
/*    flex-shrink: 0;*/
/*    box-shadow: 0 6px 18px rgba(139, 92, 246, .32);*/
/*    text-transform: uppercase;*/
/*    letter-spacing: .5px;*/
/*}*/

/*.user-avatar-guest {*/
/*    background: linear-gradient(135deg, #cbd5e1, #94a3b8);*/
/*    box-shadow: 0 6px 18px rgba(148, 163, 184, .30);*/
/*    font-size: 22px;*/
/*    font-weight: 400;*/
/*}*/

/*.user-text { min-width: 0; }*/

/*.user-greeting {*/
/*    font-size: 15px;*/
/*    color: #1e293b;*/
/*    font-weight: 500;*/
/*    line-height: 1.4;*/
/*}*/

/*.user-greeting strong { font-weight: 700; color: #0f172a; }*/

/*.user-sub {*/
/*    font-size: 13px;*/
/*    color: #64748b;*/
/*    line-height: 1.5;*/
/*    margin-top: 2px;*/
/*}*/

/*.user-stats {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 20px;*/
/*    padding: 10px 22px;*/
/*    background: #f8fafc;*/
/*    border: 1px solid #e9edf2;*/
/*    border-radius: 12px;*/
/*    flex-shrink: 0;*/
/*}*/

/*.stat { display: flex; align-items: center; gap: 10px; }*/
/*.stat-icon { font-size: 20px; line-height: 1; }*/
/*.stat-info { display: flex; flex-direction: column; gap: 1px; }*/

/*.stat-label {*/
/*    font-size: 10.5px;*/
/*    font-weight: 700;*/
/*    color: #94a3b8;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: .05em;*/
/*}*/

/*.stat-value {*/
/*    font-size: 15px;*/
/*    font-weight: 700;*/
/*    color: #0f172a;*/
/*    letter-spacing: -.2px;*/
/*}*/

/*.stat-divider { width: 1px; height: 34px; background: #e2e8f0; }*/

/*.user-actions {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    flex-wrap: wrap;*/
/*    flex-shrink: 0;*/
/*}*/

/*.user-btn {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*    padding: 11px 20px;*/
/*    border-radius: 40px;*/
/*    font-size: 13.5px;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*    transition: all .2s ease;*/
/*    border: none;*/
/*    font-family: inherit;*/
/*    white-space: nowrap;*/
/*    letter-spacing: .01em;*/
/*}*/

/*.user-btn svg { flex-shrink: 0; }*/

/*.user-btn-secondary {*/
/*    background: #ffffff;*/
/*    color: #334155;*/
/*    border: 1px solid #cbd5e1;*/
/*}*/

/*.user-btn-secondary:hover {*/
/*    background: #f1f5f9;*/
/*    border-color: #94a3b8;*/
/*    transform: translateY(-1px);*/
/*}*/

/*.user-btn-primary {*/
/*    background: linear-gradient(135deg, #8b5cf6, #6d28d9);*/
/*    color: #fff;*/
/*    box-shadow: 0 4px 14px rgba(139, 92, 246, .30);*/
/*}*/

/*.user-btn-primary:hover {*/
/*    box-shadow: 0 8px 22px rgba(139, 92, 246, .42);*/
/*    transform: translateY(-1px);*/
/*}*/

/*@media (max-width: 720px) {*/
/*    .user-bar-inner { gap: 16px; padding: 16px 18px; }*/
/*    .user-identity { min-width: 0; }*/
/*    .user-stats {*/
/*        padding: 8px 14px;*/
/*        gap: 14px;*/
/*        width: 100%;*/
/*        justify-content: space-between;*/
/*    }*/
/*    .user-actions { width: 100%; }*/
/*    .user-btn { flex: 1; justify-content: center; }*/
/*    .stat-divider { display: none; }*/
/*    .stat { gap: 8px; }*/
/*    .stat-value { font-size: 14px; }*/
/*}*/






/* ============================================================
   4. USER BAR — placed under the navbar
   ============================================================ */
.user-bar {
    max-width: 98vw;
    width: calc(100% - 40px);
    margin: 20px auto 28px;
    position: relative;
    z-index: 5;
}

.user-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e9edf2;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    flex-wrap: wrap;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(139, 92, 246, .32);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.user-avatar-guest {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    box-shadow: 0 6px 18px rgba(148, 163, 184, .30);
    font-size: 22px;
    font-weight: 400;
}

.user-text { min-width: 0; }

.user-greeting {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
}

.user-greeting strong { font-weight: 700; color: #0f172a; }

.user-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 2px;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 22px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat { display: flex; align-items: center; gap: 10px; }
.stat-icon { font-size: 20px; line-height: 1; }
.stat-info { display: flex; flex-direction: column; gap: 1px; }

.stat-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.2px;
}

.stat-divider { width: 1px; height: 34px; background: #e2e8f0; }

.user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: .01em;
    text-decoration: none; /* ← needed now that buttons are <a> */
}

.user-btn svg { flex-shrink: 0; }

/* ─── Secondary (outlined white) ─── */
.user-btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.user-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* ─── Primary (purple gradient) ─── */
.user-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, .30);
}

.user-btn-primary:hover {
    box-shadow: 0 8px 22px rgba(139, 92, 246, .42);
    transform: translateY(-1px);
}

/* ─── Ghost (soft slate, for Dashboard) ─── */
.user-btn-ghost {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.user-btn-ghost:hover {
    background: #eef2f7;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* ─── Danger (soft red, for Sign Out) ─── */
.user-btn-danger {
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.user-btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, .18);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    /* With 4 buttons in the logged-in view, give them a bit more room */
    .user-actions { gap: 8px; }
    .user-btn { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 720px) {
    .user-bar-inner { gap: 16px; padding: 16px 18px; }
    .user-identity { min-width: 0; }
    .user-stats {
        padding: 8px 14px;
        gap: 14px;
        width: 100%;
        justify-content: space-between;
    }
    .user-actions { width: 100%; }
    .user-btn { flex: 1; justify-content: center; }
    .stat-divider { display: none; }
    .stat { gap: 8px; }
    .stat-value { font-size: 14px; }
}

@media (max-width: 480px) {
    /* Stack the action buttons on very small screens */
    .user-actions { flex-direction: column; }
    .user-btn { width: 100%; }
}

















/* ============================================================
   5. CARD + CARD HEADER + STEP TRACKER
   ============================================================ */
.card {
    background: #ffffff;
    max-width: 98vw;
    width: calc(100% - 40px);
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card:hover { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12); }

.card-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.card-header h2 {
    justify-self: start;
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
    margin: 0;
    min-width: 0;
}

.step-tracker {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 5px 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    transition: background .25s, color .25s;
    white-space: nowrap;
}

.step-item .step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    transition: background .25s, color .25s;
}

.step-item.active {
    background: rgba(139, 92, 246, .10);
    color: #7c3aed;
}
.step-item.active .step-num {
    background: #8b5cf6;
    color: #fff;
    box-shadow: 0 3px 10px rgba(139, 92, 246, .35);
}

.step-item.done { color: #166534; }
.step-item.done .step-num { background: #dcfce7; color: #166534; }

.step-line {
    width: 14px;
    height: 1.5px;
    background: #e2e8f0;
    border-radius: 2px;
    flex-shrink: 0;
}

.header-actions {
    justify-self: end;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .card-header {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    .card-header h2 { flex: 1; min-width: 0; font-size: 18px; }
    .step-tracker { order: 3; width: 100%; justify-content: center; }
    .header-actions { flex-shrink: 0; }
}

@media (max-width: 480px) {
    .step-item { padding: 6px 8px; }
    .step-item .step-label { display: none; }
    .step-item.active .step-label { display: inline; }
}

/* ============================================================
   6. GENERIC BUTTONS
   ============================================================ */
.btn-back,
.btn-debug,
.btn-secondary,
.btn-page {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    font-family: inherit;
}

.btn-back:hover,
.btn-debug:hover,
.btn-secondary:hover,
.btn-page:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-back { display: none; }
.btn-back.visible { display: inline-block; }

.btn-debug.active {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #8b5cf6;
    color: #fff;
    border: 1.5px solid #8b5cf6;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .30);
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s, color .2s;
    white-space: nowrap;
}

.btn-solid:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 8px 22px rgba(139, 92, 246, .40);
    transform: translateY(-1px);
}

.btn-solid:active { transform: translateY(0) scale(.99); }

.btn-solid:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--nav-accent-dark);
    border: 1.5px solid rgba(139, 92, 246, .35);
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s, color .2s;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, .08);
    border-color: var(--nav-accent);
    color: var(--nav-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, .18);
}

.btn-ghost:active { transform: translateY(0) scale(.99); }

.btn-ghost:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-solid.btn-lg,
.btn-ghost.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

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

.btn-solid .spinner-small,
.btn-ghost .spinner-small {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn-ghost .spinner-small {
    border-color: rgba(139, 92, 246, .25);
    border-top-color: var(--nav-accent-dark);
}

.btn-solid.loading .spinner-small,
.btn-ghost.loading .spinner-small { display: inline-block; }

/* ============================================================
   7. LIST CONTAINERS / LIST ITEMS / SELECTION ACTIONS
   ============================================================ */
.list-container {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    overflow: hidden;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.list-container .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    flex-shrink: 0;
    z-index: 1;
    gap: 12px;
    flex-wrap: wrap;
}

.list-container .list-body {
    padding: 0;
    max-height: 400px;
    overflow: auto;
    flex: 1;
    margin-top: -2px;
}

.list-container .list-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.list-container .list-footer .pagination-bar {
    margin: 0;
    padding: 0;
    border-top: none;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
    cursor: default;
}

.list-item:hover { background: #f1f5f9; }
.list-item:last-child { border-bottom: none; }

.list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.list-item .item-name {
    font-weight: 500;
    color: #0f172a;
    flex: 1;
}

.list-item .item-count {
    font-size: 12px;
    color: #475569;
    background: #e9edf2;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.selection-actions {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    align-items: center;
    background: #f8fafc;
    flex-shrink: 0;
}

.selection-actions .btn-action {
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.30);
    margin-left: auto;
    font-family: inherit;
}

.selection-actions .btn-action:hover {
    background: #7c3aed;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.40);
}

.selection-actions .btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.selection-actions .btn-action .spinner-small {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.selection-actions .btn-action.loading .spinner-small { display: inline-block; }
.selection-actions .btn-action.loading .btn-text { opacity: 0.8; }

/* ============================================================
   8. ERROR / EMPTY MESSAGES
   ============================================================ */
.error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    font-weight: 700;
    color: #64748b;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e9edf2;
}

.empty-message {
    color: #64748b;
    font-style: italic;
}

/* ============================================================
   9. PAGINATION & LIMIT CONTROL
   ============================================================ */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-bar .info { font-size: 14px; color: #475569; }
.pagination-bar .info strong { color: #0f172a; }

.pagination-bar .btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-bar .btn-page {
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-bar .btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-bar .btn-page .spinner-inline {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(51, 65, 85, 0.25);
    border-top-color: #334155;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.pagination-bar .btn-page.loading .spinner-inline { display: inline-block; }
.pagination-bar .btn-page.loading .btn-text { opacity: 0.7; }

.limit-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.limit-control input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.limit-control .btn-apply {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.limit-control .btn-apply:hover:not(:disabled) { background: #2563eb; }
.limit-control .btn-apply:disabled { opacity: 0.6; cursor: not-allowed; }

.limit-control .btn-apply .spinner-inline {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.limit-control .btn-apply.loading .spinner-inline { display: inline-block; }
.limit-control .btn-apply.loading .btn-text { opacity: 0.7; }

.list-body::-webkit-scrollbar { width: 4px; height: 4px; }
.list-body::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
.list-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.list-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   10. GENERIC CONTENT COMPONENTS
   ============================================================ */
.page-shell {
    max-width: 1180px;
    width: calc(100% - 40px);
    margin: 22px auto 0;
}

.page-shell.narrow { max-width: 940px; }

.info-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
    margin-bottom: 22px;
}

.info-card:last-child { margin-bottom: 0; }

.info-card h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--nav-text-strong);
    letter-spacing: -.3px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--nav-text-strong);
    margin: 20px 0 8px;
}

.info-card h3:first-child { margin-top: 0; }

.info-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--nav-muted);
    margin-bottom: 12px;
}

.info-card p:last-child { margin-bottom: 0; }

.info-card ul,
.info-card ol {
    margin: 0 0 14px 20px;
    padding: 0;
}

.info-card li {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--nav-muted);
    margin-bottom: 6px;
}

.info-card a:not(.btn-solid):not(.btn-ghost):not(.btn-secondary):not(.btn-back):not(.btn-debug):not(.btn-action) {
    color: var(--nav-accent-dark);
    font-weight: 600;
    text-decoration: none;
}
.info-card a:not(.btn-solid):not(.btn-ghost):not(.btn-secondary):not(.btn-back):not(.btn-debug):not(.btn-action):hover {
    text-decoration: underline;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nav-accent-dark);
    background: var(--nav-accent-soft);
    border: 1px solid rgba(139, 92, 246, .22);
    padding: 5px 13px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .09);
    border-color: #ddd6fe;
}

.feature-card .fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(109, 40, 217, .10));
    border: 1px solid rgba(139, 92, 246, .20);
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--nav-text-strong);
    margin-bottom: 7px;
}

.feature-card p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--nav-muted);
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: stepcount;
}

.step-list > li {
    position: relative;
    padding: 16px 20px 16px 62px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--nav-muted);
    counter-increment: stepcount;
}

.step-list > li::before {
    content: counter(stepcount);
    position: absolute;
    top: 16px;
    left: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 12px rgba(139, 92, 246, .32);
}

.step-list > li strong { color: var(--nav-text-strong); }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    background: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 640px;
}

.data-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f8fafc; }

.data-table .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-green  { background: #dcfce7; color: #166534; }
.badge-amber  { background: #fde68a; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-grey   { background: #e2e8f0; color: #334155; }

.faq-item {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover { border-color: #ddd6fe; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.faq-item[open] { border-color: #c4b5fd; box-shadow: 0 8px 26px rgba(139, 92, 246, .10); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nav-text-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--nav-accent-dark);
    background: var(--nav-accent-soft);
    transition: transform .25s ease;
}

.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }

.faq-item .faq-answer {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--nav-muted);
}

.faq-item .faq-answer a { color: var(--nav-accent-dark); font-weight: 600; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f6;
}

.contact-item:last-child { border-bottom: none; }

.contact-item .ci-icon {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: var(--nav-accent-soft);
    border: 1px solid rgba(139, 92, 246, .18);
}

.contact-item .ci-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: 3px;
}

.contact-item .ci-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--nav-text-strong);
    word-break: break-word;
}

.contact-item .ci-value a { color: var(--nav-accent-dark); text-decoration: none; }
.contact-item .ci-value a:hover { text-decoration: underline; }

.form-row { margin-bottom: 16px; }

.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--nav-text-strong);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--nav-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

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

.form-note {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 8px;
}

.form-alert {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.form-alert.success { background: var(--ok-bg); border-color: var(--ok-br); color: var(--ok-tx); }
.form-alert.error   { background: var(--err-bg); border-color: var(--err-br); color: var(--err-tx); }

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    flex-wrap: wrap;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    border-color: #ddd6fe;
}

.event-date {
    flex: none;
    width: 66px;
    text-align: center;
    border-radius: 14px;
    padding: 10px 6px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 6px 18px rgba(139, 92, 246, .30);
}

.event-date .ed-day { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.event-date .ed-mon { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-top: 3px; }

.event-info { flex: 1; min-width: 200px; }
.event-info h4 { font-size: 15.5px; font-weight: 700; color: var(--nav-text-strong); margin-bottom: 4px; }
.event-info p { font-size: 13.5px; color: var(--nav-muted); line-height: 1.6; }

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    border-top: 1px solid #334155;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 22px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

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

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.footer-brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: .9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .35);
}

.footer-brand b { color: #a78bfa; }

.footer-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 340px;
    margin-bottom: 18px;
}

.footer-socials { display: flex; gap: 10px; }

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(148, 163, 184, .10);
    border: 1px solid rgba(148, 163, 184, .18);
    display: grid;
    place-items: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all .22s ease;
}

.footer-socials a:hover {
    background: rgba(139, 92, 246, .22);
    border-color: rgba(139, 92, 246, .5);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    display: inline-block;
}

.footer-col a:hover { color: #ffffff; padding-left: 4px; }



.footer-socials a {
    display: grid;
}


.footer-socials a:hover {
    padding-left: 0px;
}


.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-contact-item .ico {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #a78bfa;
    margin-top: 1px;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}

.footer-contact-item a:hover { color: #ffffff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0 26px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #64748b;
}

.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.footer-bottom-links a:hover { color: #cbd5e1; }

/* ============================================================
   12. SMALL SCREENS / MOTION
   ============================================================ */
@media (max-width: 500px) {
    .card { padding: 20px 16px; }
    .card-header h2 { font-size: 18px; }
    .selection-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .selection-actions .btn-action { margin-left: 0; justify-content: center; }
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pagination-bar .btn-group { justify-content: center; }
    .limit-control { justify-content: center; }
    .header-actions { width: 100%; justify-content: flex-start; }
    .error-message { min-height: 140px; font-size: 14px; padding: 16px; }
    .list-container .list-body { max-height: 300px; }
    .info-card { padding: 22px 18px; }
    .info-card h2 { font-size: 18px; }
    .page-shell { width: calc(100% - 28px); }
}

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

/* ============================================================
   13. DAILY BIDDING CYCLE / ORDER TRACKING / AGREEMENT
   Added for the new business-process pages.
   ============================================================ */

/* ── Tracking timeline (shipping-pickup.php) ─────────────── */
.tracking-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: track;
}

.tracking-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 18px 0;
    border-bottom: 1px dashed #e2e8f0;
    counter-increment: track;
    position: relative;
}

.tracking-step:last-child { border-bottom: none; }

.tracking-step::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .35), rgba(139, 92, 246, .05));
    z-index: 0;
}

.tracking-step:first-child::before { top: 30px; }
.tracking-step:last-child::before  { bottom: calc(100% - 30px); }

.tracking-num {
    position: relative;
    z-index: 1;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .30);
}

.tracking-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.tracking-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--nav-text-strong);
    margin-bottom: 4px;
}

.tracking-info p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--nav-muted);
    margin: 0;
}

/* ── Agreement / warning box ────────────────────────────── */
.agreement-box {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 8px;
}

.agreement-box p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #78350f;
    margin: 0 0 10px;
}

.agreement-box p:last-child { margin-bottom: 0; }

.agreement-box strong { color: #7c2d12; }

/* ── Rank badge (for future bid-rank display) ───────────── */
.bid-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .30);
}

.bid-rank-badge.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245, 158, 11, .35); }
.bid-rank-badge.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 4px 12px rgba(100, 116, 139, .30); }
.bid-rank-badge.rank-3 { background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 4px 12px rgba(180, 83, 9, .30); }

/* ── Euro note ──────────────────────────────────────────── */
.euro-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #1e40af;
}

.euro-note svg {
    flex: none;
    margin-top: 2px;
    color: #3b82f6;
}

/* ── Deposit CTA (prominent) ───────────────────────────── */
.deposit-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    margin: 22px 0;
}

.deposit-cta h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--nav-text-strong);
    margin: 0 0 4px;
}

.deposit-cta p {
    font-size: 13.5px;
    color: var(--nav-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Daily cycle mini timeline ─────────────────────────── */
.cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 900px) { .cycle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cycle-grid { grid-template-columns: 1fr; } }

.cycle-phase {
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    padding: 16px 16px 18px;
    position: relative;
}

.cycle-phase .phase-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cycle-phase h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--nav-text-strong);
    margin-bottom: 6px;
}

.cycle-phase p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--nav-muted);
    margin: 0;
}

/* ── Tier badge ─────────────────────────────────────────── */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 30px;
    background: #e2e8f0;
    color: #334155;
}

.tier-badge.tier-verified {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

@media (prefers-reduced-motion: reduce) {
    .tracking-step::before { transition: none !important; }
    .bid-rank-badge { transition: none !important; }
}








/* ============================================================
   PAGE INTRO — COVER IMAGE VARIANT
   Add class .has-cover and set --cover-image on the section:
   <section class="page-intro has-cover"
            style="--cover-image: url('assets/images/hero-home.jpg');">
   ============================================================ */
.page-intro.has-cover {
    background-image: var(--cover-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f172a; /* fallback if image fails */
}

/* Grid pattern → light lines so it shows over the photo */
.page-intro.has-cover::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
}

/* Dark overlay for text readability (sits above orbs + grid) */
.page-intro.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, .65) 0%,
        rgba(15, 23, 42, .45) 45%,
        rgba(15, 23, 42, .80) 100%
    );
}

/* Orbs become subtle ambient glow behind the overlay */
.page-intro.has-cover .page-intro-bg .orb {
    opacity: .30;
}

/* Content must sit above the ::after overlay */
.page-intro.has-cover .page-intro-inner {
    z-index: 3;
}

/* ─── Typography over photo ─── */
.page-intro.has-cover .page-intro-main h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.page-intro.has-cover .page-intro-main h1 .hero-grad {
    background: linear-gradient(120deg, #c4b5fd 0%, #a5b4fc 45%, #93c5fd 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-intro.has-cover .page-intro-main p {
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .30);
}

/* ─── Eyebrow pill ─── */
.page-intro.has-cover .hero-eyebrow {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, .30);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
}

/* ─── Chips ─── */
.page-intro.has-cover .chip {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.page-intro.has-cover .chip:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .40);
    transform: translateY(-1px);
}

/* ─── Ghost buttons on dark ─── */
.page-intro.has-cover .btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, .40);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
}

.page-intro.has-cover .btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .60);
    color: #ffffff;
}

/* Slightly stronger overlay on small screens (photo crops) */
@media (max-width: 640px) {
    .page-intro.has-cover::after {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, .72) 0%,
            rgba(15, 23, 42, .55) 45%,
            rgba(15, 23, 42, .85) 100%
        );
    }
}










/* ============================================================
   USER BAR — FLOATS OVER COVER HERO
   Positioning only. Colors, borders, shadows unchanged.
   ============================================================ */

body { position: relative; }

/* Pull the bar out of flow so the hero starts underneath it */
body:has(.page-intro.has-cover) .user-bar {
    /*position: absolute;*/
    /*top: calc(var(--nav-h) + 24px);*/
    /*left: 0;*/
    /*right: 0;*/
    width: calc(100% - 40px);

    max-width: 98vw;
    margin: 0 auto;
    margin-top: 25px;
    z-index: 20;
}

/* Give the hero enough top padding to clear the floating bar */
body:has(.page-intro.has-cover) .page-intro.has-cover {
    padding-top: 180px;
}

body:has(.page-intro.has-cover) .page-intro.has-cover.compact {
    padding-top: 165px;
}

@media (max-width: 900px) {
    body:has(.page-intro.has-cover) .user-bar {
        top: calc(var(--nav-h) + 16px);
        margin-bottom: 100px;
    }
}

@media (max-width: 720px) {
    body:has(.page-intro.has-cover) .page-intro.has-cover {
        padding-top: 250px;
    }
    body:has(.page-intro.has-cover) .page-intro.has-cover.compact {
        padding-top: 230px;
    }
}

@media (max-width: 480px) {
    body:has(.page-intro.has-cover) .page-intro.has-cover {
        padding-top: 320px;
    }
    body:has(.page-intro.has-cover) .page-intro.has-cover.compact {
        padding-top: 300px;
    }
}