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

:root {
    --primary: #884EFF;
    --primary-light: #A678FF;
    --primary-dark: #6B2FE0;
    --primary-ultra-dark: #4A1DB0;
    --secondary: #64BAFF;
    --secondary-light: #8CCFFF;
    --secondary-dark: #3DA5F5;
    --accent: #FFB443;
    --accent-light: #FFC96E;
    --accent-dark: #E89A20;
    --success: #2EE6A8;
    --success-dark: #1BBF8A;
    --warning: #FFD166;
    --danger: #FF6B81;
    --danger-dark: #E5445E;
    --info: #64BAFF;
    --bg-dark: #111B3C;
    --bg-darker: #0A1228;
    --bg-card: #172044;
    --bg-surface: #1D2A52;
    --bg-elevated: #243363;
    --bg-input: #0E1630;
    --text-primary: #FFFFFF;
    --text-secondary: #9AA8CC;
    --text-muted: #6B7AA0;
    --text-inverse: #111B3C;
    --border-subtle: rgba(136, 78, 255, 0.12);
    --border-default: rgba(136, 78, 255, 0.2);
    --border-strong: rgba(136, 78, 255, 0.4);
    --glow-primary: rgba(136, 78, 255, 0.35);
    --glow-secondary: rgba(100, 186, 255, 0.3);
    --glow-accent: rgba(255, 180, 67, 0.3);
    --gradient-hero: linear-gradient(155deg, #0A1228 0%, #172044 35%, #1D2A52 65%, #111B3C 100%);
    --gradient-cta: linear-gradient(135deg, #FFB443 0%, #FF9500 50%, #E89A20 100%);
    --gradient-primary: linear-gradient(135deg, #884EFF 0%, #64BAFF 100%);
    --gradient-card: linear-gradient(160deg, #1D2A52 0%, #172044 100%);
    --gradient-dark: linear-gradient(180deg, #111B3C 0%, #0A1228 100%);
    --gradient-surface: linear-gradient(145deg, #243363 0%, #1D2A52 100%);
    --gradient-neon: linear-gradient(135deg, #884EFF 0%, #FF6B81 50%, #FFB443 100%);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(10, 18, 40, 0.3);
    --shadow-md: 0 8px 24px rgba(10, 18, 40, 0.4);
    --shadow-lg: 0 16px 48px rgba(10, 18, 40, 0.5);
    --shadow-xl: 0 24px 64px rgba(10, 18, 40, 0.6);
    --shadow-glow: 0 0 40px var(--glow-primary);
    --shadow-cta: 0 8px 32px var(--glow-accent);
    --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.175, 0.885, 0.32, 1.275);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    --z-header: 600;
    --z-mobile-menu: 550;
    --z-notification: 700;
}

/* ===== RESET ===== */
*,
*::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-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

/* ===== UTILITY ===== */
.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: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

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

:focus:not(:focus-visible) {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(136, 78, 255, 0.4);
    color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: var(--radius-full);
}

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

/* ===== TYPOGRAPHY ===== */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

small {
    font-size: 0.875rem;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ===== SITE HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(17, 27, 60, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 18, 40, 0.97);
    border-bottom-color: var(--border-default);
    box-shadow: 0 4px 40px rgba(136, 78, 255, 0.1), 0 1px 0 rgba(100, 186, 255, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

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

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

.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-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.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.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ===== HEADER BUTTONS ===== */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.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;
    color: var(--text-inverse);
    background: var(--gradient-cta);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 16px var(--glow-accent);
    position: relative;
    overflow: hidden;
}

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

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--glow-accent);
}

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

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

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    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);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-menu);
    background: rgba(10, 18, 40, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

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

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.mobile-menu a.active {
    border-left: 3px solid var(--primary);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 90px 16px 60px;
    background: var(--gradient-hero);
    overflow: hidden;
}

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

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

@keyframes heroOrbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--secondary-light) 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== ARTICLE CONTENT ===== */
article.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}

article.content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
}

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

article.content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

article.content ul,
article.content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

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

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

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

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

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

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

article.content li {
    margin-bottom: 10px;
}

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

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

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

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

/* ===== ARTICLE TABLES ===== */
article.content table {
    width: 100%;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

article.content thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

article.content thead th {
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

article.content tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

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

article.content tbody tr:nth-child(odd) {
    background: rgba(23, 32, 68, 0.5);
}

article.content tbody tr:hover {
    background: rgba(136, 78, 255, 0.08);
}

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

article.content th,
article.content td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
}

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

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

/* ===== CTA BUTTON ===== */
.cta-button,
.cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-inverse);
    background: var(--gradient-cta);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.cta-button::before,
.cta-section .btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover,
.cta-section .btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px var(--glow-accent), 0 0 20px rgba(255, 180, 67, 0.15);
}

.cta-button:hover::before,
.cta-section .btn-cta:hover::before {
    left: 100%;
}

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

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 64px 16px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    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-fast);
    line-height: 1.4;
}

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

.faq-question .faq-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
}

.faq-item.active .faq-icon,
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 16px 24px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.4;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

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

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

/* ======================================================================
   REUSABLE COMPONENTS — Future-proof
   ====================================================================== */

/* ===== GENERIC BUTTONS ===== */
.btn,
[class*="btn-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-inverse);
    background: var(--gradient-cta);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--glow-accent);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(136, 78, 255, 0.15);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
}

.btn-secondary:hover {
    background: rgba(136, 78, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

.btn-outline {
    padding: 12px 28px;
    font-size: 0.9375rem;
    color: var(--secondary);
    background: transparent;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
}

.btn-outline:hover {
    background: rgba(100, 186, 255, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 10px 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-sm);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    background: rgba(136, 78, 255, 0.12);
    color: var(--primary-light);
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: rgba(136, 78, 255, 0.25);
}

.btn:disabled,
.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ===== CARDS ===== */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(136, 78, 255, 0.08);
}

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

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.card-game {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card-game img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-game:hover img {
    transform: scale(1.08);
}

.card-game .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 18, 40, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-game:hover .card-overlay {
    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);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

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

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

.badge-success {
    background: rgba(46, 230, 168, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 230, 168, 0.25);
}

.badge-danger {
    background: rgba(255, 107, 129, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 129, 0.25);
}

.badge-warning {
    background: rgba(255, 209, 102, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 209, 102, 0.25);
}

.badge-live {
    background: rgba(255, 56, 56, 0.15);
    color: #FF5656;
    border: 1px solid rgba(255, 56, 56, 0.25);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(255, 56, 56, 0); }
}

.badge-new {
    background: var(--gradient-neon);
    color: white;
    border: none;
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

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

.alert-success {
    background: rgba(46, 230, 168, 0.1);
    border: 1px solid rgba(46, 230, 168, 0.2);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.2);
    color: var(--warning);
}

.alert-danger {
    background: rgba(255, 107, 129, 0.1);
    border: 1px solid rgba(255, 107, 129, 0.2);
    color: var(--danger);
}

.alert-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    padding: 4px;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* ===== FORMS & INPUTS ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

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

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

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

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

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

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

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

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

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA8CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

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

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

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    white-space: nowrap;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 0.9375rem;
    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-fast);
    margin-bottom: -1px;
}

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

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}

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

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

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

.accordion-item.open {
    border-color: var(--primary-light);
}

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

.accordion-header:hover {
    background: rgba(136, 78, 255, 0.05);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-item.open .accordion-body {
    max-height: 600px;
}

.accordion-body-inner {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop);
    background: rgba(10, 18, 40, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: var(--z-modal);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

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

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 24px 24px;
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    font-size: 0.8125rem;
    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-fast);
    z-index: var(--z-tooltip);
    box-shadow: var(--shadow-md);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    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: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.pagination-item.active {
    color: var(--text-primary);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--glow-primary);
}

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

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

.breadcrumbs .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== LISTS ===== */
.list {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

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

.list-item:hover {
    background: rgba(136, 78, 255, 0.04);
}

.list-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 78, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.list-item-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

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

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

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

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

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

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

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

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin: 0 10px;
    opacity: 0.4;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--text-primary);
}

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

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

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

.divider-label {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* ===== CODE BLOCKS ===== */
.code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--secondary-light);
    margin: 16px 0;
}

.code-inline {
    display: inline;
    padding: 2px 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    color: var(--accent);
    background: rgba(255, 180, 67, 0.1);
    border-radius: var(--radius-xs);
}

/* ===== STAT BLOCKS ===== */
.stat-block {
    text-align: center;
    padding: 20px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.stat-block:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.stat-block-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-block-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.stat-block-change {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 4px;
}

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

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

/* ===== TESTIMONIAL BLOCKS ===== */
.testimonial-block {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    position: relative;
}

.testimonial-block::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

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

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

.testimonial-block-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-block-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

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

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

/* ===== MEDIA CONTAINERS ===== */
.media-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}

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

.media-container .media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 18, 40, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

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

.media-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px var(--glow-primary);
}

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

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

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

/* ===== SECONDARY NAVIGATION ===== */
.nav-secondary {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: 24px;
}

.nav-secondary-item {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.nav-secondary-item.active {
    color: var(--text-primary);
    background: var(--primary);
    box-shadow: 0 4px 12px var(--glow-primary);
}

/* ===== CHARTS & DATA CONTAINERS ===== */
.chart-container {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.chart-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

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

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ===== PROGRESS BAR ===== */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.progress-bar.accent {
    background: var(--gradient-cta);
}

.progress-bar.success {
    background: linear-gradient(135deg, var(--success-dark), var(--success));
}

/* ===== TAGS / CHIPS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: default;
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--border-default);
    color: var(--text-primary);
}

.tag-removable {
    cursor: pointer;
}

.tag-remove {
    width: 16px;
    height: 16px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.tag-remove:hover {
    background: rgba(255, 107, 129, 0.3);
}

/* ===== AVATAR ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

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

.avatar-group {
    display: flex;
}

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

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

/* ===== NOTIFICATION DOT ===== */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-notification);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* ===== SWITCH / TOGGLE ===== */
.switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

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

.switch-track {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

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

.switch input:checked + .switch-track::after {
    transform: translateX(22px);
    background: white;
}

/* ===== TABLE (standalone) ===== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table thead {
    background: linear-gradient(135deg, rgba(136, 78, 255, 0.15), rgba(100, 186, 255, 0.1));
}

.table thead th {
    padding: 14px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-light);
    text-align: left;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 18px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

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

.table tbody tr:nth-child(odd) {
    background: rgba(23, 32, 68, 0.3);
}

.table tbody tr:hover {
    background: rgba(136, 78, 255, 0.07);
}

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

/* ===== PRICE TABLE / COMPARISON ===== */
.price-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.price-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--gradient-cta);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
}

.price-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
}

.price-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

.scale-in {
    animation: scaleIn 0.4s var(--transition-spring) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== MEDIA QUERIES ===== */

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-header .container {
        height: 72px;
    }

    .mobile-menu {
        top: 72px;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    h1, .h1 { font-size: 3rem; }
    h2, .h2 { font-size: 2.25rem; }
    h3, .h3 { font-size: 1.75rem; }

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

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

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

    .faq-question {
        font-size: 1.0625rem;
    }

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

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .modal {
        width: 85%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-header .container {
        height: 76px;
    }

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

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .hero {
        padding: 120px 32px 100px;
    }

    .hero h1 {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }

    h1, .h1 { font-size: 3.25rem; }
    h2, .h2 { font-size: 2.5rem; }

    article.content {
        padding: 80px 0 100px;
    }

    .section-title {
        font-size: clamp(2rem, 3.5vw, 2.75rem);
    }

    .faq-question {
        font-size: 1.125rem;
    }

    .site-footer {
        padding: 56px 32px 32px;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    h1, .h1 { font-size: 3.5rem; }

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

/* ===== PRINT ===== */
@media print {
    .site-header,
    .hamburger,
    .mobile-menu,
    .site-footer,
    .footer-nav,
    .footer-disclaimer,
    .footer-copy,
    .cta-button,
    .cta-section,
    .btn-login,
    .btn-register,
    .btn-primary,
    .btn-secondary,
    .nav-desktop,
    .nav-links,
    .nav-secondary,
    .ticker-bar,
    .hero-ctas,
    .toast,
    .modal,
    .modal-backdrop {
        display: none !important;
    }

    body {
        background: white;
        color: #111;
        font-size: 12pt;
    }

    .hero {
        background: white !important;
        min-height: auto;
        padding: 20px 0;
    }

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

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

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

    article.content a::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }

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

    article.content th,
    article.content td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    article.content thead {
        background: #f5f5f5 !important;
    }

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

/* ===== REDUCED MOTION ===== */
@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* ===== HIGH CONTRAST ===== */
@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.2);
        --border-default: rgba(255, 255, 255, 0.35);
        --text-secondary: #C8D0E8;
        --text-muted: #8A96B8;
    }
}