/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --energy-color: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.8);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu i {
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.user-menu i:hover {
    color: var(--primary-color);
}

/* Notification Button */
.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.notification-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.notification-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-btn-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 50%;
}

.notification-btn-icon:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Notification Panel */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #16213e;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-out;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #1a2744;
}

.notification-header h3 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-header-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-header-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.notification-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.notification-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.3s;
}

.notification-close-btn:hover {
    color: var(--danger-color);
}

.notification-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    background: #16213e;
}

.notification-item.unread {
    background: #1a2744;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.notification-item:hover {
    background: #1f2f4f;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.notification-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.notification-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.notification-icon.info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.notification-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding: 0;
    border: none;
    background: none;
}

.notification-content h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.notification-message {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.notification-action:hover {
    gap: 0.5rem;
    color: var(--secondary-color);
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.notification-actions .notification-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.notification-actions .notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
}

.user-avatar i {
    font-size: 1.5rem;
    color: white;
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.user-info .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.user-info i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.user-info:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
}

.dropdown-avatar i {
    font-size: 1.75rem;
    color: white;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-username {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dropdown-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
}

.dropdown-item i {
    width: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item.logout i {
    color: var(--danger-color);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Language Toggle */
.lang-toggle {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.lang-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-toggle-fixed {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.lang-toggle-fixed .lang-toggle {
    margin-left: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Banner Carousel */
.banner-section {
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card-bg);
}

.carousel-container {
    position: relative;
    height: 300px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: var(--gradient-1);
}

.carousel-slide:nth-child(2) {
    background: var(--gradient-2);
}

.carousel-slide:nth-child(3) {
    background: var(--gradient-3);
}

.carousel-slide.active {
    opacity: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    min-height: 120px;
}

.action-btn i {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.action-btn span {
    display: block;
    line-height: 1.4;
}

.action-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    color: white;
}

.action-btn:hover i,
.action-btn:hover span {
    color: white;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.ongoing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Profit Stats Section */
.profit-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.profit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.profit-card:hover::before {
    opacity: 1;
}

.profit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.profit-card.total-profit .profit-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profit-card.today-profit .profit-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.profit-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.profit-info {
    flex: 1;
}

.profit-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profit-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    color: var(--text-primary);
}

.profit-value .currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profit-value .unit {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.2rem;
}

.profit-card.total-profit .profit-value {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profit-card.today-profit .profit-value {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Quick Actions - Hidden on desktop */
.mobile-quick-actions {
    display: none;
}

/* Rankings Section */
.rankings-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.section-header h2 i {
    color: var(--warning-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 1rem;
}

.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
}

.ranking-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--index));
}

.ranking-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.ranking-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #ffa54f);
    color: #fff;
}

.rank-badge.default {
    background: var(--border-color);
    color: var(--text-primary);
}

.ranking-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ranking-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ranking-profit {
    text-align: right;
}

.profit-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-amount i {
    font-size: 1.2rem;
}

.profit-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Start Bot CTA Section */
.start-bot-cta {
    margin: -1rem 0 0.75rem 0;
    text-align: center;
}

.btn-start-bot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 60%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3 / 1;
    background: url('../images/glass-button.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 0;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
    border: none;
}

.btn-start-bot:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.1);
}

.btn-start-bot:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-start-bot i {
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn-start-bot span {
    position: relative;
    z-index: 2;
}

/* Rocket animation */
.rocket-icon {
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.btn-start-bot:hover .rocket-icon {
    animation: rocketLaunch 0.6s ease-out forwards;
}

@keyframes rocketLaunch {
    0% {
        transform: translateY(0) rotate(-45deg) scale(1);
    }
    50% {
        transform: translateY(-15px) rotate(-30deg) scale(1.2);
    }
    100% {
        transform: translateY(-20px) rotate(-20deg) scale(1.3);
    }
}

/* Features Section */
.features-section {
    margin-top: 0rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--gradient-1);
    color: white;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--gradient-2);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--gradient-3);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .ranking-profit {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-text h2 {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Dashboard Styles */
.welcome-banner {
    background: var(--gradient-1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-content h1 span {
    color: #ffd700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.stat-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.stat-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.stat-value .value-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff !important;
}

.stat-value .currency {
    font-size: 1.8rem;
    color: #e2e8f0;
    font-weight: 600;
}

.stat-value .unit {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-left: 0.25rem;
    font-weight: 600;
}

.stat-footer {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.bots-section {
    margin-bottom: 2rem;
}

.section-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.bot-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.bot-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bot-pair {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.bot-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.bot-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.bot-status.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.bot-status i {
    font-size: 0.6rem;
}

.bot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bot-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bot-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.bot-stat .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.bot-profit {
    margin-bottom: 1rem;
}

.profit-positive {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-negative {
    color: var(--danger-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-percent {
    font-size: 1rem;
    opacity: 0.8;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-icon.warning:hover {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-icon.success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-icon.danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.transactions-section {
    margin-bottom: 2rem;
}

.transactions-table table {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.transactions-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.transactions-table th,
.transactions-table td {
    padding: 1rem;
    text-align: left;
}

.transactions-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.transactions-table tr {
    border-bottom: 1px solid var(--border-color);
}

.transactions-table tr:last-child {
    border-bottom: none;
}

.transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.type-buy {
    color: var(--success-color);
    font-weight: 600;
}

.type-sell {
    color: var(--danger-color);
    font-weight: 600;
}

.status-completed {
    color: var(--success-color);
}

.status-pending {
    color: var(--warning-color);
}

/* Tutorials Page */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-header h1 i {
    flex-shrink: 0;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tutorial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tutorial-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.tutorial-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.tutorial-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tutorial-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tutorial-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.tutorial-list i {
    color: var(--success-color);
}

.video-tutorials {
    margin-top: 3rem;
}

.video-tutorials h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gradient-1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.video-thumbnail i {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.video-card h4 {
    margin-bottom: 0.5rem;
}

.video-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Rankings Page */
.ranking-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rankings-full-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item-full {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
    animation-delay: calc(0.05s * var(--index));
}

.ranking-item-full:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.ranking-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.ranking-details .owner {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ranking-details .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ranking-stats {
    display: flex;
    gap: 2rem;
}

.ranking-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ranking-stats .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.ranking-stats .value {
    font-size: 1.2rem;
    font-weight: 600;
}

.ranking-profit-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* History Page */
.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.filter-input[type="date"] {
    min-width: 180px;
    font-family: inherit;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.history-table {
    overflow-x: auto;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.history-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.history-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.history-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
}

.history-table th:first-child {
    border-top-left-radius: 1rem;
}

.history-table th:last-child {
    border-top-right-radius: 1rem;
}

.history-table tbody tr {
    transition: all 0.3s;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.history-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.history-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Status badges in history table */
.history-table .status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.history-table .status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.history-table .status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.history-table .status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Trade type badges */
.history-table .trade-type {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.history-table .trade-type.buy {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.history-table .trade-type.sell {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Profit/Loss styling */
.history-table .profit {
    color: var(--success-color);
    font-weight: 600;
}

.history-table .loss {
    color: var(--danger-color);
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--border-color);
    box-shadow: none;
}

.pagination-btn i {
    font-size: 0.8rem;
}

.pagination-info {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
    padding: 0 1rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-info {
    color: var(--text-secondary);
}

/* ==================== Enhanced Mobile Responsiveness ==================== */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .bots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-item-full {
        grid-template-columns: 50px 1fr auto;
        gap: 1rem;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    /* Header Navigation */
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none; /* Hide desktop nav */
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    /* User Menu Mobile */
    .user-menu {
        gap: 0.5rem;
    }
    
    /* 隐藏移动端的用户图标 */
    .user-menu > .fa-user-circle {
        display: none;
    }
    
    /* 移动端隐藏用户信息 */
    .user-info {
        display: none;
    }
    
    .user-name {
        display: none; /* Hide username on mobile */
    }
    
    .user-info i.fa-chevron-down {
        display: none; /* Hide dropdown arrow on mobile */
    }
    
    .user-btn {
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .user-avatar i {
        font-size: 1.2rem;
    }
    
    .dropdown-menu {
        right: 0;
        min-width: 260px;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* 隐藏移动端未登录状态下的登录和注册按钮 */
    .user-menu .btn-outline,
    .user-menu .btn-primary {
        display: none;
    }
    
    /* Banner */
    .carousel-container {
        height: 220px;
    }
    
    .banner-text h2 {
        font-size: 1.6rem;
    }
    
    .banner-text p {
        font-size: 0.95rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .banner-buttons .btn {
        width: 100%;
    }
    
    /* Quick Actions - Hide on mobile */
    .quick-actions {
        display: none;
    }
    
    .action-btn {
        display: none;
    }
    
    .action-card {
        padding: 1.25rem;
    }
    
    .action-card i {
        font-size: 1.8rem;
    }
    
    .action-card h3 {
        font-size: 0.95rem;
    }
    
    /* Stats Grid */
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card-large {
        padding: 0.75rem;
    }
    
    .stat-header {
        margin-bottom: 0.4rem;
    }
    
    .stat-header h3 {
        font-size: 0.85rem;
    }
    
    .stat-trend {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-footer {
        font-size: 0.7rem;
    }
    
    /* Bots Grid */
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    /* Rankings */
    .rankings-preview {
        padding: 1.25rem;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .ranking-info {
        text-align: center;
    }
    
    .ranking-profit {
        text-align: center;
    }
    
    .ranking-item-full {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ranking-stats {
        grid-column: 1 / -1;
        margin-top: 0.75rem;
        justify-content: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tutorial Cards */
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    /* History Table */
    .history-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .history-table table {
        min-width: 800px;
    }
    
    .history-table th,
    .history-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    /* History Filters */
    .history-filters {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-input,
    .filter-select {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 140px;
    }
    
    .history-filters .btn {
        flex: 1 1 100%;
    }
    
    /* Dashboard */
    .welcome-banner {
        padding: 1.5rem;
        text-align: center;
    }
    
    .welcome-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-filters {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Transactions Table */
    .transactions-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .transactions-table table {
        min-width: 700px;
    }
}

/* Mobile Landscape and Small Tablets (640px) */
@media (max-width: 640px) {
    /* Header */
    .logo span {
        font-size: 1rem;
    }
    
    /* Quick Actions - Hide on mobile */
    .quick-actions {
        display: none;
    }
    
    .action-btn {
        display: none;
    }

    /* Profit Stats - Mobile optimization */
    .profit-stats-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .profit-card {
        padding: 1.5rem;
    }

    .profit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .profit-value {
        font-size: 1.75rem;
    }

    .profit-label {
        font-size: 0.9rem;
    }

    /* Start Bot CTA - Mobile optimization */
    .start-bot-cta {
        margin: 2rem 0;
    }

    .btn-start-bot {
        width: 50%;
        max-width: none;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        gap: 1rem;
    }

    .btn-start-bot i {
        font-size: 1.2rem;
    }
    
    /* Ranking Filters */
    .ranking-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Pagination */
    .pagination {
        gap: 0.5rem;
    }
    
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .page-info {
        font-size: 0.85rem;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    /* Base */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Pagination */
    .pagination-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        min-width: 90px;
        padding: 0 0.5rem;
    }
    
    /* Header */
    .header .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .user-menu {
        gap: 0.4rem;
    }
    
    /* 隐藏移动端的用户图标 */
    .user-menu > .fa-user-circle {
        display: none;
    }
    
    .lang-toggle {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Banner */
    .carousel-container {
        height: 180px;
    }
    
    .banner-text h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .banner-text p {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Stats Cards */
    .stat-card,
    .stat-card-large {
        padding: 0.6rem;
    }
    
    .stat-header {
        margin-bottom: 0.4rem;
    }
    
    .stat-header h3 {
        font-size: 0.9rem;
    }
    
    .stat-trend {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-value .currency,
    .stat-value .unit {
        font-size: 1.1rem;
    }
    
    .stat-footer {
        font-size: 0.65rem;
    }
    
    /* Bot Cards */
    .bot-card {
        padding: 1rem;
    }
    
    .bot-header h3 {
        font-size: 1rem;
    }
    
    /* Rankings */
    .ranking-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ranking-number {
        font-size: 1.5rem;
    }
    
    .ranking-item-full {
        padding: 0.85rem;
    }
    
    /* Page Titles */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    /* Cards */
    .feature-card,
    .tutorial-card,
    .video-card {
        padding: 1rem;
    }
    
    /* Filter Buttons */
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* History Table */
    .history-table table {
        min-width: 700px;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .status-badge,
    .trade-type {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Dropdown Menu */
    .dropdown-menu {
        min-width: 240px;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Mobile Quick Actions - Smaller screens */
    .mobile-quick-actions {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    
    .action-icon i {
        font-size: 1.3rem;
    }
    
    .action-label {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .logo span {
        display: none; /* Hide logo text on very small screens */
    }
    
    .carousel-container {
        height: 160px;
    }
    
    .banner-text h2 {
        font-size: 1.1rem;
    }
    
    .banner-text p {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        display: none; /* Hide on mobile */
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-card i {
        font-size: 1.5rem;
    }
    
    .action-card h3 {
        font-size: 0.85rem;
    }
    
    /* Mobile Quick Actions - Extra small screens */
    .mobile-quick-actions {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .action-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    
    .action-icon i {
        font-size: 1.2rem;
    }
    
    .action-label {
        font-size: 0.65rem;
    }
}

/* Landscape Orientation Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.5rem 0;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .welcome-banner {
        padding: 0.75rem;
    }
    
    .stat-card-large {
        padding: 0.5rem;
    }
    
    .stat-header {
        margin-bottom: 0.3rem;
    }
    
    .stat-header h3 {
        font-size: 0.85rem;
    }
    
    .stat-trend {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.15rem;
    }
    
    .stat-footer {
        font-size: 0.6rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .filter-btn,
    .action-card,
    .nav-link {
        min-height: 44px; /* iOS Human Interface Guidelines */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve tap feedback */
    .btn:active,
    .filter-btn:active,
    .action-card:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* Remove hover effects on touch devices */
    .bot-card:hover,
    .feature-card:hover,
    .ranking-item:hover {
        transform: none;
    }
    
    /* Larger clickable areas for mobile */
    .user-btn,
    .lang-toggle,
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ==================== Mobile Bottom Navigation ==================== */

/* Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Add padding to body to prevent content being hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide footer on mobile */
    .footer {
        display: none;
    }

    /* Mobile Quick Actions - Only visible on mobile */
    .mobile-quick-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 1rem;
        margin: 1rem 0;
    }

    .mobile-action-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .mobile-action-card:active {
        transform: scale(0.95);
    }

    .action-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-action-card:hover .action-icon,
    .mobile-action-card:active .action-icon {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .action-icon i {
        font-size: 2rem;
        color: white;
        line-height: 1;
    }

    .action-icon.bind-api {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

    .action-icon.positions {
        background: linear-gradient(135deg, #f093fb, #f5576c);
    }

    .action-icon.tutorials {
        background: linear-gradient(135deg, #4facfe, #00f2fe);
    }

    .action-icon.community {
        background: linear-gradient(135deg, #43e97b, #38f9d7);
    }

    .action-label {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: center;
        line-height: 1.4;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        max-width: 80px;
    }

    /* FAQ Section - Mobile */
    .faq-question {
        padding: 1rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* Center Button (Create Bot) */
.bottom-nav-item.nav-center {
    position: relative;
    flex: 0 0 auto;
}

.center-button {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-10px);
    transition: all 0.3s;
    cursor: pointer;
}

.center-button i {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

.center-button:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
    transform: translateY(-12px);
}

.center-button:active {
    transform: translateY(-8px) scale(0.95);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Create Bot Button Tooltip (Optional Enhancement) */
.center-button::after {
    content: 'Create Bot';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--dark-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.center-button:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* ==================== Create Bot / Bind API Page ==================== */

/* Progress Steps */
.create-bot-header {
    margin-bottom: 3rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.page-title i {
    color: var(--primary-color);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
}

.step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--gradient-1);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* Step Content */
.step-content {
    animation: fadeIn 0.3s ease-out;
}

.step-content.hidden {
    display: none;
}

/* Exchange Grid */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exchange-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.exchange-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.exchange-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exchange-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.exchange-icon.binance-icon {
    background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
    position: relative;
}

.exchange-letter {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    font-family: Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.exchange-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.exchange-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exchange-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

.exchange-action {
    margin-top: auto;
}

.exchange-card .btn {
    width: 100%;
    justify-content: center;
}

/* API Guide */
.api-guide {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.guide-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.guide-header h3 {
    margin: 0;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.guide-step-number {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.guide-step-content p {
    margin: 0;
    padding-top: 0.3rem;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.guide-link:hover {
    gap: 0.75rem;
}

/* API Form */
.api-form,
.strategy-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--primary-color);
}

/* Amount options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.amount-option {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.amount-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.amount-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amount-option {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

.required {
    color: var(--danger-color);
}

.optional {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 0.85rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .form-input {
    padding-right: 3rem;
}

.input-icon-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.input-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    padding-right: 4rem;
}

.input-unit {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Security Notice */
.security-notice {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
}

.notice-icon {
    font-size: 2rem;
    color: var(--success-color);
}

.notice-content h4 {
    margin: 0 0 0.75rem 0;
    color: var(--success-color);
}

.notice-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notice-content li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notice-content li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    margin-right: auto;
}

/* Strategy Settings */
.strategy-settings {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.settings-title i {
    color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Config Summary */
.config-summary {
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
}

.config-summary h3 {
    margin: 0 0 1rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .progress-steps {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-line {
        width: 40px;
    }
    
    .exchange-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-back {
        margin-right: 0;
        order: 2;
    }
    
    .form-actions .btn-primary {
        order: 1;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Wallet Page ==================== */

/* Balance Section */
.balance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.balance-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.balance-card.primary {
    background: var(--gradient-1);
    border: none;
}

.balance-card.secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
}

.balance-card.info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.balance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.balance-icon.energy {
    background: rgba(255, 255, 255, 0.3);
}

.balance-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.balance-amount .currency {
    font-size: 1.5rem;
    opacity: 0.8;
}

.balance-amount .unit {
    font-size: 1.2rem;
    opacity: 0.8;
}

.balance-actions {
    display: flex;
    gap: 1rem;
}

.balance-actions .btn {
    flex: 1;
}

.balance-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Exchange Rate Card */
.exchange-rate-card {
    text-align: center;
}

.exchange-rate-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.rate-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rate-display i {
    color: var(--primary-color);
}

.energy-color {
    color: var(--energy-color);
}

.rate-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Transaction Section */
.transaction-section {
    margin-bottom: 3rem;
}

.transaction-filters {
    display: flex;
    gap: 1rem;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.transaction-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.transaction-icon.primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-date,
.transaction-network {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transaction-amount,
.transaction-amounts {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
    margin-right: 1rem;
}

.transaction-amounts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-amount.positive,
.amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative,
.amount.negative {
    color: var(--danger-color);
}

.transaction-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.transaction-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.transaction-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.transaction-status.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* Deposit Modal */
.deposit-info,
.exchange-info {
    margin-bottom: 1.5rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
}

.info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.info-box i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.info-box.success i {
    color: var(--success-color);
}

.deposit-address-section {
    margin: 1.5rem 0;
}

.address-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.qr-code i {
    font-size: 6rem;
    color: var(--dark-bg);
}

.qr-code p {
    margin-top: 1rem;
    color: var(--dark-bg);
}

.address-text {
    display: flex;
    gap: 0.5rem;
}

.address-text .form-input {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
}

.deposit-notes,
.withdraw-notes,
.exchange-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
}

.deposit-notes h4,
.withdraw-notes h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--warning-color);
}

.deposit-notes ul,
.withdraw-notes ul,
.exchange-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deposit-notes li,
.withdraw-notes li,
.exchange-notes li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.deposit-notes li::before,
.withdraw-notes li::before,
.exchange-notes li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--warning-color);
}

.exchange-notes {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.exchange-notes i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

/* Withdraw Modal */
.balance-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.withdraw-summary {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

/* Exchange Modal */
.exchange-rate-display {
    text-align: center;
    margin-bottom: 2rem;
}

.rate-box {
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
}

.rate-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.rate-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.rate-value i {
    color: var(--primary-color);
}

.exchange-arrow {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.energy-result {
    font-size: 2rem;
    font-weight: bold;
    color: var(--energy-color);
    text-align: center;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
}

.energy-result .unit {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .balance-section {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-amount,
    .transaction-amounts {
        margin-right: 0;
        margin-top: 0.5rem;
        text-align: left;
    }
    
    .transaction-status {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
    
    .address-text {
        flex-direction: column;
    }
}

/* ==================== Profile Page Styles ==================== */

/* Profile Header */
.profile-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Profile Menu */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-menu-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.profile-menu-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.menu-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.menu-item-icon.assets {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.menu-item-icon.usdt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.menu-item-icon.coin {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.menu-item-icon.referral {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.menu-item-content {
    flex: 1;
}

.menu-item-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.menu-item-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.menu-item-arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Profile Actions */
.profile-actions {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.btn-logout {
    width: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 1rem;
    padding: 1.25rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.btn-logout i {
    font-size: 1.3rem;
}

/* ==================== Transaction List Page ==================== */

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-back {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: var(--primary-color);
    transform: translateX(-3px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 6rem;
}

.transaction-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.transaction-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transaction-icon.deposit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.transaction-icon.reward {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.transaction-icon.withdraw {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.transaction-icon.exchange {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.transaction-icon.profit {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.transaction-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transaction-amount {
    text-align: right;
}

.amount-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.amount-value.positive {
    color: var(--success-color);
}

.amount-value.negative {
    color: var(--danger-color);
}

.amount-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ==================== Referral Page ==================== */

/* Referral Stats */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Referral Code Section */
.referral-code-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.referral-code-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.referral-code-card,
.referral-link-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.code-display,
.link-display {
    flex: 1;
}

.code-label,
.link-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.code-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
}

.link-value {
    font-size: 1rem;
    color: var(--primary-color);
    word-break: break-all;
}

.btn-copy {
    background: var(--primary-color);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* QR Code Section */
.qr-code-section {
    text-align: center;
    margin-top: 2rem;
}

.qr-code-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.qr-code-display {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.qr-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Reward Rules */
.reward-rules {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.reward-rules h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rule-item i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.rule-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Referral List */
.referral-list-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 6rem;
}

.referral-list-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.referral-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referral-item {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.referral-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.referral-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.referral-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.referral-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.referral-reward {
    text-align: right;
}

.reward-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.25rem;
}

.reward-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== Mobile Responsive ==================== */

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-username {
        font-size: 1.5rem;
    }
    
    .profile-menu-item {
        padding: 1.25rem;
    }
    
    .menu-item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .referral-code-card,
    .referral-link-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
    
    .transaction-item {
        padding: 1rem;
    }
    
    .transaction-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Wallet Enhancement Styles */

/* 高亮脉冲动画 */
@keyframes highlight-pulse {
    0%, 100% {
        background: rgba(99, 102, 241, 0.1);
        border-color: rgba(99, 102, 241, 0.3);
    }
    50% {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
}

.highlight-pulse {
    animation: highlight-pulse 1s ease-in-out 2;
}

/* 脉冲动画 */
@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse-animation 0.6s ease-in-out 3;
}

/* 金额选项按钮增强 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.amount-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.amount-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.amount-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.amount-option:hover::before,
.amount-option.active::before {
    opacity: 0.1;
}

.amount-option.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 提现总结样式 */
.withdraw-summary {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color);
}

.summary-row.total span:last-child {
    color: var(--success-color);
}

/* 兑换箭头动画 */
.exchange-arrow {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.exchange-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* 兑换汇率显示 */
.exchange-rate-display {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    text-align: center;
}

.rate-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rate-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.rate-value i {
    color: var(--primary-color);
}

.energy-color {
    color: var(--energy-color);
}

/* 输入框增强 */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    padding-right: 80px;
}

.input-unit {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    pointer-events: none;
}

/* 余额提示 */
.balance-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Toast 增强样式 */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
    white-space: pre-line;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

/* 加载中状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 表单提示文本 */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

/* 充值备注码样式 */
.deposit-memo-section {
    margin: 1.5rem 0;
}

.memo-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 2px solid var(--danger-color);
    border-radius: 12px;
    overflow: hidden;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--danger-color);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        border-color: #dc2626;
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.memo-header {
    background: var(--danger-color);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.memo-header i {
    animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(5deg); }
}

.memo-content {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.memo-tips {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.memo-code-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

.memo-code-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--danger-color);
    background: white;
    border: 2px solid var(--danger-color);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    user-select: all;
    transition: all 0.3s;
}

.memo-code-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    transform: scale(1.02);
}

.btn-copy-memo {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-copy-memo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-copy-memo:active {
    transform: translateY(0);
}

.btn-copy-memo i {
    font-size: 1.1rem;
}

.memo-warning {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.875rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.memo-warning i {
    color: var(--danger-color);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.memo-warning strong {
    color: var(--danger-color);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .memo-code-input {
        font-size: 1.25rem;
        padding: 0.875rem;
        letter-spacing: 0.15em;
    }
    
    .memo-content {
        padding: 1rem;
    }
    
    .btn-copy-memo {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .memo-warning {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .memo-code-input {
        font-size: 1.125rem;
        padding: 0.75rem;
    }
}




