/* CDN控制台 - 主样式表 */
/* 基于MUI设计系统 + 自定义CDN面板风格 */

:root {
    --primary: #00A76F;
    --primary-dark: #007B55;
    --primary-light: #5BE49B;
    --primary-lighter: rgba(0, 167, 111, 0.08);
    --secondary: #8E33FF;
    --info: #00B8D9;
    --success: #22C55E;
    --warning: #FFAB00;
    --error: #FF5630;
    
    --grey-50: #FCFDFD;
    --grey-100: #F9FAFB;
    --grey-200: #F4F6F8;
    --grey-300: #DFE3E8;
    --grey-400: #C4CDD5;
    --grey-500: #919EAB;
    --grey-600: #637381;
    --grey-700: #454F5B;
    --grey-800: #212B36;
    --grey-900: #161C24;
    
    --bg-default: #FFFFFF;
    --bg-paper: #FFFFFF;
    --bg-neutral: #F4F6F8;
    --bg-secondary: #F9FAFB;
    
    --text-primary: #212B36;
    --text-secondary: #637381;
    --text-disabled: #919EAB;
    
    --border-color: rgba(145, 158, 171, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(145,158,171,0.16);
    --shadow-md: 0 4px 8px 0 rgba(145,158,171,0.16);
    --shadow-lg: 0 8px 16px 0 rgba(145,158,171,0.16);
    --shadow-xl: 0 20px 40px -4px rgba(0,0,0,0.16);
    --shadow-card: 0 0 2px 0 rgba(145,158,171,0.2), 0 12px 24px -4px rgba(145,158,171,0.12);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --font-primary: 'Public Sans', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s ease;
    
    --header-height: 64px;
    --sidebar-width: 280px;
}

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

body {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-default);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ========== NAVIGATION ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo img {
    height: 36px;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.header-logo-sub {
    font-size: 12px;
    color: var(--primary);
    padding: 2px 8px;
    background: var(--primary-lighter);
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.header-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.header-nav a:hover {
    background: var(--grey-100);
    color: var(--text-primary);
}

.header-nav a.active {
    color: var(--primary);
    background: var(--primary-lighter);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px 0 rgba(0,167,111,0.24);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 16px 0 rgba(0,167,111,0.32);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: var(--grey-100);
    border-color: var(--grey-400);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}
.btn-ghost:hover { background: var(--grey-100); color: var(--text-primary); }

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--bg-default) 50%, var(--primary-lighter) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--grey-900);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 4px;
}

.hero-stat p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== SECTION ========== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-default);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: transparent;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    background: var(--primary-lighter);
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--grey-900);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== PLANS ========== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--bg-default);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover { box-shadow: var(--shadow-card); }

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.plan-card.popular:hover { transform: scale(1.05); }

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--grey-900);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price small {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

/* ========== RANKING TABLE ========== */
.ranking-section { background: var(--bg-neutral); }

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.ranking-tab {
    padding: 8px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.ranking-tab.active {
    background: var(--primary-lighter);
    color: var(--primary);
}

.ranking-tab:hover {
    background: var(--grey-200);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.data-table thead th {
    background: var(--grey-100);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--grey-50); }

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.rank-1 { background: #FFD700; color: #fff; }
.rank-2 { background: #C0C0C0; color: #fff; }
.rank-3 { background: #CD7F32; color: #fff; }
.rank-other { background: var(--grey-200); color: var(--text-secondary); }

.ranking-bar {
    display: inline-block;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.ranking-update {
    text-align: center;
    color: var(--text-disabled);
    font-size: 13px;
    margin-top: 20px;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--bg-default) 50%, var(--primary-lighter) 100%);
    padding: 24px;
}

.auth-card {
    background: var(--bg-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
}

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

.auth-logo img { height: 40px; margin-bottom: 8px; }
.auth-logo h2 { font-size: 24px; font-weight: 700; color: var(--grey-900); }
.auth-logo p { color: var(--text-secondary); font-size: 14px; }

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-default);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

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

.form-link {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255,86,48,0.08);
    color: var(--error);
    border: 1px solid rgba(255,86,48,0.2);
}

.alert-success {
    background: rgba(34,197,94,0.08);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.2);
}

/* ========== DASHBOARD ========== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-default);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
    padding: 20px 12px;
}

.dashboard-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    background: var(--bg-neutral);
    min-height: 100vh;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 20px;
    margin-bottom: 8px;
}

.sidebar-logo img { height: 32px; }
.sidebar-logo span { font-size: 18px; font-weight: 700; }

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: var(--grey-100);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dashboard-header {
    background: var(--bg-default);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-content {
    padding: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-default);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover { box-shadow: var(--shadow-card); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card h3 { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.stat-card p { font-size: 13px; color: var(--text-secondary); }

/* ========== MAP SECTION ========== */
.map-section {
    padding: 80px 0;
    background: var(--bg-default);
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--grey-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.map-placeholder svg { margin-bottom: 16px; opacity: 0.5; }

.world-map-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
    opacity: 0.7;
}

.map-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s infinite;
}

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

@keyframes pulse-ring {
    0% { width: 24px; height: 24px; opacity: 0.5; }
    100% { width: 48px; height: 48px; opacity: 0; }
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-800) 100%);
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    color: var(--grey-500);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--grey-900);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.cta-section .btn-primary:hover {
    background: var(--grey-100);
    color: var(--grey-900);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--grey-900);
    color: var(--grey-400);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-logo-text { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--grey-500);
    max-width: 480px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h6 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--grey-500);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-icp {
    font-size: 12px;
    color: var(--grey-500);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-icp a { color: var(--grey-500); font-size: 12px; }
.footer-icp a:hover { color: var(--grey-300); }
.footer-icp .sep { color: rgba(255,255,255,0.12); }

.footer-copyright {
    font-size: 12px;
    color: var(--grey-500);
}

/* ========== ABOUT PAGE ========== */
.about-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--grey-50), var(--primary-lighter));
    text-align: center;
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.about-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 24px;
}

.contact-page h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.contact-info {
    text-align: center;
    padding: 32px;
    background: var(--bg-neutral);
    border-radius: var(--radius-xl);
    margin-top: 32px;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

/* ========== ADMIN ========== */
.admin-page {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--grey-900);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 20px 12px;
    z-index: 900;
}

.admin-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 16px 24px;
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--grey-400);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 4px;
}

.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-main {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-neutral);
}

.admin-header {
    background: var(--bg-default);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.admin-header h1 { font-size: 22px; font-weight: 700; }

.admin-content {
    padding: 32px;
    max-width: 1000px;
}

.admin-card {
    background: var(--bg-default);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .dashboard-sidebar { display: none; }
    .dashboard-main { margin-left: 0; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .plans-grid { max-width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* Toast notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

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

/* ========== ENHANCED MAP & RANKING ========== */
.world-map-advanced { animation: fadeInUp 0.8s ease; }

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

@keyframes barGrow {
    from { width: 0 !important; }
}

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

.data-table tbody tr { animation: countUp 0.4s ease both; }
.data-table tbody tr:nth-child(1) { animation-delay: 0s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.25s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.35s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.45s; }
.data-table tbody tr:nth-child(11) { animation-delay: 0.5s; }
.data-table tbody tr:nth-child(12) { animation-delay: 0.55s; }
.data-table tbody tr:nth-child(13) { animation-delay: 0.6s; }
.data-table tbody tr:nth-child(14) { animation-delay: 0.65s; }
.data-table tbody tr:nth-child(15) { animation-delay: 0.7s; }

/* ========== GLASS MORPHISM CARDS ========== */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* ========== PARALLAX HERO ========== */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,167,111,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142,51,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== HOVER ELEVATE ========== */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-elevate:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ========== SHIMMER EFFECT ========== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========== GRADIENT BORDER ========== */
.gradient-border {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--info));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ========== PILL BADGE ========== */
.pill {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.pill-success { background: rgba(34,197,94,0.1); color: var(--success); }
.pill-warning { background: rgba(255,171,0,0.1); color: var(--warning); }
.pill-info { background: rgba(0,184,217,0.1); color: var(--info); }
.pill-purple { background: rgba(142,51,255,0.1); color: var(--secondary); }

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0,167,111,0.2);
}

/* ========== COUNTER NUMBER ========== */
.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ========== RANKING HERO SECTION ========== */
.ranking-hero {
    position: relative;
    overflow: hidden;
}
.ranking-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-lighter), transparent);
}

/* ========== TABLE STICKY HEADER ========== */
.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ========== RESPONSIVE TABLE ========== */
@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .world-map-advanced {
        height: 250px;
    }
}
