/* Shared Dashboard/Finance Styles */
:root {
    /* Map to Premium Theme */
    --yellow-accent: var(--gold-primary);
    /* #fbbf24 */
    --dark-bg: var(--bg-app);
    /* #000000 */
    --card-bg: var(--bg-surface);
    /* #18181b */
    --border-color: rgba(255, 255, 255, 0.08);
    /* var(--glass-border) */
    --text-primary: var(--text-primary);
    /* #f4f4f5 */
    --text-secondary: var(--text-secondary);
    /* #a1a1aa */

    /* Additional Accents */
    --pink-accent: #db2777;
    /* rose-600 */
    --red-accent: #dc2626;
    /* red-600 */
    --teal-accent: #14b8a6;
    /* teal-500 */
}

/* Utility Classes */
.yellow-accent {
    color: var(--gold-primary) !important;
}

.yellow-accent-bg {
    background-color: var(--gold-primary) !important;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    padding-top: 61px;
    padding-bottom: 70px;
    /* Default for pages with footer */
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

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

/* Sticky Sub-Header (for pages with back button + title) */
/* NOTE: .header-sticky, .footer-sticky, .nav-item are defined in index.css (single source of truth) */
.sub-header-sticky {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    z-index: 30;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

/* Cards */
.channel-card,
.dashboard-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.channel-card:hover,
.dashboard-card:hover {
    transform: translateY(-2px);
    background-color: #27272a;
    /* zinc-800 */
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modal Styles (Language, etc.) */
#language-modal.flex {
    display: flex;
}

#language-modal-content {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(100%);
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.lang-option-btn {
    width: 100%;
    padding: 12px;
    background-color: #27272a;
    color: var(--text-primary);
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.lang-option-btn:hover {
    background-color: #3f3f46;
}

.lang-option-btn.active {
    background-color: rgba(251, 191, 36, 0.1);
    /* gold-primary with opacity */
    color: var(--gold-primary);
    font-weight: 700;
    border-color: var(--gold-primary);
}

/* VIP Table Styles */
.vip-table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

/* Tabs */
.tab-btn {
    color: var(--text-secondary);
    border-color: transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Generic Modal (Center) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Activity Page Styles */
.activity-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.activity-card:hover {
    background-color: #27272a;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.custom-banner {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.custom-banner:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

/* Specific Banners */
.banner-rocket {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(9, 9, 11, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-rocket:hover {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.icon-bg {
    background-color: rgba(251, 191, 36, 0.1);
    /* gold-primary 10% */
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utilities */
.text-gold {
    color: var(--gold-primary) !important;
}

.bg-gold-soft {
    background-color: rgba(251, 191, 36, 0.1) !important;
}