
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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


:root {
    /* 🌚 Base Dark Colors - Tối sâu và chill */
    --bg-primary: #0a0e1a;          /* Tối chủ đạo - navy đen */
    --bg-secondary: #151b2e;        /* Tối phụ - slate đậm */
    --bg-tertiary: #1f2937;         /* Tối thứ ba - gray đậm */
    --bg-elevated: #252d3f;         /* Nền nổi - cho card, modal */
    --bg-overlay: #2a3441;          /* Overlay, dropdown */
    
    /* 📝 Text Colors - Dễ đọc và êm mắt */
    --text-primary: #f8fafc;        /* Chữ chính - trắng mềm */
    --text-secondary: #e2e8f0;      /* Chữ phụ - xám sáng */
    --text-muted: #94a3b8;          /* Chữ mờ - xám trung */
    --text-subtle: #64748b;         /* Chữ nhạt - xám đậm */
    --text-disabled: #475569;       /* Chữ disabled */
    
    /* 🎨 Accent Colors - Màu điểm nhấn hiện đại */
    --accent-primary: #3b82f6;      /* Blue chính - vibrant */
    --accent-secondary: #8b5cf6;    /* Purple - creative */
    --accent-success: #10b981;      /* Green - fresh */
    --accent-warning: #f59e0b;      /* Orange - warm */
    --accent-danger: #ef4444;       /* Red - attention */
    --accent-info: #06b6d4;         /* Cyan - cool */
    
    /* 🌈 Gradient Combos - Hiện đại và mượt mà */
    --primary-gradient: linear-gradient(135deg, #0a0e1a 0%, #1f2937 50%, #252d3f 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --warm-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --cool-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --card-gradient: linear-gradient(135deg, rgba(21, 27, 46, 0.95) 0%, rgba(37, 45, 63, 0.98) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(248, 250, 252, 0.1) 0%, rgba(148, 163, 184, 0.05) 100%);
    
    /* 🖼️ Border & Dividers - Tinh tế */
    --border-primary: #374151;      /* Border chính */
    --border-secondary: #4b5563;    /* Border phụ */
    --border-muted: #6b7280;        /* Border nhạt */
    --border-accent: #3b82f6;       /* Border highlight */
    
    /* 🌟 Shadows - Depth và hiện đại */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-accent: 0 8px 32px rgba(59, 130, 246, 0.2);
    
    /* 💎 Glass Effect - Glassmorphism */
    --glass-bg: rgba(248, 250, 252, 0.08);
    --glass-border: rgba(248, 250, 252, 0.15);
    --glass-blur: blur(12px);
    
    /* 🎯 Interactive States */
    --hover-overlay: rgba(248, 250, 252, 0.05);
    --active-overlay: rgba(248, 250, 252, 0.08);
    --focus-ring: 0 0 0 2px rgba(59, 130, 246, 0.3);
    
    /* 🔄 Transitions - Smooth animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 🌙 Auto Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* 🎨 Theme Classes */
.dark-theme {
    /* Copy tất cả variables từ :root */
    --bg-primary: #0a0e1a;
    --bg-secondary: #151b2e;
    --bg-tertiary: #1f2937;
    --bg-elevated: #252d3f;
    --bg-overlay: #2a3441;
    
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --text-disabled: #475569;
    
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;
    
    --primary-gradient: linear-gradient(135deg, #0a0e1a 0%, #1f2937 50%, #252d3f 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --warm-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --cool-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --card-gradient: linear-gradient(135deg, rgba(21, 27, 46, 0.95) 0%, rgba(37, 45, 63, 0.98) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(248, 250, 252, 0.1) 0%, rgba(148, 163, 184, 0.05) 100%);
    
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --border-muted: #6b7280;
    --border-accent: #3b82f6;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-accent: 0 8px 32px rgba(59, 130, 246, 0.2);
    
    --glass-bg: rgba(248, 250, 252, 0.08);
    --glass-border: rgba(248, 250, 252, 0.15);
    --glass-blur: blur(12px);
    
    --hover-overlay: rgba(248, 250, 252, 0.05);
    --active-overlay: rgba(248, 250, 252, 0.08);
    --focus-ring: 0 0 0 2px rgba(59, 130, 246, 0.3);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
    body::before {
        background:
            radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    }
}

.dark-theme::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-20px) translateY(-10px);
    }
    50% {
        transform: translateX(10px) translateY(-20px);
    }
    75% {
        transform: translateX(-10px) translateY(10px);
    }
}

/* Notification Bell Container */
.notifi-bell-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Bell Button */
.notifi-bell-btn {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
}

.notifi-bell-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-gradient);
}

/* Bell Icon */
.notifi-bell-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: all 0.3s ease;
}

.notifi-bell-btn:hover .notifi-bell-icon {
    fill: white;
    animation: notifiBellRing 0.5s ease-in-out;
}

/* Badge số thông báo */
.notifi-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: notifiBadgePulse 2s infinite;
}

.notifi-badge.hidden {
    display: none;
}

/* Dropdown menu thông báo */
.notifi-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
}

.notifi-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifi-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

/* Header dropdown */
.notifi-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifi-dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notifi-mark-read {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notifi-mark-read:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Danh sách thông báo */
.notifi-list {
    max-height: 300px;
    overflow-y: auto;
}

.notifi-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notifi-item:last-child {
    border-bottom: none;
}

.notifi-item:hover {
    background: var(--bg-tertiary);
}

.notifi-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notifi-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.notifi-item-content {
    margin-left: 12px;
}

.notifi-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.notifi-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

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

/* Footer dropdown */
.notifi-dropdown-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notifi-view-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.notifi-view-all:hover {
    color: var(--text-primary);
}


/* Animations */
@keyframes notifiBellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

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

/* Scrollbar cho dropdown */
.notifi-list::-webkit-scrollbar {
    width: 6px;
}

.notifi-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.notifi-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 480px) {
    .notifi-dropdown {
        min-width: 90vw;            /* Chiếm 90% chiều rộng màn hình */
        max-width: 90vw;
        left: 50% !important;       /* Căn giữa ngang */
        transform: translateX(-50%) translateY(0) !important;
        border-radius: 10px;        /* Bo góc nhẹ hơn */
    }

    /* Header gọn hơn */
    .notifi-dropdown-header {
        padding: 12px 15px;
    }

    .notifi-dropdown-title {
        font-size: 14px;
    }

    .notifi-mark-read {
        font-size: 11px;
        padding: 3px 6px;
    }

    /* Mỗi item nhỏ gọn */
    .notifi-item {
        padding: 10px 15px;
    }

    .notifi-item-title {
        font-size: 13px;
    }

    .notifi-item-desc {
        font-size: 11px;
    }

    /* Footer gọn hơn */
    .notifi-dropdown-footer {
        padding: 10px 15px;
    }
}


/* Nút vòng quay may mắn */
.wheel-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

/* Hiệu ứng viền xung quanh */
.wheel-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 400% 400%;
    z-index: -1;
    animation: rainbow-border 3s ease-in-out infinite;
    opacity: 0.8;
}

/* Hiệu ứng sáng phía sau */
.wheel-btn::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    z-index: -2;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

/* Icon quay */
.wheel-btn i {
    animation: spin-idle 4s linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Hiệu ứng hover */
.wheel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.5);
}

.wheel-btn:hover i {
    animation: spin-fast 0.5s linear infinite;
}

.wheel-btn:hover::before {
    animation: rainbow-border 1s ease-in-out infinite;
}

/* Hiệu ứng click */
.wheel-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Text label */
.wheel-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.9;
}

/* Keyframes */
@keyframes rainbow-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes spin-idle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-fast {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .wheel-btn {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .wheel-label {
        font-size: 12px;
        bottom: -35px;
    }
}

@media (max-width: 480px) {
    .wheel-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .wheel-label {
        font-size: 11px;
        bottom: -30px;
    }
}

/* Lucky wheel modal */
.lw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: lw-fadeIn 0.3s ease;
}

.lw-wheel-container {
    background: var(--card-gradient);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(25px);
    color: var(--text-primary);
    transform: scale(0.9);
    animation: lw-scaleIn 0.4s ease forwards;
}

.lw-header {
    margin-bottom: 28px;
}

.lw-header h3 {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lw-header i {
    color: #ffd700;
    font-size: 28px;
    animation: lw-sparkle 2s ease-in-out infinite;
}

.lw-stats {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lw-stats h4 {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lw-spin-count {
    font-size: 38px;
    font-weight: 900;
    color: #0ea5e9;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lw-add-spin-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    justify-content: center;
    flex-wrap: wrap;
}

.lw-add-spin-btn {
    background: var(--secondary-gradient);
    border: 2px solid #64748b;
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

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

.lw-add-spin-btn:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: #0ea5e9;
}

.lw-add-spin-btn:hover::before {
    left: 100%;
}

.lw-add-spin-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.lw-add-spin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.lw-wheel-game {
    position: relative;
    margin: 0 auto 36px;
    width: 300px;
    height: 300px;
}

.lw-wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #ffd700;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: lw-pulse 2s ease-in-out infinite;
}

.lw-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 6px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    background: conic-gradient(from 0deg,
        #ef4444 0deg 45deg,
        #f97316 45deg 90deg,
        #eab308 90deg 135deg,
        #22c55e 135deg 180deg,
        #3b82f6 180deg 225deg,
        #8b5cf6 225deg 270deg,
        #ec4899 270deg 315deg,
        #14b8a6 315deg 360deg
        );

}

.lw-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffd700 0%, #ffb000 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.lw-wheel-segment {
    position: absolute;
    width: 50%;
    height: 2px;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 25px;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}


.lw-wheel-segment:nth-child(1) {
    transform: rotate(22.5deg);
}
.lw-wheel-segment:nth-child(2) {
    transform: rotate(67.5deg);
}
.lw-wheel-segment:nth-child(3) {
    transform: rotate(112.5deg);
}
.lw-wheel-segment:nth-child(4) {
    transform: rotate(157.5deg);
}
.lw-wheel-segment:nth-child(5) {
    transform: rotate(202.5deg);
}
.lw-wheel-segment:nth-child(6) {
    transform: rotate(247.5deg);
}
.lw-wheel-segment:nth-child(7) {
    transform: rotate(292.5deg);
}
.lw-wheel-segment:nth-child(8) {
    transform: rotate(337.5deg);
}

.lw-spin-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 16px;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
}

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

.lw-spin-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.4);
}

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

.lw-spin-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.lw-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.lw-wheel-close {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 32px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.lw-wheel-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lw-wheel-result {
    margin-top: 28px;
    padding: 24px;
    background: var(--primary-gradient);
    border-radius: 20px;
    border: 2px solid #22c55e;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: none;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.lw-wheel-result.lw-show {
    display: block;
    animation: lw-fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Task buttons styling */
#lwSpinTasks {
    margin-top: 20px;
}

#lwSpinTasks p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

#taskBtn1, #taskBtn2 {
    margin: 8px;
    min-width: 200px;
}

#taskBtn2:disabled {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Animations */
@keyframes lw-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lw-scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes lw-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes lw-sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        filter: brightness(1.3);
    }
}

@keyframes lw-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lw-modal-overlay {
        padding: 12px;
    }

    .lw-wheel-container {
        padding: 24px;
        max-width: 100%;
        margin: 0 8px;
        border-radius: 24px;
    }

    .lw-header h3 {
        font-size: 26px;
    }

    .lw-header i {
        font-size: 24px;
    }

    .lw-wheel-game {
        width: 260px;
        height: 260px;
        margin: 0 auto 28px;
    }

    .lw-wheel {
        width: 260px;
        height: 260px;
        border-width: 5px;
    }

    .lw-wheel::before {
        width: 35px;
        height: 35px;
    }

    .lw-wheel-segment {
        font-size: 11px;
        padding-right: 18px;
    }

    .lw-add-spin-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .lw-add-spin-btn {
        min-width: 100%;
        padding: 18px 20px;
        font-size: 16px;
    }

    .lw-spin-btn {
        font-size: 18px;
        padding: 18px 32px;
        margin-right: 12px;
        margin-bottom: 16px;
    }

    .lw-wheel-close {
        padding: 16px 28px;
        font-size: 15px;
    }

    .lw-spin-count {
        font-size: 32px;
    }

    #taskBtn1, #taskBtn2 {
        margin: 6px;
        min-width: calc(100% - 12px);
    }
}

@media (max-width: 480px) {
    .lw-wheel-container {
        padding: 20px;
        border-radius: 20px;
    }

    .lw-header h3 {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }

    .lw-header i {
        font-size: 22px;
    }

    .lw-wheel-game {
        width: 220px;
        height: 220px;
    }

    .lw-wheel {
        width: 220px;
        height: 220px;
        border-width: 4px;
    }

    .lw-wheel::before {
        width: 30px;
        height: 30px;
    }

    .lw-wheel-segment {
        font-size: 10px;
        padding-right: 15px;
    }

    .lw-stats {
        padding: 20px;
    }

    .lw-spin-count {
        font-size: 30px;
    }

    .lw-spin-btn {
        width: 100%;
        margin: 0 0 16px 0;
        padding: 18px 24px;
        font-size: 17px;
    }

    .lw-wheel-close {
        width: 100%;
        padding: 16px 24px;
    }

    .lw-wheel-result {
        font-size: 18px;
        padding: 20px;
    }

    #lwSpinTasks p {
        font-size: 15px;
    }
}

/* Lucky Wheel - Responsive Mobile Fix */
@media (max-width: 480px) {
    /* Thu nhỏ tổng thể modal */
    .lw-wheel-container {
        transform: scale(0.85);
        transform-origin: top center;
        max-width: 95%;
        padding: 12px;
        max-height: 90vh; /* Giới hạn chiều cao */
        overflow-y: auto; /* Cuộn bên trong nếu nội dung quá dài */
        -webkit-overflow-scrolling: touch;
    }

    /* Thu nhỏ bánh xe */
    .lw-wheel-game,
    .lw-wheel {
        width: 180px;
        height: 180px;
    }

    /* Giảm size chữ segment */
    .lw-wheel-segment {
        font-size: 10px;
        padding-right: 8px;
    }

    /* Giảm font tiêu đề */
    .lw-header h3 {
        font-size: 18px;
    }

    /* Giảm font số lượt quay */
    .lw-spin-count {
        font-size: 24px;
    }

    /* Fix phần nhiệm vụ nhận lượt quay */
    #lwSpinTasks {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Xếp nút nhiệm vụ dọc + căn giữa */
    #lwSpinTasks .d-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    #lwSpinTasks .lw-add-spin-btn {
        width: 100% !important;
        max-width: 250px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 50px;
    position: relative;
}

.brand-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: gradientShift 4s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
}

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

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.5));
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

.card {
    background: var(--card-gradient);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out both;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    background-size: 200% 100%;
    animation: borderShine 3s linear infinite;
}

@keyframes borderShine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 25px 50px -12px var(--shadow-color);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.alphabet-item {
    padding: 15px 10px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.alphabet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.alphabet-item:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.alphabet-item:hover::before {
    left: 0;
}

.alphabet-item:active {
    transform: translateY(-1px) scale(1.02);
}

.skin-options {
    background: var(--card-gradient);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 25px;
    backdrop-filter: blur(15px);
    animation: slideIn 0.4s ease-out;
    box-shadow: var(--shadow-lg);
}

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

.skin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.skin-option {
    padding: 18px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    user-select: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.skin-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skin-option:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--info-color);
}

.skin-option:hover::before {
    opacity: 0.1;
}

.skin-option.selected {
    border-color: var(--success-color);
    background: var(--accent-success);
    color: white;
    font-weight: 600;
    transform: scale(1.05);
    animation: selectedPulse 0.5s ease-out;
}

@keyframes selectedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

.btn-close {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-close:hover::before {
    width: 100px;
    height: 100px;
}

.selected-skin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 60px;
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.selected-skin-list:empty::before {
    content: 'Chưa chọn skin nào...';
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
}

.selected-skin-list:not(:empty) {
    border-color: var(--success-color);
    background: var(--bg-secondary);
}

.selected-skin-tag {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.selected-skin-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.remove-skin {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.remove-skin:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: var(--error-color);
}

.price-display {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin: 25px 0;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.discount-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

.discount-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.discount-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.apply-discount-btn {
    padding: 12px 20px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-discount-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.qr-code-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.qr-code-section img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.qr-code-section img:hover {
    transform: scale(1.05);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.file-upload-label:hover {
    border-color: var(--info-color);
    background: var(--bg-secondary);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    background: var(--success-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    align-items: center;
    gap: 10px;
}

.order-history {
    margin-top: 40px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.order-table th,
.order-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.order-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.order-table tbody tr:nth-child(even) {
    background-color: var(--bg-tertiary);
}

.order-table tbody tr:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.status.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.status.processing {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    font-size: 0.76em;
}

.status.completed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.status.rejected {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .main-content {
        gap: 20px;
    }

    .card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .alphabet-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .alphabet-item {
        padding: 12px 8px;
        font-size: 1rem;
    }

    .skin-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .discount-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
        border-radius: 16px;
    }

    .alphabet-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .alphabet-item {
        padding: 10px 6px;
        font-size: 0.9rem;
    }

    .skin-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .selected-skin-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .price-display {
        font-size: 1.2rem;
        padding: 20px;
    }

    .order-table th,
    .order-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .order-table {
        font-size: 0.8rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}
.account-display-1 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.user-basic {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.user-icon {
    font-size: 20px;
    opacity: 0.9;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.balance-display i {
    font-size: 14px;
    opacity: 0.8;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.account-display-1 > div:last-of-type {
    display: flex;
    align-items: center;
}

.account-display-1 > div:last-of-type > span {
    margin: 0 8px;
    opacity: 0.7;
}

.account-display-1 a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.account-display-1 a:hover {
    color: white;
    transform: translateY(-1px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .account-display-1 {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .user-info {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .user-basic {
        font-size: 14px;
        justify-content: center;
    }

    .user-icon {
        font-size: 18px;
    }

    .balance-display {
        font-size: 13px;
        padding: 8px 10px;
        justify-content: center;
    }

    .balance-display i {
        font-size: 12px;
    }

    .account-display-1 > div:last-of-type {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .account-display-1 a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .account-display-1 {
        padding: 10px;
        gap: 12px;
    }

    .user-info {
        gap: 10px;
    }

    .user-basic {
        font-size: 13px;
    }

    .balance-display {
        font-size: 12px;
        padding: 6px 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .account-display-1 a {
        font-size: 12px;
    }

    .account-display-1 a span:last-child {
        display: none;
    }
}

@media (max-width: 360px) {
    .account-display-1 {
        padding: 8px;
    }

    .balance-display span {
        font-size: 11px;
    }

    .btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Floating buttons container */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Chat button */
.chat-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

/* Discount code section */
.discount-section {
    background: linear-gradient(45deg, #e3f2fd, #f3e5f5);
    border: 2px dashed #2196F3;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.discount-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.discount-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.apply-discount-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-discount-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.discount-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.discount-applied {
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-buttons {
        right: 10px;
    }

    .chat-modal {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: 350px;
    }

    .wheel-container {
        width: 95%;
        padding: 20px;
    }

    .wheel {
        width: 200px;
        height: 200px;
    }
}

/*cm sc neww */

/* ==================== COMMENTS SECTION STYLES ==================== */

/* Container */
.cs-comments-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

/* Card Container */
.cs-card {
    backdrop-filter: blur(20px);
    background: var(--card-gradient);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cs-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Title */
.cs-section-title {
    background: var(--primary-gradient);
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: -2rem -2rem 2rem -2rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-section-title i {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Comment Form */
.cs-comment-form {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.cs-form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cs-form-title i {
    color: var(--text-muted);
}

/* Rating Section */
.cs-rating-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cs-rating-section label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cs-star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.cs-star {
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    color: #fbbf24;
}

.cs-star:hover,
.cs-star.cs-active {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

/* Comment Input */
.cs-comment-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.cs-comment-input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.cs-comment-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Buttons */
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.cs-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cs-btn:active {
    transform: translateY(0);
}

/* Submit Button */
#cs-submitComment {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

#cs-submitComment:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Comments List */
.cs-comments-list {
    margin-bottom: 1.5rem;
}

.cs-comment-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cs-comment-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.cs-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    z-index: 100;
}

.cs-comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.cs-comment-rating {
    display: flex;
    gap: 2px;
}

.cs-comment-rating .cs-star {
    font-size: 0.875rem;
    opacity: 1;
    transform: none;
}

.cs-comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.cs-comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Load More Button */
.cs-load-more {
    text-align: center;
    padding: 1rem 0;
}

#cs-loadMoreComments {
    background: var(--secondary-gradient);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

#cs-loadMoreComments:hover {
    background: var(--primary-gradient);
    border-color: var(--text-muted);
}

/* Empty State */
.cs-empty-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.cs-empty-comments i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/*reply*/
.cs-replies-container {
    margin-top: 8px;
}
.cs-reply {
    margin-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.08);
    padding-left: 12px;
}


/* Animations */
@keyframes cs-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-comment-item.cs-new {
    animation: cs-slideIn 0.5s ease-out;
}

/* Loading State */
.cs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cs-loading .cs-btn {
    position: relative;
}

.cs-loading .cs-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: cs-spin 1s linear infinite;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

@keyframes cs-spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-comments-wrapper {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .cs-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .cs-section-title {
        font-size: 1.5rem;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .cs-comment-form {
        padding: 1.5rem;
    }

    .cs-rating-section {
        padding: 1rem;
    }

    .cs-star-rating {
        justify-content: center;
    }

    .cs-comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cs-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cs-star {
        font-size: 1.5rem;
    }

    .cs-comment-input {
        min-height: 100px;
        padding: 0.75rem;
    }

    .cs-section-title {
        font-size: 1.25rem;
    }
}
/*nap card*/
.payment-method input[type="radio"] {
  display: none; /* giấu nhưng vẫn cho click được qua label */
}

/*modal nap tien*/
.myapp-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.myapp-modal__content {
    background: var(--bg-secondary);
    border-radius: 8px;
    width: 85%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
}

.myapp-modal__header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
}

.myapp-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.myapp-modal__close:hover {
    color: var(--text-primary);
}

.myapp-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.myapp-modal__subtitle {
    color: var(--text-secondary);
    font-size: 13px;
}

.myapp-modal__body {
    padding: 16px 20px;
}

.current-balance {
    background: var(--accent-gradient);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.balance-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.balance-amount {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
}

.message {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    display: none;
    border: 1px solid var(--border-primary);
    font-size: 13px;
}

.message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.quick-amounts {
    margin-bottom: 16px;
}

.quick-amounts-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.quick-amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-amount-btn {
    padding: 8px 6px;
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.quick-amount-btn:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-primary);
}

.quick-amount-btn.selected {
    border-color: #0ea5e9;
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.topup-form-group {
    margin-bottom: 16px;
}

.topup-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.payment-methods {
    margin-bottom: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border-primary);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-tertiary);
    position: relative;
    transform: scale(1);
    box-shadow: var(--shadow-sm);
}

.payment-method:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.payment-method.selected {
    border-color: #0ea5e9;
    background: var(--accent-gradient);
    transform: scale(1.02);
    box-shadow: var(--shadow-accent);
    animation: selectPulse 0.4s ease-out;
}

.payment-method.selected::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: 8px;
    opacity: 0.3;
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

.payment-method.selected .payment-method-name {
    color: var(--text-primary);
    font-weight: 700;
}

.payment-method.selected .payment-method-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

/* Form transition effects */
.payment-form {
    transition: opacity 0.3s ease;
}

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

.payment-method input[type="radio"] {
    display: none;
}

.payment-method-icon {
    font-size: 20px;
    margin-right: 10px;
}

.payment-method-info {
    flex: 1;
}

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

.payment-method-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.qr-section {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 14px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

.qr-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.qr-code {
    width: 140px;
    height: 140px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.qr-code img {
    width: 130px !important;
    height: 130px !important;
}

.bank-info {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid var(--border-primary);
}

.bank-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

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

.bank-info-item strong {
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-section {
    margin-bottom: 16px;
}

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

.form-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.img-fluid {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
    margin-top: 8px;
}

.btn {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    gap: 8px;
    margin: 0 auto;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.spinner-border {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .myapp-modal__content {
        width: 95%;
        max-height: 75vh; /* Chỉnh từ 90vh xuống 75vh */
    }

    .myapp-modal__header {
        padding: 14px 16px 10px;
    }

    .myapp-modal__body {
        padding: 14px 16px;
    }

    .myapp-modal__title {
        font-size: 18px;
    }

    .quick-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .quick-amount-btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }

    .qr-code img {
        width: 110px !important;
        height: 110px !important;
    }

    .bank-info-item {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 360px) {
    .myapp-modal__content {
        width: 98%;
        max-height: 75vh; /* Cũng chỉnh lại ở đây để đồng bộ */
    }

    .myapp-modal__header {
        padding: 12px 14px 8px;
    }

    .myapp-modal__body {
        padding: 12px 14px;
    }

    .topup-form-group {
        margin-bottom: 14px;
    }

    .quick-amounts {
        margin-bottom: 14px;
    }

    .qr-section {
        padding: 12px;
    }
}


/*lịch sử nạp tiền*/
.topUpHistory {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.topUpHistory h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.topUpHistory table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.topUpHistory thead {
    background: var(--bg-tertiary);
}

.topUpHistory th {
    padding: 12px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.topUpHistory td {
    padding: 10px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.topUpHistory tr:last-child td {
    border-bottom: none;
}

.topUpHistory a {
    color: #0ea5e9;
    text-decoration: none;
}

.topUpHistory a:hover {
    color: #06b6d4;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state small {
    color: var(--text-muted);
    opacity: 0.7;
}

/*reply*/
/* CSS cho reply template */
.cs-reply {
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.cs-reply-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cs-reply-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.cs-reply-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-muted);
}

.cs-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cs-reply-username {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-reply-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.cs-reply-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 400;
}