/* ============================================
   芒果帝国 (Mango Empire) - Main Stylesheet
   Design System: 帝国史诗 · 暗金纪元 v2.0
   Engine: OKLCH + color-mix + @layer
   ============================================ */

/* ===== @layer 分层架构 ===== */
@layer tokens, components, utilities, overrides;

/* ============================================
   @layer tokens — 设计令牌（单一事实来源）
   修改 --hue-gold 即可全局换色
   ============================================ */
@layer tokens {
  :root {
    /* ===== 品牌主色相（改这里=全局换色） ===== */
    --hue-gold: 80.4;
    --hue-purple: 290;
    --neutral-hue: 260;

    /* ===== 金色系（OKLCH 感知均匀） ===== */
    --gold-base-l: 78.5%;
    --gold-base-c: 0.208;
    --gold: oklch(var(--gold-base-l) var(--gold-base-c) var(--hue-gold));
    --gold-light: oklch(88% 0.16 85);
    --gold-dark: oklch(62% 0.22 72);
    --gold-muted: oklch(70% 0.10 75);
    --gold-rose: oklch(75% 0.18 65);

    /* 金色色阶 (color-mix 自动派生) */
    --gold-50:  color-mix(in oklch, var(--gold), white 90%);
    --gold-100: color-mix(in oklch, var(--gold), white 80%);
    --gold-200: color-mix(in oklch, var(--gold), white 60%);
    --gold-300: color-mix(in oklch, var(--gold), white 40%);
    --gold-400: color-mix(in oklch, var(--gold), white 20%);
    --gold-500: var(--gold);
    --gold-600: color-mix(in oklch, var(--gold), black 20%);
    --gold-700: color-mix(in oklch, var(--gold), black 40%);
    --gold-800: color-mix(in oklch, var(--gold), black 60%);
    --gold-900: color-mix(in oklch, var(--gold), black 80%);

    /* ===== 紫色系 ===== */
    --purple: oklch(55% 0.22 var(--hue-purple));
    --purple-light: oklch(70% 0.18 295);
    --purple-dark: oklch(35% 0.20 285);
    --purple-muted: oklch(65% 0.06 280);

    --purple-50:  color-mix(in oklch, var(--purple), white 90%);
    --purple-100: color-mix(in oklch, var(--purple), white 80%);
    --purple-200: color-mix(in oklch, var(--purple), white 60%);
    --purple-300: color-mix(in oklch, var(--purple), white 40%);
    --purple-400: color-mix(in oklch, var(--purple), white 20%);
    --purple-500: var(--purple);
    --purple-600: color-mix(in oklch, var(--purple), black 20%);
    --purple-700: color-mix(in oklch, var(--purple), black 40%);
    --purple-800: color-mix(in oklch, var(--purple), black 60%);
    --purple-900: color-mix(in oklch, var(--purple), black 80%);

    /* ===== 中性灰（微紫调，避免死灰） ===== */
    --neutral-0:   oklch(100% 0 0);
    --neutral-50:  oklch(96% 0.008 var(--neutral-hue));
    --neutral-100: oklch(92% 0.01 var(--neutral-hue));
    --neutral-200: oklch(83% 0.012 var(--neutral-hue));
    --neutral-300: oklch(74% 0.014 var(--neutral-hue));
    --neutral-400: oklch(65% 0.015 var(--neutral-hue));
    --neutral-500: oklch(56% 0.016 var(--neutral-hue));
    --neutral-600: oklch(46% 0.016 var(--neutral-hue));
    --neutral-700: oklch(36% 0.015 var(--neutral-hue));
    --neutral-800: oklch(24% 0.014 var(--neutral-hue));
    --neutral-900: oklch(14% 0.015 var(--neutral-hue));
    --neutral-950: oklch(8% 0.02 var(--neutral-hue));

    /* ===== 语义化功能色 ===== */
    --color-success-base: oklch(72% 0.18 145);
    --color-success-soft: oklch(85% 0.10 145 / 0.15);
    --color-success-strong: oklch(55% 0.22 140);
    --color-warning-base: oklch(80% 0.18 70);
    --color-warning-soft: oklch(90% 0.12 70 / 0.12);
    --color-error-base: oklch(62% 0.22 25);
    --color-error-strong: oklch(45% 0.26 20);
    --color-info-base: oklch(70% 0.15 250);
    --color-red-orange: oklch(62% 0.22 25);
    --color-ice-blue: oklch(75% 0.15 230);

    /* ===== 背景层级（3D 空间感） ===== */
    --bg-app: var(--neutral-950);
    --bg-surface-1: var(--neutral-900);
    --bg-surface-2: var(--neutral-800);
    --bg-surface-3: oklch(22% 0.03 var(--hue-purple));

    /* 毛玻璃（紫调半透） */
    --bg-glass-default: oklch(30% 0.04 var(--hue-purple) / 0.25);
    --bg-glass-hover: oklch(40% 0.06 var(--hue-purple) / 0.35);
    --bg-glass-border: oklch(70% 0.06 var(--hue-purple) / 0.15);

    /* 输入框 */
    --input-bg: oklch(18% 0.02 var(--hue-purple) / 0.6);
    --input-border: oklch(50% 0.04 var(--hue-purple) / 0.4);
    --input-border-focus: var(--gold-400);
    --input-ring: oklch(78.5% 0.208 var(--hue-gold) / 0.3);

    /* ===== 文本层级 ===== */
    --text-headline: oklch(98% 0.002 var(--neutral-hue));
    --text-body: oklch(88% 0.01 var(--neutral-hue));
    --text-subtle: oklch(70% 0.015 var(--neutral-hue));
    --text-disabled: oklch(50% 0.01 var(--neutral-hue));
    --text-on-gold: var(--neutral-950);
    --text-on-glass: var(--neutral-50);
    --text-gold: var(--gold);
    --text-rose: var(--gold-rose);

    /* ===== 交互状态令牌 ===== */
    --btn-gold-bg: var(--gold);
    --btn-gold-hover: oklch(88% 0.22 var(--hue-gold));
    --btn-gold-active: oklch(72% 0.26 var(--hue-gold));
    --btn-gold-disabled: oklch(60% 0.08 var(--hue-gold));
    --btn-gold-text: var(--neutral-950);
    --btn-gold-text-disabled: var(--neutral-600);

    --btn-glass-bg: var(--bg-glass-default);
    --btn-glass-hover: var(--bg-glass-hover);
    --btn-glass-border: var(--bg-glass-border);
    --btn-glass-text: var(--text-body);

    --state-focus-ring: var(--gold);
    --state-disabled-opacity: 0.4;
    --state-disabled-grayscale: 0.6;

    /* ===== 排版体系 ===== */
    --font-sans-sc: 'Noto Sans SC', '思源黑体', 'Source Han Sans SC',
                    'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Space Grotesk', 'Inter',
                    'SF Pro Display', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-heading: 'Cinzel Decorative', 'Georgia', serif;
    --font-body: var(--font-sans-sc);

    /* 字号层级 */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.5rem;
    --text-5xl:  3.5rem;
    --text-6xl:  5rem;

    --leading-tight: 1.1;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* ===== 阴影系统 ===== */
    --shadow-glass:
      inset 0 1px 0 oklch(100% 0 0 / 0.05),
      inset 0 -1px 0 oklch(0% 0 0 / 0.3),
      0 12px 40px oklch(0% 0 0 / 0.25);
    --shadow-glow-gold: 0 0 40px 10px oklch(85% 0.25 var(--hue-gold) / 0.3);
    --shadow-heavy: 0 20px 60px oklch(0% 0 0 / 0.4);

    /* ===== 动画曲线 ===== */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* ===== 旧变量向后兼容映射（旧代码零修改即可用新系统） ===== */
:root {
    --bg-primary: var(--bg-app);
    --bg-surface: var(--bg-surface-2);
    --bg-surface-hover: var(--bg-surface-3);
    --bg-card: var(--bg-surface-2);
    --bg-input: var(--input-bg);
    --bg-nav: oklch(8% 0.02 var(--neutral-hue) / 0.92);
    --bg-footer: var(--neutral-900);
    --bg-dropdown: var(--bg-surface-2);
    --bg-modal-overlay: oklch(0% 0 0 / 0.75);

    --text-primary: var(--text-body);
    --text-secondary: var(--text-subtle);
    --text-muted: var(--text-disabled);
    --text-gold: var(--gold);
    --text-gold-light: var(--gold-light);
    --text-white: var(--text-headline);

    --gold: oklch(var(--gold-base-l) var(--gold-base-c) var(--hue-gold));
    --gold-dark: var(--gold-700);
    --gold-light: var(--gold-200);
    --gold-gradient: linear-gradient(135deg, var(--gold-200), var(--gold-600));

    --border-color: var(--neutral-700);
    --border-gold: oklch(78.5% 0.208 var(--hue-gold) / 0.3);
    --border-gold-strong: oklch(78.5% 0.208 var(--hue-gold) / 0.6);
    --divider: var(--neutral-700);

    --btn-primary-bg: var(--btn-gold-bg);
    --btn-primary-text: var(--btn-gold-text);
    --btn-primary-hover: var(--btn-gold-hover);
    --btn-secondary-border: var(--gold);
    --btn-secondary-text: var(--gold);
    --btn-secondary-hover-bg: oklch(78.5% 0.208 var(--hue-gold) / 0.1);
    --btn-danger-bg: var(--color-error-base);
    --btn-danger-hover: var(--color-error-strong);

    --status-online: var(--color-success-base);
    --status-maintenance: var(--color-warning-base);
    --status-offline: var(--color-error-base);

    --font-body: var(--font-sans-sc);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50px;

    --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.4);
    --shadow-lg: 0 8px 32px oklch(0% 0 0 / 0.5);
    --shadow-gold: 0 4px 20px oklch(78.5% 0.208 var(--hue-gold) / 0.2);
    --shadow-glow: 0 0 20px oklch(78.5% 0.208 var(--hue-gold) / 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;

    --nav-height: 70px;
    --container-max: 1200px;
    --font-size-xs: var(--text-xs);
    --font-size-sm: var(--text-sm);
    --font-size-base: var(--text-base);
    --font-size-lg: var(--text-lg);
    --font-size-xl: var(--text-xl);
    --font-size-2xl: var(--text-2xl);
    --font-size-3xl: var(--text-3xl);
    --font-size-4xl: var(--text-4xl);
}

/* ===== oklch 浏览器降级（老浏览器回退到 hex） ===== */
@supports not (color: oklch(0% 0 0)) {
  :root {
    /* 金/紫色系 */
    --gold: #F5B342;
    --gold-light: #FAD98B;
    --gold-dark: #C4882A;
    --gold-400: #E8A93A;
    --hue-gold: 50;
    --purple: #7A4B9A;
    --hue-purple: 270;
    --color-red-orange: #FF4500;
    --color-ice-blue: #4FC3F7;

    /* 中性色 */
    --neutral-950: #09090B;
    --neutral-900: #141418;
    --neutral-800: #1E1E24;
    --neutral-50: #F5F5F7;
    --neutral-hue: 260;

    /* 背景层级 */
    --bg-app: #0A0B0D;
    --bg-primary: #0A0B0D;
    --bg-surface-1: #141418;
    --bg-surface-2: #1E1E24;
    --bg-surface-3: #1A1620;
    --bg-surface: #1E1E24;
    --bg-card: #1E1E24;
    --bg-footer: #141418;
    --bg-nav: rgba(10, 11, 13, 0.92);
    --bg-dropdown: #1E1E24;
    --bg-modal-overlay: rgba(0, 0, 0, 0.75);

    /* 毛玻璃 */
    --bg-glass-default: rgba(30, 25, 45, 0.6);
    --bg-glass-hover: rgba(50, 40, 70, 0.7);
    --bg-glass-border: rgba(245, 179, 66, 0.15);

    /* 输入框 */
    --input-bg: rgba(20, 15, 35, 0.6);
    --input-border: rgba(100, 80, 140, 0.4);
    --input-border-focus: #E8A93A;
    --input-ring: rgba(245, 179, 66, 0.3);

    /* 文本层级 */
    --text-headline: #FAFAFA;
    --text-primary: #F0F0F0;
    --text-body: #D0D0D8;
    --text-secondary: #A0A0A8;
    --text-subtle: #787880;
    --text-disabled: #555560;
    --text-on-gold: #09090B;
    --text-on-glass: #F5F5F7;
    --text-gold: #F5B342;
    --text-muted: #888;

    /* 边框 */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 179, 66, 0.3);

    /* 功能色 */
    --color-error-base: #E5484D;
    --color-error-strong: #B42318;
    --color-info-base: #2E90FA;
    --color-success: #32D583;

    /* 阴影 */
    --shadow-gold: 0 0 20px rgba(245, 179, 66, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   1. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0A0B0D;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #0A0B0D;
    background-color: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--gold-light);
}

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

ul, ol {
    list-style: none;
}

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

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   2. LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-content {
    min-height: calc(100vh - var(--nav-height) - 250px);
    padding-top: var(--nav-height);
}

/* ============================================
   3. TYPOGRAPHY HELPERS
   ============================================ */
.gold {
    color: var(--gold);
}

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

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-white);
}

/* ============================================
   4. NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 179, 66, 0.1);
    height: var(--nav-height);
    transition: background var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 11, 13, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo:hover {
    color: inherit;
}

.nav-logo-icon {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: filter 0.6s ease;
    filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.18));
    transform-origin: center center;
}
.nav-logo:hover .nav-logo-icon {
    animation: mangoSpin 6s linear infinite;
    filter: drop-shadow(0 0 28px rgba(245, 179, 66, 0.45));
}
.nav-logo-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.nav-logo-main {
    font-family: 'Playfair Display', var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(145deg, #F2D68A 0%, #D4A847 40%, #B8893A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    transform: translate(4px, 3px);
}
.nav-logo-sub span {
    color: var(--gold-dark);
    font-weight: 500;
}

@keyframes mangoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mangoPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    background: none;
    border: none;
    user-select: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-menu > li > a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.08);
}

.nav-menu > li > a.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
}

.nav-menu > li > a.btn-nav-register {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-round);
    margin-left: 8px;
}
.nav-menu > li > a.btn-nav-register:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ----- Dropdown Menu ----- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.08);
}

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

/* ============================================
   5. FOOTER
   ============================================ */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-bottom: 0;
}

/* ============================================
   6. HERO / BANNER SECTION
   ============================================ */
.section-1 {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-2 {
    padding: 80px 0;
    background: var(--bg-primary);
}

.back-banner-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.back-banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.back-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 400px;
    width: 100%;
    padding: 0 20px;
}

.bb-chara {
    position: absolute;
    bottom: 0;
    right: 10%;
    z-index: 1;
    max-height: 80vh;
}

.bb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.bb-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- News / Banner Area ----- */
.wrap-news {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding: 20px 0;
    background: linear-gradient(transparent, rgba(10, 11, 13, 0.95));
}

.news-banner-area {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.news-banner-prev,
.news-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}
.news-banner-prev:hover,
.news-banner-next:hover {
    background: var(--gold);
    color: var(--btn-primary-text);
    border-color: var(--gold);
}
.news-banner-prev { left: 10px; }
.news-banner-next { right: 10px; }

.news-banner-list {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 20px 0;
}

.news-banner-list > div {
    min-width: 280px;
    flex: 1;
}

.news-banner-list-title {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}
.news-banner-list-title:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.news-banner-list-title h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold);
}

.news-banner-list-title p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.news-banner {
    display: none;
}

/* ----- News List ----- */
.news-list-area {
    max-width: var(--container-max);
    margin: 30px auto 0;
    padding: 0 20px;
}

.news-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-list-top h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-white);
}

.news-list-top .more {
    color: var(--gold);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.news-list-top .more:hover {
    color: var(--gold-light);
}

.news-list {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list li:hover {
    background: var(--bg-surface-hover);
}

.news-list .news {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
}

.news-gamestag {
    display: none;
}

.news-catetag {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.news-titlecon {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
}
.news:hover .news-titlecon {
    color: var(--gold);
}

.news-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-align: right;
    white-space: nowrap;
}

/* ----- Games Section ----- */
.games-sec-pc {
    padding: 60px 0;
}

.games-sec-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.sec-title {
    text-align: center;
    margin-bottom: 40px;
}

.sec-title h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-white);
}

.sec-title h1 i {
    color: var(--gold);
    margin-right: 8px;
}

/* ============================================
   7. PAGE HEADER (Account Pages)
   ============================================ */
.account-page {
    padding: 40px 0;
    min-height: calc(100vh - var(--nav-height) - 250px);
}

.in-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 20px 0;
}

.account-page .in-page {
    padding-top: 0;
}

.main-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 20px 0;
}

.page-top {
    margin-bottom: 30px;
}

.page-top h1 {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    padding-bottom: 12px;
}
.page-top h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* ----- Page Title / Subtitle ----- */
.page-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    color: var(--text-white);
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    margin-bottom: 40px;
}

/* ============================================
   8. PAGE NAVIGATION (Tabs)
   ============================================ */
.page-nav {
    margin-bottom: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav li {
    display: block;
}

.page-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.page-nav a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}

.page-nav a.page-nav-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
}

.page-nav-icn {
    font-size: var(--font-size-base);
    width: 20px;
    text-align: center;
}

.page-nav-name {
    font-size: var(--font-size-sm);
}

/* ============================================
   9. PAGE BOX / CONTENT
   ============================================ */
.page-content {
    padding-top: 40px;
    margin-bottom: 40px;
}

.support-page {
    padding: 40px 20px 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.page-view {
    padding: 40px 20px 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.page-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.page-box-content {
    padding: 24px;
}

/* ============================================
   10. TABLES
   ============================================ */
.page-table-04 {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.page-table-04 thead {
    background: rgba(245, 179, 66, 0.05);
}

.page-table-04 th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 2px solid var(--border-gold);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-table-04 td {
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.page-table-04 tbody tr {
    transition: background var(--transition-fast);
}

.page-table-04 tbody tr:hover {
    background: rgba(245, 179, 66, 0.03);
}

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

.pg-td {
    padding: 12px 16px;
}

/* ============================================
   11. BUTTONS
   ============================================ */
/* Base button (must come before variants) */
.btn,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

/* Primary / Gold */
.page-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #F5B342 0%, #E08A2A 100%);
    color: #0A0B0D;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.page-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #E08A2A 0%, #c98a2e 100%);
    color: #0A0B0D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 179, 66, 0.4);
}
.page-btn:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary / Outline */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Danger */
.btn-danger {
    background: var(--btn-danger-bg);
    color: #fff;
    border: none;
}
.btn-danger:hover {
    background: var(--btn-danger-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

/* Button sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ============================================
   12. FORMS
   ============================================ */
.input-field,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.input-field:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: var(--border-gold-strong);
    box-shadow: 0 0 0 3px rgba(245, 179, 66, 0.1);
}

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

select,
.input-field[type="select"] {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
}

select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox / Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold);
    margin-right: 6px;
}

/* ============================================
   13. SIGN IN / SIGN UP FORMS
   ============================================ */
.signin,
.signup {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding: 40px 20px;
}

.signin-area,
.signup-area {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.sign-logo {
    margin: 0 auto 24px;
    width: 180px;
}

.signin-area h1,
.signup-area h1 {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-white);
}

.signin-form,
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signin-form input,
.signup-form input,
.signup-form select {
    padding: 14px 16px;
}

.ca-mobile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.ca-birth {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

#ca-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

#ca-check a {
    color: var(--gold);
    text-decoration: underline;
}

#ca-check .g-recaptcha {
    margin-top: 8px;
    width: 100%;
}

/* ============================================
   14. ALERTS (Success / Danger)
   ============================================ */
.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #f8a5a5;
    font-size: var(--font-size-sm);
}

.alert-danger .info {
    display: block;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #a5d6a7;
    font-size: var(--font-size-sm);
}

/* ============================================
   15. DOWNLOAD PAGE
   ============================================ */
.download {
    margin-bottom: 30px;
}

.download ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}
.download-box:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.download-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.download-box span {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* ============================================
   16. DONATE / RECHARGE PAGE
   ============================================ */
.donate .page-box-content {
    padding: 24px;
}

/* Plan Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}
.card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(245, 179, 66, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
}

.card-header h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-body .card-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 16px;
    font-weight: 400;
}

.card-link {
    text-decoration: none;
}

/* Premium / Silk specific */
.premium-btn {
    background: var(--gold-gradient) !important;
    color: var(--btn-primary-text) !important;
}

.silk-btn {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}
.silk-btn:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* ============================================
   17. MODAL / DIALOG
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--bg-modal-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}

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

.modal-content {
    position: relative;
    background: var(--bg-surface);
    margin: 10% auto;
    padding: 36px;
    border: 1px solid var(--border-gold);
    width: 90%;
    max-width: 440px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.25s ease;
}

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

.modal-content h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    text-align: center;
}

.math-question {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.math-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.25rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    margin-bottom: 24px;
    box-sizing: border-box;
    outline: none;
}
.math-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 66, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   18. RANKING TABS
   ============================================ */
.ranking-page {
    padding: 40px 20px 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.ranking-container {
    width: 100%;
}

.ranking-header {
    margin-bottom: 24px;
}

.ranking-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
}

.ranking-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.ranking-tab {
    flex: 1;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}
.ranking-tab:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}
.ranking-tab.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    font-weight: 600;
}

.ranking-content {
    display: none;
}
.ranking-content.active {
    display: block;
}

/* ============================================
   19. ADMIN TABS
   ============================================ */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.admin-tab:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}
.admin-tab.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    font-weight: 600;
}

.admin-content {
    display: none;
}
.admin-content.active {
    display: block;
}

/* ============================================
   20. FAQ ACCORDION
   ============================================ */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover {
    background: rgba(245, 179, 66, 0.03);
}

.faq-arrow {
    font-size: var(--font-size-sm);
    color: var(--gold);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-arrow.open {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 16px;
}

/* ============================================
   21. SERVER STATUS DOTS
   ============================================ */
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-dot.online {
    background: var(--status-online);
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.status-dot.maintenance {
    background: var(--status-maintenance);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: pulse-yellow 1.5s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--status-offline);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   22. BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-round);
    line-height: 1.2;
    white-space: nowrap;
}

.badge-gold {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
}

.badge-silver {
    background: linear-gradient(135deg, #a0a0a0, #707070);
    color: #fff;
}

.badge-danger {
    background: var(--btn-danger-bg);
    color: #fff;
}

.badge-success {
    background: var(--status-online);
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

.badge-warning {
    background: var(--status-maintenance);
    color: #1a1a1a;
}

/* First Recharge Badge */
.badge-first-recharge {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
    padding: 6px 14px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-round);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.3);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(245, 179, 66, 0.3); }
    50% { box-shadow: 0 0 24px rgba(245, 179, 66, 0.6); }
}

/* ============================================
   23. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(245, 179, 66, 0.05);
}

.pagination .active {
    color: var(--btn-primary-text);
    background: var(--gold-gradient);
    border-color: var(--gold);
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   24. LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

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

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ============================================
   25. TOAST / NOTIFICATION
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.toast.toast-success {
    border-left: 4px solid var(--status-online);
}

.toast.toast-error {
    border-left: 4px solid var(--status-offline);
}

.toast.toast-warning {
    border-left: 4px solid var(--status-maintenance);
}

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

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
}
.toast-close:hover {
    color: var(--text-primary);
}

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

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

/* ============================================
   26. METHOD CARDS (Payment)
   ============================================ */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.method-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.method-card.selected {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.05);
    box-shadow: 0 0 0 2px rgba(245, 179, 66, 0.2);
}

.method-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.method-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   27. PLAN CARDS (Recharge)
   ============================================ */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.plan-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.plan-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.plan-card:hover::before {
    opacity: 1;
}

.plan-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(245, 179, 66, 0.15);
}
.plan-card.featured::before {
    opacity: 1;
}

.plan-card-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.plan-card-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-card-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.plan-card-bonus {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 179, 66, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-round);
    font-size: var(--font-size-xs);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-card .page-btn {
    width: 100%;
}

/* ============================================
   AUTH, ACCOUNT, LANDING PAGE & UTILITY STYLES
   ============================================ */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    background: radial-gradient(ellipse at center, rgba(245, 179, 66, 0.03) 0%, transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--gold);
}

/* Forgot password link */
.forgot-pw {
    color: var(--status-offline) !important;
}

/* Gender button group */
.gender-btn-group {
    display: flex;
    gap: 12px;
}

.gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    user-select: none;
    font-family: var(--font-body);
}

.gender-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gender-btn.active {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    color: var(--gold);
}

/* Birthday group */
.birthday-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Checkbox */
.form-checkbox {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--gold);
}

/* Account page */
.account-page {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 250px);
}

.account-menu {
    margin-bottom: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.account-menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-menu li {
    display: block;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.account-menu a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}

.account-menu a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A0B0D 0%, #1a0a0a 50%, #0A0B0D 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 11, 13, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-title .gold {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 179, 66, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.server-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(245, 179, 66, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-footer {
    text-align: center;
    margin-top: 32px;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.download-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: rgba(245, 179, 66, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* News section */
.news-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

/* Ticket styles */
.ticket-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color var(--transition-fast);
}

.ticket-item:hover {
    border-color: var(--border-gold);
}

.ticket-reply {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px 0;
}

/* Admin panel */
.admin-panel {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 250px);
}

/* ============================================
   28. RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .page-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .page-nav ul::-webkit-scrollbar {
        display: none;
    }

    .plan-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > a.btn-nav-register {
        margin-left: 0;
        margin-top: 8px;
        border-radius: var(--radius-md);
        text-align: center;
    }

    /* Mobile dropdown becomes expandable section */
    .nav-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 0;
        opacity: 1;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 24px;
        font-size: var(--font-size-sm);
    }

    .hero-section {
        min-height: 70vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.25rem;
    }

    .signin-area,
    .signup-area {
        padding: 30px 24px;
    }

    .ca-mobile {
        grid-template-columns: 1fr;
    }

    .ca-birth {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .page-top h1 {
        font-size: 1.5rem;
    }

    .page-nav a {
        padding: 12px 16px;
        font-size: var(--font-size-xs);
    }

    .page-table-04 {
        font-size: var(--font-size-xs);
    }
    .page-table-04 th,
    .page-table-04 td {
        padding: 10px 12px;
    }

    .news-banner-list > div {
        min-width: 240px;
    }

    .news-list .news {
        grid-template-columns: 70px 1fr 80px;
        padding: 12px 16px;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .method-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        margin: 20% auto;
        padding: 24px;
    }

    .in-page, .main-page, .ranking-page, .support-page, .page-view {
        padding: 24px 16px 0;
    }

    .page-content {
        padding-top: 24px;
    }

    .ranking-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .admin-tabs {
        flex-direction: column;
        gap: 2px;
    }

    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .signin-area,
    .signup-area {
        padding: 24px 16px;
    }

    .ca-birth {
        grid-template-columns: 1fr;
    }

    .page-box-content {
        padding: 16px;
    }

    .news-banner-list > div {
        min-width: 200px;
    }

    .news-list .news {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .news-date {
        text-align: left;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ============================================
   29. UTILITY CLASSES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.w-full { width: 100%; }

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* ============================================
   31. SELECTION
   ============================================ */
::selection {
    background: rgba(245, 179, 66, 0.3);
    color: var(--text-white);
}

/* ============================================
   32. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* ============================================
   33. MANUAL RECHARGE PAGE
   ============================================ */

/* Recharge Section Divider */
.recharge-section {
    padding: 24px 0;
}
.recharge-section:first-child {
    padding-top: 0;
}
.recharge-section + .recharge-section {
    border-top: 1px solid var(--border-color);
}

.recharge-section-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recharge-section-icon {
    font-size: 1.25rem;
}

/* Manual Steps Indicator */
.manual-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.manual-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.manual-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.manual-step.active .manual-step-number {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.2);
}

.manual-step.completed .manual-step-number {
    border-color: var(--status-online);
    background: var(--status-online);
    color: #fff;
}

.manual-step-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.manual-step.active .manual-step-label {
    color: var(--gold);
}

.manual-step.completed .manual-step-label {
    color: var(--status-online);
}

.manual-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 12px;
    margin-bottom: 28px;
    transition: background var(--transition-normal);
    max-width: 80px;
}

.manual-step-line.active {
    background: var(--gold);
}

/* Character Select */
.char-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.char-select-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.char-select-item:hover {
    border-color: var(--border-gold);
    background: rgba(245, 179, 66, 0.03);
}

.char-select-item.selected {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
    box-shadow: 0 0 0 2px rgba(245, 179, 66, 0.15);
}

.char-select-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-white);
}

.char-select-info {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Manual Type Toggle — polished */
.manual-type-toggle {
    display: flex;
    gap: 12px;
}

.manual-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-input);
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.manual-type-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.manual-type-btn .manual-type-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.25s ease;
}

.manual-type-btn .manual-type-label {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.manual-type-btn .manual-type-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.25s ease;
}

.manual-type-btn:hover {
    border-color: rgba(245, 179, 66, 0.4);
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.04);
    transform: translateY(-1px);
}

.manual-type-btn:hover::before {
    opacity: 1;
}

.manual-type-btn:hover .manual-type-icon {
    transform: scale(1.1);
}

.manual-type-btn:hover .manual-type-desc {
    color: var(--text-secondary);
}

.manual-type-btn.active {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
    color: var(--gold);
    box-shadow: 0 0 18px rgba(245, 179, 66, 0.12), inset 0 0 24px rgba(245, 179, 66, 0.04);
}

.manual-type-btn.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.15), transparent 60%);
}

.manual-type-btn.active .manual-type-icon {
    transform: scale(1.1);
}

.manual-type-btn.active .manual-type-desc {
    color: var(--gold);
}

/* Live Amount Preview Card */
.manual-amount-preview {
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.06), rgba(20, 20, 42, 0.6));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.25s ease;
}

.manual-amount-preview.has-value {
    border-color: rgba(245, 179, 66, 0.5);
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.1), rgba(20, 20, 42, 0.5));
}

.manual-amount-preview-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.manual-amount-preview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.manual-amount-preview.has-value .manual-amount-preview-value {
    color: var(--gold);
}

.manual-amount-preview-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: right;
    line-height: 1.5;
}

/* Amount input wrapper */
.manual-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.manual-amount-wrapper .currency-prefix {
    position: absolute;
    left: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.25s ease;
}

.manual-amount-wrapper input {
    padding-left: 44px !important;
}

.manual-amount-wrapper input:focus + .currency-prefix,
.manual-amount-wrapper:focus-within .currency-prefix {
    color: var(--gold);
}

/* Fraction row */
.manual-fraction-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.manual-fraction-row .manual-fraction-input {
    width: 180px;
    max-width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
}

.manual-random-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.1), rgba(245, 179, 66, 0.04));
    border: 1px solid rgba(245, 179, 66, 0.25);
    border-radius: var(--radius-md);
    color: var(--gold);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.manual-random-btn:hover {
    background: rgba(245, 179, 66, 0.18);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 179, 66, 0.15);
}

.manual-random-btn:active {
    transform: translateY(0);
    background: rgba(245, 179, 66, 0.22);
}

/* Order Summary */
.manual-order-summary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.manual-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.manual-order-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.manual-order-value {
    font-size: var(--font-size-sm);
    color: var(--text-white);
    font-weight: 500;
}

/* QR Display */
.qr-display {
    text-align: center;
    margin-bottom: 24px;
}

.qr-image-container {
    display: inline-block;
    width: 220px;
    height: 220px;
    background: var(--bg-surface-2);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
    display: block;
}

.qr-nickname {
    margin-top: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    gap: 8px;
}

.qr-placeholder-icon {
    font-size: 2.5rem;
}

.qr-placeholder-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.qr-placeholder-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Payment Notice */
.manual-payment-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 179, 66, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.notice-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive: Manual Steps */
@media (max-width: 768px) {
    .manual-steps {
        padding: 0 8px;
    }
    .manual-step-line {
        max-width: 40px;
        margin: 0 6px;
    }
    .manual-step-number {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-base);
    }
    .manual-step-label {
        font-size: 10px;
    }
    .char-select-list {
        grid-template-columns: 1fr;
    }
    .manual-type-toggle {
        flex-direction: column;
    }
    .manual-amount-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .manual-amount-preview-value {
        font-size: 1.25rem;
    }
    .manual-fraction-row {
        flex-direction: column;
        align-items: stretch;
    }
    .manual-fraction-row .manual-fraction-input {
        width: 100%;
    }
    .manual-random-btn {
        justify-content: center;
    }
}

/* ============================================
   34. HERO CANVAS PARTICLE SYSTEM (v2.0)
   暗黑奇幻史诗 - 全屏 Canvas 粒子背景
   ============================================ */

/* Hero Container */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0A0B0D;
}

.hero-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0A0B0D 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Canvas Particle Layer */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Degraded fallback: CSS gradient when JS fails */
    background:
        radial-gradient(ellipse at 30% 20%, rgba(108, 52, 131, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 179, 66, 0.08) 0%, transparent 50%),
        #0A0B0D;
}

/* Content Overlay */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    animation: heroFadeIn 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Title - Metallic Gold Gradient + Breathing Glow */
.hero-title {
    font-family: 'Cinzel Decorative', 'Georgia', serif;
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 20px;
    user-select: none;
}

.hero-title .text-glow {
    display: block;
    color: #FFFFFF;
    text-shadow:
        0 0 40px rgba(245, 179, 66, 0.4),
        0 0 80px rgba(245, 179, 66, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.hero-title .text-gold {
    display: block;
    background: linear-gradient(135deg, #F5B342 0%, #E08A2A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(245, 179, 66, 0.4));
    animation: goldPulse 3s ease-in-out infinite;
}

/* Subtitle */
.hero-subtitle {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #9090A0;
    font-weight: 300;
    letter-spacing: 0.25em;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Primary Button - Particle Burst Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: linear-gradient(135deg, #F5B342 0%, #E08A2A 100%);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    filter: blur(8px);
}

.btn-glow:hover::before {
    opacity: 0.6;
    animation: btnParticleBurst 0.6s ease-out;
}

/* Server Status 3D Pulse Orb */
.server-status-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.server-status-3d .pulse-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #28A745;
    position: relative;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
}

.server-status-3d .pulse-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #28A745;
    animation: pulseRing 2s ease-out infinite;
}

.server-status-3d .pulse-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(40, 167, 69, 0.3);
    animation: pulseRing 2s ease-out 0.6s infinite;
}

.server-status-3d .status-text {
    font-size: 0.875rem;
    color: #9090A0;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.server-status-3d .online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28A745;
    margin-right: 4px;
    vertical-align: middle;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.server-status-3d .offline-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC3545;
    margin-right: 4px;
    vertical-align: middle;
}

/* Static Particles (CSS fallback, no JS) */
.static-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.static-particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 179, 66, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatA 8s ease-in-out infinite;
}

.static-particles::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 52, 131, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatB 10s ease-in-out infinite;
}

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 10px) scale(0.9); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 15px) scale(1.15); }
    66% { transform: translate(20px, -10px) scale(0.85); }
}

/* Hero Keyframes */
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(245, 179, 66, 0.4), 0 0 80px rgba(245, 179, 66, 0.2);
    }
    50% {
        text-shadow: 0 0 60px rgba(245, 179, 66, 0.6), 0 0 120px rgba(245, 179, 66, 0.3), 0 0 180px rgba(108, 52, 131, 0.2);
    }
}

@keyframes goldPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(245, 179, 66, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(245, 179, 66, 0.7)) drop-shadow(0 0 80px rgba(245, 179, 66, 0.3)); }
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes btnParticleBurst {
    0% { transform: scale(0.9); opacity: 0; }
    30% { opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================
   35. ECHARTS CONTAINERS (v2.0)
   ============================================ */

.chart-container {
    width: 100%;
    height: 400px;
    margin: 24px 0;
    background: #12131A;
    border: 1px solid #2A2A3E;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.chart-container::before {
    content: '图表加载中...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #565666;
    font-size: 0.875rem;
    z-index: 0;
}

.chart-container.loaded::before {
    display: none;
}

.tx-chart-container {
    width: 100%;
    height: 350px;
    margin: 24px 0;
    background: #12131A;
    border: 1px solid #2A2A3E;
    border-radius: 16px;
    overflow: hidden;
}

.chart-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.chart-toggle-btn {
    padding: 8px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9090A0;
    background: #12131A;
    border: 1px solid #2A2A3E;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-toggle-btn:hover {
    color: #E8E6F0;
    border-color: rgba(245, 179, 66, 0.3);
}

.chart-toggle-btn.active {
    color: #F5B342;
    border-color: #F5B342;
    background: rgba(245, 179, 66, 0.1);
}

/* ============================================
   36. ACCESSIBILITY ENHANCEMENTS (v2.0)
   ============================================ */

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 99999;
    padding: 12px 24px;
    background: #F5B342;
    color: #0A0B0D;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.skip-to-content:focus {
    top: 16px;
}

/* Focus Visible - Gold Glow */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #F5B342;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 179, 66, 0.25);
    border-radius: 4px;
}

/* Colorblind Compatible: Income/Expense Icons */
.tx-income::before {
    content: '\2191 ';
    color: #2ECC71;
    font-weight: 700;
}

.tx-expense::before {
    content: '\2193 ';
    color: #E74C3C;
    font-weight: 700;
}

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

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

/* High Contrast Mode */
@media (forced-colors: active) {
    .hero-title .text-gold {
        forced-color-adjust: none;
    }
}

/* Count-up Animation */
.count-up {
    display: inline-block;
    transition: none;
}

/* Responsive - Hero */
@media (max-width: 768px) {
    .hero-container {
        min-height: 80vh;
    }

    .hero-title {
        letter-spacing: 0.04em;
    }

    .hero-subtitle {
        letter-spacing: 0.15em;
        margin-bottom: 32px;
    }

    .hero-actions {
        gap: 12px;
        margin-bottom: 36px;
    }

    .chart-container {
        height: 300px;
    }

    .tx-chart-container {
        height: 250px;
    }

    .chart-toggle {
        flex-wrap: wrap;
    }
}

/* ============================================================
   Axiom 升级包 - 纯 CSS 视觉与交互增强
   ============================================================ */

/* 1. 全面毛玻璃卡片升级 */
.page-box, .auth-card, .plan-card {
    background: rgba(18, 19, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible !important; /* 修复后台截断问题 */
}
.page-box:hover, .auth-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 179, 66, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 179, 66, 0.05);
}

/* 2. 内容容器横向滚动（修复手机端后台右侧不可见） */
.page-box-content {
    padding: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 3. 强制表格最小宽度（防挤压换行） */
.page-table-04 {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    min-width: 760px;
}

/* 4. 排行榜金币横向进度条 */
.bar-container {
    position: relative;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
    min-width: 120px;
}
.bar-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-value {
    position: relative;
    z-index: 1;
    line-height: 24px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 5. 前三名纯 CSS 文字渐变 */
.rank-1::before, .rank-2::before, .rank-3::before {
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(135deg, #F5B342, #d4942f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    content: '#';
}
.rank-2::before { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-3::before { background: linear-gradient(135deg, #cd7f32, #b87333); }

/* 6. 移动端页脚布局优化 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        text-align: center;
    }
    .footer-brand {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
        margin-bottom: 8px;
    }
    @media (max-width: 480px) {
        .footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
        .footer-links li { margin-bottom: 0; }
    }
}

/* 7. Axiom 制作人信件卡片 */
.studio-message-section {
    padding: 80px 0;
    background: radial-gradient(ellipse at center, rgba(108, 52, 131, 0.05) 0%, transparent 70%);
}
.studio-message-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(18, 19, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.studio-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(245, 179, 66, 0.1);
    border: 1px solid rgba(245, 179, 66, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #F5B342;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}
.studio-title {
    font-family: 'Cinzel Decorative', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}
.studio-desc {
    font-size: 1rem;
    color: #9090A0;
    line-height: 1.8;
    margin-bottom: 0;
}

/* 8. Axiom 编年史时间线 */
.chronicle-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* 9. 招募进度条 */
.recruit-progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.recruit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C3483, #F5B342);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 9b. 个人信息页双列布局 */
.profile-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 9c. 招募奖励阶梯网格 */
.recruit-tier-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.recruit-tier-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.recruit-tier-card .tier-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.recruit-tier-card .tier-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.recruit-tier-card .tier-reward {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.recruit-tier-card .tier-progress {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.recruit-tier-card .tier-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tier states */
.recruit-tier-card.tier-pending {
    border-color: rgba(245, 179, 66, 0.5);
    background: rgba(245, 179, 66, 0.06);
    box-shadow: 0 0 16px rgba(245, 179, 66, 0.1);
}

.recruit-tier-card.tier-pending .tier-reward {
    color: var(--gold);
}

.recruit-tier-card.tier-claimed {
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.04);
    opacity: 0.8;
}

.recruit-tier-card.tier-claimed .tier-reward {
    color: #28a745;
}

.recruit-tier-card.tier-completed {
    border-color: rgba(40, 167, 69, 0.2);
}

.recruit-tier-card.tier-locked {
    opacity: 0.5;
}

.recruit-claim-btn {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #F5B342, #d4942f);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recruit-claim-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 179, 66, 0.3);
}

/* 10. 名人堂空状态 */
.hall-of-fame-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg);
}

.hall-of-fame-empty .hof-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.hall-of-fame-empty .hof-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hall-of-fame-empty .hof-empty-desc {
    font-size: 0.8rem;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 名人堂分类徽章 */
.hof-category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.hof-cat-boss       { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.hof-cat-level      { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.hof-cat-skill      { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.hof-cat-gold       { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.hof-cat-season     { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.hof-cat-contribute { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.hof-cat-record     { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

/* 名人堂行高亮 */
.ranking-table tbody tr.hof-row-level  { border-left: 3px solid transparent; }
.ranking-table tbody tr.hof-row-level:hover { border-left-color: #4ade80; }
.ranking-table tbody tr.hof-row-boss   { border-left: 3px solid transparent; }
.ranking-table tbody tr.hof-row-boss:hover  { border-left-color: #f87171; }
.ranking-table tbody tr.hof-row-skill  { border-left: 3px solid transparent; }
.ranking-table tbody tr.hof-row-skill:hover { border-left-color: #60a5fa; }
.ranking-table tbody tr.hof-row-gold   { border-left: 3px solid transparent; }
.ranking-table tbody tr.hof-row-gold:hover  { border-left-color: #fbbf24; }

/* 名人堂成就文本 */
.hof-achievement-text {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hof-achievement-text::before {
    content: '✦';
    color: rgba(245, 179, 66, 0.45);
    font-size: 0.65rem;
    flex-shrink: 0;
}
.hof-achievement-text .hof-name {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.22);
}

/* 入榜规则 */
.hof-rules {
    margin-top: 28px;
    padding: 24px 28px;
    background: rgba(245,179,66,0.04);
    border: 1px solid rgba(245,179,66,0.12);
    border-radius: var(--radius-md);
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hof-rules-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #F5B342;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.hof-rules-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.hof-rules-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.hof-rules-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 6px;
    color: #F5B342;
    font-size: 0.6rem;
}

.hof-rules-list li strong {
    color: #e0e0e0;
    font-weight: 600;
}

.hof-rules-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* ============================================================
   名人堂专属视觉增强
   ============================================================ */

/* 名人堂 Tab 高亮 */
.ranking-tab[data-tab="7"] {
    color: #F5B342;
    font-weight: 700;
}
.ranking-tab[data-tab="7"].active {
    background: linear-gradient(135deg, rgba(245, 179, 66, 0.15), rgba(245, 179, 66, 0.05));
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.15);
}

/* 名人堂表格容器：金边 + 顶部光带 + 暗角 */
#ranking-7 .ranking-table-wrap {
    background: linear-gradient(180deg, rgba(245, 179, 66, 0.05) 0%, var(--bg-surface) 80px);
    border: 1px solid rgba(245, 179, 66, 0.18);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
#ranking-7 .ranking-table-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #F5B342 30%, #d4942f 70%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

/* 表头强化 */
#ranking-7 .ranking-table thead {
    background: rgba(245, 179, 66, 0.08);
}
#ranking-7 .ranking-table th {
    color: #F5B342;
    border-bottom: 2px solid rgba(245, 179, 66, 0.25);
    letter-spacing: 0.8px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* 行动画：依次淡入上浮 */
@keyframes hofFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
#ranking-7 .ranking-table tbody tr {
    animation: hofFadeIn 0.45s ease-out both;
}
/* 名人堂行底部边框：使用 td 底部边框确保连续不中断 */
#ranking-7 .ranking-table tbody td {
    border-bottom: 1px solid rgba(245, 179, 66, 0.1);
}
#ranking-7 .ranking-table tbody tr:last-child td {
    border-bottom: none;
}
#ranking-7 .ranking-table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
#ranking-7 .ranking-table tbody tr:nth-child(2)  { animation-delay: 0.08s; }
#ranking-7 .ranking-table tbody tr:nth-child(3)  { animation-delay: 0.12s; }
#ranking-7 .ranking-table tbody tr:nth-child(4)  { animation-delay: 0.16s; }
#ranking-7 .ranking-table tbody tr:nth-child(5)  { animation-delay: 0.20s; }
#ranking-7 .ranking-table tbody tr:nth-child(6)  { animation-delay: 0.24s; }
#ranking-7 .ranking-table tbody tr:nth-child(7)  { animation-delay: 0.28s; }
#ranking-7 .ranking-table tbody tr:nth-child(8)  { animation-delay: 0.32s; }
#ranking-7 .ranking-table tbody tr:nth-child(9)  { animation-delay: 0.36s; }
#ranking-7 .ranking-table tbody tr:nth-child(10) { animation-delay: 0.40s; }

/* 分类行：默认带色边，hover 更明显 */
#ranking-7 .ranking-table tbody tr.hof-row-level  { border-left: 3px solid rgba(74,  222, 128, 0.35); }
#ranking-7 .ranking-table tbody tr.hof-row-boss   { border-left: 3px solid rgba(248, 113, 113, 0.35); }
#ranking-7 .ranking-table tbody tr.hof-row-skill  { border-left: 3px solid rgba(96,  165, 250, 0.35); }
#ranking-7 .ranking-table tbody tr.hof-row-gold   { border-left: 3px solid rgba(251, 191, 36,  0.35); }
#ranking-7 .ranking-table tbody tr.hof-row-level:hover  { border-left-color: #4ade80; background: rgba(74,  222, 128, 0.05); }
#ranking-7 .ranking-table tbody tr.hof-row-boss:hover   { border-left-color: #f87171; background: rgba(248, 113, 113, 0.05); }
#ranking-7 .ranking-table tbody tr.hof-row-skill:hover  { border-left-color: #60a5fa; background: rgba(96,  165, 250, 0.05); }
#ranking-7 .ranking-table tbody tr.hof-row-gold:hover   { border-left-color: #fbbf24; background: rgba(251, 191, 36,  0.05); }

/* 分类徽章：更精致的 pill + 微光 */
#ranking-7 .hof-category-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
#ranking-7 .hof-cat-boss       { background: rgba(239, 68,  68,  0.18); color: #f87171; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12); }
#ranking-7 .hof-cat-level      { background: rgba(34,  197, 94,  0.18); color: #4ade80; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12); }
#ranking-7 .hof-cat-skill      { background: rgba(96,  165, 250, 0.18); color: #60a5fa; box-shadow: 0 2px 8px rgba(96, 165, 250, 0.12); }
#ranking-7 .hof-cat-gold       { background: rgba(251, 191, 36,  0.18); color: #fbbf24; box-shadow: 0 2px 8px rgba(251, 191, 36, 0.12); }
#ranking-7 .hof-cat-season     { background: rgba(168, 85,  247, 0.18); color: #c084fc; box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12); }
#ranking-7 .hof-cat-contribute { background: rgba(244, 114, 182, 0.18); color: #f472b6; box-shadow: 0 2px 8px rgba(244, 114, 182, 0.12); }
#ranking-7 .hof-cat-record     { background: rgba(251, 146, 60,  0.18); color: #fb923c; box-shadow: 0 2px 8px rgba(251, 146, 60, 0.12); }

/* 名人堂空状态强化 */
#ranking-7 .hall-of-fame-empty {
    background: radial-gradient(ellipse at center, rgba(245, 179, 66, 0.05) 0%, transparent 70%);
    border: 1px dashed rgba(245, 179, 66, 0.18);
}
#ranking-7 .hof-empty-icon {
    filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.25));
    animation: hofTrophyPulse 2.5s ease-in-out infinite;
}
@keyframes hofTrophyPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.08); opacity: 0.9; }
}

/* 前三名序号在名人堂里更突出 */
#ranking-7 .rank-num.rank-1 {
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.35);
}
#ranking-7 .rank-num.rank-2 {
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.25);
}
#ranking-7 .rank-num.rank-3 {
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.25);
}

/* 授予日期样式 */
#ranking-7 .ranking-table td:last-child {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* 移动端名人堂优化 */
@media (max-width: 768px) {
    #ranking-7 .ranking-table-wrap {
        border-radius: var(--radius-md);
    }
    #ranking-7 .ranking-table th,
    #ranking-7 .ranking-table td {
        padding: 10px 12px;
    }
    #ranking-7 .hof-achievement-text {
        font-size: 0.8rem;
        gap: 6px;
    }
    #ranking-7 .hof-category-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}

/* ===== 种族分布可视化 ===== */
.race-distribution {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.race-dist-header {
    text-align: center;
    margin-bottom: 28px;
}

.race-dist-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.race-dist-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.race-dist-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
}

.race-dist-chart-wrap {
    display: flex;
    justify-content: center;
}

.race-doughnut {
    position: relative;
    width: 220px;
    height: 220px;
}

.race-doughnut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.rdc-total {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.rdc-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.race-dist-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.race-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.race-info-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.ric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.race-info-card.china .ric-icon {
    background: rgba(93,173,226,0.12);
}

.race-info-card.europe .ric-icon {
    background: rgba(245,179,66,0.12);
}

.ric-body {
    flex: 1;
    min-width: 0;
}

.ric-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.ric-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ric-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ric-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.ric-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .race-dist-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .race-doughnut {
        width: 180px;
        height: 180px;
    }
    .race-distribution {
        padding: 24px 16px;
    }
    .hof-rules {
        padding: 20px 16px;
    }
}

/* 11. 首页版本更新卡片 */
.home-version-section {
    padding: 40px 20px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.version-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(245,179,66,0.04);
    border: 1px solid rgba(245,179,66,0.12);
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.3s ease;
}

.version-card:hover {
    border-color: rgba(245,179,66,0.25);
}

.version-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.version-card-tag {
    color: var(--gold);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.version-card-title {
    color: var(--gold);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.version-card-body {
    padding: 0;
}

.version-card-update-title {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.version-card-update-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.version-card-update-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.version-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.version-card-brand {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--gold);
}

/* 10. 公告提示框 */
.axiom-notice {
    background: rgba(245,179,66,0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #F5B342;
    margin-bottom: 16px;
}

/* ============================================
   20. 通知铃铛系统
   ============================================ */
.nav-notification {
    position: relative;
    margin-left: 12px;
}

.bell-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.bell-btn:hover {
    background: rgba(245,179,66,0.1);
    border-color: rgba(245,179,66,0.3);
}

.bell-icon {
    font-size: 1.1rem;
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f87171;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bellPulse 0.5s ease;
}

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

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.notification-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mark-all-read:hover {
    background: rgba(245,179,66,0.1);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    position: relative;
}

.notif-item:hover {
    background: rgba(255,255,255,0.03);
}

.notif-item.unread {
    background: rgba(245,179,66,0.04);
}

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

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-item.unread .notif-title {
    color: var(--gold);
}

.notif-content {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 18px;
    text-align: center;
    flex-shrink: 0;
}

.notif-all-link {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    line-height: 1.5;
}

.notif-all-link:hover {
    color: #fff;
    background: rgba(245,179,66,0.1);
}

/* 管理员紫色铃铛 */
.bell-btn-admin {
    border-color: rgba(157, 122, 255, 0.3);
}

.bell-btn-admin:hover {
    background: rgba(157, 122, 255, 0.1);
    border-color: rgba(157, 122, 255, 0.5);
}

.bell-badge-admin {
    background: #9d7aff;
}

/* 消息页面 */
.messages-page {
    max-width: 800px;
    margin: 0 auto;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.message-item:hover {
    background: rgba(255,255,255,0.03);
}

.message-item.unread {
    background: rgba(245,179,66,0.04);
}

.message-item.unread:hover {
    background: rgba(245,179,66,0.08);
}

.message-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.message-body {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.message-item.unread .message-title {
    color: var(--gold);
}

.message-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

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

.message-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.message-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* ============================================
   21. 管理员边框流光
   ============================================ */
.admin-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9998;
    border: 3px solid transparent;
}

.admin-glow.glow-purple {
    border-color: transparent;
    animation: glowBorderPurple 5s ease forwards;
}

@keyframes glowBorderPurple {
    0% {
        border-color: rgba(107, 70, 193, 0.8);
        box-shadow: inset 0 0 30px rgba(107, 70, 193, 0.3), 0 0 30px rgba(168, 85, 247, 0.3);
    }
    50% {
        border-color: rgba(168, 85, 247, 0.8);
        box-shadow: inset 0 0 50px rgba(168, 85, 247, 0.4), 0 0 50px rgba(107, 70, 193, 0.4);
    }
    100% {
        border-color: transparent;
        box-shadow: none;
    }
}

.admin-glow.glow-gold {
    border-color: #f87171;
    animation: glowBorderGold 2s ease infinite;
    box-shadow: inset 0 0 40px rgba(248, 113, 113, 0.2), 0 0 40px rgba(245, 179, 66, 0.2);
}

.admin-glow.glow-green {
    border-color: #4ade80;
    animation: glowBorderGreen 2s ease infinite;
    box-shadow: inset 0 0 40px rgba(74, 222, 128, 0.15), 0 0 40px rgba(74, 222, 128, 0.15);
}

@keyframes glowBorderGreen {
    0% {
        border-color: #4ade80;
        box-shadow: inset 0 0 40px rgba(74, 222, 128, 0.15), 0 0 40px rgba(74, 222, 128, 0.15);
    }
    50% {
        border-color: #22c55e;
        box-shadow: inset 0 0 60px rgba(34, 197, 94, 0.2), 0 0 60px rgba(74, 222, 128, 0.15);
    }
    100% {
        border-color: #4ade80;
        box-shadow: inset 0 0 40px rgba(74, 222, 128, 0.15), 0 0 40px rgba(74, 222, 128, 0.15);
    }
}

@keyframes glowBorderGold {
    0% {
        border-color: #f87171;
        box-shadow: inset 0 0 40px rgba(248, 113, 113, 0.2), 0 0 40px rgba(245, 179, 66, 0.2);
    }
    33% {
        border-color: #F5B342;
        box-shadow: inset 0 0 60px rgba(245, 179, 66, 0.3), 0 0 60px rgba(248, 113, 113, 0.2);
    }
    66% {
        border-color: #f87171;
        box-shadow: inset 0 0 40px rgba(248, 113, 113, 0.2), 0 0 40px rgba(245, 179, 66, 0.2);
    }
    100% {
        border-color: #f87171;
        box-shadow: inset 0 0 40px rgba(248, 113, 113, 0.2), 0 0 40px rgba(245, 179, 66, 0.2);
    }
}

/* ============================================
   22. 仪表盘统计卡片
   ============================================ */
.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-stat-card:hover {
    border-color: rgba(245,179,66,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dsc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dsc-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}
.dsc-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dashboard-alert {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}
.dashboard-alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .studio-message-card {
        padding: 32px 24px;
    }
    .studio-title {
        font-size: 1.5rem;
    }

    /* 仪表盘图表响应式 */
    .dashboard-chart-row {
        grid-template-columns: 1fr !important;
    }

    /* 招募双列 → 单列 */
    .profile-grid-2col {
        grid-template-columns: 1fr;
    }

    /* 排行榜响应式 */
    .ranking-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 4px;
    }
    .ranking-tab {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .ranking-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ranking-table {
        min-width: 600px;
        font-size: 0.75rem;
    }
    .ranking-table th,
    .ranking-table td {
        padding: 8px 10px;
    }
    .ranking-header h1 {
        font-size: 1.35rem;
    }
    .ranking-page {
        padding: 24px 0;
    }
    .ranking-container {
        padding: 0 12px;
    }
    .rank-num {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .mysterious-name {
        font-size: 0.8rem;
    }
    .mysterious-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .ranking-table {
        min-width: 480px;
        font-size: 0.7rem;
    }
    .ranking-table th,
    .ranking-table td {
        padding: 6px 8px;
    }
    .ranking-tab {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    .ranking-header h1 {
        font-size: 1.2rem;
    }
    .guild-name {
        font-size: 0.7rem;
    }
    .race-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}

    /* 招募阶梯 5列 → 可滚动 */
    .recruit-tier-grid {
        grid-template-columns: repeat(5, minmax(100px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .recruit-tier-card {
        min-width: 100px;
    }

    .hall-of-fame-empty {
        padding: 32px 16px;
    }
}
/* ============================================
   40. BRAND LOGOS (Mango + AXIOM)
   ============================================ */

/* ----- AXIOM Footer Logo ----- */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: default;
}

.footer-axiom-emblem {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.7s ease;
    filter: drop-shadow(0 0 16px rgba(245, 179, 66, 0.14));
}
.footer-brand-logo:hover .footer-axiom-emblem {
    transform: scale(1.06);
    filter: drop-shadow(0 0 40px rgba(245, 179, 66, 0.32));
}
.footer-axiom-emblem svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.footer-axiom-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.footer-axiom-main {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 3px;
    background: linear-gradient(155deg, #F2D68A 0%, #D4A847 35%, #C49A3E 65%, #B8893A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    line-height: 1;
}
.footer-axiom-main::after {
    content: '\u00AE';
    font-size: 0.4rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    background: none;
    margin-left: 3px;
    vertical-align: super;
    letter-spacing: 0;
}

.footer-axiom-sub {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
.footer-axiom-sub span {
    color: var(--gold-dark);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ----- Mango pulse dot animation (logo icon) ----- */
.mango-pulse-dot {
    animation: mangoPulse 2.8s ease-in-out infinite;
}
.mango-pulse-dot-delay {
    animation-delay: 1.4s;
}

/* ----- Logo responsive adjustments ----- */
@media (max-width: 768px) {
    .nav-logo-icon {
        width: 36px;
        height: 36px;
    }
    .nav-logo-main {
        font-size: 1.2rem;
    }
    .nav-logo-sub {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
    }
    .footer-axiom-emblem {
        width: 44px;
        height: 44px;
    }
    .footer-axiom-main {
        font-size: 1.45rem;
    }
    .footer-axiom-sub {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        gap: 8px;
    }
    .nav-logo-icon {
        width: 32px;
        height: 32px;
    }
    .nav-logo-main {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .nav-logo-sub {
        display: none;
    }
}

/* ============================================
   MMORPG 世界级升级 — 视觉微交互系统
   ============================================ */

/* ----- 1. 导航栏滚动收缩增强 ----- */
.navbar {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.navbar.scrolled {
    height: 56px;
    background: rgba(8, 9, 11, 0.98);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: rgba(245, 179, 66, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6),
                0 1px 0 rgba(245, 179, 66, 0.1);
}

.navbar.scrolled .nav-logo-icon {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 16px rgba(245, 179, 66, 0.5));
    transition: width 0.3s ease, height 0.3s ease, filter 0.3s ease;
}

.navbar.scrolled .nav-logo-main {
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
}

/* Logo 金色描边光晕增强 */
.nav-logo-icon {
    transition: width 0.3s ease, height 0.3s ease, filter 0.6s ease;
    filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.25))
            drop-shadow(0 0 24px rgba(245, 179, 66, 0.1));
}

.nav-logo:hover .nav-logo-icon {
    filter: drop-shadow(0 0 20px rgba(245, 179, 66, 0.6))
            drop-shadow(0 0 40px rgba(245, 179, 66, 0.3));
}

/* ----- 2. 导航链接悬浮下滑线动画 ----- */
.nav-menu > li > a {
    position: relative;
    overflow: hidden;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    opacity: 0.8;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 60%;
}

/* ----- 3. 用户头像 ----- */
.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5B342 0%, #d4942f 50%, #B8893A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(245, 179, 66, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(245, 179, 66, 0.5);
    user-select: none;
    letter-spacing: 0.5px;
}

.nav-user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(245, 179, 66, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: var(--gold-light);
}

.navbar.scrolled .nav-user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* ----- 4. 下拉菜单卡片化（毛玻璃） ----- */
.dropdown-menu {
    min-width: 240px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(245, 179, 66, 0.15);
    border-radius: var(--radius-lg);
    padding: 12px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(245, 179, 66, 0.05);
}

/* 下拉菜单头部欢迎区 */
.dropdown-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(245, 179, 66, 0.1);
    margin-bottom: 8px;
}

.dropdown-welcome {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.dropdown-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #F2D68A, #D4A847);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a .menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background: rgba(245, 179, 66, 0.1);
    color: var(--text-white);
    transform: translateX(4px);
}

.dropdown-menu a:hover .menu-icon {
    filter: drop-shadow(0 0 4px rgba(245, 179, 66, 0.6));
}

/* 渐变透明分割线 */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 66, 0.2) 50%,
        transparent 100%);
    margin: 8px 16px;
    border: none;
}

/* ----- 5. 管理员侧边栏系统 ----- */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height) - 250px);
    gap: 24px;
    padding: 24px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    max-height: calc(100vh - var(--nav-height) - 32px);
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    width: 72px;
}

.admin-sidebar.collapsed .sidebar-group-title,
.admin-sidebar.collapsed .sidebar-label {
    opacity: 0;
    pointer-events: none;
}

.admin-sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.admin-sidebar.collapsed .sidebar-item .sidebar-icon {
    margin-right: 0;
}

/* 折叠按钮 */
.sidebar-toggle {
    position: absolute;
    top: 8px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle:hover {
    background: rgba(245, 179, 66, 0.1);
    transform: scale(1.1);
}

/* 侧边栏分组 */
.sidebar-group {
    margin-bottom: 8px;
}

.sidebar-group-title {
    padding: 12px 20px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-item .sidebar-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.sidebar-item .sidebar-label {
    transition: opacity 0.2s ease;
}

/* 扫光悬停效果 */
.sidebar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(245, 179, 66, 0.08),
        transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.sidebar-item:hover::before {
    left: 100%;
}

.sidebar-item:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}

/* 激活状态：左侧金色发光边框 */
.sidebar-item.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
    border-left-color: var(--gold);
    box-shadow: inset 3px 0 12px -4px rgba(245, 179, 66, 0.4);
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(245, 179, 66, 0.5);
    margin-left: -6px;
}

.admin-main-content {
    flex: 1;
    min-width: 0;
}

/* 桌面端：隐藏顶栏 tabs，使用侧边栏 */
@media (min-width: 901px) {
    .admin-layout .admin-tabs {
        display: none;
    }
}

/* 响应式：移动端隐藏侧边栏，使用顶栏 tabs */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
        padding: 16px;
    }
    .admin-sidebar {
        display: none;
    }
    .admin-main-content {
        width: 100%;
    }
}

/* ----- 6. Toast 通知系统 ----- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 380px;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.toast-content {
    flex: 1;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-white);
}

/* Toast 类型 */
.toast-success {
    border-color: rgba(40, 167, 69, 0.4);
}
.toast-success .toast-icon {
    color: #28a745;
}
.toast-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #28a745;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.5);
}

.toast-error {
    border-color: rgba(220, 53, 69, 0.4);
}
.toast-error .toast-icon {
    color: #dc3545;
}
.toast-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.5);
}

.toast-warning {
    border-color: rgba(255, 193, 7, 0.4);
}
.toast-warning .toast-icon {
    color: #ffc107;
}
.toast-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #ffc107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
}

.toast-info {
    border-color: rgba(245, 179, 66, 0.4);
}
.toast-info .toast-icon {
    color: var(--gold);
}
.toast-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.5);
}

/* ----- 7. 输入框实时校验 ----- */
.form-field {
    position: relative;
}

.form-validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.form-field.valid .form-validation-icon {
    opacity: 1;
    color: #28a745;
}

.form-field.invalid .form-validation-icon {
    opacity: 1;
    color: #dc3545;
    animation: validationShake 0.4s ease;
}

@keyframes validationShake {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    20% { transform: translateY(-50%) translateX(-4px); }
    40% { transform: translateY(-50%) translateX(4px); }
    60% { transform: translateY(-50%) translateX(-3px); }
    80% { transform: translateY(-50%) translateX(3px); }
}

.form-field.valid input,
.form-field.valid select,
.form-field.valid textarea {
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.08);
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

/* 输入框抖动 */
.form-field.shake input {
    animation: inputShake 0.4s ease;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ----- 8. 模态框弹性入场动画 ----- */
@keyframes modalSpringIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px);
    }
    80% {
        transform: scale(0.99) translateY(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content {
    animation: modalSpringIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 模态框关闭动画 */
.modal.closing .modal-content {
    animation: modalSpringOut 0.25s ease forwards;
}

@keyframes modalSpringOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

/* ----- 9. 特色卡片 3D 倾斜 ----- */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.feature-card .feature-icon {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.feature-card .feature-title {
    transform: translateZ(20px);
}

.feature-card .feature-desc {
    transform: translateZ(10px);
}

/* 3D 卡片光效 */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(245, 179, 66, 0.12) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

/* ----- 10. 下载进度条 ----- */
.download-progress-container {
    margin-top: 12px;
    display: none;
}

.download-progress-container.active {
    display: block;
}

.download-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.download-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5B342, #ffcc66, #F5B342);
    background-size: 200% 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShine 2s linear infinite;
    position: relative;
}

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

.download-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-progress-status {
    color: var(--gold);
    font-weight: 500;
}

.download-box.downloading .btn-primary {
    pointer-events: none;
    opacity: 0.7;
}

/* ----- 11. 页脚动画分隔线 & 服务器时间 ----- */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 66, 0.3) 20%,
        rgba(245, 179, 66, 0.5) 50%,
        rgba(245, 179, 66, 0.3) 80%,
        transparent 100%);
    margin: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(245, 179, 66, 0.6),
        transparent);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { left: -30%; }
    50% { left: 100%; }
}

.footer-server-time {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.footer-server-time .time-value {
    color: var(--gold);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(245, 179, 66, 0.3);
}

/* ----- 12. 数字滚动增强 ----- */
.count-up {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.count-up-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

/* 数字卡片样式 */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #F2D68A, #D4A847);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- 排行榜统计卡片 ----- */
.ranking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ranking-stats .stat-card {
    padding: 20px 16px;
}

.ranking-stats .stat-value {
    font-size: 1.75rem;
}

.ranking-stats .stat-label {
    font-size: 0.75rem;
    margin-top: 6px;
}

.race-chart-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.race-chart-card .chart-canvas-wrapper {
    width: 100%;
    max-width: 120px;
    margin-bottom: 8px;
}

/* ----- 13. 图表容器 ----- */
.chart-container {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.chart-canvas-wrapper {
    position: relative;
    height: 280px;
}

/* ----- 14. 无障碍适配 - 减少动效 ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .navbar {
        transition: none;
    }

    .nav-logo:hover .nav-logo-icon {
        animation: none;
    }

    .feature-card {
        transform: none !important;
    }

    .mango-pulse-dot {
        animation: none;
    }

    .footer-divider::before {
        animation: none;
    }

    .download-progress-fill {
        animation: none;
    }

    .toast {
        transition: opacity 0.1s ease;
    }

    .modal-content {
        animation: modalFadeIn 0.1s ease;
    }

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

/* ----- 15. 滚动条美化 ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(245, 179, 66, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 179, 66, 0.4);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 179, 66, 0.2) var(--bg-primary);
}

/* ----- 16. 选中文字样式 ----- */
::selection {
    background: rgba(245, 179, 66, 0.3);
    color: var(--text-white);
}

/* ----- 17. Hero Galaxy 粒子层 ----- */
.hero-galaxy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 确保 hero content 在粒子之上 */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}
