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

:root {
    --color-primary: #64BAFF;
    --color-primary-rgb: 100, 186, 255;
    --color-primary-light: #8DCCFF;
    --color-primary-dark: #3A9FE8;
    --color-secondary: #884EFF;
    --color-secondary-rgb: 136, 78, 255;
    --color-secondary-light: #A577FF;
    --color-secondary-dark: #6B2FE0;
    --color-accent: #FFB84D;
    --color-accent-rgb: 255, 184, 77;
    --color-accent-dark: #E09A2F;
    --color-success: #2EE89A;
    --color-success-dark: #1CC47D;
    --color-warning: #FFD166;
    --color-danger: #FF6B6B;
    --color-info: #64BAFF;
    --bg-deep: #111B3C;
    --bg-card: #172247;
    --bg-surface: #1D2A52;
    --bg-elevated: #243362;
    --bg-input: #1A2550;
    --text-primary: #F0F4FF;
    --text-secondary: #A8B8D8;
    --text-muted: #6B7FA3;
    --text-inverse: #111B3C;
    --border-subtle: rgba(100, 186, 255, 0.12);
    --border-medium: rgba(100, 186, 255, 0.22);
    --border-strong: rgba(100, 186, 255, 0.4);
    --glow-primary: 0 0 20px rgba(100, 186, 255, 0.25);
    --glow-secondary: 0 0 20px rgba(136, 78, 255, 0.25);
    --glow-accent: 0 0 20px rgba(255, 184, 77, 0.25);
    --gradient-hero: linear-gradient(145deg, #111B3C 0%, #1A264F 35%, #172247 65%, #111B3C 100%);
    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-warm: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    --gradient-surface: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-deep) 100%);
    --gradient-shine: linear-gradient(135deg, rgba(100, 186, 255, 0.1) 0%, rgba(136, 78, 255, 0.1) 100%);
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.4);
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-header: 500;
    --z-toast: 600;
    --z-tooltip: 700;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base), opacity var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

::selection {
    background: rgba(100, 186, 255, 0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

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

/* =============================================
   SITE HEADER
   ============================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(17, 27, 60, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) 0;
    transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.site-header.scrolled {
    background: rgba(17, 27, 60, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: var(--space-xs) 0;
    border-bottom-color: var(--border-medium);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    transition: opacity var(--transition-base);
}

.site-header .brand:hover {
    opacity: 0.85;
}

.site-header .brand img {
    height: 38px;
    width: auto;
}

.site-header .nav-links {
    display: none;
    align-items: center;
    gap: var(--space-2xs);
}

.site-header .nav-links li a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-base), background var(--transition-base);
}

.site-header .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.site-header .nav-links li a:hover,
.site-header .nav-links li a.active {
    color: var(--color-primary);
    background: rgba(100, 186, 255, 0.06);
}

.site-header .nav-links li a:hover::after,
.site-header .nav-links li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-login,
.btn-register,
.cta-button,
.cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-login {
    background: transparent;
    border: 2px solid rgba(100, 186, 255, 0.35);
    color: var(--color-primary);
}

.btn-login:hover {
    border-color: var(--color-primary);
    background: rgba(100, 186, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-register {
    background: var(--gradient-brand);
    color: var(--text-inverse);
    box-shadow: 0 4px 16px rgba(100, 186, 255, 0.3);
}

.btn-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(100, 186, 255, 0.45);
}

.btn-register:hover::before {
    opacity: 1;
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(100, 186, 255, 0.3);
}

.cta-button {
    background: var(--gradient-warm);
    color: #fff;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    box-shadow: 0 6px 24px rgba(136, 78, 255, 0.35);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta-button:hover::after {
    left: 120%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 36px rgba(136, 78, 255, 0.5);
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
}

.cta-section .btn-cta {
    background: linear-gradient(135deg, var(--color-accent), #FF8A00);
    color: var(--text-inverse);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 6px 28px rgba(255, 184, 77, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-section .btn-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: cta-shine 3s ease-in-out infinite;
}

@keyframes cta-shine {
    0%, 100% { left: -70%; }
    50% { left: 130%; }
}

.cta-section .btn-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 184, 77, 0.55);
}

/* =============================================
   HAMBURGER
   ============================================= */

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    border: none;
    background: none;
    z-index: calc(var(--z-header) + 10);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-fast);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger:hover span {
    background: var(--color-primary);
}

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 88%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    z-index: calc(var(--z-header) + 5);
    transform: translateX(105%);
    transition: transform var(--transition-slow);
    padding: 5.5rem var(--space-lg) var(--space-xl);
    overflow-y: auto;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

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

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.mobile-menu ul li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: rgba(100, 186, 255, 0.08);
    color: var(--color-primary);
    padding-left: var(--space-lg);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem var(--space-md) var(--space-2xl);
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 65%);
    top: -15%;
    right: -20%;
    border-radius: 50%;
    animation: hero-orb-1 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.1) 0%, transparent 65%);
    bottom: -10%;
    left: -15%;
    border-radius: 50%;
    animation: hero-orb-2 10s ease-in-out infinite alternate;
}

@keyframes hero-orb-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes hero-orb-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -25px) scale(1.1); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #fff 20%, var(--color-primary) 55%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

/* =============================================
   ARTICLE CONTENT
   ============================================= */

article.content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
    line-height: 1.7;
}

article.content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--space-sm);
}

article.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

article.content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-primary-light);
}

article.content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

article.content ul,
article.content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

article.content ul {
    list-style: none;
}

article.content ul li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: 1.7;
}

article.content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-brand);
}

article.content ol {
    list-style: none;
    counter-reset: article-counter;
}

article.content ol li {
    counter-increment: article-counter;
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: 1.7;
}

article.content ol li::before {
    content: counter(article-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

article.content li {
    line-height: 1.7;
}

article.content strong {
    color: var(--text-primary);
    font-weight: 700;
}

article.content em {
    color: var(--color-primary-light);
    font-style: italic;
}

article.content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-primary-rgb), 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-base);
}

article.content a:hover {
    color: var(--color-primary-light);
    text-decoration-color: var(--color-primary);
}

/* =============================================
   TABLES
   ============================================= */

article.content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

article.content thead {
    background: var(--gradient-brand);
}

article.content thead th {
    color: var(--text-inverse);
}

article.content tbody {
    background: var(--bg-card);
}

article.content th,
article.content td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

article.content th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

article.content tbody tr:nth-child(even) {
    background: rgba(100, 186, 255, 0.03);
}

article.content tbody tr:hover {
    background: rgba(100, 186, 255, 0.07);
}

article.content tbody tr:last-child td {
    border-bottom: none;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-item.open {
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-base);
    gap: var(--space-md);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-base);
    width: 24px;
    text-align: center;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    padding: 0 var(--space-lg);
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-section {
    background: linear-gradient(145deg, var(--bg-deep) 0%, #1A264F 50%, var(--bg-deep) 100%);
    text-align: center;
    padding: var(--space-4xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.12), transparent 60%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1), transparent 60%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    position: relative;
    z-index: 2;
}

/* =============================================
   SITE FOOTER
   ============================================= */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-base);
    padding: var(--space-2xs) 0;
}

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

.footer-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    opacity: 0.75;
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* =============================================
   CARDS (Generic)
   ============================================= */

.card {
    background: var(--gradient-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

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

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.06);
}

/* =============================================
   BADGES
   ============================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.3em 0.75em;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
}

.badge-secondary {
    background: rgba(var(--color-secondary-rgb), 0.15);
    color: var(--color-secondary-light);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.25);
}

.badge-accent {
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
}

.badge-success {
    background: rgba(46, 232, 154, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(255, 209, 102, 0.15);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--color-danger);
}

.badge-live {
    background: rgba(255, 50, 50, 0.15);
    color: #FF5050;
    animation: badge-pulse 2s ease-in-out infinite;
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF5050;
    animation: live-dot 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes live-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.alert-info {
    background: rgba(var(--color-primary-rgb), 0.08);
    border-left-color: var(--color-primary);
    color: var(--color-primary-light);
}

.alert-success {
    background: rgba(46, 232, 154, 0.08);
    border-left-color: var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background: rgba(255, 209, 102, 0.08);
    border-left-color: var(--color-warning);
    color: var(--color-warning);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.08);
    border-left-color: var(--color-danger);
    color: var(--color-danger);
}

/* =============================================
   FORMS & INPUTS
   ============================================= */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem var(--space-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    appearance: none;
}

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

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

.form-input.error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-input.success {
    border-color: var(--color-success);
}

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

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-2xs);
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: var(--space-2xs);
}

.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox input,
.form-radio input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* =============================================
   TABS
   ============================================= */

.tabs {
    display: flex;
    gap: var(--space-2xs);
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    margin-bottom: -2px;
}

.tab-item:hover {
    color: var(--text-secondary);
}

.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tab-fade 0.3s ease;
}

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

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.modal-close:hover {
    background: var(--color-danger);
    color: #fff;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* =============================================
   TOOLTIPS
   ============================================= */

.tooltip-wrap {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: var(--z-tooltip);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-elevated);
}

.tooltip-wrap:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding: var(--space-xl) 0;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.pagination-item.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--text-inverse);
}

.pagination-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: var(--space-md) 0;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color var(--transition-base);
}

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

.breadcrumbs .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--color-primary);
    font-weight: 600;
}

/* =============================================
   EMPTY STATES
   ============================================= */

.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-md);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

/* =============================================
   LOADING STATES
   ============================================= */

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

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

.skeleton {
    background: linear-gradient(90deg,
        var(--bg-surface) 25%,
        var(--bg-elevated) 50%,
        var(--bg-surface) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-xs);
}

.skeleton-title {
    height: 24px;
    width: 65%;
    margin-bottom: var(--space-sm);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 60, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title .overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 0.35em 1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* =============================================
   CONTENT DIVIDERS
   ============================================= */

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-xl) 0;
    border: none;
}

.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
    border: none;
}

.divider-dotted {
    height: 0;
    border: none;
    border-top: 2px dotted var(--border-subtle);
}

/* =============================================
   CODE BLOCKS
   ============================================= */

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: var(--space-lg);
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

code {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-xs);
    font-size: 0.85em;
    color: var(--color-primary-light);
}

/* =============================================
   STAT BLOCKS
   ============================================= */

.stat-block {
    text-align: center;
    padding: var(--space-lg);
}

.stat-block-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-block-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-block-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: var(--space-2xs);
}

.stat-block-change.up {
    color: var(--color-success);
}

.stat-block-change.down {
    color: var(--color-danger);
}

/* =============================================
   TESTIMONIAL BLOCKS
   ============================================= */

.testimonial {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: var(--space-sm);
    left: var(--space-lg);
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-inverse);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-rating {
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* =============================================
   MEDIA CONTAINERS
   ============================================= */

.media-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.media-container.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.media-container.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.media-container.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(17, 27, 60, 0.9));
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.media-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.4);
}

.media-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.6);
}

/* =============================================
   SECONDARY NAVIGATION
   ============================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.sidebar-nav-item:hover {
    background: rgba(var(--color-primary-rgb), 0.06);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar-nav-item .nav-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-sm) 0;
}

/* =============================================
   CHARTS / DATA CONTAINERS
   ============================================= */

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
}

.chart-legend {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-area {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    margin: 0 2px;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    background: var(--gradient-brand);
    transition: opacity var(--transition-base);
    min-height: 4px;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
}

/* =============================================
   PROGRESS / DATA VISUAL
   ============================================= */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-circular {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-circular svg {
    transform: rotate(-90deg);
}

.progress-circular-value {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

/* =============================================
   LIST STYLES
   ============================================= */

.list-group {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.list-group-item {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background var(--transition-base);
    background: var(--bg-card);
}

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

.list-group-item:hover {
    background: var(--bg-surface);
}

.list-group-item.active {
    background: rgba(var(--color-primary-rgb), 0.08);
    border-left: 3px solid var(--color-primary);
}

/* =============================================
   TAG CLOUD
   ============================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.35em 0.85em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: default;
}

.tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.06);
}

.tag-removable {
    cursor: pointer;
}

.tag-removable .tag-close {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.tag-removable:hover .tag-close {
    opacity: 1;
}

/* =============================================
   AVATAR
   ============================================= */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-brand);
    color: var(--text-inverse);
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-xs { width: 24px; height: 24px; font-size: 0.6rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }

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

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 2px solid var(--bg-deep);
    margin-left: -8px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* =============================================
   TOGGLE / SWITCH
   ============================================= */

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.toggle-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: all var(--transition-base);
}

.toggle input:checked + .toggle-track {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(22px);
    background: #fff;
}

/* =============================================
   DROPDOWN
   ============================================= */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    padding: var(--space-xs);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-xs) 0;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

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

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    animation: toast-in 0.4s ease;
    font-size: 0.9rem;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* =============================================
   RESPONSIVE GRID HELPERS
   ============================================= */

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* =============================================
   UTILITY CLASSES
   ============================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary-color { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }

.bg-card { background: var(--bg-card); }
.bg-surface { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.w-full { width: 100%; }
.hidden { display: none !important; }

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover glow effect for interactive cards */
.glow-hover {
    position: relative;
}

.glow-hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-brand);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
    filter: blur(12px);
}

.glow-hover:hover::before {
    opacity: 0.3;
}

/* =============================================
   RESPONSIVE: TABLET (768px)
   ============================================= */

@media (min-width: 768px) {
    :root {
        --space-md: 1.125rem;
    }

    .container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .site-header .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    article.content h2 {
        font-size: 2rem;
    }

    article.content h3 {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 2.25rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

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

    .footer-nav {
        gap: var(--space-sm) var(--space-xl);
    }

    .toast-container {
        right: var(--space-xl);
    }

    .modal {
        max-width: 560px;
    }
}

/* =============================================
   RESPONSIVE: DESKTOP (1024px)
   ============================================= */

@media (min-width: 1024px) {
    .hero {
        padding: 8rem var(--space-xl) var(--space-3xl);
    }

    .hero h1 {
        font-size: 3.75rem;
    }

    .site-header .brand img {
        height: 44px;
    }

    article.content {
        padding: var(--space-3xl) var(--space-md);
    }

    .cta-section {
        padding: var(--space-4xl) var(--space-md);
    }

    .cta-section h2 {
        font-size: 2.75rem;
    }

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

    .section-title h2 {
        font-size: 2.5rem;
    }

    .footer-nav {
        gap: var(--space-md) var(--space-2xl);
    }
}

/* =============================================
   LARGE DESKTOP (1280px+)
   ============================================= */

@media (min-width: 1280px) {
    .hero h1 {
        font-size: 4.25rem;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .hamburger,
    .btn-login,
    .btn-register,
    .cta-button,
    .cta-section .btn-cta,
    .cta-section,
    .toast-container,
    .modal-overlay,
    nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0;
        background: none !important;
    }

    .hero h1 {
        font-size: 24pt;
        background: none;
        -webkit-text-fill-color: #111;
        color: #111;
    }

    article.content {
        max-width: 100%;
        padding: 0;
    }

    article.content h2,
    article.content h3 {
        color: #111;
        page-break-after: avoid;
    }

    article.content p,
    article.content li {
        color: #333;
    }

    article.content a {
        color: #111;
        text-decoration: underline;
    }

    article.content table {
        border: 1px solid #ccc;
    }

    article.content th,
    article.content td {
        border: 1px solid #ddd;
        padding: 6px 10px;
    }

    article.content thead {
        background: #eee;
    }

    article.content thead th {
        color: #111;
    }

    .faq-answer {
        max-height: none !important;
        padding: 0 1rem 1rem !important;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */

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

    html {
        scroll-behavior: auto;
    }
}

/* =============================================
   HIGH CONTRAST
   ============================================= */

@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.3);
        --border-medium: rgba(255, 255, 255, 0.5);
        --text-muted: #B0C4DE;
    }

    .btn-login {
        border-width: 3px;
    }
}