/* ZEUS Staking V2 - 与空投页面完全同步的导航样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-accent: #6366f1;
    --secondary-accent: #8b5cf6;
    --accent-blue: #3b82f6;
    --primary-bg: #0a0a0f;
    --secondary-bg: #12121a;
    --bg-card: #1a1a24;
    --bg-card-hover: #242837;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #64748b;
    --border-color: #2a2a3a;
    --border-purple: rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gold-start: #fbbf24;
    --gold-end: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139,92,246,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== 顶部导航栏 - 完全同步空投页面 ========== */
/* ========== 导航栏容器 ========== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideDown 0.5s ease;
    gap: 1rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-top-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* ========== 汉堡菜单按钮 ========== */
.hamburger-menu {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.hamburger-menu:hover::before {
    left: 100%;
}

.hamburger-menu:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 16px;
    height: 2.5px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.5);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7.5px);
    background: linear-gradient(90deg, #f472b6, #ec4899);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7.5px);
    background: linear-gradient(90deg, #f472b6, #ec4899);
}

.hamburger-menu.active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.15) 100%);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
}

/* ========== Logo区域 ========== */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='purple' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%236366f1'/%3E%3Cstop offset='100%25' style='stop-color:%238b5cf6'/%3E%3C/linearGradient%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23fbbf24'/%3E%3Cstop offset='100%25' style='stop-color:%23f59e0b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='20,6 32,12 32,24 20,30 8,24 8,12' fill='url(%23purple)' opacity='0.3'/%3E%3Cpolygon points='20,6 32,12 32,24 20,30 8,24 8,12' fill='none' stroke='url(%23purple)' stroke-width='2'/%3E%3Cpath d='M 21 12 L 17 20 L 20 20 L 19 28 L 23 20 L 20 20 Z' fill='url(%23gold)' stroke='white' stroke-width='1'/%3E%3Ccircle cx='20' cy='6' r='1.5' fill='white'/%3E%3Ccircle cx='32' cy='12' r='1.2' fill='white'/%3E%3Ccircle cx='32' cy='24' r='1.2' fill='white'/%3E%3Ccircle cx='20' cy='30' r='1.5' fill='white'/%3E%3Ccircle cx='8' cy='24' r='1.2' fill='white'/%3E%3Ccircle cx='8' cy='12' r='1.2' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.9));
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* ========== 右侧工具栏 ========== */
.header-right {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    width: 100%;
}

/* 导航图标基础样式 */
.nav-icon {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 网络图标 - 六边形链条 */
.icon-network {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='net' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2306b6d4'/%3E%3Cstop offset='100%25' style='stop-color:%230891b2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='7,4 11,6 11,10 7,12 3,10 3,6' fill='url(%23net)' opacity='0.4'/%3E%3Cpolygon points='7,4 11,6 11,10 7,12 3,10 3,6' fill='none' stroke='url(%23net)' stroke-width='1.5'/%3E%3Cpolygon points='17,12 21,14 21,18 17,20 13,18 13,14' fill='url(%23net)' opacity='0.4'/%3E%3Cpolygon points='17,12 21,14 21,18 17,20 13,18 13,14' fill='none' stroke='url(%23net)' stroke-width='1.5'/%3E%3Cline x1='11' y1='8' x2='13' y2='14' stroke='url(%23net)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 语言图标 - 六边形地球 */
.icon-language {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='lang' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2310b981'/%3E%3Cstop offset='100%25' style='stop-color:%23059669'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='12,3 19,7 19,15 12,19 5,15 5,7' fill='url(%23lang)' opacity='0.3'/%3E%3Cpolygon points='12,3 19,7 19,15 12,19 5,15 5,7' fill='none' stroke='url(%23lang)' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='11' r='5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M 7 11 Q 12 8 17 11' fill='none' stroke='white' stroke-width='1.2'/%3E%3Cpath d='M 7 11 Q 12 14 17 11' fill='none' stroke='white' stroke-width='1.2'/%3E%3Cline x1='12' y1='6' x2='12' y2='16' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* 钱包图标 - 六边形钱包 */
.icon-wallet {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='wallet' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23fbbf24'/%3E%3Cstop offset='100%25' style='stop-color:%23f59e0b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='12,3 19,7 19,15 12,19 5,15 5,7' fill='url(%23wallet)' opacity='0.3'/%3E%3Cpolygon points='12,3 19,7 19,15 12,19 5,15 5,7' fill='none' stroke='url(%23wallet)' stroke-width='1.5'/%3E%3Crect x='7.5' y='9' width='9' height='5' rx='1' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='11.5' r='0.8' fill='white'/%3E%3C/svg%3E");
}

/* 网络标识 和 语言选择器 */
.network-badge,
.lang-selector {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.network-badge:hover,
.lang-selector:hover {
    border-color: var(--primary-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.network-badge:hover .nav-icon,
.lang-selector:hover .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.6));
}

/* 钱包按钮 */
.wallet-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    height: 36px;
    box-sizing: border-box;
    font-size: 0.8125rem;
}

/* 按钮扫光效果 */
.wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wallet-btn:hover::before {
    left: 100%;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.wallet-btn.connected {
    background: var(--bg-card);
    border: 1px solid var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.wallet-btn.connected:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ========== 侧边栏菜单 ========== */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-purple);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== 主内容区域 ========== */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(139,92,246,0.4);
}

.stat-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: 10px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.gold {
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 推荐奖励卡片 ========== */
.referral-card {
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(245,158,11,0.08));
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.referral-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.referral-title {
    flex: 1;
}

.referral-title h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.referral-title p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.referral-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-stat {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.referral-stat .label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.referral-stat .value {
    font-size: 1.1rem;
    font-weight: 700;
}

.referral-stat .value.pending {
    color: var(--gold-start);
}

.referral-stat .value.locked {
    color: var(--text-muted);
}

.referral-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
}

.referral-info {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item.warning {
    color: var(--warning);
}

.info-item .icon {
    flex-shrink: 0;
}

.info-item strong {
    color: var(--gold-start);
}

.claim-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.claim-btn:disabled {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========== 质押池 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tabs {
    display: flex;
    gap: 6px;
}

.tab-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--border-purple);
}

.tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.pools-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
}

.pool-card:hover {
    border-color: var(--border-purple);
    transform: translateY(-2px);
}

.pool-card.popular {
    border: 2px solid rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(249, 115, 22, 0.05));
}

.pool-card.premium {
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
}

.pool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
}

.pool-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.pool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pool-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card-hover);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pool-info {
    flex: 1;
}

.pool-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.pool-info .period {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pool-apy {
    text-align: right;
}

.pool-apy .apy-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.pool-apy .apy-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pool-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

.pool-stat .label {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.pool-stat .value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.stake-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stake-btn:hover::before {
    left: 100%;
}

.stake-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.stake-btn svg {
    transition: transform 0.3s ease;
}

.stake-btn:hover svg {
    transform: translateX(4px);
}

/* ========== 我的质押记录 ========== */
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    border-color: var(--border-purple);
    color: var(--text-primary);
}

.stakes-container {
    min-height: 120px;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stake-record {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stake-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stake-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.stake-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stake-status.locked {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stake-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stake-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

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

.stake-detail .label {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.stake-detail .value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.unstake-btn {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unstake-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ========== 模态框 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--secondary-bg);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-accent);
}

.input-wrapper input {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    outline: none;
    min-width: 0;
}

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

.input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

.token-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.max-btn {
    padding: 6px 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.max-btn:hover {
    transform: scale(1.05);
}

.balance-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.balance-value {
    color: var(--text-secondary);
}

.modal-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-row .value {
    font-weight: 600;
    font-size: 0.9rem;
}

.info-row .value.highlight {
    color: var(--gold-start);
}

.modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--warning);
    font-size: 0.8rem;
}

.modal-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.modal-btn:disabled {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 14px;
    padding: 12px 20px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

.toast.error {
    border-color: var(--danger);
}

/* ========== Loading ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .network-badge,
    .lang-selector {
        padding: 0.5rem 0.75rem;
        height: 36px;
        font-size: 0.75rem;
    }

    .wallet-btn {
        padding: 0.5rem 0.75rem;
        height: 36px;
        font-size: 0.75rem;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .main-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

/* 价格显示栏 */
.price-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
}

.price-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-accent);
}

/* USD 等值显示 */
.stat-usd {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 质押记录中的USD */
.amount-usd,
.value-usd {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.record-rewards .earned {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.record-rewards .earned .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.record-rewards .earned .value {
    color: #10b981;
    font-weight: 600;
}

/* ========== 优化模态框尺寸 - 更紧凑 ========== */
.modal {
    max-width: 340px;
    border-radius: 18px;
}

.modal-header {
    padding: 0.9rem 1.1rem;
}

.modal-header h3 {
    font-size: 1rem;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.modal-body {
    padding: 1rem 1.1rem;
}

.input-group {
    margin-bottom: 0.9rem;
}

.input-group label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.input-wrapper {
    border-radius: 10px;
}

.input-wrapper input {
    padding: 0.7rem 0.9rem;
    font-size: 1.1rem;
}

.input-suffix {
    padding-right: 10px;
    gap: 6px;
}

.token-name {
    font-size: 0.8rem;
}

.max-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
}

.balance-info {
    font-size: 0.75rem;
    margin-top: 6px;
}

.modal-info {
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    border-radius: 10px;
}

.info-row {
    padding: 5px 0;
}

.info-row .label {
    font-size: 0.78rem;
}

.info-row .value {
    font-size: 0.82rem;
}

.modal-warning {
    padding: 8px 10px;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    font-size: 0.72rem;
    gap: 6px;
}

.modal-warning svg {
    width: 14px;
    height: 14px;
}

.modal-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* ========== 侧边栏头部样式 ========== */
.sidebar-header {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: white;
}

.sidebar-logo svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.sidebar-brand {
    flex: 1;
}

.sidebar-brand-name {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== 侧边栏底部社交链接 ========== */
.sidebar-footer {
    padding: 10px 14px;
    margin-top: auto;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    background: linear-gradient(0deg, rgba(99, 102, 241, 0.05), transparent);
}

.sidebar-footer-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
}

.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sidebar-social-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sidebar-social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========== 侧边栏分区标题 ========== */
.sidebar-section-title {
    padding: 8px 14px 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), transparent);
}

/* ========== 侧边栏导航项优化 ========== */
.sidebar-nav-item {
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 1px 6px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav-item:hover::before {
    opacity: 1;
}

.sidebar-nav-item:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-accent);
    transform: translateX(4px);
}

.sidebar-nav-item:active {
    transform: translateX(2px) scale(0.98);
}

.sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-nav-item:hover svg {
    fill: var(--primary-accent);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

.sidebar-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--primary-accent);
    color: var(--text-primary);
}

.sidebar-nav-item.active svg {
    fill: var(--primary-accent);
}

/* ========== 模态框动态更新效果 ========== */
.price-row {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    margin: -4px -8px 4px -8px;
    padding: 8px 12px !important;
}

.price-live {
    color: #10b981 !important;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem !important;
}

.price-updating {
    animation: priceFlash 0.3s ease;
}

@keyframes priceFlash {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); color: #fbbf24; }
    100% { opacity: 1; transform: scale(1); }
}

.daily-row {
    border-top: 1px dashed rgba(99, 102, 241, 0.2);
    margin-top: 4px;
    padding-top: 8px !important;
}

.daily-value {
    color: #10b981 !important;
    font-weight: 600 !important;
}

.value-updating {
    animation: valueUpdate 0.3s ease;
}

@keyframes valueUpdate {
    0% { opacity: 0.5; transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

.info-row .value.highlight {
    color: #fbbf24 !important;
}

/* ========== 模态框进一步缩小优化 ========== */
.modal {
    max-width: 300px !important;
    border-radius: 14px !important;
}

.modal-header {
    padding: 0.7rem 1rem !important;
}

.modal-header h3 {
    font-size: 0.95rem !important;
}

.modal-close {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
}

.modal-body {
    padding: 0.8rem 1rem !important;
}

.input-group {
    margin-bottom: 0.7rem !important;
}

.input-group label {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
}

.input-wrapper {
    border-radius: 8px !important;
}

.input-wrapper input {
    padding: 0.5rem 0.7rem !important;
    font-size: 1rem !important;
}

.input-suffix {
    padding-right: 8px !important;
    gap: 4px !important;
}

.token-name {
    font-size: 0.7rem !important;
}

.max-btn {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 4px !important;
}

.balance-info {
    font-size: 0.7rem !important;
    margin-top: 4px !important;
}

.modal-info {
    padding: 0.5rem !important;
    margin-bottom: 0.6rem !important;
    border-radius: 8px !important;
}

.info-row {
    padding: 3px 0 !important;
}

.info-row .label {
    font-size: 0.7rem !important;
}

.info-row .value {
    font-size: 0.75rem !important;
}

.price-row {
    margin: -2px -4px 2px -4px !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
}

.price-live {
    font-size: 0.75rem !important;
}

.daily-row {
    margin-top: 2px !important;
    padding-top: 5px !important;
}

.modal-warning {
    padding: 6px 8px !important;
    margin-bottom: 0.6rem !important;
    border-radius: 6px !important;
    font-size: 0.65rem !important;
    gap: 4px !important;
}

.modal-warning svg {
    width: 12px !important;
    height: 12px !important;
}

.modal-btn {
    padding: 0.6rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* ========== 领取按钮状态优化 ========== */
.claim-btn.can-claim {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    animation: pulse-green 2s infinite;
}

.claim-btn.can-claim:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6); }
}

.claim-btn.locked {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.claim-btn.locked .btn-icon {
    opacity: 0.7;
}
