/* رنگ‌ها و تم نئون (آبی، بنفش، سبز) */
:root {
    /* رنگ‌های اصلی */
    --neon-bg: #050515;
    --neon-bg-alt: #080821;
    --neon-surface: rgba(18, 18, 48, 0.95);
    --neon-surface-soft: rgba(20, 20, 60, 0.7);
    --neon-foreground: #f5f5ff;

    /* طیف‌های نئون */
    --neon-primary: #4f46e5;   /* آبی متمایل به بنفش */
    --neon-secondary: #7c3aed; /* بنفش نئون */
    --neon-accent: #00ff9c;    /* سبز نئون مدرن */
    --neon-accent-strong: #00d4a8;
    --neon-accent-rgb: 0, 255, 156;

    /* سایه و خطوط */
    --neon-border-soft: rgba(148, 163, 184, 0.35);
    --neon-border-strong: rgba(129, 140, 248, 0.8);
    --neon-shadow-strong: 0 0 35px rgba(79, 70, 229, 0.7);
    --neon-shadow-soft: 0 0 30px rgba(37, 99, 235, 0.4);

    /* حالت‌ها */
    --input-bg: rgba(15, 23, 42, 0.7);
    --error-color: #fb7185;
    --success-color: #22c55e;
    --muted-foreground: #cbd5f5;

    --theme-bg-overlay: radial-gradient(circle at top, #1d184f 0, var(--neon-bg) 55%);
    --theme-surface: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(24, 24, 59, 0.96));
    --theme-surface-strong: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    --theme-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.95), 0 0 30px rgba(59, 130, 246, 0.45);
    --theme-control-bg: radial-gradient(circle at top, rgba(129, 140, 248, 0.75), rgba(15, 23, 42, 0.95));
    --theme-control-bg-alt: radial-gradient(circle at top left, rgba(var(--neon-accent-rgb), 0.88), rgba(15, 23, 42, 0.95));
    --theme-control-border: rgba(148, 163, 184, 0.35);
    --theme-control-border-strong: rgba(148, 163, 184, 0.6);
    --theme-control-shadow: 0 0 16px rgba(129, 140, 248, 0.7);
    --theme-control-shadow-soft: 0 0 10px rgba(59, 130, 246, 0.25);
    --theme-primary-text: #dbeafe;
    --theme-muted-surface: rgba(30, 41, 59, 0.7);
    --theme-muted-border: rgba(148, 163, 184, 0.55);
    --theme-float-icon-glow: 0 0 20px rgba(129, 140, 248, 0.45);
    --theme-float-size: 4.1rem;
    --theme-heading-gradient: linear-gradient(120deg, #60a5fa, #a855f7, var(--neon-accent));
    --theme-heading-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    --theme-header-bg: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.74));
    --theme-header-border: rgba(148, 163, 184, 0.35);
    --theme-footer-bg: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5));
    --theme-footer-border: rgba(148, 163, 184, 0.65);
    --theme-ui-accent: var(--neon-accent);
    --theme-ui-accent-text: #0a0a0a;
    --theme-ui-accent-shadow: 0 0 10px var(--theme-ui-accent);
    --theme-ui-accent-shadow-hover: 0 0 20px var(--theme-ui-accent);
    --theme-ui-accent-text-shadow: 0 0 5px var(--theme-ui-accent);
    --theme-ui-form-bg: rgba(30, 30, 30, 0.8);
    --theme-ui-input-border: rgba(255, 255, 255, 0.2);
    --theme-ui-input-soft-overlay: rgba(255, 255, 255, 0.1);
    --theme-ui-table-head-bg: #1a1a1a;
    --theme-ui-table-border: #333;
    --theme-ui-muted-rgb: 226, 232, 240;
    --theme-ui-muted-text-88: rgba(var(--theme-ui-muted-rgb), 0.88);
    --theme-ui-muted-text-90: rgba(var(--theme-ui-muted-rgb), 0.9);
    --theme-ui-muted-text-85: rgba(var(--theme-ui-muted-rgb), 0.85);
    --theme-ui-muted-text-80: rgba(var(--theme-ui-muted-rgb), 0.8);
    --theme-ui-muted-text-75: rgba(var(--theme-ui-muted-rgb), 0.75);
    --theme-ui-brand-glow: 0 0 14px rgba(56, 189, 248, 0.65);
    --theme-ui-language-label-color: rgba(var(--theme-ui-muted-rgb), 0.88);
    --theme-ui-language-item-bg: rgba(15, 23, 42, 0.9);
    --theme-ui-language-item-shadow: 0 0 3px rgba(15, 23, 42, 0.45);
    --theme-ui-focus-ring: 2px solid rgba(96, 165, 250, 0.75);
    --theme-ui-pill-accent-border: rgba(248, 250, 252, 0.2);
    --theme-ui-pill-accent-text: #0b1120;
    --theme-ui-pill-accent-glow: 0 0 18px rgba(var(--neon-accent-rgb), 0.65);
    --theme-ui-hero-glow-dot-1: rgba(96, 165, 250, 0.65);
    --theme-ui-hero-glow-dot-2: rgba(248, 113, 113, 0.62);
    --theme-ui-hero-glow-dot-3: rgba(244, 114, 182, 0.52);
    --theme-ui-hero-glow-shadow: 0 0 50px rgba(56, 189, 248, 0.38);
    --theme-ui-hero-border: rgba(148, 163, 184, 0.4);
    --theme-ui-hero-ring-primary: rgba(96, 165, 250, 0.9);
    --theme-ui-hero-ring-primary-shadow: 0 0 40px rgba(59, 130, 246, 0.85);
    --theme-ui-hero-ring-secondary: rgba(147, 51, 234, 0.8);
    --theme-ui-hero-ring-secondary-shadow: 0 0 32px rgba(168, 85, 247, 0.7);
    --theme-ui-hero-ring-accent: rgba(var(--neon-accent-rgb), 0.85);
    --theme-ui-hero-ring-accent-shadow: 0 0 28px rgba(var(--neon-accent-rgb), 0.75);
    --theme-ui-hero-atom-orbit: rgba(96, 165, 250, 0.72);
    --theme-ui-hero-atom-orbit-secondary: rgba(147, 51, 234, 0.62);
    --theme-ui-hero-atom-core: rgba(var(--neon-accent-rgb), 0.95);
    --theme-ui-hero-atom-core-glow: rgba(var(--neon-accent-rgb), 0.35);
    --theme-ui-hero-atom-electron: rgba(226, 232, 240, 0.95);
    --theme-ui-stat-glow-primary: rgba(59, 130, 246, 0.5);
    --theme-ui-stat-glow-secondary: rgba(124, 58, 237, 0.45);
    --theme-ui-stat-glow-accent: rgba(var(--neon-accent-rgb), 0.5);
    --theme-ui-hero-highlight-bg: rgba(15, 23, 42, 0.45);
    --theme-ui-hero-highlight-border: rgba(148, 163, 184, 0.55);
    --theme-ui-hero-highlight-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
    --theme-ui-hero-aurora-soft: rgba(96, 165, 250, 0.32);
    --theme-ui-hero-aurora-strong: rgba(147, 51, 234, 0.28);
    --theme-ui-tabs-shadow: 0 0 28px rgba(37, 99, 235, 0.4);
    --theme-ui-tab-active-text: #f9fafb;
    --theme-ui-tab-hover-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
    --theme-ui-scrollbar-thumb: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(147, 51, 234, 0.9));
    --theme-ui-scrollbar-color: rgba(148, 163, 184, 0.9);
    --ui-hover-duration: 0.32s;
    --ui-hover-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --ui-hover-rise: -0.08rem;
    --ui-focus-offset: 0.04rem;

    /* متن و پس‌زمینه‌های وابسته به تم */
    --theme-on-primary: #ffffff;
    --theme-on-brand: #ffffff;
    --theme-subtle-surface: rgba(15, 23, 42, 0.2);
    --theme-status-success-fg: #4ade80;
    --theme-status-success-bg: rgba(34, 197, 94, 0.18);
    --theme-status-warning-fg: #fbbf24;
    --theme-status-warning-bg: rgba(245, 158, 11, 0.18);
    --theme-status-danger-fg: #f87171;
    --theme-status-danger-bg: rgba(239, 68, 68, 0.18);
    --theme-status-info-fg: #a5b4fc;
    --theme-status-info-bg: rgba(99, 102, 241, 0.2);
    --theme-badge-breaking-text: #ecfdf5;
    --theme-badge-featured-text: #ede9fe;
    --theme-designer-icon: #a78bfa;
    --theme-designer-hint: #22d3ee;
    --theme-admin-nav-active-fg: var(--theme-primary-text);
    --theme-admin-nav-active-border: #818cf8;
    --theme-admin-nav-active-bg: rgba(79, 70, 229, 0.16);
    --theme-nav-active-underline: var(--neon-primary);
    --theme-status-accent-fg: #c084fc;
    --theme-status-accent-bg: rgba(168, 85, 247, 0.18);
    --theme-status-teal-fg: #2dd4bf;
    --theme-status-teal-bg: rgba(20, 184, 166, 0.18);
    --theme-status-orange-fg: var(--neon-accent);
    --theme-status-orange-bg: rgba(var(--neon-accent-rgb), 0.18);
    --theme-status-cyan-fg: #38bdf8;
    --theme-status-cyan-bg: rgba(14, 165, 233, 0.18);

    /* تایپوگرافی */
    --font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-price: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* نام‌های مستعار و سطوح سطحی */
    --neon-border: var(--neon-border-soft);
    --card-bg: var(--neon-surface);
    --theme-danger-text: var(--error-color);
    --theme-surface-overlay: rgba(255, 255, 255, 0.04);
    --theme-surface-overlay-strong: rgba(255, 255, 255, 0.06);
    --theme-border-faint: rgba(255, 255, 255, 0.08);
    --theme-border-subtle: rgba(255, 255, 255, 0.12);
    --theme-panel-backdrop: rgba(4, 8, 14, 0.72);
    --theme-thread-panel-bg: linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(12, 16, 24, 0.99));
    --theme-toast-bg: var(--neon-surface);
    --theme-menu-hover-bg: rgba(255, 255, 255, 0.06);
    --theme-avatar-text: #0a0f14;
}

body.light-mode {
    --neon-bg: #f9fafb;
    --neon-bg-alt: #e5e7eb;
    --neon-surface: rgba(255, 255, 255, 0.95);
    --neon-surface-soft: rgba(243, 244, 246, 0.9);
    --neon-foreground: #020617;
    --muted-foreground: #6b7280;
    --neon-border-soft: rgba(148, 163, 184, 0.6);
    --neon-border-strong: rgba(79, 70, 229, 0.8);
    --neon-shadow-strong: 0 0 28px rgba(79, 70, 229, 0.35);
    --neon-shadow-soft: 0 0 20px rgba(59, 130, 246, 0.25);
    --theme-bg-overlay: radial-gradient(circle at top, #dbeafe 0, var(--neon-bg) 55%);
    --theme-surface: linear-gradient(145deg, rgba(249, 250, 251, 0.94), rgba(241, 245, 249, 0.96));
    --theme-surface-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.98));
    --theme-card-shadow: 0 18px 40px rgba(15, 23, 42, 0.2), 0 0 25px rgba(79, 70, 229, 0.24);
    --theme-control-bg: radial-gradient(circle at top, rgba(129, 140, 248, 0.85), rgba(255, 255, 255, 0.9));
    --theme-control-bg-alt: radial-gradient(circle at top left, rgba(var(--neon-accent-rgb), 0.82), rgba(248, 250, 252, 0.95));
    --theme-control-border: rgba(59, 130, 246, 0.45);
    --theme-control-border-strong: rgba(30, 64, 175, 0.55);
    --theme-control-shadow: 0 0 16px rgba(79, 70, 229, 0.35);
    --theme-control-shadow-soft: 0 0 10px rgba(59, 130, 246, 0.2);
    --theme-primary-text: #020617;
    --theme-muted-surface: rgba(241, 245, 249, 0.75);
    --theme-muted-border: rgba(148, 163, 184, 0.65);
    --theme-float-icon-glow: 0 0 16px rgba(79, 70, 229, 0.35);
    --theme-heading-gradient: linear-gradient(120deg, #2563eb, #9333ea, var(--neon-accent-strong));
    --theme-heading-shadow: 0 0 16px rgba(37, 99, 235, 0.45);
    --theme-header-bg: linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.88));
    --theme-header-border: rgba(59, 130, 246, 0.4);
    --theme-footer-bg: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.08));
    --theme-footer-border: rgba(148, 163, 184, 0.55);
    --theme-ui-form-bg: rgba(255, 255, 255, 0.95);
    --theme-ui-input-border: rgba(15, 23, 42, 0.2);
    --theme-ui-input-soft-overlay: rgba(15, 23, 42, 0.08);
    --theme-ui-table-head-bg: #e5e7eb;
    --theme-ui-table-border: #d1d5db;
    --theme-ui-muted-rgb: 30, 41, 59;
    --theme-ui-language-item-bg: rgba(241, 245, 249, 0.75);
    --theme-ui-language-item-shadow: 0 0 3px rgba(148, 163, 184, 0.35);
    --theme-ui-focus-ring: 2px solid rgba(59, 130, 246, 0.55);
    --theme-ui-hero-highlight-bg: rgba(255, 255, 255, 0.75);
    --theme-ui-hero-highlight-border: rgba(148, 163, 184, 0.45);
    --theme-ui-hero-highlight-shadow: 0 14px 30px rgba(71, 85, 105, 0.18);
    --theme-ui-hero-atom-orbit: rgba(59, 130, 246, 0.56);
    --theme-ui-hero-atom-orbit-secondary: rgba(147, 51, 234, 0.45);
    --theme-ui-hero-atom-core: rgba(79, 70, 229, 0.85);
    --theme-ui-hero-atom-core-glow: rgba(79, 70, 229, 0.22);
    --theme-ui-hero-atom-electron: rgba(30, 41, 59, 0.95);
    --theme-ui-hero-aurora-soft: rgba(59, 130, 246, 0.28);
    --theme-ui-hero-aurora-strong: rgba(147, 51, 234, 0.22);
    --theme-ui-tab-active-text: var(--theme-primary-text);
    --theme-ui-tab-hover-shadow: 0 0 22px rgba(59, 130, 246, 0.45);
    --input-bg: rgba(255, 255, 255, 0.96);
    --theme-subtle-surface: rgba(15, 23, 42, 0.06);
    --theme-status-success-fg: #15803d;
    --theme-status-success-bg: rgba(34, 197, 94, 0.14);
    --theme-status-warning-fg: #b45309;
    --theme-status-warning-bg: rgba(245, 158, 11, 0.14);
    --theme-status-danger-fg: #b91c1c;
    --theme-status-danger-bg: rgba(239, 68, 68, 0.12);
    --theme-status-info-fg: #4338ca;
    --theme-status-info-bg: rgba(99, 102, 241, 0.12);
    --theme-designer-icon: #7c3aed;
    --theme-designer-hint: #0891b2;
    --theme-admin-nav-active-fg: #312e81;
    --theme-admin-nav-active-border: #4f46e5;
    --theme-admin-nav-active-bg: rgba(79, 70, 229, 0.1);
    --theme-status-accent-fg: #7e22ce;
    --theme-status-accent-bg: rgba(168, 85, 247, 0.14);
    --theme-status-teal-fg: #0f766e;
    --theme-status-teal-bg: rgba(20, 184, 166, 0.14);
    --theme-status-orange-fg: #047857;
    --theme-status-orange-bg: rgba(var(--neon-accent-rgb), 0.14);
    --theme-status-cyan-fg: #0369a1;
    --theme-status-cyan-bg: rgba(14, 165, 233, 0.14);
    --theme-surface-overlay: rgba(15, 23, 42, 0.035);
    --theme-surface-overlay-strong: rgba(15, 23, 42, 0.06);
    --theme-border-faint: rgba(15, 23, 42, 0.08);
    --theme-border-subtle: rgba(15, 23, 42, 0.12);
    --theme-panel-backdrop: rgba(15, 23, 42, 0.42);
    --theme-thread-panel-bg: linear-gradient(180deg, var(--neon-surface), var(--neon-bg-alt));
    --success-color: #15803d;
    --error-color: #b91c1c;
    --theme-danger-text: var(--error-color);
    --theme-ui-pill-accent-border: rgba(15, 23, 42, 0.14);
    --theme-menu-hover-bg: rgba(15, 23, 42, 0.06);
    --theme-ui-muted-text-88: rgba(30, 41, 59, 0.88);
    --theme-ui-muted-text-90: rgba(30, 41, 59, 0.9);
    --theme-ui-muted-text-85: rgba(30, 41, 59, 0.85);
    --theme-ui-muted-text-80: rgba(30, 41, 59, 0.8);
    --theme-ui-muted-text-75: rgba(30, 41, 59, 0.75);
    --theme-toast-bg: var(--neon-surface);
}
html {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--theme-bg-overlay);
    color: var(--neon-foreground);
    font-family: var(--font-family);
    min-height: 100vh;
    width: 100%;
    overflow-x: clip;
}

.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
}

.site-layout > .site-header,
.site-layout > .site-header-spacer,
.site-layout > .site-main,
.site-layout > .site-footer-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.site-main:has(.home-page) .container {
    padding-bottom: 1rem;
}

/* ظرف اصلی عمومی */
.container {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.75rem;
    box-sizing: border-box;
    overflow-x: clip;
}

/* فرم‌ها */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* لیبل و فیلدها */
label {
    font-size: 0.9rem;
}
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--theme-ui-input-border);
    border-radius: 4px;
    color: var(--neon-foreground);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
    outline: none;
    border-color: var(--neon-accent);
    box-shadow: 0 0 6px var(--neon-accent);
}

/* دکمه‌ها */
button {
    padding: 0.75rem;
    background: var(--neon-primary);
    border: none;
    border-radius: 4px;
    color: var(--theme-on-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing), box-shadow var(--ui-hover-duration) var(--ui-hover-easing);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    will-change: transform, box-shadow;
}
button:not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):hover {
    background: var(--neon-accent);
    transform: translateY(var(--ui-hover-rise));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
button:not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* پیغام خطا */
.field-error {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--error-color);
}

.field-error.js-error {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
}

.field-error.js-error.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.field-error.js-error.is-shake {
    animation: validationErrorShake 0.38s cubic-bezier(0.2, 0.9, 0.35, 1);
}

/* راهنمایی مشخصات رمز */
.password-requirements {
    font-size: 0.85rem;
    list-style: none;
    padding: 0;
}
.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error-color);
}
.password-requirements li.valid {
    color: var(--success-color);
}
.password-requirements li::before {
    content: '✖';
}
.password-requirements li.valid::before {
    content: '✔';
}

/* لینک صفحات */
.auth-link {
    text-align: center;
    margin-top: 1rem;
}
.auth-link a {
    color: var(--neon-accent);
    text-decoration: none;
    transition: text-shadow 0.2s;
}
.auth-link a:hover {
    text-shadow: 0 0 6px var(--neon-accent);
}
.strength-bar {
    width: 100%;
    height: 6px;
    background: var(--theme-ui-input-soft-overlay);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0;
    background: var(--neon-secondary);
    transition: width 0.3s, background 0.3s;
}

.password-strength {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.strength-levels {
    display: flex;
    gap: 0.32rem;
}

.strength-level-item {
    height: 0.3rem;
    flex: 1;
    border-radius: 999px;
    background: var(--theme-ui-input-soft-overlay);
    transition: background 0.25s var(--ui-hover-easing), box-shadow 0.25s var(--ui-hover-easing);
}

.strength-level-item.is-active {
    box-shadow: 0 0 10px currentColor;
}

#strength-meter.is-weak .strength-level-item.is-active {
    background: var(--neon-secondary);
    color: var(--neon-secondary);
}

#strength-meter.is-medium .strength-level-item.is-active {
    background: var(--neon-accent);
    color: var(--neon-accent);
}

#strength-meter.is-strong .strength-level-item.is-active {
    background: var(--neon-primary);
    color: var(--neon-primary);
}

#strength-meter.is-weak #strength-text,
#strength-meter.is-weak .strength-note {
    color: var(--neon-secondary);
}

#strength-meter.is-medium #strength-text,
#strength-meter.is-medium .strength-note {
    color: var(--neon-accent);
}

#strength-meter.is-strong #strength-text,
#strength-meter.is-strong .strength-note {
    color: var(--success-color);
}

.strength-note {
    display: block;
    margin-top: 0.05rem;
}
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .auth-input {
    padding-inline-end: 2.65rem;
}

.toggle-visibility {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
    opacity: 0.8;
    line-height: 1;
}

.toggle-visibility:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

/* پس‌زمینه کلی */
.neon-bg {
    background: var(--theme-bg-overlay);
    color: var(--neon-foreground);
    font-family: var(--font-family);
}

/* فرم‌ها */
.neon-form {
    background: var(--theme-ui-form-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--theme-ui-accent-shadow);
}

/* دکمه‌ها */
.neon-button {
    background: var(--theme-ui-accent);
    border: none;
    padding: 0.6rem 1.2rem;
    color: var(--theme-ui-accent-text);
    font-weight: bold;
    border-radius: 4px;
    text-shadow: var(--theme-ui-accent-text-shadow);
    box-shadow: var(--theme-ui-accent-shadow);
    transition: box-shadow var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing), filter var(--ui-hover-duration) var(--ui-hover-easing);
    cursor: pointer;
}

.neon-button:hover,
.neon-button.is-hovered {
    box-shadow: var(--theme-ui-accent-shadow-hover);
    transform: translateY(calc(var(--ui-hover-rise) * 0.75));
    filter: brightness(1.05);
}

.neon-button:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.97);
}

.neon-button:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.45);
    outline-offset: 2px;
}

/* لینک‌های نئون */
.neon-link {
    color: var(--theme-ui-accent);
    text-decoration: none;
}
.neon-link:hover {
    text-shadow: var(--theme-ui-accent-text-shadow);
}

/* جداول */
.neon-table {
    width: 100%;
    border-collapse: collapse;
}
.neon-table th, .neon-table td {
    border: 1px solid var(--theme-ui-table-border);
    padding: 0.5rem;
}
.neon-table th {
    background: var(--theme-ui-table-head-bg);
}

/* پیام خطا */
.neon-error {
    color: var(--error-color);
    font-size: 0.9rem;
}

/* هدر اصلی سایت */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    padding: 0.9rem 1.4rem;
    backdrop-filter: blur(10px);
    background: var(--theme-header-bg);
    border-bottom: 1px solid var(--theme-header-border);
    transform: translateY(0);
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    will-change: transform;
}

.site-header.is-hidden,
.site-header.is-chart-fs-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-header-spacer {
    height: var(--site-header-height, 3.65rem);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header-spacer {
        transition: none;
    }
}

.site-header-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.site-header-end {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary-text);
    text-shadow: var(--theme-ui-brand-glow);
    transition: color var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing), text-shadow var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-brand-logo {
    height: 2.05rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.25rem;
}

.site-brand-text {
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--theme-primary-text);
    transform: translateY(calc(var(--ui-hover-rise) * 0.5));
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.site-nav-desktop {
    display: none;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.site-nav-desktop-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-desktop-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.28rem 0.72rem;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--neon-foreground);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition:
        color var(--ui-hover-duration) var(--ui-hover-easing),
        border-color var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-nav-desktop-link:hover:not(.is-active) {
    color: var(--theme-primary-text);
}

.site-nav-desktop-link.is-active {
    color: var(--theme-primary-text);
    border-bottom-color: var(--theme-nav-active-underline);
}

.site-nav-desktop-link--cta.is-active {
    border-bottom: 2px solid color-mix(in srgb, var(--theme-on-brand) 70%, var(--theme-nav-active-underline));
}

.site-nav-desktop-link--ghost:hover:not(.is-active) {
    opacity: 0.92;
}

.site-nav-desktop-link--cta {
    border: 1px solid rgba(129, 140, 248, 0.65);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.9));
    color: var(--theme-on-brand);
    font-weight: 600;
}

.site-nav-desktop-user {
    display: inline-flex;
    align-items: center;
    max-width: 9rem;
    padding: 0.22rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--theme-primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav-logout-form .site-nav-desktop-link {
    cursor: pointer;
    font: inherit;
}

@media (min-width: 901px) {
    .site-nav-desktop {
        display: flex;
    }

    .site-nav-menu {
        display: none;
    }
}

.site-nav-menu {
    position: relative;
}

.site-nav-menu-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border-strong);
    background: var(--theme-ui-language-item-bg);
    color: var(--theme-primary-text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition:
        border-color var(--ui-hover-duration) var(--ui-hover-easing),
        box-shadow var(--ui-hover-duration) var(--ui-hover-easing),
        transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-nav-menu-toggle::-webkit-details-marker {
    display: none;
}

.site-nav-menu-toggle::marker {
    display: none;
}

.site-nav-menu-toggle:hover,
.site-nav-menu[open] .site-nav-menu-toggle {
    border-color: var(--neon-border-strong);
    box-shadow: var(--theme-control-shadow-soft);
    transform: translateY(calc(var(--ui-hover-rise) * 0.75));
}

.site-nav-menu-icon {
    position: relative;
    width: 1rem;
    height: 0.12rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -0.34rem 0 currentColor, 0 0.34rem 0 currentColor;
    transition: transform var(--ui-hover-duration) var(--ui-hover-easing), box-shadow var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-nav-menu[open] .site-nav-menu-icon {
    box-shadow: none;
    transform: rotate(45deg);
}

.site-nav-menu[open] .site-nav-menu-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    transform: rotate(-90deg);
}

.site-nav-menu-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    width: min(20.5rem, calc(100vw - 1.75rem));
    z-index: 40;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border-strong);
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 94%, transparent);
    box-shadow: var(--theme-card-shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
    box-sizing: border-box;
    max-height: min(calc(100vh - 5.5rem), 34rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.site-nav {
    min-width: 0;
}

.site-nav-panel {
    display: grid;
    gap: 0.75rem;
}

.site-nav-group-title {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.site-nav-list,
.header-language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-group {
    display: grid;
    gap: 0.28rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--neon-bg) 35%, transparent);
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.site-nav-list {
    display: grid;
    gap: 0.32rem;
}

.site-nav-list--account {
    gap: 0.4rem;
}

.site-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 1.85rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.45rem;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--neon-foreground);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    transition:
        color var(--ui-hover-duration) var(--ui-hover-easing),
        border-color var(--ui-hover-duration) var(--ui-hover-easing),
        background var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-nav-link:hover:not(.is-active) {
    color: var(--theme-primary-text);
}

.site-nav-link.is-active {
    color: var(--theme-primary-text);
    border-bottom-color: var(--theme-nav-active-underline);
}

.site-nav-link--ghost {
    background: transparent;
}

.site-nav-link--cta {
    justify-content: center;
    border: 1px solid rgba(129, 140, 248, 0.65);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.9));
    color: var(--theme-on-brand);
    font-weight: 600;
    box-shadow: var(--theme-control-shadow-soft);
    text-align: center;
}

.site-nav-link--cta:hover {
    color: var(--theme-on-brand);
    border-color: rgba(191, 219, 254, 0.75);
    box-shadow: var(--theme-control-shadow);
}

.site-nav-link--cta.is-active {
    color: var(--theme-on-brand);
    border-bottom: 2px solid color-mix(in srgb, var(--theme-on-brand) 70%, var(--theme-nav-active-underline));
    box-shadow: var(--theme-control-shadow-soft);
}

.site-nav-user {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-ui-language-item-bg);
    color: var(--theme-primary-text);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.site-nav-logout-form {
    margin: 0;
    width: 100%;
}

.site-nav-logout-form .site-nav-link {
    cursor: pointer;
    font: inherit;
    width: 100%;
    text-align: start;
}

.site-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

body.site-nav-open {
    overflow: hidden;
}

body.site-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(5, 5, 21, 0.62);
    backdrop-filter: blur(2px);
}

.header-language-switcher-wrap {
    position: relative;
}

.header-language-label {
    color: var(--theme-ui-muted-text-85);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-inline-end: 0.35rem;
}

.language-current-name {
    font-size: 0.78rem;
    color: var(--neon-foreground);
    font-weight: 600;
}

.language-dropdown {
    position: relative;
}

.language-dropdown summary {
    list-style: none;
    border-radius: 999px;
    padding: 0.2rem 0.68rem;
    background: var(--theme-ui-language-item-bg);
    border: 1px solid var(--theme-control-border);
    cursor: pointer;
    color: var(--neon-foreground);
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    position: relative;
    transition: border-color var(--ui-hover-duration) var(--ui-hover-easing), box-shadow var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
    white-space: nowrap;
}

.language-dropdown summary::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.86);
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.2), transparent 72%);
    transition: opacity var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.language-dropdown summary:hover,
.language-dropdown[open] summary {
    border-color: var(--theme-control-border-strong);
    box-shadow: var(--theme-control-shadow-soft);
    transform: translateY(calc(var(--ui-hover-rise) * 0.9));
}

.language-dropdown summary:hover::before,
.language-dropdown[open] summary::before {
    opacity: 1;
    transform: scale(1);
}

.language-dropdown summary::after {
    content: "▾";
    font-size: 0.68rem;
    color: var(--theme-ui-muted-text-88);
    margin-inline-start: 0.15rem;
    transition: transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.language-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.language-dropdown summary::-webkit-details-marker {
    display: none;
}

.language-dropdown summary::marker {
    display: none;
}

.language-dropdown-list {
    position: absolute;
    inset-inline-end: 0;
    top: 100%;
    min-width: 10.5rem;
    z-index: 20;
    list-style: none;
    margin: -1px 0 0;
    padding: 0 0.45rem 0.45rem 0.45rem;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 80%, transparent);
    border: 1px solid var(--theme-control-border);
    box-shadow: var(--theme-card-shadow);
    opacity: 0;
    transform: translateY(-4px) scaleY(0.96);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.language-dropdown[open] .language-dropdown-list {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}

.language-item a {
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    background: transparent;
    border: 1px solid var(--theme-control-border);
    color: var(--neon-foreground);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: space-between;
    font-size: 12.5px;
    transition: transform var(--ui-hover-duration) var(--ui-hover-easing), border-color var(--ui-hover-duration) var(--ui-hover-easing), box-shadow var(--ui-hover-duration) var(--ui-hover-easing);
    width: 100%;
    box-sizing: border-box;
}

.language-item {
    margin-top: 0.45rem;
}

.language-item a:hover,
.language-item.is-active a {
    border-color: var(--neon-border-strong);
    box-shadow: var(--theme-control-shadow-soft);
    transform: translateY(calc(var(--ui-hover-rise) * 0.9));
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 84%, rgba(255, 255, 255, 0.2));
}

.language-flag {
    width: 1.2rem;
    height: 0.85rem;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: var(--theme-ui-language-item-shadow);
}

.site-footer-shell {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.75rem;
    border-top: 1px solid var(--theme-footer-border);
    background: var(--theme-footer-bg);
    padding: 2rem clamp(1rem, 4vw, 2rem) 1.35rem;
    color: var(--neon-foreground);
    overflow-x: clip;
    overflow-y: visible;
}

.site-footer button,
.site-footer-logout-form button {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
}

.site-footer button:hover,
.site-footer button:active,
.site-footer-logout-form button:hover,
.site-footer-logout-form button:active {
    background: transparent;
    box-shadow: none;
    transform: translateX(0.12rem);
}

[dir="rtl"] .site-footer button:hover,
[dir="rtl"] .site-footer button:active,
[dir="rtl"] .site-footer-logout-form button:hover,
[dir="rtl"] .site-footer-logout-form button:active {
    transform: translateX(-0.12rem);
}

.site-footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 1.5rem 2rem;
    align-items: start;
    text-align: start;
    min-width: 0;
    max-width: 100%;
}

.site-footer-block {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}

.site-footer-block--brand {
    grid-column: span 1;
}

.site-footer-brand-link {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.site-footer-logo {
    height: 2.25rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
    border-radius: 0.25rem;
}

.site-footer-tagline {
    margin: 0;
    max-width: 22rem;
    color: var(--theme-ui-muted-text-85);
    font-size: 0.84rem;
    line-height: 1.65;
}

.site-footer-col-title {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.site-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.38rem;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--theme-ui-muted-text-90);
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.35;
    transition: color var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.site-footer-link:hover {
    color: var(--neon-foreground);
    transform: translateX(0.12rem);
}

[dir="rtl"] .site-footer-link:hover {
    transform: translateX(-0.12rem);
}

.site-footer-link.is-active {
    color: var(--neon-foreground);
    font-weight: 600;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--theme-footer-border);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--theme-ui-muted-text-80);
    flex: 1 1 12rem;
    min-width: 0;
}

.site-footer-attributions {
    flex: 1 1 100%;
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--theme-muted, #888) 72%, transparent);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-footer-attributions-label {
    margin-inline-end: 0.35rem;
    opacity: 0.85;
}

.site-footer-attributions a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.site-footer-attributions a:hover {
    opacity: 1;
    color: var(--theme-muted, #888);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-attributions-sep {
    margin: 0 0.3rem;
    opacity: 0.55;
    user-select: none;
}

.site-footer-attributions-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-muted, #888);
}

.site-footer-attributions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
}

.site-footer-attributions-list a {
    color: var(--theme-muted, #888);
    text-decoration: none;
}

.site-footer-attributions-list a:hover {
    color: var(--neon-foreground);
    text-decoration: underline;
}

.site-footer-designer {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0.5rem 0.85rem;
}

.designer-signature {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    padding: 0.12rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    overflow: visible;
}

.designer-signature-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from 0deg,
        #60a5fa,
        #a855f7,
        var(--neon-accent),
        #22d3ee,
        #60a5fa
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.92;
    animation: designer-border-spin 4.2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.55));
}

.designer-signature-core {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.44rem 1.05rem 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(30, 27, 75, 0.88) 50%,
        rgba(15, 23, 42, 0.92) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 0 24px rgba(79, 70, 229, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transform: scale(1);
    transition:
        transform var(--ui-hover-duration) var(--ui-hover-easing),
        box-shadow var(--ui-hover-duration) var(--ui-hover-easing);
}

body.light-mode .designer-signature-core {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(241, 245, 249, 0.94) 50%,
        rgba(255, 255, 255, 0.96) 100%
    );
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow:
        0 0 20px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (hover: hover) and (pointer: fine) {
    .designer-signature:hover .designer-signature-core {
        transform: scale(1.04) translateY(var(--ui-hover-rise));
        box-shadow:
            0 0 32px rgba(124, 58, 237, 0.55),
            0 0 48px rgba(59, 130, 246, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .designer-signature:hover .designer-signature-sparkles i {
        animation-duration: 1.6s;
    }
}

@media (hover: none) {
    .designer-signature:active .designer-signature-core {
        transform: scale(1.03);
        box-shadow:
            0 0 28px rgba(124, 58, 237, 0.5),
            0 0 40px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.designer-signature:focus-visible {
    outline: var(--theme-ui-focus-ring);
    outline-offset: 3px;
}

.designer-signature:focus:not(:focus-visible) .designer-signature-core {
    transform: scale(1);
}

.designer-signature-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: var(--theme-designer-icon);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
    animation: designer-icon-pulse 2.8s ease-in-out infinite;
}

.designer-signature-text {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    line-height: 1;
}

.designer-signature-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--theme-ui-muted-text-80);
    white-space: nowrap;
}

.designer-signature-brand {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 0.2rem;
    direction: ltr;
    unicode-bidi: isolate;
    max-width: 100%;
}

.designer-signature-brand-text {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.45));
}

/* x در xainbit با صدای «ک» (kainbit) */
.designer-signature-brand-x,
.designer-signature-brand-rest {
    background: var(--theme-heading-gradient);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: designer-gradient-flow 4s ease-in-out infinite;
}

.designer-signature-brand-x {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.designer-signature-brand-x::after {
    content: attr(data-sound);
    position: absolute;
    left: 50%;
    top: calc(100% + 0.06em);
    transform: translateX(-50%);
    font-size: 0.46em;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    color: var(--theme-designer-hint);
    -webkit-text-fill-color: var(--theme-designer-hint);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
    animation: designer-x-sound-pulse 2.6s ease-in-out infinite;
    pointer-events: none;
}

.designer-signature-brand-rest {
    letter-spacing: inherit;
}

.designer-signature-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.designer-signature-sparkles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #e0f2fe;
    box-shadow: 0 0 8px #38bdf8;
    opacity: 0;
    animation: designer-sparkle 2.4s ease-in-out infinite;
}

.designer-signature-sparkles i:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.designer-signature-sparkles i:nth-child(2) { top: 72%; left: 22%; animation-delay: 0.5s; }
.designer-signature-sparkles i:nth-child(3) { top: 28%; right: 14%; animation-delay: 1s; }
.designer-signature-sparkles i:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }
.designer-signature-sparkles i:nth-child(5) { top: 50%; left: 48%; animation-delay: 2s; }

@keyframes designer-border-spin {
    to { --designer-border-angle: 360deg; }
}

@property --designer-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes designer-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.18rem); }
}

@keyframes designer-gradient-flow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes designer-icon-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.7)); }
    50% { transform: scale(1.12) rotate(12deg); filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.95)); }
}

@keyframes designer-sparkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    45% { opacity: 1; transform: scale(1.2); }
    70% { opacity: 0; transform: scale(0.6); }
}

@keyframes designer-x-sound-pulse {
    0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.14); }
}

@media (max-width: 768px) {
    .site-footer-bottom {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .site-footer-copy {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .site-footer-designer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin-inline-end: 0;
        padding: 0.65rem 0.75rem 0.35rem;
        overflow: visible;
    }

    .designer-signature {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        margin-inline: auto;
    }

    .designer-signature-core {
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.38rem 0.7rem;
        gap: 0.4rem;
    }

    .designer-signature-text {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.3rem 0.4rem;
        min-width: 0;
        max-width: 100%;
        text-align: center;
    }

    .designer-signature-label {
        white-space: normal;
        text-align: center;
        font-size: 0.65rem;
        line-height: 1.25;
    }

    .designer-signature-brand-text {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem 2rem;
    }

    .site-footer {
        padding-inline: 1rem;
    }

    .designer-signature-core {
        padding: 0.35rem 0.55rem;
        gap: 0.3rem;
    }

    .designer-signature-label {
        font-size: 0.6rem;
    }

    .designer-signature-brand-text {
        font-size: 0.72rem;
    }

    .coin-page__chart-panel.static-card,
    .coin-page__history.static-card {
        padding: 0.85rem 0.75rem;
    }

    .coin-page__chart-toolbar-shell {
        padding: 0.4rem 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .designer-signature,
    .designer-signature-border,
    .designer-signature-icon,
    .designer-signature-brand-x,
    .designer-signature-brand-rest,
    .designer-signature-sparkles i,
    .designer-signature-brand-x::after {
        animation: none;
    }

    .designer-signature:hover .designer-signature-core {
        transform: none;
    }
}

.designer-signature:focus-visible .designer-signature-core {
    transform: scale(1);
}

button:focus-visible,
a:focus-visible {
    outline: var(--theme-ui-focus-ring);
    outline-offset: 2px;
}

/* کانتینر محتوا */
.neon-container {
    margin-top: 2rem;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem 2rem;
    }

    .coin-page__chart-panel.static-card,
    .coin-page__history.static-card {
        padding: 0.85rem 0.75rem;
    }

    .coin-page__chart-toolbar-shell {
        padding: 0.4rem 0.45rem;
    }
}

/* -------------------------
   صفحه خانه (home)
------------------------- */

.home-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 0;
    padding-bottom: 0.25rem;
    overflow: hidden;
}

.home-page > section,
.home-page > .home-table-section,
.home-page > .home-filters,
.home-page > .home-stats {
    position: relative;
    z-index: 1;
}

.home-floating-crypto-layer {
    position: absolute;
    inset: -4% 0 0 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.82;
}

.home-floating-crypto-icon {
    position: absolute;
    width: var(--theme-float-size);
    height: var(--theme-float-size);
    border-radius: 999px;
    padding: 0.45rem;
    background: var(--theme-muted-surface);
    border: 1px solid var(--theme-muted-border);
    object-fit: contain;
    box-shadow: var(--theme-float-icon-glow);
    animation-name: home-crypto-float-drift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.home-floating-crypto-icon-1 {
    top: 8%;
    left: 6%;
    --sway: 18px;
    --float: 32px;
    --spin-up: -12deg;
    --spin-down: 8deg;
    animation-duration: 18s;
    animation-delay: -1s;
}

.home-floating-crypto-icon-2 {
    top: 6%;
    right: 5%;
    --sway: 24px;
    --float: 28px;
    --spin-up: 14deg;
    --spin-down: -7deg;
    animation-duration: 20.5s;
    animation-delay: -4s;
}

.home-hero-glow-container{
    height: 86%;
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

.home-floating-crypto-icon-3 {
    top: 48%;
    left: 52%;
    --sway: 16px;
    --float: 34px;
    --spin-up: 9deg;
    --spin-down: -13deg;
    animation-duration: 23.2s;
    animation-delay: -2s;
}

.home-floating-crypto-icon-4 {
    top: 52%;
    left: 16%;
    --sway: 22px;
    --float: 30px;
    --spin-up: -10deg;
    --spin-down: 12deg;
    animation-duration: 21.7s;
    animation-delay: -6.5s;
}

.home-floating-crypto-icon-5 {
    top: 64%;
    right: 8%;
    --sway: 20px;
    --float: 36px;
    --spin-up: 16deg;
    --spin-down: -9deg;
    animation-duration: 22.4s;
    animation-delay: -9s;
}

.home-floating-crypto-icon-6 {
    top: 74%;
    left: 52%;
    --sway: 26px;
    --float: 27px;
    --spin-up: -8deg;
    --spin-down: 11deg;
    animation-duration: 24.1s;
    animation-delay: -5s;
}

.home-floating-crypto-icon-7 {
    top: 84%;
    left: 30%;
    --sway: 17px;
    --float: 40px;
    --spin-up: 13deg;
    --spin-down: -14deg;
    animation-duration: 26s;
    animation-delay: -3.5s;
}

.home-floating-crypto-icon-8 {
    top: 44%;
    left: 8%;
    --sway: 29px;
    --float: 31px;
    --spin-up: -15deg;
    --spin-down: 6deg;
    animation-duration: 23.8s;
    animation-delay: -7s;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-control-bg) 78%, transparent);
    backdrop-filter: blur(8px) saturate(145%);
    -webkit-backdrop-filter: blur(8px) saturate(145%);
    color: var(--neon-foreground);
    box-shadow: var(--theme-control-shadow);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: border-color var(--ui-hover-duration) var(--ui-hover-easing), background var(--ui-hover-duration) var(--ui-hover-easing), box-shadow var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
    will-change: transform, box-shadow;
    z-index: 0;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.3), transparent 72%);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
    z-index: 0;
}

.theme-toggle:hover {
    border-color: var(--theme-control-border-strong);
    transform: translateY(calc(var(--ui-hover-rise) * 0.9));
    background: color-mix(in srgb, var(--theme-control-bg) 62%, transparent);
    box-shadow: var(--theme-control-shadow-soft);
}

.theme-toggle:hover::before {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.97);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--theme-control-shadow-soft), 0 0 0 calc(3px + var(--ui-focus-offset)) rgba(96, 165, 250, 0.32);
}

.theme-toggle.is-pressing {
    transform: translateY(0) scale(0.95);
}

.theme-toggle-icon-wrap {
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    display: inline-block;
    z-index: 1;
    transition: filter var(--ui-hover-duration) var(--ui-hover-easing);
}

.theme-toggle:hover .theme-toggle-icon-wrap {
    filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.6));
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
    transform-origin: 50% 50%;
    opacity: 0;
    transition: opacity var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
    will-change: transform, opacity;
}

.theme-icon-sun,
.theme-icon-moon {
    pointer-events: none;
    top: 50%;
    left: 50%;
}

.theme-toggle[data-theme-icon='sun'] .theme-icon-sun,
.theme-toggle[data-theme-icon='moon'] .theme-icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
}

.theme-toggle[data-theme-icon='sun'] .theme-icon-moon,
.theme-toggle[data-theme-icon='moon'] .theme-icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.75);
}

.theme-icon-sun {
    transform: translate(-50%, -50%) translate(8%, -24%) scale(0.75);
}

.theme-icon-moon {
    transform: translate(-50%, -50%) translate(-8%, 24%) scale(0.75);
}

.theme-toggle:hover[data-theme-icon='sun'] .theme-icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0%, -32%) scale(0.68) rotate(-16deg);
}

.theme-toggle:hover[data-theme-icon='sun'] .theme-icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
}

.theme-toggle:hover[data-theme-icon='moon'] .theme-icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0%, 32%) scale(0.68) rotate(16deg);
}

.theme-toggle:hover[data-theme-icon='moon'] .theme-icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
}

/* هدر / هیرو */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2rem;
    align-items: center;
    position: relative;
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 2;
}

.home-hero-text > .home-hero-animate {
    opacity: 0;
    animation: home-hero-reveal 0.85s ease forwards;
}

.home-hero-text > .home-hero-animate:nth-of-type(1) { animation-delay: 0.1s; }
.home-hero-text > .home-hero-animate:nth-of-type(2) { animation-delay: 0.18s; }
.home-hero-text > .home-hero-animate:nth-of-type(3) { animation-delay: 0.26s; }
.home-hero-text > .home-hero-animate:nth-of-type(4) { animation-delay: 0.34s; }
.home-hero-text > .home-hero-animate:nth-of-type(5) { animation-delay: 0.42s; }
.home-hero-text > .home-hero-animate:nth-of-type(6) { animation-delay: 0.5s; }

.home-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    background: var(--theme-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--theme-heading-shadow);
    margin: 0;
}

.home-hero-kicker {
    margin: 0;
    color: var(--theme-ui-muted-text-75);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.96rem;
    color: var(--muted-foreground);
    max-width: 38rem;
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.home-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.home-hero-highlight {
    border-radius: 0.9rem;
    padding: 0.66rem 0.78rem;
    background: var(--theme-ui-hero-highlight-bg);
    border: 1px solid var(--theme-ui-hero-highlight-border);
    box-shadow: var(--theme-ui-hero-highlight-shadow);
    backdrop-filter: blur(8px);
    animation: none;
}

.home-hero-highlight-label {
    margin: 0 0 0.32rem;
    color: var(--theme-ui-muted-text-75);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-hero-highlight-value {
    margin: 0;
    color: var(--theme-primary-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-hero-highlight:nth-child(2) .home-hero-highlight-value {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.home-hero-highlight-footnote {
    margin: 0.2rem 0 0;
    font-size: 0.73rem;
    color: var(--theme-ui-muted-text-80);
}

.home-hero-highlight:nth-child(2) .home-hero-highlight-footnote.positive,
.home-hero-highlight:nth-child(2) .home-hero-highlight-footnote.negative {
    font-weight: 600;
}

.home-hero-highlight:nth-child(2) .home-hero-highlight-footnote.positive {
    color: var(--success-color);
}

.home-hero-highlight:nth-child(2) .home-hero-highlight-footnote.negative {
    color: var(--error-color);
}

.home-hero-highlight:nth-child(1),
.home-hero-highlight:nth-child(3) {
    animation-name: none;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--theme-muted-surface);
    border: 1px solid var(--theme-muted-border);
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.home-pill-accent {
    border-color: var(--theme-ui-pill-accent-border);
    background: var(--theme-control-bg-alt);
    color: var(--theme-ui-pill-accent-text);
    font-weight: 600;
    box-shadow: var(--theme-ui-pill-accent-glow);
}

.home-hero-glow {
    position: relative;
    width: 71%;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--theme-ui-hero-border);
}

.home-hero-glow-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .home-hero-glow-image {
        width: 100%;
    }
}

@keyframes home-crypto-float-drift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(var(--sway), calc(-1 * var(--float))) rotate(var(--spin-up));
    }
    50% {
        transform: translate(0, calc(var(--float) * -0.25)) rotate(0deg) scale(1.04);
    }
    75% {
        transform: translate(calc(-1 * var(--sway)), 0) rotate(var(--spin-down));
    }
}

@keyframes home-hero-pulse {
    0%,
    100% {
        transform: scale(0.99);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes home-hero-aurora {
    0%,
    100% {
        transform: translateX(-2%);
        opacity: 0.7;
    }
    50% {
        transform: translateX(2%);
        opacity: 0.5;
    }
}

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

@keyframes home-hero-float-opposite {
    0%,
    100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes home-hero-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کارت‌های آمار */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 20px;
}

.home-stats,
.home-stats * {
    animation: none;
}

.home-stat-card {
    background: var(--theme-surface);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--theme-control-border);
    box-shadow: var(--theme-card-shadow);
    position: relative;
    overflow: hidden;
}

.home-stat-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.75;
    background:
        radial-gradient(circle at 0 0, var(--theme-ui-stat-glow-primary), transparent 55%),
        radial-gradient(circle at 100% 0, var(--theme-ui-stat-glow-secondary), transparent 55%),
        radial-gradient(circle at 0 100%, var(--theme-ui-stat-glow-accent), transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.home-stat-card > * {
    position: relative;
}

.home-stat-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-ui-muted-text-85);
}

.home-stat-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.home-stat-unit {
    font-size: 0.85rem;
    margin-inline-start: 0.35rem;
    color: var(--theme-ui-muted-text-80);
}

.home-stat-helper {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

/* تب‌ها و فیلترها */
.home-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-filters,
.home-filters * {
    animation: none;
}

.home-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--theme-muted-surface);
    border: 1px solid var(--theme-muted-border);
    box-shadow: var(--theme-ui-tabs-shadow);
}

.home-tab {
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    background: transparent;
    color: var(--theme-ui-muted-text-75);
    border: none;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.1s ease;
}

.home-tab-active {
    background: var(--theme-control-bg);
    color: var(--theme-ui-tab-active-text);
    box-shadow: var(--theme-control-shadow);
    transform: translateY(-1px);
}

.home-filters-helper {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

/* جدول کریپتو */
.home-table-section {
    background: var(--theme-surface-strong);
    border-radius: 1.25rem;
    padding: 1.35rem 1.5rem 1.35rem;
    border: 1px solid var(--theme-control-border);
    box-shadow: var(--theme-card-shadow);
}

.home-table-section__header {
    margin-bottom: 1.15rem;
}

.home-table-section__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-table-section__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.home-table-section,
.home-table-section * {
    animation: none;
}

.home-table-shell {
    position: relative;
}

.home-table-shell--market-locked .home-table-wrapper {
    max-height: 520px;
}

.home-table-wrapper {
    max-height: 520px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-ui-scrollbar-color) transparent;
    border-radius: 0.85rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
}

.home-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.home-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.home-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--theme-ui-scrollbar-thumb);
    border-radius: 999px;
}

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

.crypto-table--modern {
    font-variant-numeric: tabular-nums;
}

.crypto-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--theme-muted-surface);
    box-shadow: 0 1px 0 var(--theme-control-border-strong);
}

.crypto-table th,
.crypto-table td {
    padding: 0.72rem 0.9rem;
    text-align: center;
    vertical-align: middle;
}

.crypto-table th {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-85);
    font-weight: 600;
}

.crypto-table__row {
    border-bottom: 1px solid var(--theme-control-border);
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.crypto-table__row:hover {
    background: var(--theme-ui-input-soft-overlay);
}

.crypto-table__row:last-child {
    border-bottom: none;
}

.crypto-table__row--empty {
    opacity: 0.55;
}

.home-col-rank {
    width: 3.25rem;
    text-align: center;
}

.home-col-asset {
    text-align: start;
    min-width: 12rem;
}

.home-col-market {
    text-align: end;
    white-space: nowrap;
}

.home-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: var(--theme-muted-surface);
    border: 1px solid var(--theme-control-border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--theme-ui-muted-text-85);
}

.home-coin-asset-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: 0.65rem;
    padding: 0.15rem 0.2rem;
    margin: -0.15rem -0.2rem;
    transition: background 0.16s ease, transform 0.12s ease;
}

.home-coin-asset-link:hover {
    background: var(--theme-ui-input-soft-overlay);
}

.home-coin-asset-link:focus-visible {
    outline: 2px solid var(--neon-primary);
    outline-offset: 2px;
}

.home-coin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--theme-ui-stat-glow-primary), var(--theme-ui-stat-glow-secondary));
    border: 1px solid var(--theme-control-border-strong);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--theme-primary-text);
    flex-shrink: 0;
}

.home-coin-asset-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.home-coin-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--theme-primary-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-coin-symbol {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--theme-ui-muted-text-75);
    text-transform: uppercase;
}

.home-market-value {
    font-weight: 600;
    color: var(--theme-primary-text);
}

.home-market-value--placeholder,
.home-col-market--placeholder .home-market-value {
    filter: blur(5px);
    opacity: 0.55;
    user-select: none;
}

.home-change-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-change-pill--up {
    color: var(--success-color);
    background: color-mix(in srgb, var(--success-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--success-color) 28%, transparent);
}

.home-change-pill--down {
    color: var(--error-color);
    background: color-mix(in srgb, var(--error-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--error-color) 28%, transparent);
}

.home-change-pill--placeholder {
    filter: blur(4px);
    opacity: 0.55;
    user-select: none;
}

.home-tab--disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.home-col-name,
.home-col-symbol {
    text-align: start;
}

.home-col-name {
    max-width: 14rem;
}

.home-symbol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border-strong);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-primary-text);
}

.home-table-section__filters {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-control-border);
}

.crypto-table .positive {
    color: var(--success-color);
    font-weight: 600;
}

.crypto-table .negative {
    color: var(--error-color);
    font-weight: 600;
}

.home-col-name,
.home-col-symbol {
    vertical-align: middle;
}

.home-coin-placeholder-note {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
    text-align: start;
}

/* Coming soon / market gate */
.market-gate {
    position: relative;
}

.market-gate--locked .market-gate__content {
    pointer-events: none;
    user-select: none;
}

.market-gate--locked.home-hero-highlight .market-gate__content,
.market-gate--locked.home-stat-card .market-gate__content {
    filter: blur(3px);
    opacity: 0.72;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--theme-surface-strong) 55%, transparent),
        color-mix(in srgb, var(--neon-primary) 8%, transparent)
    );
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.home-table-shell--market-locked .coming-soon-overlay {
    inset-block: 0;
    inset-inline-start: 42%;
    inset-inline-end: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 0.5rem;
    border-radius: 0 0.85rem 0.85rem 0;
}

[dir="rtl"] .home-table-shell--market-locked .coming-soon-overlay {
    border-radius: 0.85rem 0 0 0.85rem;
}

.home-table-shell--market-locked .coming-soon-overlay__panel {
    max-width: 11rem;
    padding: 0.65rem 0.75rem;
}

.home-table-shell--market-locked .coming-soon-overlay__title {
    font-size: 0.72rem;
    line-height: 1.3;
}

.home-hero-highlight--gated .coming-soon-overlay,
.home-stat-card--gated .coming-soon-overlay {
    border-radius: inherit;
}

.coming-soon-overlay__panel {
    max-width: 26rem;
    text-align: center;
    padding: 1.15rem 1.35rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--neon-primary) 35%, var(--theme-control-border));
    background: color-mix(in srgb, var(--theme-surface-strong) 82%, transparent);
    box-shadow: var(--theme-card-shadow), 0 0 28px color-mix(in srgb, var(--neon-primary) 18%, transparent);
    pointer-events: auto;
}

.coming-soon-overlay__panel--compact {
    max-width: 14rem;
    padding: 0.7rem 0.85rem;
}

.coming-soon-overlay__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-primary);
    background: color-mix(in srgb, var(--neon-primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--neon-primary) 30%, transparent);
}

.coming-soon-overlay__title {
    margin: 0.55rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary-text);
    line-height: 1.35;
}

.coming-soon-overlay__panel--compact .coming-soon-overlay__title {
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

.coming-soon-overlay__message {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted-foreground);
}

.coming-soon-overlay__panel--compact .coming-soon-overlay__message {
    display: none;
}

.home-stat-value--placeholder {
    filter: blur(4px);
    opacity: 0.6;
}

/* Coin detail market preview */
.coin-market-preview {
    padding: 1.35rem 1.5rem;
}

.coin-market-preview__gate.market-gate {
    min-height: 16rem;
    border-radius: 0.9rem;
}

.coin-market-preview__header {
    margin-bottom: 1rem;
}

.coin-market-preview__kicker {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.coin-market-preview__price {
    margin: 0.35rem 0 0;
}

.coin-market-preview__price-value {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--theme-primary-text);
    line-height: 1.1;
}

.coin-market-preview__price-value--placeholder,
.coin-market-preview__stat-value--placeholder {
    filter: blur(5px);
    opacity: 0.55;
    user-select: none;
}

.coin-market-preview__change {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.55rem 0 0;
}

.coin-market-preview__change-label {
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-market-preview__chart {
    display: flex;
    align-items: flex-end;
    gap: 0.28rem;
    height: 7.5rem;
    margin: 0.5rem 0 1.1rem;
    padding: 0.65rem 0.55rem 0.2rem;
    border-radius: 0.85rem;
    border: 1px solid var(--theme-control-border);
    background: linear-gradient(180deg, var(--theme-muted-surface), transparent);
}

.coin-market-preview__bar {
    flex: 1;
    height: var(--bar-height, 40%);
    border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
    background: linear-gradient(180deg, var(--neon-primary), color-mix(in srgb, var(--neon-primary) 35%, transparent));
    opacity: 0.72;
}

.market-gate--locked .coin-market-preview__chart,
.market-gate--locked .coin-market-preview__stats {
    filter: blur(4px);
    opacity: 0.65;
}

.coin-market-preview__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.coin-market-preview__stat {
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
}

.coin-market-preview__stat dt {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.coin-market-preview__stat dd {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--theme-ui-muted-text-85);
}

.home-page-link {
    display: inline-flex;
    min-width: 2.4rem;
    justify-content: center;
    padding: 0.45rem 0.58rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-ui-muted-text-88);
    font-size: 0.78rem;
    text-decoration: none;
    transition: background var(--ui-hover-duration) var(--ui-hover-easing), color var(--ui-hover-duration) var(--ui-hover-easing), border-color var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.home-page-link:hover {
    border-color: var(--theme-control-bg-alt);
    transform: translateY(var(--ui-hover-rise));
}

.home-page-link.is-active {
    border-color: var(--theme-ui-tab-active-text);
    color: var(--theme-ui-tab-active-text);
    background: var(--theme-control-bg-alt);
    font-weight: 700;
}

.home-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.home-pagination-summary {
    margin-left: 0.45rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.home-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* تیتر و زمان آخرین بروزرسانی (برای استفاده عمومی در صفحات) */
.page-title {
    text-align: center;
    margin-top: 1rem;
}

.last-updated {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

/* صفحات ورود و ثبت‌نام */
.auth-shell {
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 1.8rem) 0.9rem;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: color-mix(in srgb, var(--theme-ui-form-bg) 78%, transparent);
    border: 1px solid var(--theme-control-border);
    border-radius: 1.1rem;
    padding: 1.6rem;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), var(--theme-ui-accent-shadow);
    position: relative;
    overflow: hidden;
    animation: authCardReveal 0.58s var(--ui-hover-easing) both;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: -45% -30% auto auto;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.24), transparent 65%);
    pointer-events: none;
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -45% auto;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--neon-accent-rgb), 0.2), transparent 68%);
    pointer-events: none;
}

.auth-header {
    position: relative;
    z-index: 1;
}

.auth-title {
    margin: 0 0 0.45rem;
    color: transparent;
    background: var(--theme-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: var(--theme-heading-shadow);
    font-size: clamp(1.6rem, 2.8vw, 1.95rem);
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 1.2rem;
    color: var(--theme-ui-muted-text-88);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.auth-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-card .auth-field {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card .auth-input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
    transition: transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.auth-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--ui-hover-duration) var(--ui-hover-easing), transform var(--ui-hover-duration) var(--ui-hover-easing);
}

.auth-field.is-focused .auth-label {
    color: var(--neon-accent);
    transform: translateY(-1px);
}

.auth-input {
    width: 100%;
    border-radius: 0.7rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--theme-ui-input-border);
    background: var(--input-bg);
    color: var(--neon-foreground);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.16s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.auth-input:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.22);
    transform: translateY(-1px);
}

.auth-field.is-filled .auth-input {
    box-shadow: 0 0 0 0.11rem rgba(129, 140, 248, 0.12) inset;
}

.auth-submit {
    margin-top: 0.2rem;
}

.auth-submit:hover {
    background: var(--neon-accent);
}

.auth-submit:active {
    transform: translateY(0) scale(0.99);
}

.captcha-field {
    gap: 0.65rem;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.captcha-image {
    display: block;
    border-radius: 0.55rem;
    border: 1px solid var(--theme-ui-input-border);
    background: #1a1f2e;
    cursor: pointer;
}

.captcha-refresh {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.55rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-subtle-surface);
    color: var(--neon-foreground);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.captcha-refresh:hover {
    border-color: var(--neon-primary);
    background: rgba(129, 140, 248, 0.12);
}

.auth-link {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.88rem;
}

.auth-lang-switcher {
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.auth-lang-switcher li a {
    text-decoration: none;
    color: var(--muted-foreground);
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--theme-control-border);
    border-radius: 999px;
    background: var(--theme-subtle-surface);
    transition: all var(--ui-hover-duration) var(--ui-hover-easing);
}

.auth-lang-switcher li a:hover {
    color: var(--theme-primary-text);
    border-color: var(--neon-accent);
    box-shadow: 0 0 14px rgba(var(--neon-accent-rgb), 0.22);
}

.auth-field-inline {
    padding-top: 0.12rem;
}

.auth-inline-label {
    gap: 0.48rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.auth-inline-label input[type="checkbox"] {
    accent-color: var(--neon-primary);
    width: 0.96rem;
    height: 0.96rem;
}

.auth-card .password-requirements li {
    color: var(--theme-ui-muted-text-88);
}

.auth-submit {
    border-radius: 0.7rem;
    padding: 0.78rem 1rem;
}

.field-hint {
    min-height: 1rem;
    font-size: 0.8rem;
    color: var(--theme-ui-muted-text-80);
}

@keyframes authCardReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes validationErrorShake {
    0% {
        transform: translateX(0);
    }
    12% {
        transform: translateX(-1px);
    }
    24% {
        transform: translateX(1px);
    }
    36% {
        transform: translateX(-1px);
    }
    48% {
        transform: translateX(1px);
    }
    60% {
        transform: translateX(0);
    }
}

.home-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.home-hero-btn--primary {
    background: var(--theme-control-bg);
    border: 1px solid var(--theme-control-border-strong);
    color: var(--theme-primary-text);
    box-shadow: var(--theme-control-shadow);
}

.home-hero-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-control-shadow-soft);
}

.home-hero-btn--ghost {
    background: transparent;
    border: 1px solid var(--theme-muted-border);
    color: var(--muted-foreground);
}

.home-hero-btn--ghost:hover {
    border-color: var(--theme-control-border-strong);
    color: var(--theme-primary-text);
}

.home-search {
    position: relative;
    max-width: 24rem;
}

.coin-search {
    position: relative;
}

.coin-search__input,
.home-search__input {
    width: 100%;
    padding: 0.58rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--theme-control-border);
    background: var(--input-bg);
    color: var(--neon-foreground);
    font-size: 0.88rem;
    box-shadow: none;
    transition: border-color 0.15s ease;
}

.site-header-search .coin-search__input {
    width: 11.5rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
}

.coin-search__input::placeholder,
.home-search__input::placeholder {
    color: var(--theme-ui-muted-text-75);
}

.coin-search__input:focus,
.home-search__input:focus {
    outline: none;
    border-color: var(--neon-border-strong);
    box-shadow: none;
}

.coin-search__results,
.home-search__results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    border-radius: 0.6rem;
    border: 1px solid var(--theme-control-border);
    background: var(--neon-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
    z-index: 12;
    max-height: 16rem;
    overflow: auto;
}

.coin-search__result,
.home-search__result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 0.55rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: start;
}

.coin-search__result:hover,
.coin-search__result.is-active,
.home-search__result:hover,
.home-search__result.is-active {
    background: var(--theme-muted-surface);
}

.coin-search__result-symbol,
.home-search__result-symbol {
    font-weight: 700;
    min-width: 3.2rem;
}

.coin-search__result-name,
.home-search__result-name {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-search {
    flex: 0 1 auto;
    min-width: 0;
}

.site-nav-search {
    padding: 0 0.15rem 0.65rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--theme-header-border);
    box-sizing: border-box;
}

.site-nav-search .coin-search__input {
    width: 100%;
    box-sizing: border-box;
}

.home-hero-note {
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
}

.home-hero-note__link {
    color: var(--neon-primary);
    font-weight: 600;
    text-decoration: none;
}

.home-hero-note__link:hover {
    color: var(--neon-accent);
}

.home-hero-highlight-value--date {
    font-size: 0.82rem;
    font-weight: 700;
}

.home-hero-glow {
    animation: none;
}

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

/* بخش‌های جدید لندینگ */
.home-section-head {
    margin-bottom: 1rem;
}

.home-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-section-head__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-section-head__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    color: var(--muted-foreground);
    max-width: 40rem;
    line-height: 1.5;
}

.home-section-head__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neon-primary);
    text-decoration: none;
    white-space: nowrap;
}

.home-section-head__link:hover {
    color: var(--neon-accent);
}

.home-ticker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
    box-shadow: none;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.home-ticker__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
    white-space: nowrap;
}

.home-ticker__viewport {
    overflow: hidden;
    min-width: 0;
    touch-action: pan-y pinch-zoom;
}

.home-ticker__track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
    pointer-events: none;
}

.home-ticker__segment {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.home-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    white-space: nowrap;
    pointer-events: auto;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.home-ticker__item:hover {
    border-color: var(--theme-muted-border);
    background: var(--theme-muted-surface);
}

.home-ticker__symbol {
    font-weight: 700;
    font-size: 0.82rem;
}

.home-ticker__price {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

.home-ticker__change {
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.home-ticker__change--up { color: var(--success-color); }
.home-ticker__change--down { color: var(--error-color); }
.home-ticker__change--muted { color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
    .home-ticker__track {
        flex-wrap: wrap;
        width: 100%;
        transform: none !important;
    }

    .home-ticker__segment[data-ticker-clone] {
        display: none;
    }
}

.home-discover__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-discover-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.home-discover-card:hover {
    border-color: var(--theme-control-border-strong);
    background: var(--theme-subtle-surface);
}

.home-discover-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    color: var(--neon-primary);
    background: color-mix(in srgb, var(--neon-primary) 12%, transparent);
}

.home-discover-card__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.home-discover-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-discover-card__desc {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.45;
    flex: 1;
}

.home-discover-card__cta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neon-primary);
}

.home-news-preview .news-grid,
.home-community-preview .coin-page__tweet-grid {
    width: 100%;
}

.home-community-preview button:not(.neon-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle) {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    will-change: auto;
}

.home-community-preview button:not(.neon-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):hover,
.home-community-preview button:not(.neon-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):active {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.home-community-preview {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.75rem;
}

.home-community-preview .community-feed--embed {
    margin: 0;
}

.home-platform__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-platform-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
    box-shadow: none;
}

.home-platform-stat__value {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--theme-primary-text);
    font-variant-numeric: tabular-nums;
}

.home-platform-stat__label {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.home-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.4rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
    box-shadow: none;
}

.home-cta-banner__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-cta-banner__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    color: var(--muted-foreground);
    max-width: 34rem;
    line-height: 1.45;
}

.home-cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.home-cta-banner__btn--primary {
    background: var(--neon-primary);
    border: 1px solid color-mix(in srgb, var(--neon-primary) 85%, transparent);
    color: var(--theme-on-primary);
    box-shadow: none;
}

.home-cta-banner__btn--primary:hover {
    background: color-mix(in srgb, var(--neon-primary) 88%, white);
}

.home-cta-banner__btn--ghost {
    border: 1px solid var(--theme-control-border);
    color: var(--muted-foreground);
    background: transparent;
}

.home-cta-banner__btn--ghost:hover {
    color: var(--theme-primary-text);
    border-color: var(--theme-control-border-strong);
}

.home-market-snapshot__list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--theme-control-border);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--theme-muted-surface);
}

.home-market-snapshot__head,
.home-market-snapshot__row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1.4fr) minmax(5.5rem, 1fr) minmax(5rem, auto);
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
}

.home-market-snapshot__head {
    padding-block: 0.55rem;
    border-bottom: 1px solid var(--theme-control-border);
    background: var(--theme-subtle-surface);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-90);
}

.home-market-snapshot__head-price,
.home-market-snapshot__head-change,
.home-market-snapshot__price,
.home-market-snapshot__change {
    text-align: end;
}

.home-market-snapshot__row {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--theme-control-border);
    transition: background 0.15s ease;
}

.home-market-snapshot__row:last-child {
    border-bottom: none;
}

.home-market-snapshot__row:hover {
    background: var(--theme-subtle-surface);
}

.home-market-snapshot__rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--theme-ui-muted-text-75);
    font-variant-numeric: tabular-nums;
}

.home-market-snapshot__asset {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.home-market-snapshot__symbol {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.home-market-snapshot__name {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-market-snapshot__price {
    font-family: var(--font-price);
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--neon-foreground);
    text-align: end;
}

.home-market-snapshot__change {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: end;
    color: var(--neon-foreground);
}

.home-market-snapshot__change--up { color: var(--success-color); }
.home-market-snapshot__change--down { color: var(--error-color); }

.markets-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.markets-page__macro-link {
    margin: -0.35rem 0 0;
    font-size: 0.86rem;
}

.markets-page__macro-link a {
    color: var(--neon-primary);
    text-decoration: none;
    font-weight: 600;
}

.markets-page__macro-link a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.markets-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    border-radius: 1.1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
}

.markets-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.markets-hero__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--theme-primary-text);
    line-height: 1.15;
}

.markets-hero__subtitle {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    max-width: 36rem;
    line-height: 1.55;
}

.markets-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-content: start;
}

.markets-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-subtle-surface);
    min-width: 0;
}

.markets-hero-stat__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.markets-hero-stat__value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--theme-primary-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.markets-hero-stat__hint {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.markets-hero-stat__hint--up { color: var(--success-color); }
.markets-hero-stat__hint--down { color: var(--error-color); }

.markets-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.markets-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.markets-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
    width: fit-content;
    max-width: 100%;
}

.markets-tab {
    border-radius: 0.55rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--theme-ui-muted-text-80);
    transition: background 0.15s ease, color 0.15s ease;
}

.markets-tab:hover {
    color: var(--theme-primary-text);
}

.markets-tab--active {
    background: var(--neon-primary);
    color: var(--theme-on-primary);
}

.markets-toolbar__hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.markets-table-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--theme-control-border);
    border-radius: 0.9rem;
    background: var(--theme-muted-surface);
    overflow: hidden;
    contain: inline-size;
}

.markets-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    --markets-row-height: 2.65rem;
    max-height: calc(var(--markets-row-height) * 10 + 2.45rem);
}

.markets-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}

.markets-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.markets-table thead tr {
    background: var(--theme-subtle-surface);
    border-bottom: 1px solid var(--theme-control-border);
}

.markets-table th {
    padding: 0.7rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-90);
    text-align: center;
    white-space: nowrap;
}

.markets-table td {
    padding: 0.72rem 0.85rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-control-border) 65%, transparent);
}

.markets-table__row:hover {
    background: var(--theme-subtle-surface);
}

.markets-table__row:last-child td {
    border-bottom: none;
}

.markets-table__col-rank {
    width: 3rem;
}

.markets-table__col-asset {
    text-align: start;
    min-width: 11rem;
}

.markets-table__col-num {
    min-width: 5.5rem;
}

.markets-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--theme-ui-muted-text-80);
}

.markets-asset {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.markets-asset__avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--theme-primary-text);
    background: var(--theme-subtle-surface);
    border: 1px solid var(--theme-control-border);
    flex-shrink: 0;
}

.markets-asset__meta {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.markets-asset__name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--theme-primary-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.markets-asset__symbol {
    font-size: 0.72rem;
    color: var(--muted-foreground);
}

.markets-num {
    font-family: var(--font-price);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--neon-foreground);
}

.markets-num--placeholder {
    opacity: 0.55;
}

.markets-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.markets-pill--up {
    color: var(--success-color);
    background: color-mix(in srgb, var(--success-color) 12%, transparent);
}

.markets-pill--down {
    color: var(--error-color);
    background: color-mix(in srgb, var(--error-color) 12%, transparent);
}

.markets-pill--placeholder {
    opacity: 0.55;
}

.markets-table__empty {
    margin: 0;
    text-align: start;
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.markets-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding-top: 0.25rem;
}

.markets-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.45rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.markets-page-link:hover:not(.is-disabled) {
    color: var(--theme-primary-text);
    border-color: var(--theme-control-border-strong);
}

.markets-page-link.is-active {
    background: var(--neon-primary);
    border-color: transparent;
    color: var(--theme-on-primary);
}

.markets-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.markets-pagination__summary {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    margin-inline-start: 0.35rem;
}

/* ریسپانسیو صفحه خانه */
@media (max-width: 900px) {
    .site-header-search {
        display: none;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-glow {
        order: -1;
        max-width: 360px;
        margin-inline: auto;
        aspect-ratio: 1 / 1;
    }

    .home-hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-discover__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .home-ticker {
        grid-template-columns: minmax(0, 1fr);
    }

    .markets-hero {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .home-floating-crypto-icon {
        width: calc(var(--theme-float-size) * 0.85);
        height: calc(var(--theme-float-size) * 0.85);
    }
}

@media (max-width: 900px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .site-header-end {
        gap: 0.35rem;
    }

    .header-language-label {
        display: none;
    }

    .site-nav-menu-label {
        display: none;
    }

    .site-nav-menu-panel {
        position: fixed;
        top: 4.25rem;
        inset-inline: 0.75rem;
        width: auto;
        max-height: calc(100vh - 5.5rem);
        overflow: auto;
    }

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

    .markets-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .language-dropdown-list {
        width: min(12.5rem, 100vw - 3rem);
        left: 0;
        inset-inline-end: auto;
    }

    .language-dropdown summary {
        width: fit-content;
    }

    .home-hero-highlights {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-market-snapshot__head,
    .home-market-snapshot__row {
        grid-template-columns: 1.5rem minmax(0, 1fr) 4.5rem 4.25rem;
        gap: 0.45rem;
        padding-inline: 0.65rem;
    }

    .home-market-snapshot__head {
        font-size: 0.62rem;
    }

    .home-platform__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-floating-crypto-layer {
        inset: -10% 0 0 0;
        opacity: 0.65;
    }

    .home-community-preview {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .site-main:has(.home-page) .container {
        padding-bottom: 0.5rem;
    }

    .site-footer {
        margin-top: 0.35rem;
    }

    .home-floating-crypto-icon {
        width: calc(var(--theme-float-size) * 0.68);
        height: calc(var(--theme-float-size) * 0.68);
    }

    .crypto-table th,
    .crypto-table td {
        padding-inline: 0.4rem;
    }

    .home-coin-avatar {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.8rem;
    }

    .home-coin-name {
        font-size: 0.82rem;
    }

    .coin-market-preview__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-table-shell--market-locked .coming-soon-overlay {
        inset-inline-start: 50%;
    }

    .home-table-shell--market-locked .coming-soon-overlay__panel {
        max-width: 9rem;
    }

    .coming-soon-overlay__panel {
        max-width: 18rem;
        padding: 0.9rem 1rem;
    }

    .markets-hero {
        padding: 1rem 1.1rem;
        gap: 1rem;
    }

    .markets-tabs {
        width: 100%;
        box-sizing: border-box;
    }

    .markets-tab {
        flex: 1 1 0;
        text-align: center;
        padding: 0.4rem 0.45rem;
        font-size: 0.74rem;
    }

    .markets-toolbar__hint {
        font-size: 0.74rem;
        line-height: 1.45;
    }

    .markets-table-scroll {
        --markets-row-height: 2.35rem;
    }

    .markets-table {
        font-size: 0.78rem;
    }

    .markets-table th,
    .markets-table td {
        padding: 0.42rem 0.45rem;
    }

    .markets-table__col-rank {
        width: 2.25rem;
    }

    .markets-table__col-asset {
        min-width: 7.5rem;
    }

    .markets-table__col-num {
        min-width: 4rem;
    }

    .markets-table__col--optional {
        display: none;
    }

    .markets-asset__avatar {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.68rem;
        border-radius: 0.4rem;
    }

    .markets-asset {
        gap: 0.45rem;
    }

    .markets-asset__name {
        font-size: 0.8rem;
    }

    .markets-asset__symbol {
        font-size: 0.68rem;
    }

    .markets-pill {
        min-width: 0;
        padding: 0.1rem 0.3rem;
        font-size: 0.72rem;
        border-radius: 0.3rem;
        background: transparent;
    }

    .markets-pill--up,
    .markets-pill--down {
        background: transparent;
    }

    .markets-rank {
        min-width: 1.35rem;
        font-size: 0.72rem;
    }

    .markets-pagination {
        gap: 0.35rem;
    }

    .markets-page-link {
        min-width: 1.85rem;
        padding: 0.32rem 0.5rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 640px) {
    .static-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.static-page {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-block: 2.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.static-hero {
    background: var(--theme-surface);
    border: 1px solid var(--theme-control-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    box-shadow: var(--theme-card-shadow);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.static-hero-meta {
    flex: 1 1 18rem;
    min-width: 0;
    max-width: 100%;
}

.static-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-85);
}

.static-hero-lede {
    margin-top: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

.static-hero-card {
    background: var(--neon-bg-alt);
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    padding: 1.6rem;
    flex: 1 1 16rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: var(--theme-card-shadow);
    overflow-wrap: anywhere;
}

.static-hero-card strong {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-85);
}

.static-hero-card a {
    color: var(--neon-primary);
    text-decoration: none;
    word-break: break-all;
}

.static-section {
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-control-border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--theme-card-shadow);
}

.static-section-header {
    margin-bottom: 1.4rem;
}

.static-section-header h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--theme-primary-text);
}

.static-section-header p {
    margin: 0.35rem 0 0;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.static-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.static-card {
    border-radius: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--theme-control-border);
    min-height: 160px;
    color: var(--neon-foreground);
    background: var(--neon-surface-soft);
}

.static-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--theme-primary-text);
}

.static-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.static-list li {
    padding-left: 1.2rem;
    position: relative;
    color: var(--neon-foreground);
}

.static-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--neon-accent);
    box-shadow: 0 0 12px rgba(var(--neon-accent-rgb), 0.65);
}

.static-list--rules li::before {
    background: var(--neon-primary);
}

.static-quote {
    border-left: 3px solid var(--neon-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

.static-section-footnote {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.static-contact-email {
    font-size: 1rem;
    margin: 0;
    min-width: 0;
}

.static-contact-email a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.static-contact-hours {
    margin: 0;
    font-weight: 600;
    color: var(--theme-ui-muted-text-85);
}

.static-contact-form-note {
    margin: 0;
    color: var(--muted-foreground);
}

.static-section-header h2 + p {
    margin-top: 0.35rem;
}

.static-section-header h2:last-child {
    margin-bottom: 0;
}

.static-section-header p:last-child {
    margin-bottom: 0;
}

.static-section-header h2 + p + p {
    margin-top: 0.2rem;
}

.static-section .static-list li {
    line-height: 1.5;
}

@media (max-width: 900px) {
    .static-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .static-hero-meta {
        max-width: 100%;
    }

    .static-hero-card {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .static-hero {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }

    .static-hero-card {
        padding: 1rem 0.9rem;
    }

    .static-hero-card strong {
        letter-spacing: 0.06em;
        font-size: 0.78rem;
    }

    .static-section {
        padding: 1.8rem;
    }
}

/* News, coin, and analysis pages */
.news-page {
    padding: 1.5rem 0 3rem;
    display: grid;
    gap: 1.75rem;
}

.news-hero {
    padding: 0 0 1.35rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--theme-control-border);
}

.news-hero__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.news-hero__title {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.25;
    background: var(--theme-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.news-hero__subtitle {
    margin: 0.75rem 0 0;
    max-width: 42rem;
    color: var(--theme-ui-muted-text-85);
    line-height: 1.7;
}

.news-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.news-section-head__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.news-section-head__hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--theme-ui-muted-text-75);
}

.news-featured-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

.news-grid--fluid {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .news-grid,
    .news-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .news-grid,
    .news-featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.news-list-section {
    display: grid;
    gap: 1rem;
}

.news-featured {
    display: grid;
    gap: 1rem;
}

.news-card,
.analysis-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: auto;
    min-height: 0;
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.news-card:hover {
    border-color: var(--neon-border-strong);
    transform: none;
}

.news-card--featured {
    border-color: color-mix(in srgb, var(--neon-primary) 35%, var(--neon-border-soft));
}

.news-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.news-card__date {
    margin-inline-start: auto;
    font-size: 0.75rem;
    color: var(--theme-ui-muted-text-75);
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-badge--breaking {
    color: var(--theme-badge-breaking-text);
    background: linear-gradient(135deg, var(--neon-accent), var(--neon-accent-strong));
    box-shadow: 0 0 14px rgba(var(--neon-accent-rgb), 0.42);
}

.news-badge--featured {
    color: var(--theme-badge-featured-text);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

.news-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.news-card__title a {
    color: var(--neon-foreground);
    text-decoration: none;
    font-weight: 600;
}

.news-card__title a:hover {
    color: var(--neon-accent);
}

.news-card__summary {
    margin: 0;
    color: var(--theme-ui-muted-text-85);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.news-chip--symbol {
    border: 1px solid var(--theme-control-border-strong);
    background: var(--theme-control-bg-alt);
    color: var(--theme-primary-text);
}

.news-chip--symbol:hover {
    border-color: var(--neon-border-strong);
}

.news-chip--tag {
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--theme-ui-muted-text-88);
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--theme-border-faint);
}

.news-card__views {
    font-size: 0.75rem;
    color: var(--theme-ui-muted-text-75);
}

.news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-primary);
    text-decoration: none;
}

.news-card__cta:hover {
    color: var(--neon-accent);
}

.news-pagination {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
}

.neon-pagination__bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
}

.neon-pagination__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--neon-foreground);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.neon-pagination__nav:hover:not(.is-disabled) {
    background: var(--theme-surface-overlay);
    border-color: var(--neon-border-soft);
}

.neon-pagination__nav.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.neon-pagination__nav-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.neon-pagination__status {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 5.5rem;
    justify-content: center;
    padding: 0 0.35rem;
    font-size: 0.82rem;
    color: var(--theme-ui-muted-text-80);
    user-select: none;
}

.neon-pagination__status-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-foreground);
    font-variant-numeric: tabular-nums;
}

.neon-pagination__status-total {
    font-weight: 600;
    color: var(--theme-ui-muted-text-85);
    font-variant-numeric: tabular-nums;
}

.neon-pagination__status-sep {
    opacity: 0.55;
}

.neon-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.neon-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
    color: var(--theme-ui-muted-text-88);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    transition:
        border-color var(--ui-hover-duration) var(--ui-hover-easing),
        color var(--ui-hover-duration) var(--ui-hover-easing),
        background var(--ui-hover-duration) var(--ui-hover-easing);
}

.neon-pagination__item:hover:not(.is-disabled):not(.is-active) {
    border-color: var(--neon-border-strong);
    color: var(--theme-primary-text);
}

.neon-pagination__item.is-active {
    border-color: var(--neon-border-strong);
    color: var(--theme-primary-text);
    background: color-mix(in srgb, var(--neon-primary) 18%, var(--theme-control-bg));
    font-weight: 600;
}

.neon-pagination__item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.neon-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: var(--theme-ui-muted-text-75);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .neon-pagination__nav {
        padding: 0.35rem 0.55rem;
        font-size: 0.76rem;
    }

    .neon-pagination__status-label {
        display: none;
    }
}

.news-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--theme-ui-muted-text-85);
}

/* News detail */
.news-detail {
    gap: 1.35rem;
}

.news-detail-hero {
    padding: 0 0 1.35rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--theme-control-border);
}

.news-detail-cover {
    margin: 0 0 1.25rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
}

.news-detail-cover__image {
    display: block;
    width: 100%;
    max-height: 28rem;
    object-fit: cover;
}

.news-detail-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.news-detail-hero__title {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.35rem);
    line-height: 1.28;
    color: var(--theme-primary-text);
}

.news-detail-hero__summary {
    margin: 0.85rem 0 0;
    color: var(--theme-ui-muted-text-88);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 52rem;
}

.news-detail-hero__meta {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.news-detail-hero__meta li {
    display: grid;
    gap: 0.12rem;
}

.news-detail-hero__meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 1.1rem;
    align-items: start;
}

.news-detail__body {
    padding: 1.5rem 1.4rem;
    line-height: 1.85;
    color: var(--neon-foreground);
}

.news-detail__body p {
    margin: 0 0 1rem;
}

.news-detail__body p:last-child {
    margin-bottom: 0;
}

.news-detail-sidebar {
    display: grid;
    gap: 0.85rem;
    position: sticky;
    top: 5.5rem;
}

.news-sidebar-block {
    padding: 1rem 1.05rem;
}

.news-sidebar-block__title {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.news-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.news-tag {
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    border: 1px solid var(--neon-border-strong);
    font-size: 0.8rem;
    color: var(--theme-ui-muted-text-90);
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 70%, transparent);
}

.news-currency-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.news-currency-list a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.55rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid var(--theme-control-border);
    text-decoration: none;
    transition:
        border-color var(--ui-hover-duration) var(--ui-hover-easing),
        background var(--ui-hover-duration) var(--ui-hover-easing);
}

.news-currency-list a:hover {
    border-color: var(--neon-border-strong);
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 80%, transparent);
}

.news-currency-list__symbol {
    font-weight: 700;
    color: var(--theme-primary-text);
}

.news-currency-list__name {
    grid-column: 2;
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-80);
}

.news-detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--theme-control-border);
}

.news-share {
    position: relative;
}

.news-share__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border-strong);
    background: var(--theme-control-bg);
    color: var(--theme-primary-text);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color var(--ui-hover-duration) var(--ui-hover-easing),
        background var(--ui-hover-duration) var(--ui-hover-easing);
}

.news-share__trigger:hover {
    border-color: var(--neon-border-strong);
}

.news-share__trigger-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.news-share__menu {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 0.5rem);
    z-index: 20;
    display: grid;
    gap: 0.3rem;
    min-width: 12.5rem;
    padding: 0.45rem;
    border-radius: 0.85rem;
    border: 1px solid var(--theme-control-border-strong);
    background: var(--theme-surface-strong);
    box-shadow: var(--theme-control-shadow-soft);
}

.news-share__menu[hidden] {
    display: none;
}

.news-share__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: none;
    border-radius: 0.55rem;
    background: transparent;
    color: var(--neon-foreground);
    font-size: 0.84rem;
    text-align: start;
    cursor: pointer;
    transition: background var(--ui-hover-duration) var(--ui-hover-easing);
}

.news-share__option:hover {
    background: color-mix(in srgb, var(--theme-ui-language-item-bg) 85%, transparent);
}

.news-share__option-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    flex-shrink: 0;
}

.news-detail-back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-ui-muted-text-90);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.news-detail-back__link:hover {
    color: var(--theme-primary-text);
}

@media (max-width: 1024px) {
    .news-featured-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .news-detail-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .news-share {
        width: 100%;
    }

    .news-share__trigger {
        width: 100%;
        justify-content: center;
    }

    .news-share__menu {
        inset-inline: 0;
        bottom: calc(100% + 0.5rem);
    }

    .news-card__date {
        margin-inline-start: 0;
        width: 100%;
    }
}

.coin-page__news,
.coin-page__analyses {
    margin-top: 2rem;
}

/* Coin detail page layout */
.coin-page {
    display: grid;
    gap: 1.15rem;
    padding: 0.25rem 0 1.75rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.coin-page__hero.static-card {
    min-height: 0;
    padding: 1rem 1.2rem;
    margin-top: 0;
}

.coin-page__hero {
    display: grid;
    gap: 0.85rem;
    background: var(--theme-muted-surface);
}

.coin-page__hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.coin-page__hero-bar {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.coin-page__hero-col--price {
    display: flex;
    justify-content: center;
}

.coin-page__hero-col--stats {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.coin-page__hero-main {
    display: grid;
    gap: 0.65rem;
    min-width: min(100%, 18rem);
}

.coin-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    margin: 0;
    font-size: 0.8rem;
    color: var(--theme-ui-muted-text-80);
    text-decoration: none;
}

.coin-page__identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.coin-page__symbol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.85rem;
    border: 1px solid var(--neon-border-strong);
    background: var(--theme-control-bg);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--neon-primary);
}

.coin-page__title {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.1rem);
    line-height: 1.15;
}

.coin-page__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--theme-ui-muted-text-75);
    letter-spacing: 0.06em;
}

.coin-page__price-block {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
}

.coin-page__price-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.coin-page__price {
    margin: 0;
    font-family: var(--font-price);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--theme-primary-text);
    line-height: 1.1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.coin-page__price--flash-up {
    animation: coin-price-flash-up 0.65s ease;
}

.coin-page__price--flash-down {
    animation: coin-price-flash-down 0.65s ease;
}

@keyframes coin-price-flash-up {
    0% { color: var(--theme-primary-text); transform: scale(1); }
    35% { color: var(--success-color); transform: scale(1.03); }
    100% { color: var(--theme-primary-text); transform: scale(1); }
}

@keyframes coin-price-flash-down {
    0% { color: var(--theme-primary-text); transform: scale(1); }
    35% { color: var(--error-color); transform: scale(1.03); }
    100% { color: var(--theme-primary-text); transform: scale(1); }
}

.coin-page__status-pill--live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.coin-page__live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--success-color);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success-color) 45%, transparent);
    animation: coin-live-dot-pulse 1.8s ease-in-out infinite;
}

.coin-page__status-pill:not(.coin-page__status-pill--live) .coin-page__live-dot {
    background: var(--theme-ui-muted-text-75);
    animation: none;
    box-shadow: none;
}

@keyframes coin-live-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success-color) 35%, transparent); }
    50% { box-shadow: 0 0 0 0.35rem transparent; }
}

.coin-page__change-label {
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__hero-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.coin-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem);
    gap: 1rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.coin-page__main,
.coin-page__aside {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
    max-width: 100%;
}

.coin-page__panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.coin-page__panel-head--compact {
    margin-bottom: 0.65rem;
}

.coin-page__panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.coin-page__chart-panel,
.coin-page__history,
.coin-page__specs,
.coin-page__locked {
    min-height: 0;
    min-width: 0;
    max-width: 100%;
}

.coin-page__chart-panel.static-card,
.coin-page__history.static-card,
.coin-page__specs.static-card,
.coin-page__locked.static-card {
    min-height: 0;
    padding: 1rem 1.15rem;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

.coin-page__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.coin-page__chart-head-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    width: 100%;
}

.coin-page__chart-toolbar-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--theme-control-border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--neon-surface-soft) 60%, transparent);
    overflow: hidden;
}

.coin-page__toolbar-details {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.coin-page__toolbar-details > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.coin-page__toolbar-details > summary::-webkit-details-marker {
    display: none;
}

.coin-page__toolbar-details > summary.coin-page__tool-btn--toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.15rem;
}

.coin-page__toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.coin-page__toolbar-row--primary > .coin-page__toolbar-group:not(:last-of-type),
.coin-page__toolbar-row--extra > .coin-page__toolbar-group:not(:last-child) {
    padding-inline-end: 0.55rem;
    margin-inline-end: 0.55rem;
    border-inline-end: 1px solid var(--theme-control-border);
}

.coin-page__tool-btn {
    border: none;
    background: transparent;
    color: var(--theme-ui-muted-text-80);
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.32rem 0.55rem;
    border-radius: 0.4rem;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.coin-page__tool-btn:hover:not(:disabled):not(.is-disabled) {
    background: color-mix(in srgb, var(--theme-muted-surface) 80%, transparent);
    color: var(--neon-foreground);
    box-shadow: none;
    transform: none;
}

.coin-page__tool-btn.is-active {
    background: color-mix(in srgb, var(--neon-primary) 14%, transparent);
    color: var(--neon-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neon-primary) 35%, transparent);
}

.coin-page__panel-head--chart {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.coin-page__panel-head--chart .coin-page__panel-title {
    font-size: 1.02rem;
}

.coin-page__panel-head--chart .coin-page__resolution-hint {
    margin: 0;
    text-align: end;
}

.coin-page__chart-root {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.coin-page__chart-canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: clamp(260px, 45vh, 420px);
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-muted-surface);
    box-sizing: border-box;
}

.coin-page__chart-canvas > div,
.coin-page__chart-canvas canvas {
    max-width: 100% !important;
}

.coin-page__chart-legend {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 3;
    max-width: calc(100% - 1.3rem);
    width: min(24rem, calc(100% - 1.3rem));
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-muted-surface) 92%, transparent);
    backdrop-filter: blur(8px);
    pointer-events: none;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--theme-ui-muted-text-90);
}

.coin-page__chart-legend-time {
    font-weight: 700;
    color: var(--theme-primary-text);
    margin-bottom: 0.35rem;
}

.coin-page__chart-legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 0.55rem;
}

.coin-page__chart-legend-item em {
    font-style: normal;
    color: var(--theme-ui-muted-text-75);
    margin-inline-end: 0.2rem;
}

.coin-page__chart-legend-item strong {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--neon-foreground);
}

.coin-page__chart-legend-item--volume,
.coin-page__chart-legend-item--change {
    grid-column: span 1;
}

.coin-page__chart-legend-item--change strong.is-up {
    color: var(--neon-primary);
}

.coin-page__chart-legend-item--change strong.is-down {
    color: var(--theme-status-danger-fg);
}

.coin-page__chart-empty-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.65rem;
    padding: 1rem;
    pointer-events: none;
}

.coin-page__chart-empty-wrap[hidden] {
    display: none !important;
}

.coin-page__chart-empty {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--theme-ui-muted-text-80);
    pointer-events: none;
}

.coin-page__chart-empty[hidden] {
    display: none !important;
}

.coin-page__chart-retry {
    pointer-events: auto;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--neon-primary) 45%, transparent);
    background: color-mix(in srgb, var(--neon-primary) 12%, transparent);
    color: var(--neon-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.coin-page__chart-retry:hover {
    background: color-mix(in srgb, var(--neon-primary) 20%, transparent);
}

.coin-page__chart-history-loading {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-muted-surface) 90%, transparent);
    color: var(--theme-ui-muted-text-85);
    font-size: 0.72rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.coin-page__chart-history-loading[hidden] {
    display: none !important;
}

.coin-page__chart-history-loading-spinner {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--neon-primary) 25%, transparent);
    border-top-color: var(--neon-primary);
    animation: coin-chart-history-spin 0.8s linear infinite;
}

@keyframes coin-chart-history-spin {
    to { transform: rotate(360deg); }
}

.coin-page__spec-group + .coin-page__spec-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-control-border);
}

.coin-page__spec-group-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__spec-group .coin-page__spec-list {
    margin-top: 0;
}

.coin-page__spec-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
}

.coin-page__spec-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--theme-control-border);
}

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

.coin-page__spec-item dt {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__spec-item dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-foreground);
    text-align: end;
}

.coin-page__spec-item dd[data-coin-spec="price"],
.coin-page__spec-item dd[data-coin-spec="high_24h"],
.coin-page__spec-item dd[data-coin-spec="low_24h"],
.coin-page__spec-item dd[data-coin-spec="volume"] {
    font-family: var(--font-price);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.coin-page__status-pill {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--theme-control-border);
    color: var(--theme-ui-muted-text-85);
}

.coin-page__status-pill--active {
    border-color: color-mix(in srgb, var(--neon-primary) 45%, transparent);
    color: var(--neon-primary);
    background: color-mix(in srgb, var(--neon-primary) 12%, transparent);
}

.coin-page__history-scroll {
    overflow: auto;
    max-width: 100%;
    max-height: min(28rem, 52vh);
    border-radius: 0.75rem;
    border: 1px solid var(--theme-control-border);
    background: var(--neon-surface-soft);
    scrollbar-width: thin;
}

.coin-page__history-meta {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.coin-page__history-table th,
.coin-page__history-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--theme-control-border);
    white-space: nowrap;
}

.coin-page__history-table th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 8.5rem;
    font-weight: 600;
    text-align: start;
    color: var(--theme-ui-muted-text-85);
    background: var(--neon-surface-soft);
    box-shadow: 1px 0 0 var(--theme-control-border);
}

.coin-page__history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: start;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
    background: color-mix(in srgb, var(--neon-surface-soft) 92%, var(--theme-muted-surface));
    backdrop-filter: blur(4px);
}

.coin-page__history-col-num {
    text-align: end;
    font-family: var(--font-price);
    font-variant-numeric: tabular-nums;
}

.coin-page__history-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--theme-muted-surface) 45%, transparent);
}

.coin-page__history-table tbody tr:hover {
    background: color-mix(in srgb, var(--neon-primary) 8%, var(--theme-muted-surface));
}

.coin-page__history-table tbody tr:last-child td,
.coin-page__history-table tbody tr:last-child th {
    border-bottom: none;
}

.coin-page__locked {
    min-height: 18rem;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--theme-muted-surface), transparent);
}

.coin-page__locked-inner {
    max-width: 28rem;
    padding: 1rem;
}

.coin-page__locked-title {
    margin: 0.65rem 0 0;
    font-size: 1.1rem;
    color: var(--theme-primary-text);
}

.coin-page__locked-message {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--theme-ui-muted-text-80);
}

.coin-page__section {
    display: grid;
    gap: 0.85rem;
}

.coin-page__feed-band {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--theme-border-faint);
    min-width: 0;
    max-width: 100%;
}

.coin-page__feed-duo {
    display: grid;
    gap: 1rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .coin-page__feed-duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.coin-page__feed-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    border-radius: 0.85rem;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
    color: var(--neon-foreground);
    overflow: hidden;
}

.coin-page__feed-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--neon-surface) 40%, transparent);
}

.coin-page__feed-block__title {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--neon-foreground);
}

.coin-page__feed-block__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.coin-page__feed-block__link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--neon-primary);
    text-decoration: none;
    white-space: nowrap;
}

.coin-page__feed-block__link:hover {
    color: var(--theme-primary-text);
    text-decoration: underline;
}

.coin-page__feed-block__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    padding: 1rem 1.15rem 1.15rem;
}

.community-embed-mount {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.coin-page__feed-block__empty {
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--theme-ui-muted-text-80);
    border: 1px dashed var(--theme-control-border);
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--neon-surface) 30%, transparent);
}

.coin-page__feed-block__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--theme-border-faint);
}

.coin-page__feed-block__footer .coin-page__pagination {
    margin-top: 0;
    width: 100%;
}

.coin-page__feed-grid {
    width: 100%;
}

.coin-page__feed-block--news .news-grid {
    gap: 1rem;
}

.coin-page__feed-duo .coin-page__feed-grid--analyses {
    grid-template-columns: minmax(0, 1fr);
}

.coin-page__feed-block .community-feed--embed {
    width: 100%;
}

@media (min-width: 1100px) {
    .coin-page__feed-duo .coin-page__tweet-grid,
    .coin-page__feed-duo .community-feed__embed-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 1099px) {
    .coin-page__feed-block .coin-page__tweet-grid,
    .coin-page__feed-block .community-feed__embed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .coin-page__feed-block .coin-page__tweet-grid,
    .coin-page__feed-block .community-feed__embed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .coin-page__feed-block .coin-page__tweet-grid,
    .coin-page__feed-block .community-feed__embed-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.coin-page__feed-panel {
    padding: 1.1rem 1.2rem 1.2rem;
    border-radius: 0.85rem;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
    box-shadow: none;
    color: var(--neon-foreground);
}

.coin-page__section--community,
.coin-page__section--news {
    gap: 1rem;
}

.coin-page__section-link {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--neon-primary);
    text-decoration: none;
    white-space: nowrap;
}

.coin-page__section-link:hover {
    color: var(--theme-primary-text);
    text-decoration: underline;
}

.coin-page__section-title,
.coin-page__title,
.coin-page__panel-title {
    color: var(--neon-foreground);
}

.coin-page__subtitle,
.coin-page__change-label,
.coin-page__empty,
.coin-page__locked-message,
.coin-page__chart-empty {
    color: var(--theme-ui-muted-text-80);
}

.coin-page__back {
    color: var(--theme-ui-muted-text-80);
}

.coin-page__back:hover {
    color: var(--theme-primary-text);
}

.coin-page__price {
    color: var(--neon-foreground);
}

.coin-page__feed-panel .community-post-card__name,
.coin-page__feed-block .community-post-card__name {
    color: var(--neon-foreground);
}

.coin-page__feed-panel .community-post-card__body,
.coin-page__feed-panel .community-post-card__time,
.coin-page__feed-panel .community-post-card__stat,
.coin-page__feed-block .community-post-card__body,
.coin-page__feed-block .community-post-card__time,
.coin-page__feed-block .community-post-card__stat {
    color: var(--theme-ui-muted-text-85);
}

.coin-page .positive,
.coin-page__spec-item dd.positive,
.coin-page__history-table .positive {
    color: var(--theme-status-success-fg);
    font-weight: 600;
}

.coin-page .negative,
.coin-page__spec-item dd.negative,
.coin-page__history-table .negative {
    color: var(--theme-status-danger-fg);
    font-weight: 600;
}

.coin-page__history-table td {
    color: var(--neon-foreground);
}

.coin-page button:not(.neon-btn):not(.coin-page__tool-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle) {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    color: inherit;
    font: inherit;
    font-weight: inherit;
}

.coin-page button:not(.neon-btn):not(.coin-page__tool-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):hover,
.coin-page button:not(.neon-btn):not(.coin-page__tool-btn):not(.community-reaction-btn):not(.community-reply-btn):not(.community-menu__trigger):not(.community-menu__item):not(.theme-toggle):active {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.coin-page__compose-hint {
    margin: 0.35rem 0 0;
    text-align: end;
}

.coin-page__tweet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 768px) {
    .coin-page__tweet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .coin-page__tweet-grid {
        grid-template-columns: 1fr;
    }
}

.coin-page__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.coin-page__section-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.coin-page__analyses-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.coin-analysis-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.1rem;
}

.coin-analysis-card__head {
    display: grid;
    gap: 0.35rem;
}

.coin-analysis-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.coin-analysis-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-analysis-card__body {
    flex: 1;
    margin: 0.7rem 0 0;
    line-height: 1.65;
    color: var(--theme-ui-muted-text-90);
}

.coin-analysis-card__reactions {
    margin: 0.65rem 0 0;
    font-size: 0.76rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__empty {
    margin: 0;
    padding: 1rem 1.1rem;
    color: var(--theme-ui-muted-text-80);
}

.coin-page__pagination {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .coin-page__analyses-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .coin-page__analyses-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .coin-page__hero {
        padding: 1rem;
    }

    .coin-page__toolbar {
        width: 100%;
        min-width: 0;
    }

    .coin-page__chart-toolbar-shell {
        padding: 0.45rem 0.5rem;
    }

    .coin-page__toolbar-row--primary {
        flex-direction: column;
        align-items: stretch;
    }

    .coin-page__tool-btn--toggle {
        width: 100%;
        margin-inline-start: 0;
        justify-content: center;
    }

    .coin-page__toolbar-group {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .coin-page__toolbar-row--primary > .coin-page__toolbar-group:not(:last-of-type) {
        padding-inline-end: 0;
        margin-inline-end: 0;
        border-inline-end: none;
        padding-bottom: 0.35rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid var(--theme-control-border);
    }

    .coin-page__hero-col--price {
        justify-content: flex-start;
    }

    .coin-page__price-block {
        justify-items: start;
        text-align: start;
    }

    .coin-page__price-meta {
        justify-content: flex-start;
    }

    .coin-page__history-table {
        font-size: 0.74rem;
    }

    .coin-page__spec-item--hero-dup {
        display: none;
    }

    .coin-page__history-scroll {
        display: none;
    }

    .coin-page__history-cards {
        display: grid;
    }

    .coin-page__toolbar-details .coin-page__toolbar-row--extra {
        display: flex;
        margin-top: 0.35rem;
    }

    .coin-page__specs-accordion:not([open]) .coin-page__specs {
        display: none;
    }

    .coin-page__chart-canvas {
        min-height: clamp(220px, 36vh, 320px);
    }

    .coin-page__chart-legend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coin-page__chart-legend {
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        left: 0.5rem;
        font-size: 0.72rem;
    }

    .coin-page__sticky-bar {
        display: flex;
    }
}

@media (min-width: 769px) {
    .coin-page__history-cards {
        display: none;
    }

    .coin-page__toolbar-row--extra {
        display: flex;
    }

    .coin-page__toolbar-details > summary.coin-page__tool-btn--toggle {
        display: none;
    }

    .coin-page__toolbar-details .coin-page__toolbar-row--extra {
        display: flex;
        margin-top: 0;
    }

    .coin-page__specs-summary {
        cursor: default;
        pointer-events: none;
    }

    .coin-page__specs-toggle {
        display: none;
    }
}

.coin-page__quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid var(--theme-control-border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--neon-surface-soft) 72%, transparent);
    overflow: hidden;
}

@media (min-width: 1100px) {
    .coin-page__hero-bar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
    }

    .coin-page__hero-col--identity {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 30%;
    }

    .coin-page__hero-col--price {
        flex: 0 1 auto;
        display: flex;
        justify-content: center;
        min-width: 0;
        max-width: min(38%, 15rem);
    }

    .coin-page__price-block {
        max-width: 100%;
        min-width: 0;
    }

    .coin-page__price {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(1.2rem, 2vw, 1.75rem);
    }

    .coin-page__hero-col--stats {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin-inline-start: auto;
    }

    .coin-page__quick-stats {
        display: inline-flex;
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
        overflow: visible;
        justify-content: flex-end;
    }

    .coin-page__quick-stat {
        flex: 0 0 auto;
        min-width: 4.6rem;
        min-height: auto;
        padding: 0.5rem 0.6rem;
        border-bottom: 0;
        border-inline-end: 1px solid var(--theme-control-border);
    }

    .coin-page__quick-stat--feed {
        min-width: 6.5rem;
        max-width: 9.5rem;
        flex-shrink: 1;
    }

    .coin-page__quick-stat:last-child {
        border-inline-end: none;
    }

    .coin-page__quick-stat--feed .coin-page__quick-stat-label {
        white-space: normal;
        line-height: 1.2;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .coin-page__hero-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "identity price"
            "stats stats";
        align-items: center;
        gap: 0.85rem 1rem;
    }

    .coin-page__hero-col--identity {
        grid-area: identity;
    }

    .coin-page__hero-col--price {
        grid-area: price;
        justify-self: end;
    }

    .coin-page__hero-col--stats {
        grid-area: stats;
    }

    .coin-page__quick-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .coin-page__hero-bar {
        display: grid;
        gap: 0.85rem;
    }

    .coin-page__hero-col--price {
        justify-content: flex-start;
    }

    .coin-page__price-block {
        justify-items: start;
        text-align: start;
    }

    .coin-page__price-meta {
        justify-content: flex-start;
    }

    .coin-page__quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coin-page__quick-stat--feed {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem 0.75rem;
        border-inline-end: none !important;
        border-bottom: none !important;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .coin-page__quick-stat--feed .coin-page__quick-stat-label {
        margin: 0;
    }

    .coin-page__quick-stat-value--feed {
        overflow: hidden;
        justify-self: end;
        text-align: end;
    }

    .coin-page__quick-stat-value--feed .coin-page__feed-label {
        justify-content: flex-end;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .coin-page__feed-label .coin-page__live-dot {
        flex-shrink: 0;
        animation: none;
        box-shadow: none;
    }

    .coin-page__feed-label--live .coin-page__live-dot {
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--neon-primary) 22%, transparent);
    }
}

.coin-page__quick-stat {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-inline-end: 1px solid var(--theme-control-border);
    border-bottom: 1px solid var(--theme-control-border);
    background: transparent;
    min-height: 3.35rem;
    min-width: 0;
}

@media (max-width: 1099px) {
    .coin-page__quick-stat:nth-child(3n) {
        border-inline-end: none;
    }

    .coin-page__quick-stat:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .coin-page__quick-stat:nth-child(3n) {
        border-inline-end: 1px solid var(--theme-control-border);
    }

    .coin-page__quick-stat:nth-child(2n) {
        border-inline-end: none;
    }

    .coin-page__quick-stat:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--theme-control-border);
    }

    .coin-page__quick-stat:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

.coin-page__quick-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-70);
    min-width: 0;
    overflow-wrap: anywhere;
}

.coin-page__quick-stat-value {
    font-family: var(--font-price);
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--neon-foreground);
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.coin-page__quick-stat-value.is-up {
    color: var(--theme-status-success-fg);
}

.coin-page__quick-stat-value.is-down {
    color: var(--theme-status-danger-fg);
}

.coin-page__quick-stat-value--feed {
    font-family: inherit;
    font-weight: 600;
    overflow: visible;
}

.coin-page__quick-stat--feed .coin-page__quick-stat-label {
    white-space: normal;
    line-height: 1.2;
    overflow: visible;
}

.coin-page__quick-stat-value--feed .coin-page__feed-label {
    max-width: 100%;
}

.coin-page__feed-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--theme-ui-muted-text-85);
}

.coin-page__feed-label--live {
    color: var(--neon-primary);
}

.coin-page__feed-label--live .coin-page__live-dot {
    background: var(--neon-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--neon-primary) 22%, transparent);
}

.coin-page__status-pill--compact {
    font-size: 0.78rem;
    padding: 0.15rem 0.45rem;
}

.coin-page__toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.coin-page__toolbar-row--primary {
    gap: 0.5rem;
}

.coin-page__toolbar-row--extra {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--theme-control-border) 80%, transparent);
}

.coin-page__toolbar-row--extra .coin-page__toolbar-group {
    max-width: 100%;
    flex-wrap: wrap;
}

.coin-page__toolbar-group--scroll {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.coin-page__toolbar-group[data-toolbar="drawing"] .coin-page__tool-btn,
.coin-page__toolbar-group[data-toolbar="tools"] .coin-page__tool-btn {
    min-width: 1.85rem;
    padding-inline: 0.4rem;
    text-align: center;
}

.coin-page__tool-btn.is-disabled,
.coin-page__tool-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.coin-page__tool-btn--toggle {
    flex-shrink: 0;
    margin-inline-start: 0;
    color: var(--theme-ui-muted-text-85);
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-muted-surface) 50%, transparent);
}

.coin-page__toolbar-details[open] > summary.coin-page__tool-btn--toggle,
.coin-page__tool-btn--toggle.is-active,
.coin-page__tool-btn--toggle[aria-expanded="true"] {
    color: var(--neon-primary);
    border-color: color-mix(in srgb, var(--neon-primary) 35%, transparent);
    background: color-mix(in srgb, var(--neon-primary) 10%, transparent);
}

.coin-page__resolution-hint {
    font-size: 0.72rem;
    color: var(--theme-ui-muted-text-70);
}

.coin-page__chart-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--theme-muted-surface) 65%, transparent);
    border-radius: 0.5rem;
    pointer-events: auto;
}

.coin-page__chart-loading[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.coin-page__chart-loading-bar {
    width: min(12rem, 60%);
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
    animation: coin-chart-shimmer 1.1s ease-in-out infinite;
}

.coin-page__chart-status {
    position: absolute;
    top: 0.5rem;
    inset-inline: 0.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.45rem 0.65rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-muted-surface) 94%, transparent);
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--theme-ui-muted-text-90);
}

.coin-page__chart-status[hidden] {
    display: none !important;
}

.coin-page__chart-status[data-status="offline"] {
    border-color: color-mix(in srgb, var(--theme-status-danger-fg) 35%, var(--theme-control-border));
    color: var(--theme-status-danger-fg);
}

.coin-page__chart-status[data-status="retrying"] {
    border-color: color-mix(in srgb, var(--neon-primary) 35%, var(--theme-control-border));
    color: var(--neon-primary);
}

.coin-page__chart-status[data-status="stale"] {
    border-color: color-mix(in srgb, #f59e0b 35%, var(--theme-control-border));
    color: #f59e0b;
}

.coin-page__chart-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: currentColor;
}

.coin-page__chart-status[data-status="retrying"] .coin-page__chart-status-dot {
    animation: coin-chart-status-pulse 1.1s ease-in-out infinite;
}

.coin-page__chart-status-text {
    flex: 1 1 auto;
    min-width: 0;
}

.coin-page__chart-status-retry {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.coin-page__chart-status-retry:hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
}

@keyframes coin-chart-status-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes coin-chart-shimmer {
    0% { transform: translateX(-40%); opacity: 0.4; }
    50% { opacity: 1; }
    100% { transform: translateX(40%); opacity: 0.4; }
}

.coin-page__chart-panel:fullscreen,
.coin-page__chart-panel.is-chart-fullscreen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--theme-muted-surface);
    overflow: hidden;
}

.coin-page__chart-panel:fullscreen .coin-page__panel-head--chart,
.coin-page__chart-panel.is-chart-fullscreen .coin-page__panel-head--chart {
    flex-shrink: 0;
    margin-bottom: 0;
}

.coin-page__chart-panel:fullscreen .coin-page__chart-root,
.coin-page__chart-panel.is-chart-fullscreen .coin-page__chart-root {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.coin-page__chart-panel:fullscreen .coin-page__chart-canvas,
.coin-page__chart-panel.is-chart-fullscreen .coin-page__chart-canvas {
    flex: 1;
    width: 100%;
    min-height: 0 !important;
}

.coin-page__chart-exit-fs {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--theme-control-border);
    background: color-mix(in srgb, var(--theme-muted-surface) 92%, transparent);
    color: var(--neon-foreground);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.coin-page__chart-exit-fs:hover {
    border-color: color-mix(in srgb, var(--neon-primary) 45%, transparent);
    color: var(--neon-primary);
}

.coin-page__chart-exit-fs[hidden] {
    display: none !important;
}

.coin-page__specs-accordion {
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.coin-page__specs-accordion.static-card {
    box-shadow: none;
}

.coin-page__specs-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    list-style: none;
    cursor: pointer;
    border-radius: 0.85rem;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
}

.coin-page__specs-summary::-webkit-details-marker {
    display: none;
}

.coin-page__specs-accordion .coin-page__specs {
    padding: 0 1.15rem 1rem;
    border: 1px solid var(--neon-border-soft);
    border-top: none;
    border-radius: 0 0 0.85rem 0.85rem;
    background: var(--neon-surface-soft);
}

.coin-page__history-cards {
    display: none;
    gap: 0.65rem;
}

.coin-page__history-card {
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-control-bg);
}

.coin-page__history-card-time {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__history-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.65rem;
    margin: 0;
}

.coin-page__history-card-grid div {
    display: grid;
    gap: 0.1rem;
}

.coin-page__history-card-grid dt {
    font-size: 0.68rem;
    color: var(--theme-ui-muted-text-75);
}

.coin-page__history-card-grid dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
    .coin-page__layout {
        grid-template-columns: 1fr;
    }
}

.coin-page__sticky-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 12;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    margin: -0.35rem 0 0.15rem;
    border-radius: 0.65rem;
    border: 1px solid var(--neon-border-soft);
    background: color-mix(in srgb, var(--neon-surface-soft) 92%, transparent);
    backdrop-filter: blur(8px);
}

.coin-page__sticky-symbol {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--neon-primary);
}

.coin-page__sticky-price {
    font-family: var(--font-price);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.analysis-card__meta {
    color: var(--theme-ui-muted-text-75);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--neon-border-strong);
    background: var(--theme-control-bg);
    color: var(--neon-foreground);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--theme-control-shadow-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.neon-btn:hover:not(:disabled) {
    background: var(--theme-control-bg);
    color: var(--neon-foreground);
    transform: none;
    box-shadow: var(--neon-shadow-soft);
}

.neon-btn--ghost:hover:not(:disabled) {
    background: var(--theme-surface-overlay);
    color: var(--neon-foreground);
}

.neon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.neon-btn--sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.86rem;
}

.neon-btn--ghost {
    background: var(--theme-surface-overlay);
    border-color: var(--neon-border-soft);
}

.neon-btn--ghost:hover:not(:disabled) {
    border-color: var(--neon-border-strong);
    color: var(--theme-primary-text);
    background: var(--theme-surface-overlay);
    box-shadow: none;
}

.neon-btn--primary {
    border-color: rgba(0, 229, 160, 0.5);
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.18), rgba(0, 196, 255, 0.1));
}

.neon-btn--primary:hover:not(:disabled) {
    border-color: rgba(0, 229, 160, 0.75);
    color: var(--neon-accent, #00e5a0);
}

.neon-btn--load-more {
    min-width: 11rem;
    padding: 0.62rem 1.35rem;
    border-radius: 999px;
}

.neon-btn--load-more.is-loading::after {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    margin-inline-start: 0.15rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: neon-btn-spin 0.7s linear infinite;
}

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

.coin-page__load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.coin-page__feed-block .coin-page__load-more-wrap {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--theme-border-faint);
}

/* Home table coin links */
.home-coin-link {
    text-decoration: none;
    color: inherit;
    transition: color var(--ui-hover-duration) var(--ui-hover-easing);
}

.home-coin-link--symbol {
    display: inline-flex;
}

.home-coin-link:hover {
    color: var(--theme-primary-text);
}

.home-coin-link--symbol:hover .home-symbol-badge {
    border-color: var(--neon-border-strong);
}

.home-coin-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--theme-primary-text);
    line-height: 1.25;
    white-space: normal;
    text-align: start;
}

.home-coin-link--name:hover .home-coin-name {
    color: var(--neon-primary);
}

.coin-page__name {
    display: block;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.coin-page__symbol {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-ui-muted-text-80);
    letter-spacing: 0.06em;
}

/* User dashboard */
.dashboard-page {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    padding: 0.5rem 0 2.5rem;
}

.dashboard-hero {
    display: grid;
    gap: 0.4rem;
    padding: 0 0 1.1rem;
    border-bottom: 1px solid var(--theme-border-faint);
}

.dashboard-hero__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.dashboard-hero__title {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--neon-foreground);
}

.dashboard-hero__subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--theme-ui-muted-text-85);
}

.dashboard-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(var(--neon-accent-rgb), 0.42);
    background: color-mix(in srgb, rgba(var(--neon-accent-rgb), 0.12), transparent);
}

.dashboard-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .dashboard-overview {
        grid-template-columns: 1fr;
    }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.dashboard-stat {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
    text-align: center;
}

.dashboard-stat__value {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--theme-primary-text);
    font-variant-numeric: tabular-nums;
}

.dashboard-stat__label {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--theme-ui-muted-text-75);
}

.dashboard-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
}

.dashboard-card__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary-text);
}

.dashboard-card__hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--theme-ui-muted-text-85);
}

.dashboard-links,
.dashboard-activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-links {
    display: grid;
    gap: 0.35rem;
}

.dashboard-links a {
    display: inline-flex;
    align-items: center;
    color: var(--neon-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-links a:hover {
    color: var(--neon-accent);
}

.dashboard-section {
    display: grid;
    gap: 0.85rem;
}

.dashboard-section--posts {
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid var(--neon-border-soft);
    background: var(--neon-surface-soft);
    min-width: 0;
    overflow: hidden;
}

.dashboard-section--activity {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface);
}

.dashboard-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.dashboard-section__title {
    margin: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.15rem);
    font-weight: 700;
    color: var(--theme-primary-text);
}

.dashboard-section__link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--neon-primary);
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-section__link:hover {
    color: var(--neon-accent);
}

.dashboard-posts-mount {
    min-height: 2rem;
    min-width: 0;
    overflow: hidden;
}

.dashboard-posts-mount .community-feed--embed {
    margin: 0;
}

.dashboard-posts-mount .community-composer {
    margin-bottom: 1rem;
}

.dashboard-activity-list {
    display: grid;
    gap: 0;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.1rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--theme-control-border);
    font-size: 0.84rem;
}

.dashboard-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-activity-item:first-child {
    padding-top: 0;
}

.dashboard-activity-item__action {
    font-weight: 600;
    color: var(--theme-primary-text);
}

.dashboard-activity-item__meta {
    grid-column: 1;
    color: var(--theme-ui-muted-text-75);
    font-size: 0.78rem;
}

.dashboard-activity-item__time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--theme-ui-muted-text-75);
    font-size: 0.75rem;
    white-space: nowrap;
}

.site-footer-link--button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--theme-ui-muted-text-90);
}

.site-footer-link--button:hover,
.site-footer-link--button:active {
    background: none;
    color: var(--theme-primary-text);
    box-shadow: none;
}

/* قرارداد رنگ متن در تم روشن/تاریک */
.site-main,
.container,
.home-page,
.markets-page,
.auth-shell,
.dashboard-page,
.news-page,
.coin-page,
.community-page,
.static-page,
.admin-shell-main {
    color: var(--neon-foreground);
}

h1,
h2,
h3,
h4,
h5,
h6,
.static-page__title {
    color: var(--theme-primary-text);
}

p,
li,
label,
td,
th,
time,
small,
.field-hint,
.auth-subtitle,
.dashboard-card__hint,
.news-card__summary,
.news-detail__body,
.static-hero-lede,
.static-section-header p {
    color: inherit;
}

a:not([class]) {
    color: var(--neon-primary);
}

a:not([class]):hover {
    color: var(--neon-accent);
}

.auth-card,
.dashboard-card,
.dashboard-stat,
.dashboard-section--activity,
.news-sidebar-block,
.news-detail__body,
.dashboard-alert,
.community-post-card,
.community-composer,
.community-modal,
.community-thread-panel__sheet,
.community-toast {
    color: var(--neon-foreground);
}

.auth-card .auth-submit,
button.auth-submit {
    color: var(--theme-on-primary);
}

button.neon-btn {
    background: var(--theme-control-bg);
    color: var(--neon-foreground);
    transform: none;
    box-shadow: var(--theme-control-shadow-soft);
}

button.neon-btn:hover:not(:disabled),
button.neon-btn:active {
    background: var(--theme-control-bg);
    color: var(--neon-foreground);
    transform: none;
}

button.neon-btn.neon-btn--ghost {
    background: var(--theme-surface-overlay);
}

button.neon-btn.neon-btn--ghost:hover:not(:disabled) {
    background: var(--theme-surface-overlay);
    color: var(--neon-foreground);
}

.crypto-table {
    color: var(--neon-foreground);
}

.crypto-table th {
    color: var(--theme-ui-muted-text-85);
}

.home-tab:not(.home-tab-active) {
    color: var(--theme-ui-muted-text-75);
}

.home-tab-active {
    color: var(--theme-ui-tab-active-text);
}

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

    .theme-toggle,
    .neon-button,
    .site-nav-link,
    .site-footer-link,
    .site-brand,
    .language-dropdown summary,
    .language-item a,
    .language-dropdown .language-dropdown-list,
    .crypto-table tbody tr {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Macro markets — minimal row list */
.macro-asset-list {
    display: grid;
    gap: 0.65rem;
}

.macro-asset-list--compact {
    gap: 0.5rem;
}

.macro-asset-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--theme-control-border);
    background: linear-gradient(135deg, var(--theme-surface), color-mix(in srgb, var(--theme-surface) 88%, transparent));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.macro-asset-row:hover {
    border-color: var(--neon-border-strong);
    box-shadow: var(--neon-shadow-soft);
    transform: translateY(-1px);
}

.macro-asset-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--theme-surface-overlay);
    border: 1px solid var(--theme-control-border);
    color: var(--theme-primary-text);
}

.macro-asset-row--metal .macro-asset-row__icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.08));
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.macro-asset-row--oil .macro-asset-row__icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.08));
    border-color: rgba(96, 165, 250, 0.35);
    color: #60a5fa;
}

.macro-asset-row__main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.macro-asset-row__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--theme-primary-text);
    line-height: 1.25;
}

.macro-asset-row__meta,
.macro-asset-row__symbol {
    font-size: 0.78rem;
    color: var(--theme-ui-muted-text-75);
}

.macro-asset-row__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.macro-asset-row__dot {
    opacity: 0.55;
}

.macro-asset-row__metrics {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.macro-asset-row__price {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--theme-primary-text);
    white-space: nowrap;
}

.macro-asset-row__pending {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--theme-ui-muted-text-75);
}

.macro-asset-row__change {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--theme-ui-muted-text-75);
}

.macro-asset-row__change--up { color: var(--success-color); }
.macro-asset-row__change--down { color: var(--error-color); }

.macro-asset-row__arrow {
    font-size: 1.1rem;
    color: var(--theme-ui-muted-text-75);
    transition: transform 0.15s ease, color 0.15s ease;
}

.macro-asset-row:hover .macro-asset-row__arrow {
    transform: translateX(3px);
    color: var(--neon-primary);
}

.macro-index-page__hero {
    margin-bottom: 1.25rem;
}

.macro-index-page__empty {
    padding: 1.25rem 1.35rem;
    color: var(--theme-ui-muted-text-85);
}

.macro-detail-hero {
    position: relative;
    overflow: hidden;
}

.macro-detail-hero__glow {
    position: absolute;
    inset: -30% auto auto -10%;
    width: 55%;
    height: 140%;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(48px);
}

.macro-detail-hero--metal .macro-detail-hero__glow {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
}

.macro-detail-hero--oil .macro-detail-hero__glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.32), transparent 70%);
}

.macro-detail-hero__identity {
    align-items: center;
}

.macro-detail-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid var(--theme-control-border);
    background: var(--theme-surface-overlay);
    color: var(--theme-primary-text);
}

.macro-page--metal .macro-detail-hero__icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.macro-page--oil .macro-detail-hero__icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.1));
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
}

.macro-detail-hero__class {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-ui-muted-text-75);
}

.macro-detail-hero__price-block {
    position: relative;
    z-index: 1;
}

.macro-detail-hero__price {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

@media (max-width: 720px) {
    .macro-asset-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon main arrow"
            "icon metrics arrow";
    }

    .macro-asset-row__icon { grid-area: icon; }
    .macro-asset-row__main { grid-area: main; }
    .macro-asset-row__metrics {
        grid-area: metrics;
        justify-items: start;
    }
    .macro-asset-row__arrow { grid-area: arrow; }
}
