/* style.css */
/* Premium CSS Stylesheet for EarnNova Telegram Mini App */

:root {
    --bg-color: #060312;
    --card-bg: rgba(14, 8, 32, 0.85);
    --card-glow: rgba(138, 43, 226, 0.06);
    --border-color: rgba(138, 43, 226, 0.15);
    
    --purple: #8a2be2;
    --purple-glow: rgba(138, 43, 226, 0.3);
    --green: #00e676;
    --green-glow: rgba(0, 230, 118, 0.3);
    --blue: #00b0ff;
    --blue-glow: rgba(0, 176, 255, 0.3);
    --gold: #ffea00;
    --gold-glow: rgba(255, 234, 0, 0.3);
    --red: #ff1744;
    --red-glow: rgba(255, 23, 68, 0.3);
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.3);

    --text-white: #ffffff;
    --text-primary: #f1eff7;
    --text-secondary: #8c88a5;
    
    --bottom-nav-bg: rgba(8, 4, 20, 0.95);
    --bottom-nav-border: rgba(138, 43, 226, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* App container */
#app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px; /* Space for nav */
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.12), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 176, 255, 0.08), transparent 45%);
}

/* Screen animations */
.screen {
    display: none;
    padding: 20px 16px;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: block;
}

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

.hidden {
    display: none !important;
}

/* Headers */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.screen-header.backable {
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.screen-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

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

.user-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border: 2px solid rgba(138, 43, 226, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.user-greeting {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.sub-greeting {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
}

/* Toast alert overlay */
#app-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 10, 32, 0.95);
    border: 1.5px solid var(--purple);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(138, 43, 226, 0.3);
    z-index: 1000;
    width: 85%;
    max-width: 380px;
    text-align: center;
    animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        top: -50px;
    }
    to {
        opacity: 1;
        top: 24px;
    }
}

/* Premium Card (USDT card background with glowing effects) */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: inset 0 0 15px var(--card-glow), 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.balance-card {
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

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

.balance-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.eye-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.balance-value {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.balance-converted {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.wallet-decor {
    position: absolute;
    right: 20px;
    bottom: -15px;
    opacity: 0.12;
}

.decor-wallet-icon {
    width: 110px;
    height: 110px;
    color: var(--purple);
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
    text-align: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Colors and Glows */
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }

.bg-purple-glow { background-color: rgba(138, 43, 226, 0.1); border: 1.5px solid rgba(138, 43, 226, 0.25); color: var(--purple); }
.bg-green-glow { background-color: rgba(0, 230, 118, 0.1); border: 1.5px solid rgba(0, 230, 118, 0.25); color: var(--green); }
.bg-gold-glow { background-color: rgba(255, 234, 0, 0.1); border: 1.5px solid rgba(255, 234, 0, 0.25); color: var(--gold); }
.bg-blue-glow { background-color: rgba(0, 176, 255, 0.1); border: 1.5px solid rgba(0, 176, 255, 0.25); color: var(--blue); }
.bg-red-glow { background-color: rgba(255, 23, 68, 0.1); border: 1.5px solid rgba(255, 23, 68, 0.25); color: var(--red); }
.bg-cyan-glow { background-color: rgba(0, 229, 255, 0.1); border: 1.5px solid rgba(0, 229, 255, 0.25); color: var(--cyan); }

/* Option Menu Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.option-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:active {
    transform: scale(0.95);
    background: rgba(138, 43, 226, 0.05);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

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

.option-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Daily Bonus Card styling */
.daily-bonus-card {
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.daily-bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.daily-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

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

.daily-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.25);
    color: var(--red);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.daily-timer i {
    width: 14px;
    height: 14px;
}

/* Daily streak dots timeline */
.streak-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    padding: 0 10px;
}

.streak-progress::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 22px;
}

.day-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-day.completed .day-dot {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
}

.streak-day.completed .day-dot::after {
    content: '✓';
    color: var(--bg-color);
    font-size: 11px;
    font-weight: 800;
}

.streak-day.active .day-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.day-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.streak-day.active .day-num {
    color: var(--gold);
    font-weight: 700;
}

.claim-btn {
    background: linear-gradient(135deg, var(--gold), #f57f17);
    border: none;
    color: #3e2723;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 234, 0, 0.2);
}

.claim-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.claim-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
}

/* Trustrow badges */
.trust-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Channels Join Tasks List */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 65%;
}

.task-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-reward {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}

.task-limits {
    font-size: 10px;
    color: var(--text-secondary);
}

.task-action-right {
    display: flex;
    gap: 8px;
}

.task-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-btn-join {
    background: rgba(0, 176, 255, 0.12);
    border: 1px solid rgba(0, 176, 255, 0.25);
    color: var(--blue);
}

.task-btn-join:active {
    background: rgba(0, 176, 255, 0.2);
}

.task-btn-verify {
    background: var(--purple);
    color: white;
}

.task-btn-verify:active {
    transform: scale(0.95);
}

.task-status-completed {
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Wallet and Payout Form */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-left: 3px solid var(--purple);
    padding-left: 8px;
}

.balance-breakdown-card, .payout-action-card, .earning-history-card, .referral-sharing-card, .leaderboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.breakdown-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breakdown-icon i {
    width: 18px;
    height: 18px;
}

.bg-green-dim { background-color: rgba(0, 230, 118, 0.08); color: var(--green); }
.bg-gold-dim { background-color: rgba(255, 234, 0, 0.08); color: var(--gold); }

.breakdown-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.breakdown-desc {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
}

.breakdown-val {
    font-size: 15px;
    font-weight: 700;
}

/* Custom Payout Form Controls */
.form-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.custom-select, .custom-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: var(--text-white);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.15);
}

.min-amount-helper {
    font-size: 11px;
    margin-top: 4px;
}

.submit-withdraw-btn {
    width: 100%;
    background: var(--purple);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-withdraw-btn:active {
    transform: scale(0.97);
}

/* History Ledger List */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.view-all-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-icon-box i {
    width: 14px;
    height: 14px;
}

.bg-green-dim-circle { background-color: rgba(0, 230, 118, 0.1); color: var(--green); }
.bg-red-dim-circle { background-color: rgba(255, 23, 68, 0.1); color: var(--red); }
.bg-blue-dim-circle { background-color: rgba(0, 176, 255, 0.1); color: var(--blue); }

.tx-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.tx-date {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
}

.tx-amount {
    font-size: 14px;
    font-weight: 700;
}

/* Profile Menu */
.profile-header-card {
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border: 2px solid rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-fullname {
    font-size: 17px;
    font-weight: 700;
    color: white;
}

.profile-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.profile-id-txt {
    font-size: 11px;
    color: var(--text-secondary);
}

.profile-id-txt code {
    color: var(--blue);
    font-weight: 600;
}

.copy-id-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.copy-id-btn i {
    width: 12px;
    height: 12px;
}

.level-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.level-badge {
    color: var(--purple);
}

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

.xp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--purple), var(--blue));
    border-radius: 4px;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
}

.prof-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prof-stat-val {
    font-size: 15px;
    font-weight: 700;
}

.prof-stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.border-sides {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Referral link box */
.ref-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ref-link-box {
    display: flex;
    gap: 8px;
}

.ref-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--text-secondary);
    padding: 10px;
    font-size: 12px;
    outline: none;
}

.copy-ref-btn {
    background: linear-gradient(135deg, var(--purple), #4b0082);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-ref-btn:active {
    transform: scale(0.96);
}

/* Profile Menu Lists */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.menu-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:active {
    background: rgba(138, 43, 226, 0.05);
}

.menu-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.menu-item-label i {
    width: 18px;
    height: 18px;
}

.chevron {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Leaderboards row custom formatting */
.user-rank-box {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    background: linear-gradient(to right, rgba(138, 43, 226, 0.15), var(--card-bg));
}

.user-rank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--purple);
    color: white;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-rank-label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.user-rank-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.user-rank-val {
    font-size: 16px;
    font-weight: 800;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.lead-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-rank {
    font-size: 13px;
    font-weight: 800;
    width: 24px;
    text-align: center;
}

.lead-rank.top-1 { color: #ffd700; font-size: 16px; }
.lead-rank.top-2 { color: #c0c0c0; font-size: 15px; }
.lead-rank.top-3 { color: #cd7f32; font-size: 14px; }

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.lead-avatar.top-1 { border-color: #ffd700; }
.lead-avatar.top-2 { border-color: #c0c0c0; }
.lead-avatar.top-3 { border-color: #cd7f32; }

.lead-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.lead-earned {
    font-size: 13px;
    font-weight: 700;
}

/* Support Help center & FAQ styling */
.support-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.support-header-decor {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.1);
    border: 1.5px solid rgba(138, 43, 226, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.15);
}

.support-giant-icon {
    width: 36px;
    height: 36px;
    color: var(--purple);
}

.support-headline {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.support-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.support-contact-btn {
    background: linear-gradient(135deg, #00b0ff, #0077c2);
    border: none;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 176, 255, 0.25);
}

.support-contact-btn:active {
    transform: scale(0.97);
}

.faq-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
}

.faq-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 72px;
    background: var(--bottom-nav-bg);
    border-top: 1px solid var(--bottom-nav-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    backdrop-filter: blur(20px);
    z-index: 500;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 60px;
}

.nav-tab i {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.nav-tab span {
    font-size: 10px;
    font-weight: 600;
}

.nav-tab.active {
    color: var(--purple);
}

.nav-tab.active i {
    transform: scale(1.1);
    stroke-width: 2.5;
}

.nav-center-btn {
    background: var(--bg-color);
    border: 2px solid var(--bottom-nav-border);
    border-radius: 50%;
    width: 62px;
    height: 62px;
    position: relative;
    top: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.nav-center-icon {
    background: linear-gradient(135deg, var(--purple), #4b0082);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 12px var(--purple-glow);
    transition: all 0.25s ease;
}

.nav-center-icon:active {
    transform: scale(0.9);
    box-shadow: 0 0 4px var(--purple-glow);
}

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

.play-icon-offset {
    margin-left: 2px;
}

/* Spinner / Loading indicator */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.icon-pulse {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--purple); }
    100% { transform: scale(1); }
}

/* Watch Ads Screen styling */
.ads-overview-card {
    padding: 20px;
    margin-bottom: 20px;
}

.ads-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.ads-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ads-progress-bar-container {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.ads-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--purple), var(--cyan));
    border-radius: 5px;
    transition: width 0.4s ease;
}

.ads-progress-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    min-width: 45px;
    text-align: right;
}

.ads-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ads-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.info-box-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-box-val {
    font-size: 14px;
    font-weight: 700;
}

/* Play trigger container */
.ad-trigger-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.ad-trigger-icon-container {
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-trigger-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), #4b0082);
    box-shadow: 0 0 25px var(--purple-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.ad-trigger-icon-container:active .ad-trigger-circle {
    transform: scale(0.9);
    box-shadow: 0 0 10px var(--purple-glow);
}

.giant-play-icon {
    width: 34px;
    height: 34px;
    color: white;
    margin-left: 5px; /* offset to center play icon */
}

.ad-trigger-circle-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    opacity: 0;
    animation: pulseRipple 2.5s infinite;
    z-index: 5;
}

@keyframes pulseRipple {
    0% {
        width: 90px;
        height: 90px;
        opacity: 0.6;
    }
    100% {
        width: 135px;
        height: 135px;
        opacity: 0;
    }
}

.ad-trigger-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.ad-trigger-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.5;
}

.ad-countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.25);
    color: var(--red);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 16px;
}

.ad-countdown-timer i {
    width: 14px;
    height: 14px;
}
