/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffec;
    --secondary-color: #232f3e;
    --accent-color: #ff6b35;
    --text-color: #ffffff;
    --bg-color: #0a0e1a;
    --card-bg: #1a1f2e;
    --border-color: #2a2f3e;
    --gradient-primary: linear-gradient(135deg, #00ffec, #00d4c4);
    --gradient-secondary: linear-gradient(135deg, #232f3e, #1a1f2e);
    --shadow: 0 8px 32px rgba(0, 255, 236, 0.1);
    --glow: 0 0 20px rgba(0, 255, 236, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--bg-color);
    padding: 20px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hamburger-menu {
    display: none;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-selector .fa-globe {
    position: absolute;
    left: 15px;
    color: #b0b0b0;
    font-size: 1rem;
    pointer-events: none;
}

.language-switcher {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 35px 8px 40px;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ffec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
}

.language-switcher:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 255, 236, 0.1);
}

.language-switcher option {
    background: var(--card-bg);
    color: var(--text-color);
}

.nav-desktop {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info-desktop {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-desktop {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.8rem;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user-avatar-desktop:hover {
    background: var(--border-color);
}

.user-dropdown-desktop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1010;
    width: max-content;
}

/* Arrow for the dropdown */
.user-dropdown-desktop::before, .user-dropdown-desktop::after {
    content: "";
    position: absolute;
    right: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.user-dropdown-desktop::before { /* Border part of the arrow */
    top: -11px;
    border-width: 0 11px 11px 11px;
    border-color: transparent transparent var(--border-color) transparent;
}

.user-dropdown-desktop::after { /* Fill part of the arrow */
    top: -10px;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent var(--card-bg) transparent;
}

.user-info-desktop:hover .user-dropdown-desktop {
    display: block;
}

.user-dropdown-desktop .username {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.nav-mobile {
    display: none;
}

.nav-header {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.2rem;
}

/* 主要内容区域 */
.main {
    min-height: 70vh;
    padding-top: 100px;
}

/* 英雄区域 */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* XRP动画 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.xrp-animation {
    position: relative;
    width: 90%;
    padding-bottom: 90%;
    height: 0;
}

.coin {
    position: absolute;
    width: 50%;
    height: 50%;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--glow);
    animation: float 3s ease-in-out infinite;
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.coin:nth-child(1) {
    top: -2%;
    left: 35%;
    animation-delay: 0s;
}

.coin:nth-child(2) {
    top: 45%;
    right: -4%;
    animation-delay: 1s;
}

.coin:nth-child(3) {
    bottom: 5%;
    left: 9%;
    animation-delay: 2s;
}

/* 功能卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 236, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #000000;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    max-width: 768px;
    background: var(--gradient-primary);
    color: #000000;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: #b0b0b0;
}

/* 动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-desktop {
        display: none;
    }
    
    /* RTL Support for mobile navigation */
    [dir="rtl"] .nav-mobile {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    
    /*[dir="rtl"] .nav-mobile.open {*/
    /*    transform: translateX(0);*/
    /*}*/

    .nav-mobile {
        overflow-y: auto;
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 280px;
        height: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        z-index: 1001;
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        gap: 15px;
        align-items: stretch;
    }

    .nav-mobile.open {
        transform: translateX(0);
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-header h4 {
        font-size: 1.2rem;
    }

    .close-sidebar-btn {
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-mobile .user-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background: var(--bg-color);
        border-radius: 10px;
        margin-bottom: 0;
    }

    .nav-mobile .user-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .nav-mobile .user-avatar i {
        font-size: 2rem;
        color: var(--primary-color);
    }
    
    .nav-mobile .user-details {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-link {
        padding: 15px;
        border-radius: 10px;
        width: 100%;
    }

    .nav-link.active {
        background: var(--gradient-primary);
        box-shadow: var(--glow);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }

    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link span {
        font-weight: 500;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        margin-bottom: 50px;
        padding: 20px 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .xrp-animation {
        width: 200px;
        height: 200px;
    }
    
    .coin {
        width: 60px;
        height: 60px;
    }

    .language-selector {
        margin-bottom: 0;
    }

    .language-selector .fa-globe {
        display: block;
    }

    .language-switcher {
        width: 100%;
        background-color: var(--bg-color);
        padding: 15px 15px 15px 40px;
        text-align: left;
        background-position: right 15px center;
    }

    .hero-visual {
        display: none;
    }
}

/* 表单样式 */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 236, 0.1);
}

.form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table th {
    background: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(0, 255, 236, 0.05);
}

/* 状态标签 */
.status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: rgba(0, 255, 236, 0.2);
    color: var(--primary-color);
}

.status-pending {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-color);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Bottom Navigation Bar (Mobile Only) */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding: 5px 0;
    }

    .bottom-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #b0b0b0;
        flex: 1;
        height: 100%;
        transition: all 0.3s ease;
        border-radius: 10px;
        margin: 0 5px;
    }

    .bottom-nav-link i {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .bottom-nav-link span {
        font-size: 0.7rem;
        font-weight: 500;
    }

    .bottom-nav-link.active,
    .bottom-nav-link:hover {
        color: var(--primary-color);
        background: rgba(0, 255, 236, 0.1);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    padding: 0 30px;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.vip-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vip-card:hover::before {
    transform: scaleX(1);
}

.vip-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.vip-header {
    margin-bottom: 25px;
}

.vip-icon {
    margin-bottom: 15px;
}

.vip-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vip-level {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.vip-price {
    margin-top: 15px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-left: 5px;
}

.vip-benefits {
    margin-bottom: 25px;
    text-align: left;
}

.vip-benefits h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

.vip-benefits ul {
    list-style: none;
    padding: 0;
}

.vip-benefits li {
    padding: 8px 0;
    color: #b0b0b0;
}

.vip-benefits li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.vip-commission {
    margin-bottom: 25px;
}

.vip-commission h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.commission-table {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 15px;
}

.commission-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 5px;
}

.commission-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 236, 0.3);
    line-height: 1;
}

.commission-percent {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: -10px;
}

.commission-row:last-child {
    border-bottom: none;
}

.commission-row span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.buy-vip-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-color);
    margin: 0;
}

.close {
    color: #b0b0b0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.selected-vip-info {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.form-actions {
    justify-content: center;
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.alert-success {
    background: rgba(0, 255, 236, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .user-info {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .vip-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }
}

.username {
    color: var(--text-color);
    font-weight: 600;
}

.logout-link {
    color: #ff6b35 !important;
}

.logout-link:hover {
    background: rgba(255, 107, 53, 0.1) !important;
    border-color: #ff6b35 !important;
}

.vip-card.current-level {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 255, 236, 0.05) 100%);
}

.current-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: #000000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Balance cards grid */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.balance-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.balance-card.primary {
    border-color: var(--primary-color);
}

.balance-card.secondary {
    border-color: var(--accent-color);
}

.balance-card.info {
    border-color: #17a2b8;
}

.balance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000000;
}

.balance-card.primary .balance-icon {
    background: var(--gradient-primary);
}

.balance-card.secondary .balance-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.balance-card.info .balance-icon {
    background: var(--gradient-primary);
}

.balance-content h3 {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
}

.balance-trend {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.balance-trend i {
    margin-right: 5px;
}

/* Withdrawal section */
.withdraw-section {
    margin-bottom: 50px;
}

.withdraw-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.withdraw-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
}

.withdraw-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-hint {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-top: 5px;
}

.withdraw-summary {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Withdrawal records */
.withdraw-records {
    margin-bottom: 50px;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.records-header h3 {
    color: var(--text-color);
    font-size: 1.8rem;
}

.records-filter {
    width: 200px;
}

.tx-hash {
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tx-hash:hover {
    text-decoration: underline;
}

.tx-hash i {
    font-size: 0.8rem;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Withdrawal information */
.withdraw-info-section {
    margin-bottom: 50px;
}

.withdraw-info-section h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: white;
}

.info-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.info-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .balance-grid {
        grid-template-columns: 1fr;
    }

    .withdraw-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .withdraw-info {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .records-header {
        flex-direction: column;
        gap: 15px;
    }

    .records-filter {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000000;
}

.stat-content h3 {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.stat-trend {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.stat-trend i {
    margin-right: 5px;
}

/* 邀请区域 */
.invite-section {
    margin-bottom: 50px;
}

.invite-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.invite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.invite-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
}

.invite-code-display {
    margin-bottom: 30px;
}

.code-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    gap: 15px;
}

.code-text {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 12px 50px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

.invite-link-section {
    margin-bottom: 30px;
}

.invite-link-section h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.link-box {
    display: flex;
    gap: 10px;
}

.link-box .form-input {
    flex: 1;
}

/* 分享按钮 */
.share-buttons h4 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-wechat:hover {
    background: var(--primary-color);
    color: white;
}

.share-qq:hover {
    background: var(--primary-color);
    color: white;
}

.share-telegram:hover {
    background: var(--primary-color);
    color: white;
}

.share-whatsapp:hover {
    background: var(--primary-color);
    color: white;
}

/* 返佣规则 */
.commission-rules {
    margin-bottom: 50px;
}

.commission-rules h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.rule-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.rule-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: #000000;
}

.rule-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.rule-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.commission-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

.commission-table-container h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* 邀请记录 */
.invite-records {
    margin-bottom: 50px;
}

.invite-records h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .invite-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .code-box {
        flex-direction: column;
        text-align: center;
    }

    .link-box {
        flex-direction: column;
    }

    .share-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-badge {
    background: var(--gradient-primary);
    color: #000000;
    padding: 4px 45px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .nav-desktop .language-selector {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-logged-out {
        display: none;
    }
}

.about-container {
    background: var(--card-bg);
    padding: clamp(1rem, 5vw, 2.5rem);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-content {
    color: #d0d0d0;
    line-height: 1.8;
}

.about-content .section__title-sub {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
}

.about-content-h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.about-image-container {
    margin-top: 1.5rem;
    text-align: center;
}

#ruleImage {
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    border-radius: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ruleImage:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 255, 236, 0.2);
}

.strategy-list {
    list-style: none;
    padding-left: 0;
}

.strategy-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.strategy-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
    top: 7px;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050; /* Ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.image-modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1051;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00ccd4 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 50px 50px;
}

.page-header h1 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: rgb(0, 0, 0);
    font-size: 1.1rem;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-section ul {
    color: var(--text-color);
    line-height: 1.6;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 30px 20px;
        margin: 0 0 40px 0;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }
}

.customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 255, 236, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.customer-service:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 236, 0.4);
}

.customer-service i {
    font-size: 24px;
    color: black;
}

.customer-service::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .customer-service {
        bottom: 130px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .customer-service i {
        font-size: 20px;
    }
}

.guide-step-overlay {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
}
.guide-step-highlight {
    position: relative;
    z-index: 10001 !important;
    box-shadow: 0 0 0 4px #00ffec, 0 0 20px #00ffec;
    animation: guide-pulse 1.2s infinite;
}
@keyframes guide-pulse {
    0%,100% { box-shadow: 0 0 0 4px #00ffec, 0 0 20px #00ffec; }
    50% { box-shadow: 0 0 0 8px #00ffec, 0 0 40px #00ffec; }
}
.guide-step-modal {
    position: absolute;
    background: #fff;
    color: #222;
    min-width: 280px;
    max-width: 320px;
    padding: 20px;
    border-radius: 12px;
    z-index: 10010;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
    font-size: 14px;
}
.guide-step-modal::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}
.guide-step-modal.arrow-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #fff;
}
.guide-step-modal.arrow-bottom::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #fff;
}
.guide-step-modal.arrow-left::before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #fff;
}
.guide-step-modal.arrow-right::before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #fff;
}
.guide-step-modal .guide-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}
.guide-step-modal .guide-desc {
    margin-bottom: 16px;
    line-height: 1.4;
    color: #666;
}
.guide-step-modal .guide-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.guide-step-modal button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: var(--gradient-primary, #00ffec);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.guide-step-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 236, 0.3);
}
.guide-step-modal button[disabled] {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}