/* Pika - CSS Design System and Mobile Simulator Styling */

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

:root {
    --bg-dark: #09090b;
    --bg-deep: #0f0e17;
    --accent-yellow: #f59e0b;
    --accent-yellow-glow: rgba(245, 158, 11, 0.4);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #040406;
    background-image: radial-gradient(circle at 20% 30%, #1e1b4b 0%, #040406 80%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* App Simulator Frame for Desktop View */
.phone-simulator {
    width: 410px;
    height: 840px;
    background: #000;
    border-radius: 48px;
    border: 12px solid #222;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 0 4px #111,
                0 0 40px var(--accent-purple-glow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Screen Notch / Dynamic Island */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-notch::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #0c0f1d;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #1a1e36;
}

.phone-screen {
    flex: 1;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    background-image: linear-gradient(135deg, #09090b 0%, #171026 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Responsive Overrides - Fullscreen on Mobile */
@media (max-width: 480px) {
    body {
        background: #09090b;
    }
    .phone-simulator {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .phone-notch {
        display: none; /* Hide notch on real phone view */
    }
}

/* Glass Card Utility */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}
.text-gradient-gold {
    background: linear-gradient(135deg, #ffe066 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, #c084fc 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inputs and Forms */
.input-group {
    margin-bottom: 16px;
    position: relative;
}
.input-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.input-field:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-glow);
    background: rgba(255, 255, 255, 0.08);
}
.input-icon {
    position: absolute;
    right: 14px;
    top: 36px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--accent-yellow-glow);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}
.btn-secondary:active {
    transform: translateY(0);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none !important; /* Lock inactive screens to display: none to prevent mobile browser auto-scroll / viewport shift bugs */
    flex-direction: column;
    padding: 36px 20px 24px 20px; /* Account for simulator notch */
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.app-screen.active {
    display: flex !important; /* Force flex display strictly when active */
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 20;
}

/* Splash Screen specifically */
#screen-splash {
    background: radial-gradient(circle at center, #2e1065 0%, #09090b 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
}
#screen-splash:not(.active) {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}
.splash-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 56px;
    font-family: 'Outfit', sans-serif;
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    margin-bottom: 24px;
    animation: splashPulse 2s infinite alternate;
}
.splash-loader {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}
.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #fbbf24);
    animation: loaderProgress 2.5s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Header Component */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 10px;
}
.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4c1d95;
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}
.verification-badge {
    color: var(--info);
    font-size: 14px;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
}
.header-actions {
    display: flex;
    gap: 10px;
}
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.icon-btn .badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid #000;
}

/* Main Dashboard Elements */
.dashboard-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

/* Balance Display Widget */
.balance-widget {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.4) 0%, rgba(20, 83, 136, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.balance-value {
    font-size: 34px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.balance-currency {
    font-size: 16px;
    color: var(--accent-yellow);
    font-weight: 700;
}
.balance-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    margin-top: 5px;
}
.gem-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.gem-icon {
    color: #f43f5e;
}
.streak-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.streak-icon {
    color: #ff7849;
}

/* Active Mining Widget (Centerpiece) */
.mining-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    position: relative;
}

/* Glowing Rotating Mining Core */
.mining-core-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.mining-orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
    pointer-events: none;
}
.phone-screen.mining-active .mining-orbit-ring {
    border-color: var(--accent-yellow);
    animation-duration: 8s;
}
.mining-halo {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-yellow-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.phone-screen.mining-active .mining-halo {
    opacity: 1;
    animation: pulseHalo 2s ease-in-out infinite alternate;
}
.mining-core-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 4px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.mining-core-btn:hover {
    transform: scale(1.05);
}
.phone-screen.mining-active .mining-core-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-color: #ffe066;
    box-shadow: 0 0 35px var(--accent-yellow-glow);
}
.mining-core-btn i {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}
.phone-screen.mining-active .mining-core-btn i {
    color: #000;
    animation: rotateAura 3s linear infinite;
}
.mining-core-btn span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.phone-screen.mining-active .mining-core-btn span {
    color: #000;
}

/* Wave particles when mining */
.mining-wave {
    position: absolute;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.phone-screen.mining-active .mining-wave {
    animation: emitWave 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
.mining-wave:nth-child(2) {
    animation-delay: 1.5s;
}

/* Mining Info and Status Text */
.mining-status-text {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 6px;
    text-align: center;
}
.mining-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.mining-rate-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #c084fc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mining-rate-badge i {
    color: var(--accent-yellow);
}

/* Bottom Nav bar */
.app-nav {
    height: 70px;
    background: rgba(15, 14, 23, 0.8);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    height: 100%;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.nav-item i {
    font-size: 20px;
}
.nav-item:hover {
    color: var(--text-primary);
}
.nav-item.active {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Drawer Menu */
.sidebar-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(15, 14, 23, 0.96);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 20px 20px 20px;
}
.sidebar-drawer.active {
    transform: translateX(0);
}
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.drawer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}
.drawer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    background-size: cover;
    background-position: center;
}
.drawer-username {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}
.drawer-email {
    font-size: 12px;
    color: var(--text-secondary);
}
.drawer-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.drawer-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.drawer-item i {
    font-size: 18px;
    width: 24px;
    color: var(--text-secondary);
}
.drawer-item.admin-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    margin-top: auto;
}
.drawer-item.admin-btn i {
    color: #c084fc;
}

/* Specific details for transaction history */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}
.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tx-item:last-child {
    border-bottom: none;
}
.tx-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.tx-icon.mining { background: rgba(245, 158, 11, 0.1); color: var(--accent-yellow); }
.tx-icon.referral { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.tx-icon.deposit { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.tx-icon.withdrawal { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.tx-icon.task { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.tx-icon.bonus { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.tx-title {
    font-size: 13px;
    font-weight: 600;
}
.tx-date {
    font-size: 10px;
    color: var(--text-secondary);
}
.tx-right {
    text-align: right;
}
.tx-amount {
    font-size: 14px;
    font-weight: 700;
}
.tx-amount.plus { color: var(--success); }
.tx-amount.minus { color: var(--danger); }
.tx-status-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}
.tx-status-badge.completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.tx-status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.tx-status-badge.failed { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.tx-status-badge.approved { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.tx-status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Leaderboard Page */
.tabs-container {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}
.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}
.leaderboard-item.my-rank {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.leaderboard-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.rank-badge.rank-1 { background: #fbbf24; color: #000; }
.rank-badge.rank-2 { background: #e2e8f0; color: #000; }
.rank-badge.rank-3 { background: #cd7f32; color: #000; }

.leaderboard-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.leaderboard-score {
    font-size: 14px;
    font-weight: 700;
}

/* Tasks items */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 10px;
}
.task-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}
.task-platform-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.task-platform-icon.telegram { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.task-platform-icon.twitter { background: rgba(255, 255, 255, 0.05); color: #f4f4f5; }
.task-platform-icon.youtube { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.task-platform-icon.instagram { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.task-info {
    flex: 1;
}
.task-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.task-reward {
    font-size: 11px;
    color: var(--accent-yellow);
    font-weight: 700;
}
.task-btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.task-btn.claim { background: var(--accent-purple); color: #fff; }
.task-btn.completed { background: rgba(16, 185, 129, 0.15); color: var(--success); cursor: default; }

/* Admin Panel Grid & Tabs */
.admin-scroll {
    flex: 1;
    overflow-y: auto;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.admin-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 12px;
}
.admin-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}
.admin-stat-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 4px;
}

/* Modals */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: #0f0e17;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 350px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
}

/* Support message thread inside support ticket details */
.support-messages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
}
.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
}
.chat-bubble.user {
    background: var(--accent-purple);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.admin {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble-meta {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
}

/* Animations */
@keyframes splashPulse {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 50px rgba(245, 158, 11, 0.7); }
}
@keyframes loaderProgress {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}
@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes rotateAura {
    0% { text-shadow: 0 0 5px var(--accent-yellow-glow); }
    50% { text-shadow: 0 0 20px var(--accent-yellow); }
    100% { text-shadow: 0 0 5px var(--accent-yellow-glow); }
}
@keyframes pulseHalo {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}
@keyframes emitWave {
    0% { width: 120px; height: 120px; opacity: 0.8; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

/* Toast Notifications */
.toast-container {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: rgba(15, 14, 23, 0.95);
    border-left: 4px solid var(--accent-purple);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.active {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

/* ========================================================= */
/* ADVERTISEMENT & OFFERWALL CUSTOM THEME SYSTEMS */
/* ========================================================= */

/* Layout Fix: Prevent floating banner ad and bottom nav from overlapping scrollable dashboard items */
#screen-dashboard .dashboard-scroll,
#screen-wallet .dashboard-scroll,
#screen-staking .dashboard-scroll,
#screen-referral .dashboard-scroll,
#screen-leaderboard .dashboard-scroll {
    padding-bottom: 130px;
}

/* Permanent Banner Ad just above Bottom Nav Bar */
.banner-ad-container {
    position: absolute;
    bottom: 70px; /* Right above the bottom nav bar (70px height) */
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(15, 23, 42, 0.95));
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 85;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
}
.banner-ad-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}
.ad-tag {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 800;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.banner-ad-text {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.banner-ad-claim-btn {
    background: var(--accent-purple);
    border: none;
    outline: none;
    color: #fff;
    font-weight: 800;
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}
.banner-ad-claim-btn:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

/* Fullscreen Mock Video Player Overlay */
.video-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #040406;
    z-index: 2000; /* Above absolutely everything */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.video-ad-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
}
.video-sponsor-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-sponsor-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #000;
}
.video-sponsor-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.video-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.video-countdown-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-yellow);
}
.video-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transition: all 0.2s ease;
}
.video-close-btn.clickable {
    border-color: #fff;
    color: #fff;
    background: var(--danger);
    cursor: pointer;
}
.video-body-canvas {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.video-ad-artwork {
    width: 80%;
    height: 45%;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 2px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    animation: artworkFloat 4s infinite alternate;
}
.artwork-icon {
    font-size: 48px;
    color: var(--accent-yellow);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-yellow-glow);
}
.video-footer {
    padding: 20px 20px 30px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
}
.video-ad-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    backdrop-filter: blur(10px);
}
.cta-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.cta-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: none;
    color: #000;
    font-weight: 800;
    font-size: 10px;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.video-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    border-radius: 2px;
    overflow: hidden;
}
.video-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-yellow);
}

/* Ads dashboard list */
.ad-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}
.ad-card-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
}

@keyframes artworkFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.02); }
}

/* Social Logins */
.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    margin: 20px 0;
}
.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.social-login-separator:not(:empty)::before {
    margin-right: .5em;
}
.social-login-separator:not(:empty)::after {
    margin-left: .5em;
}
.social-auth-grid {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Lucky Spin Wheel */
.wheel-outer-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 20px auto;
}
.wheel-canvas-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #1e1b4b;
    box-shadow: 0 0 20px var(--accent-purple-glow), inset 0 0 10px rgba(0,0,0,0.8);
    overflow: hidden;
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--accent-yellow);
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.wheel-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b 0%, #d97706 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 15px rgba(245, 158, 11, 0.6);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: transform 0.1s;
}
.wheel-spin-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
}

/* Scratch Card */
.scratch-card-container {
    position: relative;
    width: 280px;
    height: 150px;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    background: #0f172a;
}
.scratch-card-reward-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.scratch-card-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
}

/* Settings Options */
.settings-group {
    margin-bottom: 20px;
}
.settings-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.settings-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

/* Boost status indicators */
.active-boost-panel {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px dashed var(--accent-yellow);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.active-boost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-yellow);
}
.active-boost-timer {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 4px;
}

/* Customized Keyframes for Premium Dashboard Screens */
@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseHalo {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 15px rgba(139,92,246,0.3); }
    100% { transform: scale(1.05); opacity: 0.95; box-shadow: 0 0 35px rgba(139,92,246,0.7); }
}



.task-platform-icon.facebook { background: rgba(24, 119, 242, 0.1); color: #1877f2; }
