/* ==========================================================================
   VOICE4GENZ — Unified Design System
   Single source of truth for every page (landing, auth, dashboard, admin)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --primary: #2457d6;
    --primary-dark: #1a44b0;
    --primary-light: #3b6fe8;
    --primary-soft: #eef3ff;
    --primary-softer: #f5f8ff;
    --primary-glow: rgba(36, 87, 214, 0.28);
    --accent: #8b5cf6;
    --accent-soft: #f1ebfe;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --teal: #0d9488;
    --rose: #e11d48;

    /* Neutrals */
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --body: #3c4761;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --line: #e2e8f0;
    --line-light: #eef2f7;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-tint: #f5f8ff;

    /* Status */
    --success: #15803d;
    --success-bg: #e9f9ef;
    --success-line: #bbe7c9;
    --warning: #b45309;
    --warning-bg: #fff7e6;
    --warning-line: #f5d898;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-line: #f3c2c2;
    --info: #1d4ed8;
    --info-bg: #eff5ff;
    --info-line: #c4d7f8;

    /* Typography */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    /* Spacing scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-14: 56px;
    --space-16: 64px;
    --space-20: 80px;
    --stack: 56px;

    /* Radii */
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08), 0 2px 5px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 22px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 44px -14px rgba(15, 23, 42, 0.16), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 28px var(--primary-glow);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s var(--ease);
    --transition-slow: all 0.45s var(--ease);

    /* Layout */
    --container: 1180px;
    --gutter: 32px;
    --header-height: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: linear-gradient(180deg, #f8fafc 0%, #eef3ff 55%, #f8fafc 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

::selection {
    background: rgba(36, 87, 214, 0.18);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-4 { margin-top: var(--space-4); }

.muted { color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.15);
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -60px;
    left: var(--space-4);
    z-index: 2000;
    padding: 10px 18px;
    background: var(--ink);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.header-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #0a0c15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(10, 12, 21, 0.35);
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand:hover .brand-mark {
    transform: scale(1.07) rotate(-5deg);
    box-shadow: 0 8px 22px rgba(10, 12, 21, 0.45);
}

.brand-text { white-space: nowrap; }

/* --- Main navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--body);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.main-nav a[aria-current='page'] {
    color: var(--primary);
    background: var(--primary-soft);
}

.main-nav a[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.main-nav a.nav-cta {
    margin-left: var(--space-2);
    padding: 10px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta[aria-current='page'] {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(36, 87, 214, 0.4);
}

.main-nav a.nav-cta::after { display: none; }

/* --- Mobile toggle --- */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.nav-toggle svg { width: 20px; height: 20px; }

.nav-toggle .icon-close { display: none; }

.site-header.nav-open .nav-toggle .icon-open { display: none; }

.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* --------------------------------------------------------------------------
   5. PAGE LAYOUT
   -------------------------------------------------------------------------- */
.page {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-12) var(--gutter) var(--space-20);
}

/* Consistent vertical rhythm between stacked sections */
.page > * + * {
    margin-top: var(--stack);
}

/* --------------------------------------------------------------------------
   6. BANNER SLIDER
   -------------------------------------------------------------------------- */
.banner-wrap {
    width: 100%;
    max-width: var(--container);
    margin: var(--space-8) auto 0;
    padding: 0 var(--gutter);
}

.site-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.banner-viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1300 / 620;
    max-height: 560px;
}

.banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.85s var(--ease);
    will-change: transform;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Gradient slogan slides --- */
.banner-slide--gradient {
    padding: var(--space-12) var(--space-10);
    background: linear-gradient(135deg, var(--g1, #1e3a8a) 0%, var(--g2, #7c3aed) 100%);
}

.banner-slide--gradient::before,
.banner-slide--gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.banner-slide--gradient::before {
    width: 460px;
    height: 460px;
    top: -200px;
    right: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.banner-slide--gradient::after {
    width: 380px;
    height: 380px;
    bottom: -170px;
    left: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.theme-blue   { --g1: #1e3a8a; --g2: #7c3aed; }
.theme-ocean  { --g1: #155e75; --g2: #0ea5e9; }
.theme-forest { --g1: #064e3b; --g2: #10b981; }
.theme-sunset { --g1: #7c2d12; --g2: #f59e0b; }
.theme-berry  { --g1: #831843; --g2: #db2777; }
.theme-indigo { --g1: #312e81; --g2: #6366f1; }

.banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: clamp(0.62rem, 1.3vw, 0.75rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.banner-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fde68a;
}

.banner-title {
    font-size: clamp(1.7rem, 4.4vw, 3.3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin: var(--space-5) 0 var(--space-4);
    max-width: 900px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.banner-title em {
    font-style: normal;
    color: #fde68a;
}

.banner-sub {
    font-size: clamp(0.72rem, 1.6vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

/* --- Slider controls --- */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 2;
}

.banner-arrow svg { width: 18px; height: 18px; }

.banner-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.09);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.banner-arrow--prev { left: 18px; }
.banner-arrow--next { right: 18px; }

.banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 2;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.25);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot:hover { background: rgba(255, 255, 255, 0.85); }

.banner-dot.active {
    width: 28px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   7. NEWS TICKER
   -------------------------------------------------------------------------- */
.news-ticker {
    display: flex;
    align-items: stretch;
    margin-top: var(--space-5);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.news-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex: 0 0 auto;
    padding: 13px 22px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    white-space: nowrap;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1.4s ease-out infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.news-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.news-ticker__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 48s linear infinite;
}

.news-ticker:hover .news-ticker__track,
.news-ticker:focus-within .news-ticker__track {
    animation-play-state: paused;
}

.news-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-1);
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.news-ticker__item strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
}

.news-ticker__sep {
    color: var(--amber);
    font-size: 0.7rem;
    padding: 0 var(--space-1);
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   8. HIGHLIGHT STRIP
   -------------------------------------------------------------------------- */
.highlight-strip {
    margin-top: var(--space-5);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.highlight {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(36, 87, 214, 0.22);
}

.highlight:hover::before { transform: scaleX(1); }

.highlight__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.highlight__icon svg { width: 22px; height: 22px; }

.highlight--amber .highlight__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.highlight--teal .highlight__icon {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.highlight--rose .highlight__icon {
    background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.highlight h3 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 2px;
}

.highlight p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    text-align: center;
    padding: var(--space-12) var(--space-6) var(--space-14);
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(ellipse 60% 55% at 50% -10%, rgba(36, 87, 214, 0.1) 0%, transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(36, 87, 214, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: var(--space-5);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-copy {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto var(--space-8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px dashed var(--line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-trust svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex: none;
}

/* --------------------------------------------------------------------------
   10. WORKSHOP CARD
   -------------------------------------------------------------------------- */
.workshop-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-14);
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    padding: var(--space-12) var(--space-14);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 55%, var(--amber) 100%);
}

.workshop-card::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(36, 87, 214, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.workshop-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(36, 87, 214, 0.22);
}

.workshop-info { position: relative; }

.workshop-info h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.workshop-info > p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 640px;
}

.workshop-meta {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: grid;
    gap: var(--space-2);
}

.workshop-meta li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.93rem;
    color: var(--body);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface-tint);
    border: 1px solid var(--line-light);
    transition: var(--transition);
}

.workshop-meta li:hover {
    background: var(--primary-soft);
    border-color: rgba(36, 87, 214, 0.18);
    transform: translateX(5px);
}

.workshop-meta .meta-icon {
    flex: none;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.workshop-meta .meta-icon svg { width: 17px; height: 17px; }

.workshop-meta li strong {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    min-width: 58px;
}

.workshop-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 250px;
    position: relative;
}

.workshop-cta .button { width: 100%; }

/* --------------------------------------------------------------------------
   11. FEATURE GRID & SECTION HEADERS
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-8) var(--space-10);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.feature:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(36, 87, 214, 0.22);
}

.feature:hover::before { transform: scaleX(1); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(36, 87, 214, 0.1) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(36, 87, 214, 0.1);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(36, 87, 214, 0.35);
    border-color: transparent;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--space-2);
    transition: var(--transition);
}

.feature:hover h3 { color: var(--primary); }

.feature p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--muted);
}

.admin-access {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-access a {
    color: var(--primary);
    font-weight: 650;
    margin-left: var(--space-1);
}

.admin-access a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. BUTTONS
   -------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 650;
    font-family: inherit;
    line-height: 1.2;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.16) 100%);
    opacity: 0;
    transition: var(--transition);
}

.button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(36, 87, 214, 0.38);
}

.button:hover::after { opacity: 1; }

.button:active { transform: translateY(0); }

.button-light {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.button-light::after { display: none; }

.button-light:hover {
    color: var(--primary-dark);
    background: var(--surface-alt);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.button-success {
    background: linear-gradient(135deg, #22a25a 0%, #15803d 100%);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28);
}

.button-success:hover { box-shadow: 0 12px 26px rgba(21, 128, 61, 0.36); }

.button-danger {
    background: linear-gradient(135deg, #e5484d 0%, #b91c1c 100%);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.26);
}

.button-danger:hover { box-shadow: 0 12px 26px rgba(185, 28, 28, 0.34); }

.button-sm {
    padding: 9px 16px;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

.button-full {
    width: 100%;
    margin-top: var(--space-2);
}

.button-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
}

.button-outline::after { display: none; }

.button-outline:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px var(--primary-glow);
    transform: translateY(-2px);
}

.button-outline:active { transform: translateY(0); }

.admin-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   13. ALERTS
   -------------------------------------------------------------------------- */
.alert {
    position: relative;
    border: 1px solid var(--info-line);
    background: var(--info-bg);
    color: var(--info);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5) var(--space-4) var(--space-14);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

.alert::before {
    content: '';
    position: absolute;
    left: var(--space-5);
    top: var(--space-4);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.alert ul {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-5);
}

.alert li + li { margin-top: var(--space-1); }

.alert strong { font-weight: 750; }

.alert-success {
    border-color: var(--success-line);
    background: var(--success-bg);
    color: var(--success);
}

.alert-warning {
    border-color: var(--warning-line);
    background: var(--warning-bg);
    color: var(--warning);
}

.alert-danger {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger);
}

/* Alert icons (data URIs keep markup untouched) */
.alert::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 10.5v6'/%3E%3Ccircle cx='12' cy='7.5' r='0.6' fill='%231d4ed8'/%3E%3C/svg%3E");
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16.5 9.4'/%3E%3C/svg%3E");
}

.alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5L21 19.5H3L12 4.5z'/%3E%3Cpath d='M12 10.5v4.5'/%3E%3Ccircle cx='12' cy='17.4' r='0.6' fill='%23b45309'/%3E%3C/svg%3E");
}

.alert-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   14. STATUS BADGES
   -------------------------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending  { background: var(--warning-bg); color: var(--warning); }
.status-approved { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--danger-bg);  color: var(--danger); }

/* --------------------------------------------------------------------------
   15. AUTH FORMS (register / login)
   -------------------------------------------------------------------------- */
.form-shell {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-14);
    align-items: start;
}

.form-intro {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    padding: var(--space-8) 0;
}

.form-intro h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.form-intro > p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 360px;
}

.form-note {
    margin-top: var(--space-10);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--primary-softer);
    border: 1px solid rgba(36, 87, 214, 0.12);
    color: #40547a;
    font-size: 0.86rem;
    line-height: 1.8;
    max-width: 340px;
}

.form-note strong { color: var(--ink); }

/* --- Registration format list (form intro) --- */
.format-list {
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: format-item;
    max-width: 340px;
}

.format-list li {
    counter-increment: format-item;
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    padding: 7px 0;
    font-size: 0.86rem;
    font-weight: 550;
    color: #40547a;
    border-bottom: 1px dashed rgba(36, 87, 214, 0.16);
}

.format-list li::before {
    content: counter(format-item);
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.form-panel,
.login-card,
.profile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
}

.login-wrap {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0;
}

.auth-logo {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-lg);
    background: #0a0c15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.login-card {
    width: 100%;
    max-width: 480px;
}

.login-card h1,
.form-panel h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.login-card > .muted { margin-bottom: var(--space-6); }

/* --- Fields --- */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: var(--space-4);
    min-width: 0;
}

.field label {
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    border: 1.5px solid #d6deeb;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    transition: var(--transition);
}

.field textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.6;
}

.field input::placeholder { color: var(--muted-light); }

.field textarea::placeholder { color: var(--muted-light); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b9c5da; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.12);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field small {
    font-size: 0.78rem;
    color: var(--muted);
}

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

.section-group {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5) var(--space-2);
    margin: var(--space-4) 0 var(--space-5);
    background: var(--surface-tint);
}

.section-group legend {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink);
    padding: 0 var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--muted);
    margin: var(--space-1) 0 var(--space-5);
}

.checkline input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    flex: none;
    cursor: pointer;
}

/* --- Gender choice row --- */
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.choice-row label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 16px;
    border: 1.5px solid #d6deeb;
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
}

.choice-row label:hover { border-color: #b9c5da; }

.choice-row label:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.12);
}

.choice-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-bottom {
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: var(--space-5);
}

.form-bottom a { font-weight: 650; }

/* --- CAPTCHA --- */
.captcha-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.captcha-img {
    width: auto;
    max-width: 220px;
    height: 66px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f6f8fd;
    cursor: pointer;
    transition: var(--transition);
}

.captcha-img:hover { border-color: var(--primary-light); }

.captcha-refresh {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.captcha-refresh:hover {
    border-color: var(--primary-light);
    background: var(--primary-softer);
}

.captcha-refresh svg { width: 20px; height: 20px; }

.captcha-input {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. DASHBOARD
   -------------------------------------------------------------------------- */
.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.dashboard-heading h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.dashboard-heading .muted { font-size: 1rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(36, 87, 214, 0.2);
    transform: translateY(-3px);
}

.card-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.card-symbol svg { width: 22px; height: 22px; }

.dashboard-card h2 {
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.dashboard-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-4);
    font-size: 0.88rem;
    font-weight: 650;
}

.text-link:hover { gap: 10px; }

.status-label {
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-4);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.unique-number-value {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--success);
    background: #fff;
    border: 1.5px dashed var(--success-line);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   17. PROFILE
   -------------------------------------------------------------------------- */
.profile-card {
    max-width: 820px;
    margin: 0 auto;
}

.profile-card h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.profile-card > .muted { margin-bottom: var(--space-6); }

.profile-list {
    margin: var(--space-6) 0 var(--space-8);
}

.profile-list > div {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--line-light);
}

.profile-list > div:first-child { border-top: 1px solid var(--line-light); }

.profile-list > div:hover { background: var(--surface-tint); }

.profile-list dt {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
}

.profile-list dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* Addresses keep the line breaks they were entered with. */
.profile-address { white-space: pre-line; }

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

.dashboard-avatar {
    width: 72px;
    height: 72px;
    flex: none;
    object-fit: cover;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    box-shadow: var(--shadow-sm);
}

.dashboard-avatar--empty {
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.7rem;
}

/* --------------------------------------------------------------------------
   18. ADMIN PANEL
   -------------------------------------------------------------------------- */
.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.admin-heading h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.admin-heading .muted { font-size: 1rem; }

.admin-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--body);
    font-weight: 650;
    font-size: 0.87rem;
    transition: var(--transition);
}

.filter-link:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-softer);
}

.filter-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.table-responsive {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--line-light);
    text-align: left;
    vertical-align: top;
}

.admin-table thead th {
    background: var(--surface-alt);
    font-weight: 750;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.admin-table tbody tr { transition: background 0.15s var(--ease); }

.admin-table tbody tr:hover td { background: var(--surface-tint); }

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table td:nth-child(3) { white-space: nowrap; }

/* Full addresses need a readable width instead of a single very long cell. */
.admin-table__address {
    min-width: 220px;
    max-width: 280px;
    overflow-wrap: anywhere;
}

.actions-cell { white-space: nowrap; }

.actions-cell form { display: inline-flex; margin-right: var(--space-2); }

.actions-cell form:last-child { margin-right: 0; }

/* --- Selfie thumbnails (member verification) --- */
.selfie-cell { white-space: nowrap; vertical-align: middle; }

.selfie-thumb {
    display: inline-block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.selfie-thumb:hover { transform: scale(1.15); }

.admin-table__empty {
    text-align: center;
    padding: var(--space-14) var(--space-5);
    color: var(--muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(160deg, #0b1226 0%, #131f3d 55%, #1a1440 100%);
    color: #cbd5e1;
    padding: var(--space-16) var(--gutter) 0;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 55%, var(--amber) 100%);
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(36, 87, 214, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-brand .brand {
    width: fit-content;
    font-size: 1.2rem;
    color: #fff;
}

.footer-brand .brand:hover { color: #fff; }

.footer-brand .brand-mark {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.footer-brand p {
    color: var(--muted-light);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
    transition: width 0.3s var(--ease);
}

.footer-col:hover h4::after { width: 48px; }

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col ul a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--muted-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    color: var(--primary-light);
    font-weight: 600;
}

.footer-col ul a:hover {
    color: #fff;
    padding-left: var(--space-5);
}

.footer-col ul a:hover::before {
    opacity: 1;
    transform: translateX(-16px);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-social a svg { width: 17px; height: 17px; }

.footer-social a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(36, 87, 214, 0.45);
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-meta {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-meta a {
    color: var(--muted-light);
    font-size: 0.85rem;
    position: relative;
}

.footer-meta a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.footer-meta a:hover { color: #fff; }

.footer-meta a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   20. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: var(--space-7);
    right: var(--space-7);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(36, 87, 214, 0.42);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
}

.back-to-top svg { width: 18px; height: 18px; }

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(36, 87, 214, 0.55);
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    :root { --gutter: 24px; --stack: 48px; }

    .workshop-card {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-10) var(--space-8);
    }

    .workshop-cta {
        min-width: 0;
        flex-direction: row;
    }

    .feature-grid { gap: var(--space-5); }
}

@media (max-width: 960px) {
    :root { --header-height: 64px; }

    .page { padding-top: var(--space-8); }

    /* Mobile navigation */
    .nav-toggle { display: inline-flex; }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
        padding: var(--space-4) var(--gutter) var(--space-6);
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: var(--transition);
    }

    .site-header.nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 12px var(--space-4);
        font-size: 0.98rem;
        border-radius: var(--radius-md);
    }

    .main-nav a[aria-current='page']::after { display: none; }

    .main-nav a.nav-cta {
        margin-left: 0;
        margin-top: var(--space-2);
        text-align: center;
        padding: 13px 22px;
    }

    /* Layout shifts */
    .highlight-strip { grid-template-columns: repeat(2, 1fr); }

    .feature-grid { grid-template-columns: 1fr 1fr; }

    .form-shell { grid-template-columns: 1fr; gap: 0; }

    .form-intro {
        position: static;
        padding: 0 0 var(--space-6);
    }

    .form-note { display: none; }

    .dashboard-grid { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; --stack: 40px; }

    .banner-wrap { margin-top: var(--space-6); }

    .banner-viewport {
        aspect-ratio: 5 / 4;
        max-height: none;
    }

    .banner-slide--gradient { padding: var(--space-8) var(--space-6); }

    .banner-arrow { width: 38px; height: 38px; }
    .banner-arrow--prev { left: 10px; }
    .banner-arrow--next { right: 10px; }

    .news-ticker__label {
        padding: 11px 14px;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .news-ticker__item { font-size: 0.82rem; }

    .hero {
        padding: var(--space-10) var(--space-5) var(--space-12);
        border-radius: var(--radius-xl);
    }

    .hero-actions { flex-direction: column; align-items: stretch; }

    .workshop-card { padding: var(--space-8) var(--space-6); }

    .workshop-cta { flex-direction: column; }

    .feature-grid { grid-template-columns: 1fr; }

    .feature { padding: var(--space-6); }

    .dashboard-heading { flex-direction: column; align-items: flex-start; }

    .dashboard-grid { grid-template-columns: 1fr; }

    .field-row { grid-template-columns: 1fr; gap: 0; }

    .profile-list > div {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .admin-heading { flex-direction: column; align-items: flex-start; }

    .admin-table { font-size: 0.82rem; }

    .admin-table th,
    .admin-table td { padding: var(--space-2) var(--space-3); }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta { justify-content: center; }

    .back-to-top {
        bottom: var(--space-5);
        right: var(--space-5);
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .highlight-strip { grid-template-columns: 1fr; }

    .brand-text { font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   22. ACCESSIBILITY & MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@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;
    }
}
