@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 {
    --primary: #884EFF;
    --primary-light: #A478FF;
    --primary-dark: #6B2FD9;
    --primary-glow: rgba(136, 78, 255, 0.35);
    --secondary: #64BAFF;
    --secondary-light: #8CCFFF;
    --secondary-dark: #3AA0F0;
    --secondary-glow: rgba(100, 186, 255, 0.3);
    --accent: #FFB84D;
    --accent-light: #FFCF80;
    --accent-dark: #E89A20;
    --accent-glow: rgba(255, 184, 77, 0.35);
    --success: #34D399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --warning: #FBBF24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --danger: #F87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --info: #60A5FA;
    --info-bg: rgba(96, 165, 250, 0.12);
    --bg-deep: #0A0F24;
    --bg-base: #111B3C;
    --bg-card: #162042;
    --bg-surface: #1C2952;
    --bg-elevated: #243362;
    --bg-input: #0E1630;
    --border-subtle: rgba(100, 186, 255, 0.08);
    --border-default: rgba(100, 186, 255, 0.14);
    --border-strong: rgba(136, 78, 255, 0.3);
    --text-primary: #F0F4FF;
    --text-secondary: #B0BFE0;
    --text-muted: #7A8CB5;
    --text-disabled: #4A5A80;
    --gradient-brand: linear-gradient(135deg, #884EFF 0%, #64BAFF 100%);
    --gradient-brand-reverse: linear-gradient(135deg, #64BAFF 0%, #884EFF 100%);
    --gradient-warm: linear-gradient(135deg, #884EFF 0%, #FFB84D 100%);
    --gradient-hero: linear-gradient(160deg, #0A0F24 0%, #111B3C 30%, #1A1045 60%, #111B3C 100%);
    --gradient-card: linear-gradient(180deg, rgba(136, 78, 255, 0.06) 0%, transparent 100%);
    --gradient-cta: linear-gradient(135deg, #FFB84D 0%, #FF8C42 100%);
    --gradient-surface: linear-gradient(180deg, #162042 0%, #111B3C 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.45);
    --shadow-glow-primary: 0 0 30px rgba(136, 78, 255, 0.25);
    --shadow-glow-secondary: 0 0 30px rgba(100, 186, 255, 0.2);
    --shadow-glow-accent: 0 0 30px rgba(255, 184, 77, 0.25);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 500;
    --z-modal: 600;
    --z-toast: 700;
    --z-tooltip: 800;
    --z-header: 900;
    --z-mobile-menu: 950;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

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

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

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

ul, ol {
    list-style: none;
}

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

::selection {
    background: rgba(136, 78, 255, 0.4);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 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(--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-width: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(10, 15, 36, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(10, 15, 36, 0.96);
    border-bottom-color: var(--border-default);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(136, 78, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: opacity var(--transition-base);
}

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

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

.site-header .nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    list-style: none;
}

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

.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-smooth);
}

.site-header .nav-links li a:hover,
.site-header .nav-links li a.active {
    color: var(--text-primary);
    background: rgba(136, 78, 255, 0.1);
}

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

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

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-login:hover {
    border-color: var(--secondary);
    background: rgba(100, 186, 255, 0.08);
    color: var(--secondary-light);
    box-shadow: 0 0 20px rgba(100, 186, 255, 0.1);
}

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

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: #fff;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 16px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.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 6px 24px var(--primary-glow), var(--shadow-glow-primary);
}

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

.btn-register:active {
    transform: translateY(0) scale(0.97);
}

/* =========================================
   CTA BUTTON
   ========================================= */

.cta-button,
.cta-section .btn-cta,
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--bg-deep);
    background: var(--gradient-cta);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 20px var(--accent-glow);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
}

.cta-button::after,
.cta-section .btn-cta::after,
.btn-cta::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(-25deg);
    transition: left 0.6s ease;
}

.cta-button:hover,
.cta-section .btn-cta:hover,
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow), 0 0 40px rgba(255, 184, 77, 0.15);
    filter: brightness(1.08);
}

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

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

.cta-button:focus-visible,
.cta-section .btn-cta:focus-visible,
.btn-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

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

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-default);
    z-index: var(--z-mobile-menu);
    padding: 80px 24px 40px;
    transition: right var(--transition-smooth);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    margin-bottom: 2px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--text-primary);
    background: rgba(136, 78, 255, 0.12);
    padding-left: 24px;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(136, 78, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroOrb1 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(100, 186, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroOrb2 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes heroOrb1 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.25) translate(-30px, 20px); opacity: 1; }
}

@keyframes heroOrb2 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.15) translate(20px, -15px); opacity: 0.9; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-light) 45%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

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

article.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

article.content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

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

article.content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

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

article.content ul,
article.content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

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

article.content ol {
    list-style: decimal;
}

article.content li {
    padding: 0.35rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

article.content li::marker {
    color: var(--primary-light);
}

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

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

article.content a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(100, 186, 255, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-base);
}

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

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

article.content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-default);
    font-size: 0.875rem;
}

article.content thead {
    background: var(--bg-surface);
}

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

article.content th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-default);
    white-space: nowrap;
}

article.content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

article.content tbody tr:hover {
    background: rgba(136, 78, 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-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.faq-item.open {
    border-color: var(--border-strong);
    box-shadow: 0 0 20px rgba(136, 78, 255, 0.08);
}

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

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

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
    line-height: 1;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 20px 20px;
}

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

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

.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-base);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(136, 78, 255, 0.15) 0%, transparent 65%),
                radial-gradient(ellipse at 30% 80%, rgba(100, 186, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 2;
}

.cta-section .btn-cta {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    padding: 16px 40px;
}

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

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 24px;
    margin-top: auto;
}

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

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

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

.footer-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 20px;
    padding: 16px;
    background: rgba(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.1);
    border-radius: var(--radius);
}

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-disabled);
}

/* =========================================
   ADDITIONAL COMPONENTS — CARDS
   ========================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

.card-featured {
    background: var(--gradient-card);
    border-color: var(--border-strong);
}

.card-featured::before {
    opacity: 1;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    line-height: 1.4;
    white-space: nowrap;
}

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

.badge-secondary {
    background: rgba(100, 186, 255, 0.12);
    color: var(--secondary-light);
    border: 1px solid rgba(100, 186, 255, 0.2);
}

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

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

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

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(52, 211, 153, 0.25);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    border-color: rgba(96, 165, 250, 0.25);
    color: var(--info);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    outline: none;
    appearance: none;
}

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

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

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

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

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

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

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

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

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

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

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

.tab-panel {
    display: none;
}

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

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

/* =========================================
   MODALS
   ========================================= */

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

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

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

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

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
}

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

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

.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    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-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}

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

.pagination-item:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(136, 78, 255, 0.1);
}

.pagination-item.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px var(--primary-glow);
}

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

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

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    font-size: 0.85rem;
}

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

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

.breadcrumbs .separator {
    color: var(--text-disabled);
    font-size: 0.7rem;
}

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

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

.stat-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.stat-block:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-block .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-block .stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

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

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

.testimonial-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}

.testimonial-block::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(136, 78, 255, 0.12);
    font-family: Georgia, serif;
}

.testimonial-block .rating {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-block blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-block .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-block .author-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: #fff;
    flex-shrink: 0;
}

.testimonial-block .author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

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

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

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

.media-container .media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 36, 0.85) 100%);
    pointer-events: none;
}

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

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

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

/* =========================================
   CHART/DATA CONTAINERS
   ========================================= */

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border-default);
}

.data-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table-wrapper th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-default);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.data-table-wrapper td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.data-table-wrapper tbody tr:nth-child(even) {
    background: rgba(136, 78, 255, 0.02);
}

.data-table-wrapper tbody tr:hover {
    background: rgba(136, 78, 255, 0.06);
}

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

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

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

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

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

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

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

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 100%;
}

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

.skeleton-heading {
    height: 24px;
    margin-bottom: 16px;
    width: 45%;
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    background: rgba(136, 78, 255, 0.12);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    border: 1px solid rgba(136, 78, 255, 0.2);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.divider {
    height: 1px;
    background: var(--border-subtle);
    border: none;
    margin: 32px 0;
}

.divider-gradient {
    height: 2px;
    background: var(--gradient-brand);
    border: none;
    margin: 40px 0;
    border-radius: var(--radius-full);
    opacity: 0.3;
}

.divider-with-text {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

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

.code-block {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

.code-inline {
    display: inline;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    padding: 2px 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    color: var(--primary-light);
}

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

.secondary-nav {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.secondary-nav::-webkit-scrollbar {
    display: none;
}

.secondary-nav a {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
    text-align: center;
}

.secondary-nav a:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.secondary-nav a.active {
    color: var(--text-primary);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   LISTS
   ========================================= */

.list-styled {
    list-style: none;
}

.list-styled li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.list-styled li:last-child {
    border-bottom: none;
}

.list-styled li .list-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(136, 78, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.list-check li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =========================================
   BUTTONS — VARIANTS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
    background: rgba(100, 186, 255, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(100, 186, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(100, 186, 255, 0.2);
    border-color: var(--secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-default);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(136, 78, 255, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

.btn-outline:hover {
    border-color: var(--secondary);
    background: rgba(100, 186, 255, 0.08);
    color: var(--secondary-light);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================
   PROGRESS BAR
   ========================================= */

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

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

/* =========================================
   TAGS / CHIPS
   ========================================= */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.tag:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.tag .tag-close {
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.9rem;
    transition: opacity var(--transition-fast);
}

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

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

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease;
}

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

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast-info {
    border-left: 3px solid var(--info);
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-deep);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.switch input:checked + .switch-slider {
    background: rgba(136, 78, 255, 0.2);
    border-color: var(--primary);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(22px);
    background: var(--primary);
}

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

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

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

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

.dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(136, 78, 255, 0.1);
    color: var(--text-primary);
}

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

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

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

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-md {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
}

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

/* =========================================
   GRID UTILITIES
   ========================================= */

.grid {
    display: grid;
    gap: 16px;
}

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

/* =========================================
   SPACING UTILITIES
   ========================================= */

.section-padding {
    padding: 60px 0;
}

.section-padding-lg {
    padding: 80px 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* =========================================
   TEXT UTILITIES
   ========================================= */

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

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-brand { color: var(--primary); }

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* =========================================
   ANIMATIONS — GLOBAL
   ========================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

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

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

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

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

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

    article.content {
        padding: 60px 24px;
    }

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

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

    .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: 16px 32px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-padding-lg {
        padding: 100px 0;
    }

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

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

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hamburger {
        display: none;
    }

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

    .mobile-menu {
        display: none;
    }

    .hero {
        padding: 140px 0 100px;
    }

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

    .cta-section {
        padding: 100px 0;
    }

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

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

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

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

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

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

    .grid {
        gap: 24px;
    }

    .section-padding {
        padding: 100px 0;
    }

    .section-padding-lg {
        padding: 120px 0;
    }

    .footer-nav {
        gap: 16px 40px;
    }

    .site-footer {
        padding: 60px 0 28px;
    }

    .toast-container {
        bottom: 24px;
        right: 24px;
    }
}

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

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

    .container {
        padding: 0 40px;
    }
}

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

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

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

    .hero {
        min-height: auto;
        padding: 20pt 0;
        background: none;
    }

    .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;
    }

    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 {
        background: #eee;
        color: #111;
        border-bottom: 2px solid #999;
    }

    article.content td {
        border-bottom: 1px solid #ddd;
        color: #333;
    }

    .card,
    .stat-block,
    .testimonial-block,
    .faq-item {
        border: 1px solid #ccc;
        background: #fff;
        box-shadow: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
}

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

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

    .fade-up,
    .fade-in,
    .scale-in {
        opacity: 1;
        transform: none;
    }
}

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

@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.2);
        --border-default: rgba(255, 255, 255, 0.35);
        --text-muted: #9EAFD0;
    }
}

/* =========================================
   FOCUS-VISIBLE (global enhancement)
   ========================================= */

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

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