:root {
    --bg-dark: #f0f4f8; /* Soft blue-grey background */
    --bg-card: #ffffff; /* White cards */
    --bg-card-hover: #fbfdff;
    --sidebar-bg: #ffffff;
    --text-primary: #1e293b; /* Dark text */
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #3b82f6; /* Modern Blue instead of orange */
    --primary-glow: rgba(59, 130, 246, 0.15);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    
    --auth-btn-bg: #3b82f6;
    --auth-btn-bg-hover: #2563eb;
    --auth-input-bg: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-border-focus: rgba(59, 130, 246, 0.4);

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --bg-dark: #0b0914; /* Deep midnight obsidian */
    --bg-card: #131122; /* Premium dark violet card background */
    --bg-card-hover: #1c1932;
    --sidebar-bg: #131122;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    --auth-btn-bg: #3b82f6;
    --auth-btn-bg-hover: #2563eb;
    --auth-input-bg: #0b0914;
    --auth-border: #211e3b;
    --auth-border-focus: rgba(59, 130, 246, 0.4);

    --border: #211e3b;
    --border-hover: #2f2a54;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px 15px;
    position: relative;
    transition: var(--transition);
}

@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }
}

/* New Layout Container */
.shop-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 10;
}

.content-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Modals backdrop alignment */
.modal-overlay {
    z-index: 2000;
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.balance-badge i {
    width: 14px;
    height: 14px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: rgba(249, 115, 22, 0.03);
    border-bottom: 1px solid var(--border);
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 30px;
}

.announcement-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 16px;
    flex-shrink: 0;
}

.announcement-badge i {
    width: 14px;
    height: 14px;
}

.announcement-text-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.announcement-text {
    white-space: nowrap;
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Partner Ticker */
.partner-ticker {
    background-color: #0b0c12;
    padding: 10px 30px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.partner-title {
    color: var(--text-muted);
    font-weight: 700;
}

.partner-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.partner-link:hover {
    text-decoration: underline;
}

.partner-desc {
    color: var(--text-secondary);
}

/* Content Body */
.content-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* System Announcement Card */
.system-announcement-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-icon {
    width: 14px;
    height: 14px;
    color: #3b82f6;
    fill: #3b82f6;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.announcement-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 4px;
}

.announcement-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.announcement-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight {
    color: var(--primary);
}

.text-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

/* Dashboard Top Row */
.dashboard-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.metrics-container {
    display: flex;
    gap: 24px;
    flex-grow: 1;
}

.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    min-width: 180px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
}

.metric-icon i {
    width: 24px;
    height: 24px;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* AI Chat Button */
.ai-chat-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    outline: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: var(--transition);
}

.ai-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.ai-chat-btn i {
    width: 18px;
    height: 18px;
}

/* Two-Column Grid */
.main-columns-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Promo Banners */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.banner-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
}

.banner-card:hover {
    transform: translateY(-3px);
}

.banner-gradient-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(249, 115, 22, 0.02) 100%);
}

.banner-gradient-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.banner-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 70%;
}

.banner-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.04);
}

.banner-gradient-blue .banner-badge { color: var(--accent-blue); }
.banner-gradient-orange .banner-badge { color: var(--primary); }

.banner-content h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.banner-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.banner-visual {
    position: absolute;
    right: 12px;
    bottom: 12px;
    opacity: 0.8;
}

/* Card Mockup */
.card-mockup {
    width: 100px;
    height: 65px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    transform: rotate(-8deg);
    transition: var(--transition);
}

.card-chip {
    width: 16px;
    height: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 2px;
    margin-bottom: 10px;
}

.card-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
}

.card-number {
    font-size: 0.5rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Scratch Cards Visual */
.scratch-cards {
    position: relative;
    width: 80px;
    height: 80px;
}

.s-card {
    width: 65px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    color: white;
    position: absolute;
}

.s-card.vina {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    top: 25px;
    left: -15px;
    transform: rotate(-15deg);
}

.s-card.mobi {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    top: 10px;
    left: 10px;
    transform: rotate(15deg);
    z-index: 2;
}

.s-card.viettel {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    top: 35px;
    left: 10px;
    transform: rotate(5deg);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-light {
    background-color: white;
    color: var(--bg-dark);
}

.btn-light:hover {
    background-color: #e2e8f0;
}

/* Important Notice Card */
.important-notice-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.important-notice-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.notice-icon-box {
    width: 32px;
    height: 32px;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon-box i {
    width: 16px;
    height: 16px;
}

.notice-icon {
    color: #6366f1;
}

.important-notice-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.notice-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.notice-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.notice-link-item.color-blue { border-left: 3px solid #6366f1; }
.notice-link-item.color-cyan { border-left: 3px solid #06b6d4; }
.notice-link-item.color-pink { border-left: 3px solid #ec4899; }
.notice-link-item.color-green { border-left: 3px solid #22c55e; }

.notice-link-item a {
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.notice-link-item.color-blue a { color: #6366f1; }
.notice-link-item.color-cyan a { color: #06b6d4; }
.notice-link-item.color-pink a { color: #ec4899; }
.notice-link-item.color-green a { color: #22c55e; }

.notice-link-item a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Super Tool Card */
.super-tool-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.tool-logo i {
    width: 22px;
    height: 22px;
}

.tool-title-wrapper h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.tool-badges {
    display: flex;
    gap: 6px;
}

.badge-pill {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-pill.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.badge-pill.red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tool-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tool-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tool-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tool-item-info i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.tool-item:hover .tool-item-info i {
    color: var(--primary);
}

.tool-item-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
}

.logo-z {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.logo-f {
    background: linear-gradient(135deg, #1877f2 0%, #1154ad 100%);
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Auth Modal Styles (Zermango Style Login & Register) */
.auth-modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 28px 32px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-badge {
    width: 60px;
    height: 60px;
    background-color: rgba(251, 191, 36, 0.05);
    border: 1.5px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.auth-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

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

.brand-highlight {
    color: var(--auth-btn-bg);
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.label-tip {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

.optional {
    color: var(--text-muted);
    font-weight: normal;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 12px 14px 12px 42px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

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

.input-wrapper input:focus {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(95, 107, 240, 0.1);
}

.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-toggle-password:hover .eye-icon {
    color: var(--text-primary);
}

/* Buttons */
.btn-auth-submit {
    background-color: var(--auth-btn-bg);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(95, 107, 240, 0.2);
    border: none;
    cursor: pointer;
}

.btn-auth-submit:hover {
    background-color: var(--auth-btn-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(95, 107, 240, 0.3);
}

.btn-auth-submit i {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.btn-auth-submit:hover i {
    transform: translateX(3px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 8px 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider:not(:empty)::before {
    margin-right: 12px;
}

.auth-divider:not(:empty)::after {
    margin-left: 12px;
}

.btn-google-auth {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #171923;
    border: 1px solid var(--auth-border);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-google-auth:hover {
    background-color: #202330;
    border-color: rgba(255, 255, 255, 0.1);
}

.google-icon {
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--auth-btn-bg);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .btn-menu-toggle {
        display: block;
    }
    .main-columns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: none;
    }
    .promo-banners {
        grid-template-columns: 1fr;
    }
    .metrics-container {
        flex-direction: column;
    }
}

/* User Dropdown Menu Styles */
.user-menu-wrapper {
    position: relative;
}

.btn-user-profile {
    background: var(--primary); /* Cam của Zermango */
    color: white;
    padding: 3px 12px 3px 3px; /* Thu hẹp padding trái để avatar sát viền */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm); /* Bo góc nhẹ */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    transition: var(--transition);
}

.btn-user-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.btn-user-profile img.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px; /* Avatar hình vuông bo góc nhỏ */
    object-fit: cover;
}

.btn-user-profile .nav-username {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.3px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.dropdown-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-menu {
    list-style: none;
    padding: 8px 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a i {
    width: 16px;
    height: 16px;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dropdown-menu li a.text-primary {
    color: var(--primary);
}

.dropdown-menu li.logout-item {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 4px;
}

.dropdown-menu li.logout-item a {
    color: var(--accent-purple);
}

.dropdown-menu li.logout-item a:hover {
    background-color: rgba(139, 92, 246, 0.05);
}

/* Page Section Routing */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Recharge Layout Style */
.recharge-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.recharge-header-info {
    text-align: center;
    margin-bottom: 24px;
}

.recharge-header-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recharge-header-info h2 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.recharge-header-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.highlight-green {
    color: var(--accent-green);
    font-weight: 800;
}

.recharge-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.recharge-tab {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recharge-tab i {
    width: 16px;
    height: 16px;
}

.recharge-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.recharge-tab.active {
    border-color: rgba(95, 107, 240, 0.4);
    background-color: rgba(95, 107, 240, 0.05);
    color: #5f6bf0;
    box-shadow: 0 0 10px rgba(95, 107, 240, 0.1);
}

/* Recharge Form Box */
.recharge-form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-box-header h3 {
    font-size: 1rem;
    font-weight: 800;
}

.badge-pill-green {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-amount {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-amount:hover, .btn-amount.active {
    border-color: rgba(95, 107, 240, 0.4);
    background-color: rgba(95, 107, 240, 0.03);
    color: #5f6bf0;
}

/* Custom Input */
.custom-amount-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-amount-wrapper label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-amount-input-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--auth-input-bg);
    transition: var(--transition);
}

.custom-amount-input-box:focus-within {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(95, 107, 240, 0.1);
}

.currency-prefix {
    background-color: rgba(95, 107, 240, 0.1);
    color: #5f6bf0;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
}

.custom-amount-input-box input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 0.9rem;
    padding: 0 16px;
    font-weight: 600;
}

/* Recharge submit button */
.btn-recharge-submit {
    background-color: #5f6bf0;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(95, 107, 240, 0.2);
}

.btn-recharge-submit:hover {
    background-color: #4d59db;
    box-shadow: 0 6px 16px rgba(95, 107, 240, 0.3);
    transform: translateY(-1px);
}

/* Card Recharge Form Layout */
.card-recharge-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-row .form-group {
    width: 100%;
}

.form-row .input-wrapper input, .form-row .input-wrapper select {
    width: 100%;
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-row .input-wrapper input:focus, .form-row .input-wrapper select:focus {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(95, 107, 240, 0.1);
}

/* Custom Select styling */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Add custom dropdown indicator arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper:focus-within::after {
    border-top-color: var(--text-primary);
    transform: translateY(-50%) rotate(180deg);
}

/* Helper Box */
.helper-info-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.helper-info-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Orders Page Styles */
.orders-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.orders-title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.orders-title-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-title-header h2 i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.order-product-image {
    flex-shrink: 0;
}

.mock-product-thumb {
    width: 140px;
    height: 90px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.mock-product-thumb i {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
}

.mock-product-thumb span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.order-main-details {
    flex-grow: 1;
}

.order-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-product-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.order-status-badge {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.order-metadata-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-value.text-primary {
    color: var(--primary);
    font-weight: 700;
}

.order-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.note-box.admin-note {
    border-color: rgba(249, 115, 22, 0.15);
    background-color: rgba(249, 115, 22, 0.01);
}

.note-heading {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.note-heading.orange {
    color: var(--primary);
}

.note-content {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.key-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.key-text {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.key-text code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ef4444;
    font-family: monospace;
}

.btn-copy-key {
    background-color: #171923;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-copy-key:hover {
    background-color: #202330;
    color: var(--text-primary);
}

.btn-copy-key i {
    width: 14px;
    height: 14px;
}

/* Responsive orders */
@media (max-width: 768px) {
    .order-card-top {
        flex-direction: column;
    }
    .order-metadata-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mock-product-thumb {
        width: 100%;
        height: 120px;
    }
}

/* Product Section & Grid Layout */
.product-grid-section {
    margin-top: 30px;
    width: 100%;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Filter tags */
.filter-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-tag.active {
    border-color: rgba(95, 107, 240, 0.4);
    background-color: rgba(95, 107, 240, 0.05);
    color: #5f6bf0;
    box-shadow: 0 0 10px rgba(95, 107, 240, 0.15);
}

/* Cards Container */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.product-grid-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.product-grid-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #000;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.stock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-body-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-tag-badge {
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 800;
    margin-bottom: 8px;
    display: inline-block;
}

.card-prod-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.prod-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.prod-features-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-prod-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-bottom: 16px;
}

.card-prod-stats strong {
    color: var(--text-primary);
}

.card-prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.price-from {
    display: flex;
    flex-direction: column;
}

.price-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}

.price-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #5f6bf0;
}

.btn-grid-buy {
    background-color: #5f6bf0;
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(95, 107, 240, 0.2);
    border: none;
}

.btn-grid-buy:hover {
    background-color: #4d59db;
    transform: translateY(-1px);
}

.btn-grid-buy i {
    width: 14px;
    height: 14px;
}

/* Responsive adjustment for product grid */
@media (max-width: 992px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Purchase Modal Styles */
.purchase-modal-card {
    max-width: 820px;
    width: 95%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.purchase-modal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.purchase-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.purchase-modal-body {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    gap: 20px;
}

/* Left side */
.pm-body-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.pm-banner-wrapper {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #000;
}

.pm-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-body-left h4 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.pm-body-left .prod-features-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-body-left .prod-features-list li {
    font-size: 0.74rem;
    line-height: 1.3;
}

/* Right side */
.pm-body-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pm-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-large-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #5f6bf0;
}

.pm-stats-subtext {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pm-stats-subtext strong {
    color: var(--text-secondary);
}

.pm-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-sec-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Package plans selection */
.package-plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar for plan list */
.package-plans-list::-webkit-scrollbar {
    width: 4px;
}

.package-plans-list::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

.plan-item-box {
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.plan-item-box:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
}

.plan-item-box.active {
    border-color: rgba(95, 107, 240, 0.4);
    background-color: rgba(95, 107, 240, 0.04);
}

.plan-left-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-stock {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.plan-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #5f6bf0;
}

/* Quantity controls */
.quantity-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--auth-input-bg);
}

.quantity-controls button {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-controls button:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.quantity-controls input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: none;
    outline: none;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.qty-available {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.qty-available strong {
    color: #5f6bf0;
}

/* Discount code input wrapper */
.discount-code-wrapper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--auth-input-bg);
    height: 34px;
}

.discount-code-wrapper input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 0.8rem;
    padding: 0 12px;
}

.btn-apply-discount {
    background-color: #2e334a;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-apply-discount:hover {
    background-color: #3b4260;
    color: var(--text-primary);
}

/* Invoice list summary */
.invoice-summary-box {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.invoice-row.border-top-dashed {
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    margin-top: 2px;
}

.text-blue {
    color: #5f6bf0;
    font-weight: 700;
}

.text-red {
    color: #ef4444;
    font-weight: 800;
}

/* Submit payment button */
.btn-checkout-submit {
    background-color: #5f6bf0;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(95, 107, 240, 0.25);
    text-align: center;
    width: 100%;
}

.btn-checkout-submit:hover {
    background-color: #4d59db;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .purchase-modal-body {
        grid-template-columns: 1fr;
    }
    .pm-body-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
    }
}

/* Bot FreeFire Page & Tasks Layout */
/* Tasks Page & Tasks Layout (Light Theme Mockup) */
#page-tasks {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    color: #1e293b;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bot-page-wrapper {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0;
}

.bot-header-info {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.bot-header-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.bot-header-info p {
    font-size: 0.88rem;
    color: #64748b;
}

.xu-balance-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.xu-balance-badge i {
    color: #10b981;
    width: 18px;
    height: 18px;
}

.tasks-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .tasks-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tasks-grid-container {
        grid-template-columns: 1fr;
    }
    .xu-balance-badge {
        position: static;
        margin-top: 10px;
        align-self: flex-start;
    }
}

.task-card {
    background-color: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.task-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.limit-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.task-banner-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.task-banner-icon i {
    width: 28px;
    height: 28px;
}

/* Themes colors */
.theme-blue .task-banner { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.theme-green .task-banner { background: linear-gradient(135deg, #059669, #10b981); }
.theme-orange .task-banner { background: linear-gradient(135deg, #ea580c, #f97316); }
.theme-teal .task-banner { background: linear-gradient(135deg, #0d9488, #14b8a6); }

.task-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.task-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.task-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
}

.task-status-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border: none;
    border-radius: 8px;
    padding: 10px 6px;
    background-color: #f1f5f9;
}

.status-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
}

.status-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
}

.status-val.text-blue { color: #2563eb; }
.status-val.text-green { color: #10b981; }
.status-val.text-orange { color: #f97316; }
.status-val.text-teal { color: #14b8a6; }

.task-reward-box {
    text-align: center;
    background-color: #fffbeb;
    border: 1px dashed #fef3c7;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.8rem;
    color: #b45309;
}

.btn-task-action {
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-blue-task { background-color: #2563eb; }
.btn-blue-task:hover { background-color: #1d4ed8; }
.btn-green-task { background-color: #10b981; }
.btn-green-task:hover { background-color: #059669; }
.btn-orange-task { background-color: #f97316; }
.btn-orange-task:hover { background-color: #ea580c; }
.btn-teal-task { background-color: #14b8a6; }
.btn-teal-task:hover { background-color: #0d9488; }

/* Link Bypass Modal Styles */
.bypass-task-card {
    max-width: 500px;
    width: 90%;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bypass-task-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.bypass-task-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.bypass-task-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bypass-task-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-guide {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-guide strong {
    font-size: 0.8rem;
    color: #5f6bf0;
}

.step-guide p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.btn-go-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    text-decoration: none;
    color: white;
}

.mock-code-generator {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-code-generator code {
    font-family: monospace;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 700;
    background-color: rgba(16, 185, 129, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.code-submit-wrapper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--auth-input-bg);
}

.code-submit-wrapper input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 0.8rem;
    padding: 10px 14px;
}

.code-submit-wrapper button {
    border: none;
    border-left: 1px solid var(--border);
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: #5f6bf0;
    color: white;
    cursor: pointer;
}
.code-submit-wrapper button:hover {
    background-color: #4d59db;
}

/* ==========================================================================
   NEW REDESIGN STYLE SYSTEM (TED EXE STORE STYLE)
   ========================================================================== */

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
    animation: floatParticle 25s infinite linear;
}

.particle.p1 { width: 120px; height: 120px; top: 10%; left: 15%; animation-duration: 20s; }
.particle.p2 { width: 80px; height: 80px; top: 70%; left: 80%; animation-duration: 28s; }
.particle.p3 { width: 150px; height: 150px; top: 40%; left: 75%; animation-duration: 35s; }
.particle.p4 { width: 100px; height: 100px; top: 80%; left: 20%; animation-duration: 22s; }
.particle.p5 { width: 60px; height: 60px; top: 25%; left: 60%; animation-duration: 18s; }
.particle.p6 { width: 110px; height: 110px; top: 5%; left: 85%; animation-duration: 30s; }
.particle.p7 { width: 90px; height: 90px; top: 55%; left: 10%; animation-duration: 25s; }
.particle.p8 { width: 130px; height: 130px; top: 85%; left: 50%; animation-duration: 32s; }

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) rotate(180deg) scale(1.1); opacity: 0.6; }
    100% { transform: translateY(0) rotate(360deg) scale(1); opacity: 0.3; }
}

/* Shop Header Card */
.shop-header-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.header-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-icon-box {
    width: 52px;
    height: 52px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-icon-box i {
    width: 26px;
    height: 26px;
}

.shop-title-desc h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shop-title-desc p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.theme-toggle-btn i {
    width: 18px;
    height: 18px;
}

/* User Section in Header */
.header-user-section {
    display: flex;
    align-items: center;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-menu-wrapper {
    position: relative;
}

.user-menu-wrapper .user-dropdown {
    right: 0;
    left: auto;
    top: calc(100% + 10px);
}

.shop-nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.shop-nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.nav-tab-btn {
    padding: 10px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-tab-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.nav-tab-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.nav-tab-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Alert Banner */
.shop-alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
}

.shop-alert-banner .alert-icon {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.shop-alert-banner .alert-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Accordion Product Section */
.product-accordion-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.category-accordion-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-card-hover);
}

.accordion-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-logo-wrapper {
    width: 44px;
    height: 44px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-logo-wrapper i {
    width: 20px;
    height: 20px;
}

.cat-title-desc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cat-title-desc p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chevron-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-card);
}

.category-accordion-card.active .accordion-body {
    max-height: 2000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
    border-top: 1px solid var(--border);
}

.plan-list-rows {
    padding: 8px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background-color: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border);
    transition: var(--transition);
}

body.dark .plan-row-item {
    background-color: rgba(255, 255, 255, 0.02);
}

.plan-row-item:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.02);
    transform: translateY(-1px);
}

.plan-duration-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-mini {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 4px;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.plan-stock-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.plan-price-buy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.plan-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-buy-now {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.btn-buy-now:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
}

.btn-buy-now i {
    width: 14px;
    height: 14px;
}

/* Chatbot Floating Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    cursor: pointer;
}

.chat-bubble {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: bounceBubble 2s infinite ease-in-out;
}

.chat-bubble span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.chat-avatar-box {
    width: 56px;
    height: 56px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.chatbot-widget:hover .chat-avatar-box {
    transform: scale(1.08) rotate(5deg);
}

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

/* Adjustments for modals in light theme */
body.light .modal-card {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

body.light .modal-card h2, 
body.light .modal-card h3 {
    color: #0f172a;
}

body.light .modal-close {
    color: #64748b;
    background-color: #f1f5f9;
}

body.light .modal-close:hover {
    background-color: #e2e8f0;
}

body.light .auth-form label {
    color: #475569;
}

body.light .input-wrapper input {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

body.light .input-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

body.light .pm-body-left {
    border-right: 1px solid #e2e8f0;
}

body.light .pm-features-box {
    background-color: #f8fafc;
}

body.light .pm-large-price {
    color: #3b82f6;
}

body.light .plan-item-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light .plan-item-box.active {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

body.light .plan-item-box.active .plan-title {
    color: #1e293b;
}

body.light .plan-item-box.active .plan-price-num {
    color: #3b82f6;
}

body.light .invoice-box {
    background-color: #f8fafc;
}

body.light .invoice-row.border-top-dashed {
    border-top-color: #e2e8f0;
}

@media (max-width: 768px) {
    .shop-header-card {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    .chat-bubble {
        display: none; /* Hide chat bubble on small screens */
    }
}

/* ==========================================================================
   DOWNLOADS PAGE STYLES (TẢI XUỐNG)
   ========================================================================== */
.downloads-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.dl-search-wrapper {
    position: relative;
    width: 100%;
}

.dl-search-wrapper input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px 14px 44px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.dl-search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.dl-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.dl-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.dl-filter-tag {
    padding: 8px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.dl-filter-tag:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.dl-filter-tag.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.downloads-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .downloads-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .downloads-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .downloads-grid-container {
        grid-template-columns: 1fr;
    }
}

.dl-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.dl-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.dl-card-media {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.dl-badge-top {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    align-self: flex-start;
    z-index: 2;
}

.dl-badge-top.red { background-color: #ef4444; }
.dl-badge-top.purple { background-color: #8b5cf6; }
.dl-badge-top.blue { background-color: #3b82f6; }
.dl-badge-top.green { background-color: #10b981; }

.dl-badge-ob {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #fbbf24;
    z-index: 2;
}

.dl-banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    height: 60px;
    z-index: 1;
}

.dl-banner-overlay h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
}

.dl-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.dl-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-all;
}

.dl-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dl-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 0;
}

.dl-features li {
    margin: 0;
    padding: 0;
}

.dl-features li.check { color: #10b981; }
.dl-features li.cross { color: #ef4444; }

.dl-meta-info {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
}

.dl-meta-info i {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.dl-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-dl-now {
    flex-grow: 1;
    background-color: var(--primary);
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-dl-now:hover {
    background-color: #2563eb;
}

.btn-dl-copy {
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dl-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dl-video-btn-row {
    margin-top: 4px;
}

.btn-dl-video {
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background-color: rgba(59, 130, 246, 0.03);
    color: #3b82f6 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-dl-video:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

/* Top Nap Leaderboard Styles */
.top-nap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition);
}

.top-nap-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    background-color: var(--bg-card-hover);
}

.top-nap-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.top-nap-rank.rank-1 {
    background-color: #fbbf24;
    color: #000;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.top-nap-rank.rank-2 {
    background-color: #cbd5e1;
    color: #000;
    box-shadow: 0 2px 8px rgba(203, 213, 225, 0.3);
}

.top-nap-rank.rank-3 {
    background-color: #b45309;
    color: #fff;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

.top-nap-rank.rank-4 {
    background-color: var(--border);
    color: var(--text-secondary);
}

.top-nap-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.top-nap-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.top-nap-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.top-nap-amount {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- ADMIN DASHBOARD WHITE THEME --- */
.admin-dashboard-container {
    background-color: #f8fafc !important;
    border-radius: var(--radius-lg);
    padding: 28px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    color: #1e293b !important;
}

.admin-dashboard-container .section-title {
    color: #0f172a !important;
}

.admin-dashboard-container .metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px -2px rgba(148, 163, 184, 0.08) !important;
    transition: var(--transition);
}

.admin-dashboard-container .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(148, 163, 184, 0.12) !important;
}

.admin-dashboard-container .admin-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px -2px rgba(148, 163, 184, 0.08) !important;
    border-radius: var(--radius-lg);
}

.admin-dashboard-container .admin-card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.admin-dashboard-container .admin-card-title {
    color: #0f172a !important;
}

.admin-dashboard-container table {
    background: #ffffff !important;
    width: 100%;
}

.admin-dashboard-container thead {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.admin-dashboard-container th {
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    border: none !important;
}

.admin-dashboard-container td {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.88rem !important;
    vertical-align: middle !important;
    background: #ffffff !important;
}

.admin-dashboard-container tr:hover td {
    background-color: #f8fafc !important;
}

.admin-dashboard-container .admin-search-wrapper {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    transition: var(--transition);
}

.admin-dashboard-container .admin-search-wrapper:focus-within {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.admin-dashboard-container .admin-search-input {
    color: #0f172a !important;
}

/* Beautiful Action Buttons */
.btn-admin-recharge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
    transition: var(--transition) !important;
    cursor: pointer;
}

.btn-admin-recharge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3) !important;
    filter: brightness(1.05);
}

.btn-admin-delete {
    background: #ffffff !important;
    color: #ef4444 !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
    cursor: pointer;
}

.btn-admin-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2) !important;
}

.btn-admin-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2) !important;
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3) !important;
    filter: brightness(1.05);
}




/* --- FULLSCREEN ADMIN APP --- */
#admin-app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: #f0f4f8;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    background-color: #1e293b;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.admin-sidebar-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
}

.admin-sidebar-nav li {
    margin-bottom: 5px;
}

.admin-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-sidebar-nav li a i {
    width: 20px;
    height: 20px;
}

.admin-sidebar-nav li a:hover, .admin-sidebar-nav li a.active {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-left: 4px solid #ef4444; /* Red accent matching banner */
}

.admin-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#btn-back-to-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

#btn-back-to-store:hover {
    background-color: rgba(255,255,255,0.2);
}

.admin-main {
    padding: 30px 40px;
    height: 100vh;
    overflow-y: auto;
}

.admin-welcome-banner {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.4);
}

.admin-welcome-banner h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 800;
}

.admin-welcome-banner p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-subtext i {
    width: 14px;
    height: 14px;
}

.metric-icon {
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon i {
    width: 28px;
    height: 28px;
}

.bg-primary-light { background: rgba(59,130,246,0.1); }
.text-primary { color: #3b82f6; }

.bg-purple-light { background: rgba(139,92,246,0.1); }
.text-purple { color: #8b5cf6; }

.bg-success-light { background: rgba(16,185,129,0.1); }
.text-success { color: #10b981; }

.text-warning { color: #f59e0b; }

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}

.admin-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 16px;
    width: 300px;
}

.admin-search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 16px 24px;
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}

/* ─── SITE FOOTER ─────────────────────────────────────── */
.site-footer {
    margin-top: 16px;
    padding: 40px 24px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-box {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.footer-logo-box svg {
    width: 18px;
    height: 18px;
}

.footer-store-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.5;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.footer-dot {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

body.dark .site-footer {
    border-top-color: var(--border);
}

.btn-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35) !important;
    transition: all 0.3s ease !important;
}
.btn-red-gradient:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
}

