@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f8;
    color: #1a1a2e;
    padding-bottom: 90px;
    min-height: 100vh;
}

/* ==================== AUTH PAGES ==================== */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

/* ==================== TOP NAVIGATION ==================== */
.top-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.nav-greeting {
    display: flex;
    flex-direction: column;
}

.greeting-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.greeting-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.top-nav h1 {
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 600;
}

.logout-btn {
    background: #f0f2f8;
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.logout-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.15);
}

/* ==================== CONTENT ==================== */
.content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 25px;
}

.page-header h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.page-header p {
    color: #888;
    font-size: 14px;
}

.section-header {
    margin-bottom: 14px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.3px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
}

/* ==================== MESSAGES ==================== */
.message {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
}

.message.success {
    background: #d1fae5;
    color: #059669;
}

/* ==================== FOOTER LINKS ==================== */
.footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   BALANCE HERO CARD
   ============================================================ */
.balance-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 22px;
    padding: 28px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.3);
}

.balance-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.balance-hero-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.eye-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.eye-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.balance-hero-amount {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.balance-hidden {
    font-size: 34px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
}

.balance-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   REFERRAL HERO CARD
   ============================================================ */
.referral-hero {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ec4899, #667eea);
    background-size: 300% 100%;
    border-radius: 22px 22px 0 0;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.referral-hero-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.referral-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.referral-icon-wrap i {
    font-size: 24px;
    color: #764ba2;
}

.referral-hero-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.referral-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    line-height: 1.4;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.section-label i {
    font-size: 13px;
    color: #667eea;
}

/* Referral Link */
.referral-link-section {
    margin-bottom: 16px;
}

.referral-link-row {
    display: flex;
    gap: 0;
}

.referral-link-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #e5e7ee;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    background: #f7f8fc;
    outline: none;
    font-family: 'Inter', monospace;
}

.copy-icon-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.copy-icon-btn:hover {
    filter: brightness(1.1);
}

.copy-icon-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Referral Code */
.referral-code-section {
    margin-bottom: 18px;
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: 0;
}

.referral-code {
    flex: 1;
    padding: 12px 14px;
    background: #f7f8fc;
    border: 1px solid #e5e7ee;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Referral Stats Row */
.referral-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.ref-stat-pill {
    background: #f7f8fc;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ref-stat-pill i {
    font-size: 22px;
    color: #667eea;
}

.ref-stat-info {
    display: flex;
    flex-direction: column;
}

.ref-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.ref-stat-label {
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share CTA */
.share-cta {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

.share-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(102, 126, 234, 0.4);
}

.share-cta:active {
    transform: translateY(0);
}

.share-cta i {
    font-size: 18px;
}

/* ============================================================
   QUICK ACTIONS GRID
   ============================================================ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    animation: fadeInUp 0.7s ease-out;
}

.qa-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.qa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.qa-card:active {
    transform: scale(0.97);
}

.qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.qa-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* Quick Action Colors */
.qa-earn .qa-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.qa-earn:hover {
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.12);
}

.qa-spin .qa-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.qa-spin:hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.12);
}

.qa-task .qa-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.qa-task:hover {
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.12);
}

.qa-withdraw .qa-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.qa-withdraw:hover {
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12);
}

/* ============================================================
   LEADERBOARD SECTION
   ============================================================ */
.leaderboard-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.leaderboard-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 179, 8, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leaderboard-icon-wrap i {
    font-size: 24px;
    color: #f59e0b;
}

.leaderboard-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.leaderboard-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    background: #f3f4f6;
}

.leaderboard-row-me {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-color: rgba(102, 126, 234, 0.15);
}

.leaderboard-row-top {
    border-left: 3px solid transparent;
}

.leaderboard-row-top.rank-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
    border-left-color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.15);
}

.leaderboard-row-top.rank-2 {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(209, 213, 219, 0.06));
    border-left-color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.18);
}

.leaderboard-row-top.rank-3 {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(180, 83, 9, 0.04));
    border-left-color: #b45309;
    border-color: rgba(180, 83, 9, 0.15);
}

.leaderboard-rank {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.rank-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.rank-silver {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #fff;
    box-shadow: 0 3px 10px rgba(156, 163, 175, 0.35);
}

.rank-bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3);
}

.rank-number {
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.leaderboard-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.leaderboard-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.leaderboard-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.you-badge {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.leaderboard-stats-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.leaderboard-earned {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
    flex-shrink: 0;
}

.leaderboard-empty {
    text-align: center;
    padding: 30px 20px;
    color: #ccc;
}

.leaderboard-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.leaderboard-empty p {
    font-size: 13px;
    color: #999;
}

/* ============================================================
   WALLET / WITHDRAW PAGE
   ============================================================ */
.wallet-balance-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
}

.wallet-bal-left {
    display: flex;
    flex-direction: column;
}

.wallet-bal-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-bal-amount {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.wallet-bal-min {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.wallet-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.wallet-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-card-title i {
    font-size: 18px;
    color: #667eea;
}

/* Payment Method Selection */
.wallet-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.wallet-method-option {
    cursor: pointer;
}

.wallet-method-option input[type="radio"] {
    display: none;
}

.wallet-method-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 2px solid #eef0f6;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.wallet-method-option input[type="radio"]:checked+.wallet-method-box {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.06);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.12);
}

.wallet-method-icon {
    font-size: 20px;
}

.wallet-method-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Form Fields */
.wallet-field {
    margin-bottom: 12px;
}

.wallet-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wallet-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #eef0f6;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.wallet-field input:focus {
    border-color: #667eea;
    background: #fff;
}

.wallet-field input::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* Submit Button */
.wallet-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.25);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.wallet-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.4);
}

.wallet-submit-btn:active {
    transform: translateY(0);
}

.wallet-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Transaction List */
.txn-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.txn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.txn-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.txn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.txn-icon.txn-withdrawal {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.txn-icon.txn-referral {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.txn-icon.txn-deposit {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.txn-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.txn-desc {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-date {
    font-size: 10px;
    color: #aaa;
    font-weight: 500;
}

.txn-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.txn-amount {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.txn-amount.txn-withdrawal {
    color: #ef4444;
}

.txn-amount.txn-referral {
    color: #8b5cf6;
}

.txn-amount.txn-deposit {
    color: #10b981;
}

.txn-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.txn-status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.txn-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.txn-status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.txn-empty {
    text-align: center;
    padding: 24px 16px;
    color: #ccc;
}

.txn-empty i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.txn-empty p {
    font-size: 13px;
    color: #999;
}

/* Transaction Filter Tabs */
.txn-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.txn-tabs::-webkit-scrollbar {
    display: none;
}

.txn-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    background: #f3f4f6;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.txn-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.06);
}

.txn-tab-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.25);
}

/* Pagination */
.txn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.txn-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f3f4f6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.txn-page-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.txn-page-active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.txn-page-dots {
    font-size: 12px;
    color: #ccc;
    padding: 0 4px;
}

/* Transaction View Button */
.txn-view-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.txn-view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Transaction Detail Modal */
.txn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.txn-modal-overlay.txn-modal-open {
    opacity: 1;
    pointer-events: all;
}

.txn-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.txn-modal-open .txn-modal {
    transform: translateY(0);
}

.txn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.txn-modal-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.txn-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.txn-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.txn-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.txn-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.txn-detail-row:last-child {
    border-bottom: none;
}

.txn-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

.txn-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* ============================================================
   TASK PAGE (User)
   ============================================================ */
.task-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.task-page-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.task-page-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.task-page-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.task-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.task-item.task-completed {
    opacity: 0.65;
    border-color: rgba(16, 185, 129, 0.2);
}

.task-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.task-item-info {
    flex: 1;
    min-width: 0;
}

.task-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.task-item-desc {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    line-height: 1.4;
}

.task-reward-badge {
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.task-actions {
    display: block;
}

.task-start-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
    transition: all 0.2s;
}

.task-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.task-claim-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.task-claim-btn:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.task-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.task-timer-bar {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: #eef0f6;
    overflow: hidden;
}

.task-timer-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.task-timer-text {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
    flex-shrink: 0;
}

.task-done-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
}

.task-error {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
}

.task-msg {
    margin-top: 8px;
}

.task-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.task-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

.task-empty {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.04) 0%, transparent 100%);
    border-radius: 20px;
    border: 1.5px dashed rgba(102, 126, 234, 0.15);
}

.task-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.task-empty h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.task-empty p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================================
   EARN PROGRESS BAR
   ============================================================ */
.earn-progress-wrap {
    padding: 4px 0;
}

.earn-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    overflow: hidden;
    position: relative;
}

.earn-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
    background-size: 200% 100%;
    animation: earnShimmer 1.5s ease-in-out infinite;
    transition: width linear;
    /* transition-duration is set dynamically via JS */
}

@keyframes earnShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.earn-progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.earn-progress-text i {
    font-size: 14px;
}

/* ============================================================
   SPIN WHEEL PAGE
   ============================================================ */
.spin-info-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.spin-info-left,
.spin-info-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.spin-info-left i {
    font-size: 18px;
    color: #10b981;
}

.spin-info-right i {
    font-size: 18px;
    color: #f59e0b;
}

.spin-info-left strong,
.spin-info-right strong {
    color: #1a1a2e;
    font-weight: 700;
}

.spin-wheel-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    width: 320px;
    height: 340px;
}

.spin-wheel-area canvas {
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.2), 0 0 0 6px rgba(102, 126, 234, 0.1);
}

.spin-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 36px;
    color: #1a1a2e;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    line-height: 1;
}

.spin-action-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.spin-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(102, 126, 234, 0.45);
}

.spin-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.spin-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-action-btn i {
    font-size: 20px;
}

.spin-buy-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.spin-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
}

.spin-buy-btn i {
    font-size: 18px;
}

/* Prize Overlay */
.spin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spin-overlay-show {
    opacity: 1;
    pointer-events: all;
}

.spin-prize-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    width: 85%;
    max-width: 320px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.spin-overlay-show .spin-prize-card {
    transform: scale(1);
}

.spin-prize-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
    animation: prizeBounce 0.6s ease;
}

@keyframes prizeBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.spin-prize-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.spin-prize-amount {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.spin-prize-card p {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.spin-prize-close {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.25);
    transition: all 0.2s;
}

.spin-prize-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   OLD CARDS (earn, spin, task, withdraw pages)
   ============================================================ */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome-card p {
    opacity: 0.9;
    font-size: 14px;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.balance-card .label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.balance-card .amount {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card .label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
}

.stat-card.balance .value {
    color: #667eea;
}

.stat-card.points .value {
    color: #f59e0b;
}

/* Quick Actions (legacy) */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.action-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.action-card .label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.action-card.earn .icon {
    color: #10b981;
}

.action-card.spin .icon {
    color: #f59e0b;
}

.action-card.task .icon {
    color: #8b5cf6;
}

.action-card.withdraw .icon {
    color: #667eea;
}

/* ============================================================
   EARN CARDS
   ============================================================ */
.earn-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.earn-card h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earn-card .reward {
    background: #d1fae5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.earn-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f7f8fc;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.earn-option:hover {
    background: #eef0f6;
}

.earn-option .icon {
    font-size: 28px;
    margin-right: 15px;
}

.earn-option .info {
    flex: 1;
}

.earn-option .info h4 {
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.earn-option .info p {
    font-size: 12px;
    color: #999;
}

/* ============================================================
   SPIN WHEEL
   ============================================================ */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#667eea 0deg 45deg,
            #764ba2 45deg 90deg,
            #f59e0b 90deg 135deg,
            #10b981 135deg 180deg,
            #8b5cf6 180deg 225deg,
            #ec4899 225deg 270deg,
            #3b82f6 270deg 315deg,
            #ef4444 315deg 360deg);
    position: relative;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: #333;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

.spin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.spin-btn:active {
    transform: translateY(0);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.prize-reveal {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: none;
}

.prize-reveal.show {
    display: block;
    animation: fadeInUp 0.3s;
}

.prize-reveal h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.prize-reveal .prize {
    font-size: 32px;
    font-weight: 600;
    color: #667eea;
}

/* ============================================================
   TASK CARDS
   ============================================================ */
.task-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.task-card h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.task-card p {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    line-height: 1.5;
}

.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-info .progress {
    background: #e5e7ee;
    border-radius: 10px;
    height: 8px;
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
}

.task-info .progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
}

/* ============================================================
   WITHDRAW
   ============================================================ */
.withdraw-form {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.withdraw-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.method-card {
    background: #fff;
    border: 2px solid #e5e7ee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.method-card:hover {
    border-color: #667eea;
}

.method-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.method-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.method-card .name {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Balance Display on Welcome Card */
.balance-display {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.8;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
}

/* ===== Floating Pill Navigation (UNCHANGED) ===== */
.pill-nav {
    position: fixed;
    bottom: 14px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 64px;
    padding: 0 6px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.pill-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #a0aec0;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 16px;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.pill-nav-item i {
    font-size: 22px;
    line-height: 1;
}

.pill-nav-item span {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Active pill highlight */
.pill-nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.pill-nav-item:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* ===== Center FAB ===== */
.pill-nav-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0;
    background: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    gap: 0;
    position: relative;
}

.pill-nav-fab .fab-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c5ce7, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -34px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 18px rgba(124, 92, 231, 0.45),
        0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.pill-nav-fab .fab-circle i {
    font-size: 24px;
    color: #fff;
}

.pill-nav-fab:active .fab-circle {
    transform: scale(0.88);
}

.pill-nav-fab.active .fab-circle {
    background: linear-gradient(145deg, #a78bfa, #7c5ce7);
    box-shadow:
        0 6px 24px rgba(124, 92, 231, 0.6),
        0 0 0 3px rgba(124, 92, 231, 0.15);
    transform: scale(1.06);
}

.pill-nav-fab.active {
    background: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .content {
        padding: 15px;
    }

    .welcome-card {
        padding: 20px;
    }

    .welcome-card h2 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .wheel-container {
        width: 260px;
        height: 260px;
    }

    .withdraw-methods {
        grid-template-columns: 1fr;
    }

    .balance-hero-amount {
        font-size: 28px;
    }

    .referral-hero {
        padding: 20px;
    }
}