/* ==========================================================================
   CYORIA SMP — Dojo-Inspired Design System
   Clean · Glass · Premium
   ========================================================================== */

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

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

:root {
    --bg: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-elevated: #1a1a24;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-muted: rgba(59, 130, 246, 0.12);
    --primary-border: rgba(59, 130, 246, 0.25);
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-th: 'Kanit', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 24px;
    --radius-sm: 12px;
    --radius-pill: 99px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    outline: none;
    transition: border var(--transition);
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-border);
    box-shadow: 0 0 0 3px var(--primary-muted);
}
::placeholder { color: var(--text-muted); }

/* ===================== BACKGROUND ===================== */

.background-effect {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 70vh;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.bg-mesh { display: none; } /* replaced by background-effect */

/* ===================== CONTAINER ===================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-sm { max-width: 900px; }
.container-lg { max-width: 1400px; }
.w-full { width: 100%; }

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.hide-mobile { display: flex; }
.show-mobile { display: none; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-primary { color: var(--primary); }

/* ===================== BADGE ===================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
}
.badge-primary {
    background: var(--primary-muted);
    border-color: var(--primary-border);
    color: var(--primary-hover);
}
.badge-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--success);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
    color: var(--text);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.btn-icon:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
    color: var(--text);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== NAVBAR ===================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 1.5rem;
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-left {
    flex-shrink: 0;
}
.nav-logo-img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    object-fit: contain;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}
.nav-brand-name {
    font-family: var(--font-th);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.2;
}
.nav-brand-sub {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
}
.nav-center {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
}
.nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.nav-right {
    gap: 0.75rem;
}
.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.status-dot.loading { background: var(--text-muted); }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}
.lang-btn {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}
.lang-btn:hover:not(.active) { color: var(--text); }

.btn-hamburger {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition);
}
.btn-hamburger:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

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

.section {
    padding: 4rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--primary-muted);
    border: 1px solid var(--primary-border);
    color: var(--primary-hover);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-th);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.section-title em { font-style: normal; color: var(--primary); }
.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.hero {
    padding: 6rem 0 3rem;
}
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.hero-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero-title {
    font-family: var(--font-th);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}
.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 480px;
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
}
.hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0.6;
}
.hero-stat-val {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.hero-stat-lbl {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.hero-stat-div {
    width: 1px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-logo-ring {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-ring-inner, .hero-logo-ring-outer {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: ring-spin 30s linear infinite;
}
.hero-logo-ring-inner { inset: 0; }
.hero-logo-ring-outer {
    inset: -20px;
    border-color: rgba(59, 130, 246, 0.08);
    animation: ring-spin 20s linear infinite reverse;
}
@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-logo-box {
    width: 180px;
    height: 180px;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.hero-logo-box img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.hero-tps-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 10;
}
.hero-tps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ===================== CARD ===================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
}

/* ===================== IP BOX ===================== */

.ip-box {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.375rem;
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}
.ip-box-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ip-label {
    font-size: 0.675rem;
    color: var(--text-muted);
}
.ip-address {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9375rem;
}
.btn-copy {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-copy:hover {
    background: var(--primary-hover);
}

/* ===================== EMPERORS ===================== */

.emperors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.emperor-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}
.emperor-card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
}
.emperor-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.emperor-icon.blue { background: rgba(59, 130, 246, 0.12); }
.emperor-icon.red { background: rgba(239, 68, 68, 0.12); }
.emperor-icon.amber { background: rgba(245, 158, 11, 0.12); }
.emperor-icon.green { background: rgba(16, 185, 129, 0.12); }
.emperor-icon.purple { background: rgba(139, 92, 246, 0.12); }
.emperor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.emperor-meta {
    display: flex;
    flex-direction: column;
}
.emperor-rank {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.emperor-name {
    font-family: var(--font-th);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}
.emperor-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}
.emperor-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.emperor-tag {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.emperor-card:first-child .emperor-icon {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
}
.emperor-card:first-child .emperor-name {
    font-size: 1.5rem;
}

/* ===================== FEATURES ===================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.feature-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--primary-muted);
    border: 1px solid var(--primary-border);
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.feature-title {
    font-family: var(--font-th);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}
.feature-footer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transition: all var(--transition);
}
.feature-card:hover .feature-footer {
    opacity: 1;
}

/* ===================== COMMUNITY ===================== */

.discord-wrap {
    display: flex;
    justify-content: center;
}
.discord-card {
    padding: 1rem;
}
.discord-card iframe {
    border-radius: var(--radius-sm);
    border: none;
}

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

.cta-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.cta-title {
    font-family: var(--font-th);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}
.cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    position: relative;
}
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

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

.footer {
    margin-top: 60px;
    padding: 2rem 0;
}
.footer-card {
    padding: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-th);
    font-weight: 900;
    font-size: 1.125rem;
    color: #fff;
    flex-shrink: 0;
}
.footer-brand-name {
    font-family: var(--font-th);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}
.footer-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}
.footer-desc a { color: var(--primary); }
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--primary); font-weight: 600; }
.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition);
}
.footer-socials a:hover { color: var(--text); }

/* ===================== MOBILE DRAWER ===================== */

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}
.mobile-drawer-header img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
}
.mobile-drawer-close {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition);
}
.mobile-drawer-close:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-th);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.mobile-drawer-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.mobile-drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-lang-row span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.mobile-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    background: rgba(88, 101, 242, 0.10);
    border: 1px solid rgba(88, 101, 242, 0.20);
    color: #8b9cf7;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
}
.mobile-discord-btn:hover {
    background: rgba(88, 101, 242, 0.18);
}

/* ===================== PAGE WRAPPER ===================== */

.page-section {
    padding-top: 100px;
    padding-bottom: 3rem;
    min-height: 80vh;
}
.page-header {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.page-header h1 {
    font-family: var(--font-th);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ===================== AUTH ===================== */

.cyauth-group { position: relative; }
.cyauth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.8125rem;
}
.cyauth-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.08);
}
.cyauth-btn img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
}
.cyauth-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.375rem;
    width: 12rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
    overflow: hidden;
}
.cyauth-group:hover .cyauth-dropdown {
    opacity: 1;
    visibility: visible;
}
.cyauth-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    transition: all 0.15s;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.cyauth-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.cyauth-item.danger { color: var(--danger); }
.cyauth-item.danger:hover { color: #f87171; }

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

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
    max-width: 400px;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-close {
    color: var(--text-muted);
    font-size: 1.125rem;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* ===================== COOKIE ===================== */

.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 300;
    max-width: 520px;
    width: calc(100% - 2rem);
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cookie-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cookie-popup p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}
.cookie-popup a { color: var(--primary); text-decoration: underline; }

/* ===================== PORTAL ===================== */

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.portal-stat-card {
    text-align: center;
    padding: 1.5rem;
}
.portal-stat-val {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}
.portal-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
.player-list {
    max-height: 300px;
    overflow-y: auto;
}
.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.player-item:last-child { border-bottom: none; }
.player-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===================== STORE ===================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
}
.product-card .hot-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.product-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.product-title {
    font-family: var(--font-th);
    font-weight: 700;
    font-size: 1.125rem;
}
.product-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.product-price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.product-features li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.category-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.category-tab:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* ===================== DASHBOARD ===================== */

.dash-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    min-height: 60vh;
}
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    height: fit-content;
}
.dash-sidebar-item {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
    font-size: 0.875rem;
}
.dash-sidebar-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.dash-sidebar-item.active {
    background: var(--primary-muted);
    color: var(--primary-hover);
}
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.dash-panel-title {
    font-family: var(--font-th);
    font-size: 1.25rem;
    font-weight: 700;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
}
.data-table th {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===================== SCROLLBAR ===================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ===================== ANIMATION ===================== */

.section-enter {
    opacity: 0;
    transform: translateY(24px);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1023px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex; }

    .nav-center { display: none; }
    .nav-status { display: none; }
    .btn-hamburger { display: flex; }
    .lang-toggle.hide-mobile { display: none !important; }

    .hero-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-sub, .hero-desc { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }

    .emperors-grid { grid-template-columns: 1fr; }
    .emperor-card:first-child { flex-direction: column; text-align: center; }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand { align-items: center; }
    .footer-desc { margin: 0 auto; }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .portal-grid { grid-template-columns: 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-brand-sub { display: none; }
    .container { padding: 0 1rem; }
    .hero { padding: 5rem 0 2rem; }
    .hero-title { font-size: 2rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .cta-card { padding: 2rem 1.25rem; }
    .cta-title { font-size: 1.5rem; }
    .page-section { padding-top: 80px; }
}

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

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

/* ===================== PAGE-SPECIFIC ===================== */

/* Index status strip */
.server-strip {
    padding: 0;
}

/* Voice Page */
.voice-page { padding-top: 96px; padding-bottom: 2rem; min-height: 100vh; display: flex; flex-direction: column; }
.voice-card { max-width: 800px; margin: 0 auto; width: 100%; }
.v-status-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--border); margin-bottom: 1.25rem; }
.v-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.v-status-dot.offline { background: var(--danger); }
.v-status-dot.connecting { background: var(--warning); animation: pulse-dot 1s infinite; }
.v-status-dot.online { background: var(--success); }
.v-status-text { font-size: 0.8125rem; font-weight: 500; }
.v-status-sub { font-size: 0.75rem; color: var(--text-muted); }
.v-controls { display: flex; gap: 0.75rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.v-btn { width: 3.5rem; height: 3.5rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); font-size: 1.125rem; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.v-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
.v-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.v-btn.danger.active { background: var(--danger); border-color: var(--danger); }
.v-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.v-sld-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0; }
.v-sld-row label { font-size: 0.8125rem; color: var(--text-muted); min-width: 6rem; }
.v-sld { flex: 1; -webkit-appearance: none; height: 4px; border-radius: 2px; background: var(--border); outline: none; }
.v-sld::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.v-sld-val { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-secondary); min-width: 2.5rem; text-align: right; }
.v-select { width: 100%; padding: 0.625rem 0.75rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.875rem; outline: none; cursor: pointer; }
.v-select option { background: #1a1a1a; color: #ffffff; }
.v-select:focus { border-color: var(--primary-border); }
.v-activity { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--border); margin: 1rem 0; }
.v-activity-bars { display: flex; align-items: center; gap: 2px; height: 24px; }
.v-activity-bars span { width: 3px; background: var(--primary); border-radius: 2px; transition: height 0.1s; }
.v-activity-label { font-size: 0.8125rem; color: var(--text-muted); }
.v-players { display: flex; flex-direction: column; gap: 0.375rem; }
.v-player { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.v-player-info { display: flex; align-items: center; gap: 0.625rem; }
.v-player-head { width: 1.5rem; height: 1.5rem; border-radius: 4px; background: var(--bg-elevated); }
.v-player-name { font-size: 0.8125rem; font-weight: 500; }
.v-player-tag { font-size: 0.6875rem; color: var(--text-muted); padding: 0.125rem 0.375rem; border-radius: 4px; background: var(--border); }
.v-player-speaking { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.v-player-speaking.on { background: var(--success); animation: pulse-dot 1s infinite; }
.v-player-vol { width: 0; display: flex; align-items: center; gap: 0.5rem; }
.v-player-vol input { width: 64px; -webkit-appearance: none; height: 3px; background: var(--border); border-radius: 2px; outline: none; }
.v-player-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); cursor: pointer; }
.v-login-card { max-width: 420px; margin: 0 auto; width: 100%; }
.v-field { width: 100%; padding: 0.75rem 1rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.9375rem; outline: none; transition: border var(--transition); }
.v-field:focus { border-color: var(--primary-border); }
.v-field::placeholder { color: var(--text-muted); }
.v-login-hint { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding: 0.75rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.v-login-hint i { color: var(--primary); margin-right: 0.375rem; }
.v-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.v-info-item { padding: 0.75rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); text-align: center; }
.v-info-item .num { font-family: var(--font-mono); font-size: 1.375rem; font-weight: 700; }
.v-info-item .lbl { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.v-section { display: none; }
.v-section.active { display: block; }
.v-keyhint { font-size: 0.6875rem; color: var(--text-muted); background: rgba(255,255,255,0.04); padding: 0.125rem 0.375rem; border-radius: 4px; border: 1px solid var(--border); }

/* AI Page */
.ai-page { padding-top: 96px; padding-bottom: 2rem; min-height: 100vh; display: flex; flex-direction: column; }
.chat-card { display: flex; flex-direction: column; height: calc(100vh - 140px); max-height: 800px; padding: 1.5rem; }
.chat-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.ai-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; flex-shrink: 0; }
.chat-header-info h2 { font-family: var(--font-th); font-size: 1.125rem; font-weight: 700; }
.chat-header-info p { font-size: 0.75rem; color: var(--success); display: flex; align-items: center; gap: 0.375rem; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding-right: 0.5rem; }
.msg { max-width: 80%; padding: 0.875rem 1.125rem; border-radius: 12px; line-height: 1.6; font-size: 0.9375rem; animation: fadeIn 0.3s ease; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--primary), #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.typing-indicator { display: none; align-self: flex-start; padding: 0.75rem 0; color: var(--text-muted); font-size: 0.8125rem; }
.chat-input-area { display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.chat-input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 24px; padding: 0.75rem 1.25rem; color: var(--text); font-size: 0.9375rem; outline: none; transition: border var(--transition); }
.chat-input:focus { border-color: var(--primary-border); }
.send-btn { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0; }
.send-btn:hover { transform: scale(1.05); }

/* Monitor Page */
.monitor-page { padding-top: 96px; min-height: 100vh; padding-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; }
.stat-card-icon { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.stat-card-value { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-card-change { font-size: 0.6875rem; font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.chart-card { padding: 1.25rem; }
.chart-card h3 { font-family: var(--font-th); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.chart-card canvas { max-height: 200px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card { padding: 1.25rem; }
.info-card h3 { font-family: var(--font-th); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.875rem; }
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-muted); }
.info-row-value { color: var(--text); font-weight: 500; }

/* Dashboard Page */
.dash-page { padding-top: 96px; min-height: 100vh; padding-bottom: 2rem; }
.unauthorized { text-align:center; padding:6rem 2rem; margin-top:100px; display:none; }
.unauthorized h1 { font-family:var(--font-th); font-size:3rem; font-weight:900; color:var(--danger); margin-bottom:1rem; }
.unauthorized p { color:var(--text-secondary); font-size:1.1rem; margin-bottom:1.5rem; }

/* Patch Page */
.patch-card { border-left: 4px solid var(--primary); padding: 1.5rem; }
.tag-add { background:rgba(16,185,129,0.15);color:#34d399;padding:2px 8px;border-radius:4px;font-size:0.7rem;font-weight:700;margin-right:6px; }
.tag-fix { background:rgba(96,165,250,0.15);color:#60a5fa;padding:2px 8px;border-radius:4px;font-size:0.7rem;font-weight:700;margin-right:6px; }
.tag-change { background:rgba(245,158,11,0.15);color:#fbbf24;padding:2px 8px;border-radius:4px;font-size:0.7rem;font-weight:700;margin-right:6px; }

/* Payment modal */
#stripe-payment-mount { background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 1.25rem; border: 1px solid var(--border); min-height: 200px; }
.payment-option-btn { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 1rem; border-radius:var(--radius-sm); background:rgba(255,255,255,0.03); border:1px solid var(--border); cursor:pointer; transition:all var(--transition); }
.payment-option-btn:hover { border-color:var(--border-hover); background:rgba(255,255,255,0.08); }
.payment-option-btn.disabled { opacity:0.4; cursor:not-allowed; }
.payment-option-info { display:flex; align-items:center; gap:0.75rem; }
.payment-option-icon { width:2rem; height:2rem; border-radius:6px; background:rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; font-size:0.875rem; }
.payment-option-text { font-size:0.8125rem; font-weight:600; color:var(--text); }
.payment-option-balance { font-size:0.6875rem; color:var(--text-muted); }
.payment-option-price { font-size:0.875rem; font-weight:700; font-family:var(--font-mono); }
.modal-product-summary { display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.modal-product-icon { width:2.5rem; height:2.5rem; border-radius:var(--radius-sm); background:linear-gradient(135deg,var(--primary),#0088ff); display:flex; align-items:center; justify-content:center; font-size:1rem; color:#000; flex-shrink:0; }

/* Profile Page */
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.profile-stat-card { padding: 1.5rem; text-align: center; }

/* Responsive fixes for page-specific */
@media (max-width: 1023px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .profile-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .voice-page { padding-top: 80px; }
    .v-info-grid { grid-template-columns: 1fr 1fr; }
    .v-btn { width: 3rem; height: 3rem; font-size: 1rem; }
    .ai-page { padding-top: 80px; }
    .chat-card { height: calc(100vh - 120px); max-height: none; }
    .msg { max-width: 90%; font-size: 0.875rem; }
    .monitor-page { padding-top: 80px; }
    .dash-page { padding-top: 80px; }
}

/* Auth bridge */
.auth-bridge-body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: var(--font-en);
    text-align: center;
}

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
    max-width: 400px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-close {
    color: var(--text-muted);
    font-size: 1.125rem;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-close:hover { color: var(--text-color); }

/* Payment modal */
.payment-option-btn { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 1rem; border-radius:8px; background:rgba(255,255,255,0.03); border:1px solid var(--border-color); cursor:pointer; transition:all 0.2s; }
.payment-option-btn:hover { border-color:var(--primary); background:rgba(255,255,255,0.08); }
.payment-option-btn.disabled { opacity:0.4; cursor:not-allowed; }
.payment-option-info { display:flex; align-items:center; gap:0.75rem; }
.payment-option-icon { width:2rem; height:2rem; border-radius:6px; background:rgba(255,255,255,0.05); display:flex; align-items:center; justify-content:center; }
.payment-option-text { font-size:0.875rem; font-weight:600; }
.payment-option-balance { font-size:0.6875rem; color:var(--text-muted); }
.payment-option-price { font-size:0.875rem; font-weight:700; font-family:monospace; }
.modal-product-summary { display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--border-color); }
.modal-product-icon { width:2.5rem; height:2.5rem; border-radius:8px; background:linear-gradient(135deg,var(--primary),#0088ff); display:flex; align-items:center; justify-content:center; font-size:1rem; color:#000; flex-shrink:0; }

/* ===================== PRODUCT CARDS ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
    background: var(--bg-card, rgba(255,255,255,0.02));
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
    border-radius: 16px;
}
.product-card .hot-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.product-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.product-title {
    font-weight: 700;
    font-size: 1.125rem;
}
.product-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.product-price {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.product-features li {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
