/* ===== CSS Variables & Theme ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8F5E;
    --secondary: #FFD700;
    --success: #00E676;
    --bg-gradient-start: #0F0C29;
    --bg-gradient-mid: #302B63;
    --bg-gradient-end: #24243E;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #0F0C29;
    overscroll-behavior: none;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    font-family: var(--font);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
}

body {
    display: flex;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ===== Background Decoration ===== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: bgFloat 8s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 20%;
    left: -100px;
    animation-delay: -3s;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    background: #7C4DFF;
    bottom: -60px;
    right: 20%;
    animation-delay: -6s;
}

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

/* ===== App Container ===== */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    justify-content: flex-start;
}

/* ===== Pages ===== */
.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
}

.page.active {
    display: flex;
}

.page .container {
    max-width: 480px;
    width: 100%;
    min-height: auto;
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 6px 0 2px;
    animation: fadeInDown 0.6s ease-out;
}

.header-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
    width: 80px;
    height: 80px;
    animation: logoFloat 3s ease-in-out infinite;
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 16px;
}

.header-logo-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 53, 0.6) 0%,
        rgba(255, 215, 0, 0.4) 30%,
        rgba(255, 107, 53, 0.2) 50%,
        transparent 70%
    );
    animation: logoGlowPulse 2s ease-in-out infinite;
    border-radius: 50%;
}

.header-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.15),
        rgba(255, 107, 53, 0.2),
        rgba(255, 215, 0, 0.15),
        transparent
    );
    animation: logoGlowRotate 3s linear infinite;
    border-radius: 50%;
    mask: radial-gradient(circle at center, transparent 30%, black 31%, black 50%, transparent 51%);
    -webkit-mask: radial-gradient(circle at center, transparent 30%, black 31%, black 50%, transparent 51%);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

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

.header-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== Balance Card ===== */


.balance-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    transition: border-color var(--transition);
}

.balance-card:hover {
    border-color: var(--card-border-hover);
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.balance-amount {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FF6B35, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 12px;
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.balance-amount .currency {
    font-size: 15px;
    font-weight: 700;
    -webkit-text-fill-color: var(--secondary);
    color: var(--secondary);
}

/* ===== Prize Pool Card ===== */
.prize-pool-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    transition: border-color var(--transition);
}

.prize-pool-card:hover {
    border-color: var(--card-border-hover);
}

.prize-pool-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prize-pool-amount {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FF6B35, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 12px;
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.prize-pool-amount .currency {
    font-size: 15px;
    font-weight: 700;
    -webkit-text-fill-color: var(--secondary);
    color: var(--secondary);
}

/* ===== Share Invite Button ===== */
.share-invite-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #FF6B35, #E55A2B, #FF8F5E);
    background-size: 200% 200%;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.15s both;
    letter-spacing: 0.3px;
}

.share-invite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
    border-radius: var(--radius);
}

.share-invite-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.share-invite-btn-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

.share-invite-btn-text {
    flex: 1;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.share-invite-btn-arrow {
    font-size: 22px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.share-invite-btn:active .share-invite-btn-arrow {
    transform: translateX(4px);
}

/* ===== Progress Section ===== */
.progress-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-percent {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ===== Progress Bar Track ===== */
.progress-bar-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #FF6B35, #FFD700);
    position: relative;
    overflow: hidden;
    transition: width 0.5s ease;
}

.progress-bar-glow {
    display: none;
}

/* ===== Progress Dots ===== */
.progress-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 2;
}

/* ===== Progress Stats ===== */
.progress-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.progress-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.progress-stat-item .stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.progress-stat-item .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Profile Info Row ===== */
.profile-info-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profile-info-icon {
    font-size: 16px;
    line-height: 1;
}

.profile-info-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.profile-info-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== Stats Grid ===== */
.stats-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}

.stat-card:hover {
    border-color: var(--card-border-hover);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== Feature List ===== */
.feature-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    transition: border-color var(--transition);
}

.feature-section:hover {
    border-color: var(--card-border-hover);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.feature-header-icon {
    font-size: 18px;
}

.feature-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.feature-header-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item:active {
    transform: scale(0.98);
}

.feature-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-item-icon.blue {
    background: linear-gradient(135deg, #448AFF, #2962FF);
}

.feature-item-icon.green {
    background: linear-gradient(135deg, #00E676, #00C853);
}

.feature-item-icon.orange {
    background: linear-gradient(135deg, #FF9100, #FF6D00);
}

.feature-item-icon.purple {
    background: linear-gradient(135deg, #D500F9, #AA00FF);
}

.feature-item-icon.red {
    background: linear-gradient(135deg, #FF1744, #D50000);
}

.feature-item-icon.cyan {
    background: linear-gradient(135deg, #00E5FF, #00B8D4);
}

.feature-item-info {
    flex: 1;
    min-width: 0;
}

.feature-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.feature-item-arrow {
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Reward Section (奖励轮播) ===== */
.reward-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px 14px 10px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.4s both;
    overflow: hidden;
    transition: border-color var(--transition);
}

.reward-section:hover {
    border-color: var(--card-border-hover);
}

.reward-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.reward-section-icon {
    font-size: 18px;
}

.reward-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.reward-section-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.reward-carousel-wrapper {
    overflow: hidden;
    position: relative;
    height: 310px;
    border-radius: var(--radius-xs);
}

.reward-carousel-wrapper::before,
.reward-carousel-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    z-index: 2;
    pointer-events: none;
}

.reward-carousel-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--card-bg), transparent);
}

.reward-carousel-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.reward-carousel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: scrollUp 15s linear infinite;
    padding: 4px 0;
}

.reward-carousel:hover {
    animation-play-state: paused;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    flex-shrink: 0;
}

.reward-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.reward-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.reward-info {
    flex: 1;
    min-width: 0;
}

.reward-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reward-desc {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 2px;
    font-weight: 600;
}

.reward-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ===== Activity Selector ===== */
.activity-selector {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.activity-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}

.activity-selector-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.activity-selector-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.activity-btn {
    padding: 8px 2px;
    border: none;
    border-radius: var(--radius-xs);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.activity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    pointer-events: none;
}

.activity-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    filter: blur(2px);
    pointer-events: none;
}

.activity-btn:active {
    transform: translateY(3px) scale(0.95);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.activity-btn.marquee {
    color: #fff;
    box-shadow: 
        0 6px 25px rgba(255, 255, 255, 0.3),
        0 3px 10px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    animation: neonGlow 0.3s ease-in-out infinite alternate;
}

.activity-btn.marquee::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.activity-btn.marquee .activity-btn-number {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px currentColor;
}

.activity-btn.marquee.color-red {
    background: linear-gradient(145deg, #FF1744, #D50000);
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.6), 0 3px 10px rgba(255, 23, 68, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-orange {
    background: linear-gradient(145deg, #FF9100, #FF6D00);
    box-shadow: 0 6px 25px rgba(255, 145, 0, 0.6), 0 3px 10px rgba(255, 145, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-yellow {
    background: linear-gradient(145deg, #FFEA00, #FFD600);
    box-shadow: 0 6px 25px rgba(255, 234, 0, 0.6), 0 3px 10px rgba(255, 234, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-green {
    background: linear-gradient(145deg, #00E676, #00C853);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6), 0 3px 10px rgba(0, 230, 118, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-cyan {
    background: linear-gradient(145deg, #00E5FF, #00B8D4);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.6), 0 3px 10px rgba(0, 229, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-blue {
    background: linear-gradient(145deg, #448AFF, #2962FF);
    box-shadow: 0 6px 25px rgba(68, 138, 255, 0.6), 0 3px 10px rgba(68, 138, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-purple {
    background: linear-gradient(145deg, #D500F9, #AA00FF);
    box-shadow: 0 6px 25px rgba(213, 0, 249, 0.6), 0 3px 10px rgba(213, 0, 249, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.activity-btn.marquee.color-pink {
    background: linear-gradient(145deg, #FF4081, #F50057);
    box-shadow: 0 6px 25px rgba(255, 64, 129, 0.6), 0 3px 10px rgba(255, 64, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}

@keyframes neonGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.activity-btn.active {
    background: linear-gradient(145deg, var(--primary), #D04A1E);
    color: #fff;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.5),
        0 4px 10px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.activity-btn.active::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

.activity-btn.active::after {
    background: rgba(0, 0, 0, 0.3);
}

.activity-btn .activity-btn-number {
    display: block;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.activity-btn .activity-btn-label {
    display: block;
    font-size: 8px;
    font-weight: 500;
    opacity: 0.5;
    margin-top: 1px;
    letter-spacing: 0.2px;
}

.activity-btn.active .activity-btn-label {
    opacity: 0.9;
}

/* ===== Records Section ===== */
.records-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.records-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.records-header-icon {
    font-size: 18px;
}

.records-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.records-header-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.records-table-wrapper {
    max-height: 260px;
    overflow-y: auto;
    border-radius: var(--radius-xs);
    -webkit-overflow-scrolling: touch;
}

.records-table-wrapper::-webkit-scrollbar {
    width: 3px;
}

.records-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.records-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

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

.records-table th {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    white-space: nowrap;
}

.records-table th.col-name {
    width: 50%;
    text-align: left;
    padding-left: 12px;
}

.records-table th.col-time {
    width: 50%;
    text-align: right;
    padding-right: 12px;
}

.records-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 12px;
    vertical-align: middle;
}

.records-table td.col-name-cell {
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding-left: 12px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.records-table td.col-time-cell {
    text-align: right;
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    padding-right: 12px;
}

.records-table tbody tr {
    transition: background var(--transition);
}

.records-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.records-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 8px;
}

.records-empty.show {
    display: flex;
}

.records-empty-icon {
    font-size: 36px;
    opacity: 0.5;
}

.records-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.records-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 10px;
}

.records-loading.show {
    display: flex;
}

.records-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.records-loading-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* ===== Bottom Navigation — 透明玻璃效果 ===== */
.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* 磨砂玻璃 */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    /* 左右拉伸，靠近左右边框 */
    width: calc(100% - 24px);
    max-width: calc(480px - 24px);
    box-sizing: border-box;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-item .nav-icon {

    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 选中态 — 发光玻璃按钮 */
.nav-item.active {
    color: #fff;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.35) 0%,
        rgba(255, 107, 53, 0.15) 50%,
        rgba(255, 107, 53, 0.25) 100%
    );
    box-shadow:
        0 4px 16px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.5));
}

.nav-item.active .nav-label {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.nav-item::after {
    display: none;
}

/* ===== Bottom Safe Area ===== */
.bottom-safe {
    height: 20px;
    flex-shrink: 0;
}

/* ===== Countdown Timer ===== */
.countdown-container {
    margin-top: 8px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: var(--radius-sm);
    animation: fadeInDown 0.6s ease-out 0.05s both;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.countdown-timer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    flex-shrink: 0;
}

.countdown-number {
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #FFD700;
    background: linear-gradient(135deg, #FFD700, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    min-width: 28px;
    text-align: center;
}

.countdown-unit {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 1px;
}

.countdown-sep {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-top: -6px;
    flex-shrink: 0;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== Animations ===== */
@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 bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* ===== Toast（iOS 毛玻璃透明风格） ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 99999;
    /* 透明立体效果：无背景色、无彩色，通过边框/阴影/高光营造强烈立体感 */
    background: transparent;
    color: #fff;
    padding: 20px 26px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 78vw;
    width: auto;
    min-width: 180px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.6) inset,
        0 -2px 0 rgba(0, 0, 0, 0.4) inset,
        0 0 0 1px rgba(0, 0, 0, 0.15) inset,
        0 18px 50px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.3);

    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}


.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 提示框图标（位于文案上方） */
.toast-icon {
    font-size: 30px;
    flex-shrink: 0;
    line-height: 1;
}

/* 提示框内容区 */
.toast-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    width: 100%;
}

/* 提示框标题 */
.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

/* 提示框描述 */
.toast-desc {
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}

/* ===== Modal / Popup Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
    background: linear-gradient(160deg, #1a1a3e, #2a1a4e, #1e1e42);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 107, 53, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.06) 0%, rgba(255, 215, 0, 0.03) 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
    position: relative;
    z-index: 1;
}

.modal-header-icon {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.modal-close-btn:hover,
.modal-close-btn:active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.modal-footer {
    padding: 8px 20px 20px;
    position: relative;
    z-index: 1;
}

.modal-confirm-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.modal-confirm-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===== Detail Info Card ===== */
.info-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 215, 0, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.info-card-icon {
    font-size: 26px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.info-card-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== History Section ===== */
.history-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out 0.35s both;
    transition: border-color var(--transition);
}

.history-section:hover {
    border-color: var(--card-border-hover);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.history-header-icon {
    font-size: 18px;
}

.history-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.history-header-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.history-item-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 6px;
}

.history-empty-icon {
    font-size: 28px;
    opacity: 0.5;
}

.history-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Telegram Mini App Safe Area ===== */
@supports (padding-top: env(safe-area-inset-top)) {
    .container {
        padding-top: calc(8px + env(safe-area-inset-top));
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ===== Desktop Styles ===== */
@media (min-width: 768px) {
    body {
        padding: 40px 20px;
        align-items: flex-start;
        background: linear-gradient(160deg, #0F0C29, #302B63, #24243E, #1a1a3e);
    }

    .container {
        max-width: 420px;
        padding: 28px 24px 40px;
        border-radius: 28px;
        background: rgba(15, 12, 41, 0.7);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 107, 53, 0.05);
        min-height: auto;
        gap: 16px;
    }

    .bg-circle-1 {
        width: 400px;
        height: 400px;
        top: -120px;
        right: -120px;
    }

    .bg-circle-2 {
        width: 350px;
        height: 350px;
        bottom: 10%;
        left: -150px;
    }

    .bg-circle-3 {
        width: 280px;
        height: 280px;
        bottom: -80px;
        right: 15%;
    }

    .header {
        padding: 12px 0 6px;
    }

    .header-logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .header-title {
        font-size: 28px;
    }

    .balance-amount {
        font-size: 46px;
    }

    .balance-amount .currency {
        font-size: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .action-btn {
        padding: 20px 24px;
        font-size: 19px;
        cursor: pointer;
    }

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
    }

    .bottom-safe {
        display: none;
    }
}


/* ===== Log Entry Row (资金/Xcoin记录入口按钮，并排) ===== */
.log-entry-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.log-entry-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.log-entry-btn:active {
    transform: scale(0.97);
    border-color: var(--primary);
}

.log-entry-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.log-entry-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.log-entry-arrow {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Log Detail Page (记录详情页) ===== */
.page-log-detail {
    z-index: 100;
}

.log-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.log-detail-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.log-detail-back:active {
    opacity: 0.7;
}

.log-detail-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.log-detail-count {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.log-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
}

.log-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.log-detail-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.log-detail-item-icon.positive {
    background: linear-gradient(135deg, #00E676, #00C853);
}

.log-detail-item-icon.negative {
    background: linear-gradient(135deg, #FF1744, #D50000);
}

.log-detail-item-info {
    flex: 1;
    min-width: 0;
}

.log-detail-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.log-detail-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.log-detail-item-amount {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
}

.log-detail-item-amount.positive {
    color: var(--success);
}

.log-detail-item-amount.negative {
    color: #FF1744;
}

.log-detail-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 10px;
}

.log-detail-empty.show {
    display: flex;
}

.log-detail-empty-icon {
    font-size: 36px;
    opacity: 0.5;
}

.log-detail-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.log-detail-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 10px;
}

.log-detail-loading.show {
    display: flex;
}

.log-detail-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.log-detail-loading-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== 分页 ===== */
.log-detail-pagination,
.records-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin-top: 10px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.pagination-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

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


@media (min-width: 1200px) {
    body {
        padding: 60px 20px;
    }

    .container {
        max-width: 440px;
        padding: 32px 28px 48px;
    }
}



/* ===== Announcement Modal ===== */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.announcement-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.announcement-modal {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.announcement-overlay.active .announcement-modal {
    transform: scale(1) translateY(0);
}
.announcement-modal::-webkit-scrollbar { width: 4px; }
.announcement-modal::-webkit-scrollbar-thumb { background: rgba(255, 107, 53, 0.4); border-radius: 4px; }
.announcement-header {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    padding: 20px 24px 16px;
    text-align: center;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}
.announcement-header-icon { font-size: 36px; margin-bottom: 6px; animation: announcementBounce 1.5s ease-in-out infinite; }
@keyframes announcementBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.announcement-header-title { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.announcement-body { padding: 16px 20px 12px; }
.announcement-section { margin-bottom: 16px; border-radius: 14px; padding: 14px 16px; }
.announcement-section-danger { background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05)); border: 1px solid rgba(220, 38, 38, 0.25); }
.announcement-section-tip { background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.05)); border: 1px solid rgba(255, 215, 0, 0.2); }
.announcement-section-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.announcement-section-icon { font-size: 16px; }
.announcement-list { display: flex; flex-direction: column; gap: 8px; }
.announcement-item { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.announcement-item-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(220, 38, 38, 0.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #ff6b6b; margin-top: 1px; }
.announcement-item-text strong { color: #ff6b6b; }
.announcement-tip { margin-bottom: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); border-radius: 10px; border-left: 3px solid rgba(255, 215, 0, 0.4); }
.announcement-tip:last-child { margin-bottom: 0; }
.announcement-tip-header { font-size: 13px; font-weight: 700; color: #FFD700; margin-bottom: 4px; }
.announcement-tip-text { font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.announcement-tip-text strong { color: #FF8F5E; }
.announcement-tip-list { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.announcement-tip-item { font-size: 12px; color: rgba(255, 255, 255, 0.8); padding-left: 4px; }
.announcement-footer-text { text-align: center; font-size: 13px; font-weight: 700; color: #FFD700; padding: 8px 0 4px; letter-spacing: 0.5px; }
.announcement-close-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: calc(100% - 40px); margin: 0 20px 20px; padding: 14px 20px;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    border: none; border-radius: 14px; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.announcement-close-btn:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2); }
.announcement-close-btn-icon { font-size: 18px; }
.announcement-close-btn-text { font-size: 15px; font-weight: 700; color: #fff; }

/* ============================================================
   3D 玻璃菜单卡片 — 一排四个正方形
   ============================================================ */
.menu-cards-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0 6px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* ===== 卡片外层 ===== */
.menu-card {
    flex: 0 0 auto;
    width: 23%;
    max-width: 100px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
}


.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card:active {
    transform: translateY(0px) scale(0.95);
    transition: transform 0.1s ease;
}

/* ===== 玻璃面板（正方形） ===== */
.menu-card-glass {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    /* 多层半透明背景实现磨砂玻璃 */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 255, 255, 0.06) 100%
        );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* 玻璃边框 */
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    /* 3D 投影 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(0, 0, 0, 0.15) inset;
    transition: all 0.35s ease;
}

.menu-card:hover .menu-card-glass {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 60px rgba(0, 0, 0, 0.2) inset;
}

.menu-card:active .menu-card-glass {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* ===== 白光划过特效 ===== */
.menu-card-shine {
    position: absolute;
    top: -10%;
    left: -100%;
    width: 60%;
    height: 120%;
    pointer-events: none;
    z-index: 4;
    /* 垂直光柱 — 左到右扫过整张卡片 */
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.12) 35%,
        rgba(255, 255, 255, 0.35) 48%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.35) 52%,
        rgba(255, 255, 255, 0.12) 65%,
        rgba(255, 255, 255, 0.03) 80%,
        transparent 100%
    );
    /* 四张卡片同时扫光 */
    animation: lightSweep 2.5s ease-in-out infinite;
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }
    40% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== 右下角微弱折射光 ===== */
.menu-card-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 40%;
    background: radial-gradient(
        ellipse at 100% 100%,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 18px 0;
}

/* ===== 内容区 ===== */
.menu-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10% 6% 8%;
    overflow: visible;
}

/* ===== 圆形图标底托（彩色玻璃片） ===== */
.menu-card-icon-circle {
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    margin-bottom: auto;
    margin-top: 0;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.menu-card:hover .menu-card-icon-circle {
    transform: scale(1.1);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* 四种彩色玻璃底色 */
.menu-icon-blue {
    background: linear-gradient(135deg, rgba(68, 170, 255, 0.55), rgba(41, 121, 255, 0.4));
    box-shadow:
        0 4px 16px rgba(41, 121, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(68, 170, 255, 0.15);
}
.menu-card:hover .menu-icon-blue {
    box-shadow:
        0 6px 24px rgba(41, 121, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 30px rgba(68, 170, 255, 0.25);
}

.menu-icon-gold {
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.55), rgba(249, 168, 37, 0.4));
    box-shadow:
        0 4px 16px rgba(249, 168, 37, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 213, 79, 0.15);
}
.menu-card:hover .menu-icon-gold {
    box-shadow:
        0 6px 24px rgba(249, 168, 37, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 30px rgba(255, 213, 79, 0.25);
}

.menu-icon-green {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.55), rgba(46, 125, 50, 0.4));
    box-shadow:
        0 4px 16px rgba(46, 125, 50, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(102, 187, 106, 0.15);
}
.menu-card:hover .menu-icon-green {
    box-shadow:
        0 6px 24px rgba(46, 125, 50, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 30px rgba(102, 187, 106, 0.25);
}

.menu-icon-purple {
    background: linear-gradient(135deg, rgba(206, 147, 216, 0.55), rgba(142, 36, 170, 0.4));
    box-shadow:
        0 4px 16px rgba(142, 36, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(206, 147, 216, 0.15);
}
.menu-card:hover .menu-icon-purple {
    box-shadow:
        0 6px 24px rgba(142, 36, 170, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 30px rgba(206, 147, 216, 0.25);
}

/* ===== 图片图标（独立圆形，无底托背景） ===== */
.menu-card-icon-pic-only {
    width: 42%;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card:hover .menu-card-icon-pic-only {
    transform: scale(1.1);
}

/* ===== 透明加号（期待更新占位） ===== */
.menu-card-plus {
    width: 60%;
    height: 0;
    padding-top: 60%;
    position: relative;
    flex-shrink: 0;
    margin: auto;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}


.menu-card-plus::before,
.menu-card-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

/* 横线 */
.menu-card-plus::before {
    width: 100%;
    height: 16%;
}

/* 竖线 */
.menu-card-plus::after {
    width: 16%;
    height: 100%;
}


.menu-card:hover .menu-card-plus {
    transform: scale(1.15);
    opacity: 0.9;
}

/* ===== 第四个卡片（期待更新占位）不可点击 ===== */
.menu-cards-row .menu-card:nth-child(4) {
    cursor: default;
    pointer-events: none;
}

/* ===== 第二个和第三个卡片（Match-3 / Tài xỉu）整体透明，表示技术团队正在开发中 ===== */
.menu-cards-row .menu-card:nth-child(2),
.menu-cards-row .menu-card:nth-child(3) {
    opacity: 0.08;
    filter: grayscale(0.9);
}
.menu-cards-row .menu-card:nth-child(2):hover,
.menu-cards-row .menu-card:nth-child(3):hover {
    opacity: 0.2;
    filter: grayscale(0.7);
}

/* ===== 图片图标（带底托容器内） ===== */
.menu-icon-img {
    padding: 6px;
}

.menu-card-icon-pic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card:hover .menu-card-icon-pic {
    transform: scale(1.15);
}

/* ===== Emoji ===== */
.menu-card-emoji {
    font-size: clamp(16px, 7vw, 30px);
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.menu-card:hover .menu-card-emoji {
    transform: scale(1.2);
}

/* ===== 文字标签（卡片下方） ===== */
.menu-card-name {
    font-size: clamp(10px, 2.6vw, 12px);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    width: 100%;
    display: block;
}

/* ============================================================
   逐个入场动画
   ============================================================ */
.menu-cards-row .menu-card:nth-child(1) { animation: glassEnter 0.5s ease-out 0.06s both; }
.menu-cards-row .menu-card:nth-child(2) { animation: glassEnter 0.5s ease-out 0.14s both; }
.menu-cards-row .menu-card:nth-child(3) { animation: glassEnter 0.5s ease-out 0.22s both; }
.menu-cards-row .menu-card:nth-child(4) { animation: glassEnter 0.5s ease-out 0.30s both; }

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

/* ============================================================
   响应式 — 桌面端
   ============================================================ */
@media (min-width: 768px) {
    .menu-cards-row {
        gap: 14px;
    }

    .menu-card-glass {
        border-radius: 20px;
    }

    .menu-card-icon-circle {
        width: 60%;
        max-width: 80px;
        max-height: 80px;
    }

    .menu-card-icon-pic-only {
        width: 60%;
        max-width: 80px;
        max-height: 80px;
    }

    .menu-card-emoji {
        font-size: 32px;
    }

    .menu-card-name {
        font-size: 13px;
    }

    .menu-card-content {
        gap: 12px;
    }
}

/* ===== 音乐开关按钮（右上角，长方形左右圆弧开关） ===== */
.music-toggle-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    width: 60px;
    height: 32px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}
.music-toggle-btn:active {
    transform: scale(0.94);
}

/* 开关轨道（长方形左右圆弧，3D立体感） */
.music-toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, #2a2e45, #1a1d2e);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.6),
        inset 0 2px 3px rgba(0, 0, 0, 0.6),
        inset 0 -1px 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* 轨道内部高光（顶部） */
.music-toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* 开启状态轨道（蓝光四溢） */
.music-toggle-btn.music-on .music-toggle-track {
    background: linear-gradient(180deg, #4fc3f7, #0288d1);
    box-shadow:
        0 4px 14px rgba(2, 136, 209, 0.6),
        0 0 20px rgba(79, 195, 247, 0.4),
        inset 0 2px 3px rgba(0, 0, 0, 0.2),
        inset 0 -1px 1px rgba(255, 255, 255, 0.35);
    border-color: rgba(79, 195, 247, 0.6);
}


/* 滑块（圆形，3D立体感） */
.music-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f2f8, #c6cad8);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

/* 开启状态滑块（移到右侧，蓝色系） */
.music-toggle-btn.music-on .music-toggle-thumb {
    left: 31px;
    background: linear-gradient(145deg, #ffffff, #b3e5fc);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 3px rgba(2, 136, 209, 0.35);
}

/* 音符图标容器 */
.music-toggle-icon {
    position: relative;
    width: 14px;
    height: 16px;
    display: block;
}

/* 音符头（实心椭圆，蓝色系） */
.note-head {
    position: absolute;
    bottom: 2px;
    left: 1px;
    width: 9px;
    height: 7px;
    background: linear-gradient(145deg, #4fc3f7, #0288d1);
    border-radius: 50% 50% 50% 50%;
    transform: rotate(-20deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 音符竖杆（蓝色系） */
.note-stem {
    position: absolute;
    bottom: 3px;
    left: 9px;
    width: 2px;
    height: 14px;
    background: linear-gradient(180deg, #4fc3f7, #0288d1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 音符弯钩（蓝色系） */
.note-flag {
    position: absolute;
    top: 2px;
    left: 11px;
    width: 7px;
    height: 6px;
    border-top: 2px solid #4fc3f7;
    border-right: 2px solid #4fc3f7;
    border-radius: 0 6px 0 0;
    transform: rotate(0deg);
}

/* 关闭状态：音符变灰 */
.music-toggle-btn.music-off .note-head,
.music-toggle-btn.music-off .note-stem,
.music-toggle-btn.music-off .note-flag {
    background: #8a8fa3;
    border-color: #8a8fa3;
    filter: grayscale(1);
    opacity: 0.6;
}
/* 关闭状态斜线（蓝色，不用红色） */
.music-toggle-btn.music-off .music-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #4fc3f7, #0288d1);
    border-radius: 2px;
    transform: rotate(-45deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== 交易页面（Giao dịch） ===== */

/* 交易标题（图标 + 文字） */
.header-title-trade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-trade-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 交易页面中心容器 */
.trade-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - 190px);
    min-height: 320px;
    margin-top: 6px;
    overflow: hidden;
}

/* 中心背景图片（透明效果，更大） */
.trade-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: 340px;
    opacity: 0.45;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    pointer-events: none;
    animation: tradeBgFloat 4s ease-in-out infinite;
}

@keyframes tradeBgFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* 提示文字容器（无背景框，不遮挡背景logo） */
.trade-message {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 85%;
}

.trade-message-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.trade-message-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 底部导航图片图标（中间交易图标稍大） */
.nav-icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-item.active .nav-icon-img img {
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.5));
}

/* 桌面端交易页面布局调整 */
@media (min-width: 768px) {
    .trade-center {
        height: calc(100dvh - 240px);
        min-height: 360px;
    }
}

