/* ===========================
   Global Reset & Base Styles
   Reference Inspired Theme
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

:root {
    /* Reference Exact Color System */
    --neutral-50: #FAFAFA;
    --neutral-100: #F7F7F7;
    --neutral-200: #E8E8E8;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;

    /* Reference Primary Colors */
    --portrait-dark: #08304C;
    --portrait-text: rgba(8, 48, 76, 0.65);
    --portrait-bg: #F7F7F7;
    --portrait-card: #FFFFFF;
    --portrait-border: rgba(0, 0, 0, 0.1);

    /* Slate Gray - Secondary */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Accent - Teal/Cyan (Reference style) */
    --accent-teal: #0D9488;
    --accent-cyan: #06ACF1;
    
    /* Reference Exact Rainbow Gradient */
    --rainbow-gradient: linear-gradient(90deg, 
        rgb(38, 192, 255), 
        rgb(230, 0, 194) 20%, 
        rgb(255, 73, 78) 40%, 
        rgb(255, 161, 62) 60%, 
        rgb(255, 200, 55) 80%, 
        rgb(0, 204, 61));
    --rainbow-text: linear-gradient(90deg, 
        rgb(38, 192, 255), 
        rgb(230, 0, 194) 20%, 
        rgb(255, 73, 78) 40%, 
        rgb(255, 161, 62) 60%, 
        rgb(255, 200, 55) 80%, 
        rgb(0, 204, 61));
    
    /* Hero section gradient (Reference) */
    --hero-gradient: linear-gradient(rgba(3, 110, 167, 0.06), rgb(255, 255, 255));
    
    /* Brand Colors */
    --brand-primary: #08304C;
    --brand-secondary: #353535;
    --brand-cream: #FFFBF5;
    --brand-blue-primary: #08304C;
    --brand-blue-dark: #062438;
    --brand-emerald: #10B981;

    /* Accent scale */
    --accent-50: rgba(8, 48, 76, 0.06);
    --accent-100: rgba(8, 48, 76, 0.12);
    --accent-200: rgba(8, 48, 76, 0.18);

    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    /* Semantic Tokens - Reference Exact */
    --color-primary: var(--portrait-dark);
    --color-primary-hover: #062438;
    --color-on-primary: #ffffff;
    --color-text-primary: #08304C;
    --color-text-secondary: rgba(8, 48, 76, 0.65);
    --color-text-tertiary: rgba(8, 48, 76, 0.5);
    --color-text-muted: rgba(8, 48, 76, 0.4);
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F7F7F7;
    --color-bg-tertiary: #F0F0F0;
    --color-border-light: rgba(0, 0, 0, 0.06);
    --color-border-medium: rgba(0, 0, 0, 0.1);

    /* Legacy Support */
    --primary-color: var(--color-primary);
    --text-color: var(--color-text-primary);
    --text-light: var(--color-text-secondary);
    --border-color: var(--color-border-light);
    --bg-light: var(--color-bg-secondary);
    --white: var(--color-bg-primary);

    /* Elevation System - Softer shadows (Reference style) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow: var(--shadow-sm);
    --shadow-hover: var(--shadow-md);
    --btn-primary-glow: rgba(8, 48, 76, 0.28);
    --btn-primary-glow-strong: rgba(8, 48, 76, 0.4);
    --header-shell-max-width: 1440px;
    --header-shell-scale: 1.05;
    --header-shell-visual-width: 1512px;
    --header-shell-lift-offset: 2rem;
    --auth-menu-width: 430px;
    --auth-controls-width: calc(var(--auth-menu-width) + var(--space-2) + 40px);

    /* Spacing Scale (8px base) - More generous */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius Scale - Softer, more rounded */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-4xl: 2.5rem;
    --radius-full: 9999px;

    /* Typography Scale - Reference style large headings */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Typography Roles - Reference inspired large display */
    --type-hero: clamp(2.5rem, 6vw + 1rem, 4.5rem);
    --type-display: clamp(2rem, 4vw + 0.8rem, 3.5rem);
    --type-title: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    --type-heading: clamp(1.125rem, 2vw + 0.3rem, 1.5rem);
    --type-body: 1.0625rem;
    --type-subtext: 1rem;
    --type-caption: 0.875rem;
    --letter-spacing-heading: -0.035em;
    --letter-spacing-tight: -0.02em;

    /* Transitions - Smooth and subtle */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography - All Outfit */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Reference Panel Shadows */
    --panel-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 10px 16px 24px;
    --panel-radius: 28px;
    --panel-radius-lg: 32px;

    /* Auth layout */
    --auth-page-padding: var(--space-6);
    --auth-reference-card-height: 43rem;
    --auth-vertical-shift: 8vh;
    --header-clearance: clamp(2.5rem, 6vh, 5rem);

    /* State Feedback */
    --state-error-bg: #FEF2F2;
    --state-error-border: #FECACA;
    --state-error-text: #991B1B;
    --state-success-bg: #ECFDF5;
    --state-success-border: #A7F3D0;
    --state-success-text: #065F46;

    /* Theme Surface Tokens - Reference Exact */
    --page-gradient: linear-gradient(var(--hero-gradient));
    --content-section-backdrop: #F7F7F7;
    --manifest-detail-backdrop: #F7F7F7;
    --surface-glass: rgba(255, 255, 255, 0.98);
    --surface-glass-muted: rgba(255, 255, 255, 0.95);
    --surface-chip: rgba(255, 255, 255, 0.9);
    --surface-card: #FFFFFF;
    --surface-card-alt: #F7F7F7;
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-chip: rgba(0, 0, 0, 0.08);
    --accent-soft-bg: rgba(8, 48, 76, 0.04);
    --accent-soft-bg-strong: rgba(8, 48, 76, 0.08);
    --accent-soft-border: rgba(8, 48, 76, 0.12);
    --nav-active-bg: rgba(8, 48, 76, 0.03);
    --tooltip-bg: rgba(8, 48, 76, 0.95);
    --tooltip-color: #ffffff;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--type-body);
    color-scheme: light;
    font-weight: 400;
}

body.dark-theme {
    --color-primary: #CBD5E1;
    --color-primary-hover: #E2E8F0;
    --color-on-primary: #0F172A;
    --color-text-primary: #F1F5F9;
    --color-text-secondary: #CBD5E1;
    --color-text-tertiary: #94A3B8;
    --color-text-muted: #64748B;
    --color-bg-primary: #0F172A;
    --color-bg-secondary: #1E293B;
    --color-bg-tertiary: #334155;
    --color-border-light: rgba(255, 255, 255, 0.08);
    --color-border-medium: rgba(255, 255, 255, 0.15);
    --neutral-500: #94A3B8;
    --neutral-600: #CBD5E1;
    --primary-color: var(--color-primary);
    --text-color: var(--color-text-primary);
    --text-light: var(--color-text-secondary);
    --border-color: var(--color-border-light);
    --bg-light: var(--color-bg-secondary);
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --btn-primary-glow: rgba(0, 0, 0, 0.55);
    --btn-primary-glow-strong: rgba(0, 0, 0, 0.7);
    --surface-card: var(--color-bg-secondary);
    --surface-card-alt: var(--color-bg-tertiary);
    --surface-glass: rgba(15, 23, 42, 0.95);
    --surface-glass-muted: rgba(30, 41, 59, 0.92);
    --surface-chip: rgba(51, 65, 85, 0.9);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-chip: rgba(255, 255, 255, 0.08);
    --accent-soft-bg: rgba(203, 213, 225, 0.08);
    --accent-soft-bg-strong: rgba(203, 213, 225, 0.12);
    --accent-soft-border: rgba(203, 213, 225, 0.2);
    --nav-active-bg: rgba(203, 213, 225, 0.08);
    --tooltip-bg: rgba(15, 23, 42, 0.98);
    --tooltip-color: #F1F5F9;
    --page-gradient: #0F172A;
    --content-section-backdrop: #0F172A;
    --manifest-detail-backdrop: #0F172A;
    --state-error-bg: rgba(239, 68, 68, 0.12);
    --state-error-border: rgba(239, 68, 68, 0.3);
    --state-error-text: #FCA5A5;
    --state-success-bg: rgba(16, 185, 129, 0.12);
    --state-success-border: rgba(16, 185, 129, 0.3);
    --state-success-text: #A7F3D0;
    color: var(--color-text-primary);
    background: var(--page-gradient);
    color-scheme: dark;
}

@media (max-width: 991.98px) {
    body.menu-open {
        overflow: hidden;
    }
}

.font-display {
    font-family: var(--font-body);
    letter-spacing: var(--letter-spacing-heading);
}

/* Reference Style: Serif headings with elegant weight */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-heading);
    color: var(--color-text-primary);
    line-height: 1.2;
}

h1 {
    font-size: var(--type-hero);
    line-height: 1.1;
    font-weight: 400;
}

h2 {
    font-size: var(--type-display);
    line-height: 1.15;
    font-weight: 400;
}

h3 {
    font-size: var(--type-title);
    line-height: 1.2;
}

h4 {
    font-size: var(--type-heading);
    line-height: 1.3;
}

h5 {
    font-size: var(--type-body);
    line-height: 1.35;
}

h6 {
    font-size: var(--type-subtext);
    line-height: 1.4;
}

/* Reference style: Italic emphasis in headings */
.text-italic,
em.highlight {
    font-style: italic;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    font-size: var(--type-body);
    line-height: 1.7;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
}

small {
    font-size: var(--type-caption);
    line-height: 1.4;
}

main {
    flex: 1;
    background: transparent;
}

/* ===========================
   Header Styles - Reference Exact Floating Style
   =========================== */
.main-header {
    background: transparent;
    color: var(--color-text-primary);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 24px 0;
}

@media (min-width: 680px) {
    .main-header {
        padding: 32px 32px 0;
    }
}

@media (min-width: 1536px) {
    .main-header {
        padding: 48px 32px 0;
    }
}

/* Hide utility bar for clean Reference look */
.utility-bar {
    display: none;
}

.utility-content {
    display: none;
}

.banner-ticker {
    display: none;
}

.banner-item {
    display: none;
}

/* Reference Exact Nav Shell */
.header-shell {
    position: relative;
    max-width: var(--header-shell-max-width);
    margin: 0 auto;
    padding: 8.25px 6.75px 8.25px 27px;
    background: transparent;
    border-radius: 27px;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 27px;
    color: rgb(44, 44, 44);
    --header-item-height: 36px;
    transform: translateY(-60%) scale(var(--header-shell-scale));
    transform-origin: top center;
}

/* Reference glassmorphism background via ::before */
.header-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        rgb(255, 255, 255) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,
        rgba(0, 0, 0, 0.03) 0px 16px 16px -8px,
        rgba(0, 0, 0, 0.03) 0px 10px 10px -5px,
        rgba(0, 0, 0, 0.03) 0px 5px 5px -2.5px,
        rgba(0, 0, 0, 0.03) 0px 3px 3px -1.5px,
        rgba(0, 0, 0, 0.03) 0px 2px 2px -1px,
        rgba(0, 0, 0, 0.03) 0px 1px 1px -0.5px;
}

.mobile-header-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.mobile-brand {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    width: 100%;
    transform: scaleY(1.05);
    transform-origin: center;
    color: rgb(0, 0, 0);
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-base);
}

.logo-link:hover {
    opacity: 0.8;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: none;
    box-shadow: none;
    background: transparent;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-title {
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
}

.brand-subtitle {
    display: none;
}

/* Hide support chip for cleaner look */
.support-chip {
    display: none;
}

.support-copy {
    display: none;
}

.support-link {
    display: none;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: var(--space-1);
    align-items: center;
}

.main-nav li {
    display: flex;
}

/* Reference style navigation links */
.main-nav a {
    color: rgb(44, 44, 44);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    height: 36px;
    border-radius: 9999px;
    position: relative;
    transition: color 150ms ease, background 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: none;
    background: transparent;
}

.header-shell .main-nav a,
.header-shell .btn,
.header-shell .btn-login,
.header-shell .btn-logout,
.header-shell .user-badge {
    height: var(--header-item-height);
    min-height: var(--header-item-height);
    padding-block: 0;
}

.header-shell .theme-toggle,
.header-shell .menu-button,
.header-shell .header-menu-button {
    width: var(--header-item-height);
    height: var(--header-item-height);
}

.main-nav a:hover {
    color: rgb(44, 44, 44);
    background: rgba(0, 0, 0, 0.06);
}

.main-nav a.active {
    color: rgb(44, 44, 44);
    background: rgba(0, 0, 0, 0.06);
}

/* Hide icons in nav for cleaner Reference look */
.nav-link__icon {
    display: none;
}

.nav-link__external {
    font-size: var(--text-sm);
    color: rgb(44, 44, 44);
    opacity: 1;
}

.action-cluster {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.action-cluster > * {
    display: flex;
    align-items: center;
}

.action-cluster .btn,
.action-cluster .btn-login,
.action-cluster .btn-logout,
.action-cluster .user-badge,
.action-cluster .theme-toggle {
    min-height: var(--header-item-height);
}

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

.nav-ctas .btn {
    display: flex;
    align-items: center;
}

/* Reference style ghost button */
.btn-ghost {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-ghost:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.auth-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: var(--auth-menu-width);
    max-width: var(--auth-menu-width);
    min-height: 36px;
    justify-content: flex-end;
    flex: 0 0 var(--auth-menu-width);
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: var(--auth-controls-width);
    justify-content: flex-end;
    flex: 0 0 var(--auth-controls-width);
}

/* Reference style theme toggle */
.theme-toggle {
    border: 1px solid var(--color-border-light);
    background: transparent;
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    padding: var(--space-2);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--accent-soft-bg);
    color: var(--color-text-primary);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.theme-toggle__icon {
    font-size: var(--text-lg);
    line-height: 1;
}
.header-menu-button {
    flex-shrink: 0;
}


.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.user-info__badge-wrapper {
    min-width: 0;
    flex: 1 1 auto;
}

.user-badge {
    background: var(--accent-soft-bg);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    border: none;
}

.auth-buttons {
    display: flex;
    gap: var(--space-2);
}

/* Reference style auth buttons */
.btn-login,
.btn-register {
    padding: 14px 24px;
    border-radius: 9999px;
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-login {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-login:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-shell .btn-ghost,
.header-shell .btn-register,
.header-shell .menu-button,
.header-shell .header-menu-button,
.header-shell .theme-toggle,
.header-shell .brand-title,
.header-shell .brand-subtitle,
.header-shell .user-badge {
    color: #1a1a1a;
}

.header-shell .btn-primary {
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-shell .btn-primary:hover,
.header-shell .btn-primary:hover:not(:disabled) {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-shell .btn-primary:active,
.header-shell .btn-primary:active:not(:disabled) {
    background: #fafafa;
    transform: translateY(0);
}

.header-shell .btn-register {
    color: #1a1a1a;
}

.primary-nav .brand-title,
.primary-nav .brand-subtitle,
.primary-nav .main-nav a,
.primary-nav .main-nav a:hover,
.primary-nav .main-nav a.active,
.primary-nav .menu-button,
.primary-nav .header-menu-button,
.primary-nav .theme-toggle,
.primary-nav .material-icons,
.primary-nav .btn-primary {
    color: rgb(0, 0, 0);
}

.primary-nav .btn-primary,
.primary-nav .btn-register {
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.primary-nav .btn-secondary,
.primary-nav .btn-ghost,
.primary-nav .btn-login,
.primary-nav .btn-logout {
    color: #1a1a1a;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.primary-nav .btn-primary:hover,
.primary-nav .btn-register:hover,
.primary-nav .btn-primary:active,
.primary-nav .btn-register:active {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.primary-nav .btn-secondary:hover,
.primary-nav .btn-ghost:hover,
.primary-nav .btn-login:hover,
.primary-nav .btn-logout:hover,
.primary-nav .btn-secondary:active,
.primary-nav .btn-ghost:active,
.primary-nav .btn-login:active,
.primary-nav .btn-logout:active {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.primary-nav .btn *,
.primary-nav .btn-primary *,
.primary-nav .btn-secondary *,
.primary-nav .btn-ghost *,
.primary-nav .btn-login *,
.primary-nav .btn-register *,
.primary-nav .btn-logout * {
    color: inherit;
}

.primary-nav .btn svg,
.primary-nav .btn-primary svg,
.primary-nav .btn-secondary svg,
.primary-nav .btn-ghost svg,
.primary-nav .btn-login svg,
.primary-nav .btn-register svg,
.primary-nav .btn-logout svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Reference rainbow border button */
.btn-register {
    background: rgb(255, 255, 255);
    color: rgb(44, 44, 44);
    position: relative;
    height: 30px;
    padding: 0 13px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 14px;
    border: 1px solid rgb(222, 222, 222);
    border-bottom-color: rgba(0, 0, 0, 0);
    transition: all var(--transition-base);
    box-shadow: 
        rgba(0, 0, 0, 0.03) 0px 16px 16px -8px,
        rgba(0, 0, 0, 0.03) 0px 10px 10px -5px,
        rgba(0, 0, 0, 0.03) 0px 5px 5px -2.5px,
        rgba(0, 0, 0, 0.03) 0px 3px 3px -1.5px,
        rgba(0, 0, 0, 0.03) 0px 2px 2px -1px,
        rgba(0, 0, 0, 0.03) 0px 1px 1px -0.5px;
}

/* Wrapper for rainbow gradient effect */
.btn-register-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--header-item-height);
    padding: 3px;
    border-radius: 9999px;
    overflow: hidden;
}

.btn-register-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 50%;
    transform: translateY(-50%);
    aspect-ratio: 1;
    width: 100%;
    background: var(--rainbow-gradient);
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.btn-register-wrapper:hover::before {
    transform: translateY(-50%) rotate(360deg);
}

.btn-register-wrapper .btn-register {
    position: relative;
    z-index: 1;
}

.btn-register-wrapper .user-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: calc(var(--header-item-height) - 6px);
    min-height: calc(var(--header-item-height) - 6px);
    padding: 0 13px;
    border-radius: 9999px;
    background: rgb(255, 255, 255);
    color: rgb(44, 44, 44);
    border: 1px solid rgb(222, 222, 222);
    border-bottom-color: rgba(0, 0, 0, 0);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 14px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        rgba(0, 0, 0, 0.03) 0px 16px 16px -8px,
        rgba(0, 0, 0, 0.03) 0px 10px 10px -5px,
        rgba(0, 0, 0, 0.03) 0px 5px 5px -2.5px,
        rgba(0, 0, 0, 0.03) 0px 3px 3px -1.5px,
        rgba(0, 0, 0, 0.03) 0px 2px 2px -1px,
        rgba(0, 0, 0, 0.03) 0px 1px 1px -0.5px;
}

.primary-nav .btn-register-wrapper .btn-register,
.primary-nav .btn-register-wrapper .btn-register:hover,
.primary-nav .btn-register-wrapper .btn-register:active {
    background: rgb(255, 255, 255);
    color: rgb(44, 44, 44);
    border-color: rgb(222, 222, 222);
}

.primary-nav .btn-register-wrapper .btn-register * {
    color: rgb(44, 44, 44);
}


.btn-logout {
    background: #ffffff;
    color: #1a1a1a;
    padding: 14px 24px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-logout:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.menu-button {
    background: transparent;
    color: var(--color-text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.menu-button:hover {
    background: var(--accent-soft-bg);
}

.material-icons {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
}

/* ===========================
   Content Section - Reference Clean Style
   =========================== */
.content-section {
    position: relative;
    overflow: visible;
    width: 100%;
    margin: var(--space-16) 0;
    padding: var(--space-20) var(--space-8);
    border-radius: 0;
    background: var(--color-bg-primary);
    border: none;
    box-shadow: none;
}

body.dark-theme .content-section {
    background: var(--color-bg-primary);
}

/* Remove decorative blobs for clean Reference look */
.content-section::before,
.content-section::after {
    display: none;
}

.content-section__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px);
    gap: var(--space-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.content-section__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: #e7ecff;
    color: #3f63d8;
    border-radius: var(--radius-full);
    border: 1px solid rgba(63, 99, 216, 0.28);
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--type-caption);
    letter-spacing: 0.12em;
    box-shadow: var(--shadow-sm);
}

body.dark-theme .content-section__badge {
    background: var(--surface-chip);
    color: var(--color-text-secondary);
    border-color: var(--color-border-light);
}

/* Reference style section title - serif with italic accent */
.content-section__title {
    font-size: var(--type-display);
    line-height: 1.15;
    max-width: 800px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-weight: 400;
}

.content-section__title-accent {
    display: inline;
    font-style: italic;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.content-section__lead {
    max-width: 700px;
    color: var(--color-text-secondary);
    font-size: var(--type-body);
    line-height: 1.75;
    font-family: var(--font-body);
}

.content-section__list {
    list-style: none;
    display: grid;
    gap: var(--space-3);
    padding-left: 0;
    margin: var(--space-5) 0 var(--space-6);
}

.content-section__list li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: var(--type-subtext);
}

.content-section__list-text {
    color: var(--color-text-secondary);
}

.content-section__icon {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.08);
    border: none;
    border-radius: var(--radius-full);
    padding: 4px;
    font-size: var(--text-lg);
}

body.dark-theme .content-section__icon {
    color: #34D399;
    background: rgba(16, 185, 129, 0.15);
}

.content-section__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Reference style CTA button */
.content-section__cta {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-medium);
    padding: var(--space-3) var(--space-5);
    font-weight: 500;
    font-size: var(--type-subtext);
    border-radius: var(--radius-full);
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
}

.content-section__cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    background: var(--rainbow-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.content-section__cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.content-section__cta:hover::before {
    opacity: 1;
}

.content-section__cta .material-icons {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
}

.content-section__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Reference style device mockup - simpler, more photo-focused */
.content-section__device {
    width: 100%;
    max-width: 480px;
    background: var(--color-bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

body.dark-theme .content-section__device {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-lg);
}

.content-section__device-top {
    height: 100px;
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-50) 100%);
    border-bottom: 1px solid var(--color-border-light);
}

body.dark-theme .content-section__device-top {
    background:
        radial-gradient(circle at 12% 30%, rgba(178, 195, 240, 0.18) 8px, transparent 0),
        radial-gradient(circle at 32% 65%, rgba(247, 144, 67, 0.18) 6px, transparent 0),
        radial-gradient(circle at 65% 40%, rgba(148, 124, 255, 0.24) 8px, transparent 0),
        radial-gradient(#333537 2px, transparent 2px) 0 0/28px 28px,
        radial-gradient(#333537 2px, transparent 2px) 14px 14px/28px 28px;
    border-color: rgba(255, 255, 255, 0.08);
}

.content-section__device-screen {
    position: relative;
    background: linear-gradient(180deg, #f4f6fb 0%, #f7f8fc 35%, #f3f5fa 70%, #eef0f6 100%);
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    padding: var(--space-8);
    overflow: hidden;
}

body.dark-theme .content-section__device-screen {
    background: linear-gradient(180deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 45%, var(--color-bg-primary) 100%);
}

.content-section__device-bar {
    width: 100%;
    height: 80px;
    background: #050505;
    border-radius: 26px;
    box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.3);
}

body.dark-theme .content-section__device-bar {
    background: #0e0e0e;
    box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.6);
}

.content-section__icon-card {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

body.dark-theme .content-section__icon-card {
    background: rgba(19, 19, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.content-section__icon-card .material-icons {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-full);
    padding: 8px;
    font-size: var(--type-heading);
}

.content-section__icon-card p {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
}

.content-section__icon-card small {
    display: block;
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
}

/* ===========================
   Content Stats Strip
   =========================== */
.content-stats {
    position: relative;
    margin: var(--space-10) 0 var(--space-8);
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, #eef3ff 0%, #eaf0ff 35%, #e3ebff 65%, #e1e9ff 100%);
    border-radius: 20px;
    border: 1px solid rgba(99, 123, 255, 0.16);
    box-shadow: 0 16px 32px rgba(40, 85, 202, 0.12);
    overflow: hidden;
    color: #1c2440;
}

.content-stats__texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(63, 99, 216, 0.12) 1px, transparent 1px) 0 0/26px 26px,
        radial-gradient(circle, rgba(99, 123, 255, 0.09) 1px, transparent 1px) 13px 13px/26px 26px;
    opacity: 0.35;
    pointer-events: none;
}

.content-stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: center;
}

.content-stats__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.content-stats__value {
    font-size: var(--type-title);
    font-weight: 800;
    color: #4f6cff;
    letter-spacing: 0.01em;
}

.content-stats__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: var(--type-caption);
    color: rgba(28, 36, 64, 0.65);
}

.content-stats__item--live {
    gap: var(--space-2);
}

.content-stats__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
    margin: 0 auto;
}

/* ===========================
   CTA Hero
   =========================== */
.cta-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, #3c7bff 0%, #5867ff 40%, #7f54ff 70%, #9a4ef3 100%);
    color: #f7fbff;
    text-align: center;
}

.cta-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 14px, transparent 14px, transparent 28px);
    opacity: 0.6;
    pointer-events: none;
}

.cta-hero::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12), transparent 45%);
    opacity: 0.8;
    pointer-events: none;
}

.cta-hero__content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.cta-hero h2 {
    font-size: var(--type-display);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

.cta-hero p {
    font-size: var(--type-subtext);
    color: rgba(247, 251, 255, 0.92);
}

.cta-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-2);
    padding: 14px 22px;
    background: #f7fbff;
    color: #1f63f2;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-hero__btn .material-icons {
    font-size: var(--type-body);
    color: inherit;
}

/* ===========================
   Footer Styles - Clean & Minimal
   =========================== */
.footer-meta {
    display: grid;
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: var(--space-6);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--surface-card) 100%);
    color: var(--color-text-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

body.dark-theme .stat-card {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.45) 0%, rgba(11, 21, 38, 0.95) 100%);
    border-color: var(--color-border-medium);
}

.stat-label {
    text-transform: uppercase;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin: var(--space-2) 0;
    color: var(--color-primary);
    letter-spacing: var(--letter-spacing-heading);
}

.stat-helper {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

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

.quick-actions__intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.quick-actions__title {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.quick-actions__description {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.quick-actions__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-medium);
}

.quick-action-icon {
    background: var(--accent-soft-bg);
    color: var(--color-primary);
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-xl);
    border: 1px solid var(--accent-soft-border);
    flex-shrink: 0;
}

.quick-action-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.quick-action-title {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.quick-action-desc {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

.quick-action-caret {
    margin-left: auto;
    color: var(--color-text-tertiary);
    font-size: var(--text-xl);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.quick-action-card:hover .quick-action-caret {
    transform: translate(2px, -2px);
}

/* Reference Style Footer - Clean & Minimal */
.main-footer {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    margin-top: 0;
    border-top: 1px solid var(--color-border-light);
    position: relative;
}

.main-footer::before {
    display: none;
}

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

.footer-trust {
    margin: 0 0 var(--space-10);
}

.footer-trust__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
}

.footer-trust__title {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.footer-trust__badges {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.footer-trust__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
}

.footer-trust__badge .material-icons {
    font-size: var(--type-body);
    color: var(--color-text-tertiary);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-10);
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.footer-section h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--type-body);
    font-weight: 600;
    letter-spacing: 0;
    font-family: var(--font-heading);
}

.footer-section h4 {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-sans);
}

.footer-section p {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    line-height: 1.6;
    max-width: 320px;
    font-family: var(--font-body);
}

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

.footer-section ul li {
    margin: 0;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 400;
    transition: color var(--transition-fast);
    display: inline-block;
    font-family: var(--font-body);
}

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

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

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.footer-social {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}

.footer-social:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border-color: var(--color-border-medium);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-bottom a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===========================
   Common Button Styles - Design System
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 9999px;
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: none;
}

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

.btn-primary:hover:not(:disabled) {
    background: #000000;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-primary:hover:not(:disabled)::before {
    opacity: 0;
}

.btn-primary:active:not(:disabled) {
    background: #000000;
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary::before {
    content: none;
}

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

.btn-secondary:hover:not(:disabled) {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-secondary:hover:not(:disabled)::before {
    opacity: 0;
}

/* ===========================
   Lockable Button Loading State
   =========================== */
.lockable-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
    --lock-spinner-base: rgba(255, 255, 255, 0.35);
    --lock-spinner-highlight: rgba(255, 255, 255, 0.9);
}

.lockable-button.is-locking {
    cursor: wait;
}

.lockable-button__spinner {
    display: none;
}

.lockable-button__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
}

.lockable-button__spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid var(--lock-spinner-base);
    border-top-color: var(--lock-spinner-highlight);
    box-sizing: border-box;
}

.lockable-button.is-locking .lockable-button__spinner {
    display: inline-flex;
}

.lockable-button.is-locking .lockable-button__spinner {
    animation: lockable-spin 0.9s linear infinite;
}

.lockable-button--dark {
    --lock-spinner-base: rgba(15, 23, 42, 0.25);
    --lock-spinner-highlight: rgba(15, 23, 42, 0.85);
}

@keyframes lockable-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   Form Styles - Clean Design
   =========================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--surface-card);
    transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--accent-100);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    background: var(--color-bg-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===========================
   Utility Classes
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-6);
}

.card {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.text-center {
    text-align: center;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===========================
   Global Skeleton Loading System
   Premium shimmer effect with accessibility support
   =========================== */

/* Base Skeleton Element */
.skeleton {
    background: linear-gradient(90deg,
            var(--neutral-100) 25%,
            var(--neutral-200) 50%,
            var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

body.dark-theme .skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
}

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

/* Skeleton Variants */
.skeleton-card {
    height: 180px;
    border-radius: var(--radius-2xl);
}

.skeleton-card--sm {
    height: 120px;
    border-radius: var(--radius-xl);
}

.skeleton-card--lg {
    height: 280px;
    border-radius: var(--radius-2xl);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
}

.skeleton-text--sm {
    height: 0.75rem;
}

.skeleton-text--lg {
    height: 1.5rem;
}

.skeleton-text--short {
    width: 60%;
}

.skeleton-text--medium {
    width: 80%;
}

.skeleton-title {
    height: 1.75rem;
    width: 70%;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.skeleton-avatar--sm {
    width: 32px;
    height: 32px;
}

.skeleton-avatar--lg {
    width: 80px;
    height: 80px;
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-full);
}

/* Auth menu skeleton - layout shift önleme */
.auth-menu-skeleton {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--header-item-height);
}

.auth-menu-skeleton .skeleton-button {
    height: var(--header-item-height);
    width: 100% !important;
}

.skeleton-fade-out {
    opacity: 0;
    transition: opacity 150ms ease-out;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: var(--radius-full);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl);
}

.skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
}

/* Skeleton Grid Layouts */
.skeleton-grid {
    display: grid;
    gap: var(--space-4);
}

.skeleton-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.skeleton-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .skeleton-grid--2,
    .skeleton-grid--3,
    .skeleton-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Fade In/Out Animations */
.skeleton-container {
    animation: skeleton-fade-in 0.3s ease-out;
}

@keyframes skeleton-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.skeleton-container.is-loaded {
    animation: skeleton-fade-out 0.4s ease-out forwards;
}

@keyframes skeleton-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}

/* Content reveal animation after skeleton */
.content-loaded {
    animation: content-reveal 0.4s ease-out forwards;
}

@keyframes content-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading State for Containers */
.is-skeleton-loading {
    pointer-events: none;
    user-select: none;
}

.is-skeleton-loading > *:not(.skeleton):not(.skeleton-container) {
    visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: var(--neutral-200);
    }

    body.dark-theme .skeleton {
        background: rgba(255, 255, 255, 0.08);
    }

    .skeleton-container,
    .skeleton-container.is-loaded,
    .content-loaded {
        animation: none;
    }
}

/* ===========================
   Responsive Design - Mobile First
   =========================== */
@media (min-width: 1280px) {
    .footer-content {
        gap: var(--space-12);
        padding: var(--space-10);
    }
}

/* xxl breakpoint - 1400px */
@media (max-width: 1399.98px) {
    .primary-nav {
        gap: var(--space-5);
    }

    .main-nav a {
        padding: var(--space-2) var(--space-3);
    }
}

/* xl breakpoint - 1200px */
@media (max-width: 1200px) {

    .primary-nav {
        gap: var(--space-4);
    }

    .main-nav a {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    .nav-ctas .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    .auth-controls {
        min-width: auto;
    }

    .user-badge {
        display: none;
    }
}

/* lg breakpoint - 992px: Mobile menu */
@media (max-width: 991.98px) {
    .header-shell {
        padding: 0;
    }

    .primary-nav {
        display: none;
    }

    .mobile-header-bar {
        display: flex;
        width: 100%;
        margin-bottom: 0;
    }

    .primary-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-4);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-2xl);
        background: var(--surface-card);
        box-shadow: var(--shadow-sm);
    }

    .primary-nav.is-open .brand-cluster {
        width: 100%;
        flex-wrap: wrap;
    }

    .primary-nav.is-open .main-nav {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2);
    }

    .primary-nav.is-open .main-nav a {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .primary-nav.is-open .action-cluster {
        width: 100%;
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }

    .primary-nav.is-open .nav-ctas {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2);
    }

    .primary-nav.is-open .nav-ctas .btn {
        width: 100%;
    }

    .auth-controls {
        min-width: auto;
    }

    .primary-nav.is-open .auth-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .primary-nav.is-open .auth-menu {
        width: 100%;
        justify-content: center;
    }

    .header-menu-button {
        display: none;
    }

    .footer-meta {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        padding: var(--space-6);
    }
}

@media (max-width: 768px) {
    .btn,
    .content-section__actions .btn,
    .nav-ctas .btn {
        min-height: 48px;
    }

    .nav-ctas .btn {
        justify-content: center;
    }

    .content-section {
        margin: var(--space-8) 0;
        padding: var(--space-8) var(--space-5);
    }

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

    .content-section__visual {
        order: -1;
    }

    .content-section__title {
        font-size: var(--type-title);
    }

    .content-section__lead {
        font-size: var(--type-subtext);
    }

    .content-section__actions {
        width: 100%;
    }

    .content-section__device {
        max-width: 100%;
    }

    .content-stats {
        margin: var(--space-6) 0 var(--space-6);
        padding: var(--space-5) var(--space-4);
        border-radius: 16px;
    }

    .content-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .content-stats__value {
        font-size: var(--type-title);
    }

    .cta-hero {
        padding: var(--space-8) var(--space-5);
    }

    .cta-hero h2 {
        font-size: var(--type-title);
    }

    .main-header {
        position: static;
        top: auto;
        z-index: auto;
    }

    :root {
        --text-base: 0.9375rem;
        /* 15px */
        --text-lg: 1.0625rem;
        /* 17px */
        --text-xl: 1.1875rem;
        /* 19px */
        --text-2xl: 1.375rem;
        /* 22px */
    }

    .utility-content {
        padding: var(--space-2) var(--space-4);
    }

    .banner-ticker {
        gap: var(--space-4);
        justify-content: center;
        animation: none;
        flex-wrap: wrap;
        white-space: normal;
    }

    .banner-item {
        white-space: nowrap;
    }

    .utility-content {
        overflow: hidden;
    }

    .header-shell {
        padding: 0;
        border-radius: 22.5px;
    }

    .header-shell::before {
        border-radius: inherit;
    }

    .mobile-header-bar {
        display: flex;
        min-height: 60px;
        background: var(--surface-glass);
        border: 1px solid var(--border-glass);
        border-radius: inherit;
        padding: var(--space-4);
    }

    .mobile-header-bar .brand-mark {
        width: 44px;
        height: 44px;
    }

    .primary-nav {
        display: none;
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-4);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-2xl);
        background: var(--surface-card);
        box-shadow: var(--shadow-sm);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .brand-cluster {
        width: 100%;
        flex-wrap: wrap;
    }

    .support-chip {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2);
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        justify-content: center;
    }

    .action-cluster {
        width: 100%;
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }

    .nav-ctas {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2);
    }

    .nav-ctas .btn {
        width: 100%;
    }

    .auth-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .auth-menu {
        width: 100%;
        justify-content: center;
    }

    .header-menu-button {
        width: 100%;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }

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

    .footer-section a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .quick-actions__list {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        min-height: 72px;
    }

    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-section ul {
        align-items: center;
    }

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

    .content-stats__grid {
        grid-template-columns: 1fr;
    }

    .cta-hero__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-base: 0.75rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: var(--text-base);
    }

    .brand-subtitle {
        font-size: var(--text-xs);
    }

    .footer-content {
        padding: var(--space-5) var(--space-3);
    }

    .footer-section h3 {
        font-size: var(--type-heading);
    }
}

@media (max-width: 375px) {
    :root {
        --text-base: 0.875rem;
        --text-sm: 0.8125rem;
    }

    .header-shell {
        padding: 0;
        border-radius: 18px;
    }

    .header-shell::before {
        border-radius: inherit;
    }

    .mobile-header-bar {
        padding: var(--space-3);
    }

    .footer-section h4 {
        font-size: var(--type-caption);
    }
}

@media (hover: none) and (pointer: coarse) {
    .quick-action-card:hover,
    .footer-section a:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    .quick-action-card:active {
        transform: scale(0.98);
        background: var(--surface-glass-muted);
    }

    .footer-social {
        width: 48px;
        height: 48px;
    }
}

/* ===========================
   Accessibility & Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .banner-ticker {
        animation: none;
    }

    .feature-card:hover,
    .quick-action-card:hover {
        transform: none;
    }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-border-light: var(--neutral-400);
        --color-border-medium: var(--neutral-500);
    }

    .btn {
        border: 2px solid currentColor;
    }

    .footer-social {
        border-width: 2px;
    }
}

/* Dark Mode Preparation - placeholder for future dark mode variables */

/* Print Styles */
@media print {

    .main-header,
    .main-footer,
    .nav-ctas,
    .action-cluster {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===========================
   Header Shell Button Overrides
   Must be at end to override global btn-primary
   =========================== */
.header-shell .btn-primary,
.header-shell .btn-primary:not(:disabled) {
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-shell .btn-primary:hover,
.header-shell .btn-primary:hover:not(:disabled),
.header-shell .btn-primary:focus,
.header-shell .btn-primary:focus:not(:disabled) {
    color: #1a1a1a;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-shell .btn-primary:active,
.header-shell .btn-primary:active:not(:disabled) {
    color: #1a1a1a;
    background: #f5f5f5;
    transform: translateY(0);
}
