/* ═══════════════════════════════════════════════════════════════
   USER PAGES — My Entries, Panel Chart, Wallet, Profile
   ═══════════════════════════════════════════════════════════════ */

.user-page {
    max-width: 1200px;
    margin: 0 auto;
}

.user-page-header {
    margin-bottom: 24px;
}

.user-page-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: #F1F5F9;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.user-page-header p {
    font-size: 14px;
    color: #94A3B8;
}

/* ═══ STATS CARDS ═══ */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.user-stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.user-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.user-stat-icon.green { background: linear-gradient(135deg, #10B981, #059669); }
.user-stat-icon.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.user-stat-icon.gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.user-stat-icon.purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.user-stat-icon.pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.user-stat-icon.red { background: linear-gradient(135deg, #EF4444, #DC2626); }

.user-stat-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.user-stat-value {
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #F1F5F9;
    letter-spacing: -0.02em;
}

.user-stat-value.green { color: #10B981; }
.user-stat-value.gold { color: #F59E0B; }
.user-stat-value.red { color: #EF4444; }

/* ═══ TABS ═══ */
.user-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.user-tabs::-webkit-scrollbar { display: none; }

.user-tab {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.user-tab:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #F1F5F9;
}

.user-tab.active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-tab-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.user-tab.active .user-tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* ═══ BET CARDS (Timeline) ═══ */
.bet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.bet-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bet-card.won {
    border-left: 3px solid #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.9));
}

.bet-card.lost {
    border-left: 3px solid #64748B;
    opacity: 0.85;
}

.bet-card.pending {
    border-left: 3px solid #F59E0B;
}

.bet-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.bet-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bet-card-info {
    flex: 1;
    min-width: 0;
}

.bet-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #F1F5F9;
    margin-bottom: 4px;
}

.bet-card-ref {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #94A3B8;
    margin-bottom: 2px;
}

.bet-card-meta {
    font-size: 11px;
    color: #64748B;
}

.bet-card-amount {
    text-align: right;
    flex-shrink: 0;
}

.bet-card-value {
    font-size: 18px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #F59E0B;
    letter-spacing: -0.02em;
}

.bet-card-value.won {
    color: #10B981;
}

.bet-card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.bet-card-status.won {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.bet-card-status.lost {
    background: rgba(100, 116, 139, 0.15);
    color: #94A3B8;
}

.bet-card-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.bet-card-body {
    padding: 0 20px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 4px;
    padding-top: 14px;
}

.bet-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.bet-stat {
    text-align: center;
}

.bet-stat-label {
    font-size: 10px;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.bet-stat-value {
    font-size: 15px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #F1F5F9;
}

.bet-stat-value.green { color: #10B981; }
.bet-stat-value.gold { color: #F59E0B; }

/* ═══ PANEL CHART ═══ */
.panel-heatmap {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-bottom: 24px;
}

.panel-cell {
    aspect-ratio: 1;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 14px;
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.panel-cell:hover {
    transform: scale(1.1);
    border-color: #10B981;
    z-index: 2;
}

.panel-cell.heat-1 { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.panel-cell.heat-2 { background: rgba(16, 185, 129, 0.25); color: #10B981; }
.panel-cell.heat-3 { background: rgba(16, 185, 129, 0.4); color: #ECFDF5; border-color: #10B981; }
.panel-cell.heat-4 { background: linear-gradient(135deg, #10B981, #059669); color: white; border-color: #10B981; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); }

.panel-cell-freq {
    font-size: 9px;
    opacity: 0.75;
    margin-top: 2px;
}

.hot-numbers-list,
.cold-numbers-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.number-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-weight: 900;
    min-width: 60px;
}

.number-chip.hot {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.number-chip.cold {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
}

.number-chip-value {
    font-size: 18px;
}

.number-chip-freq {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 2px;
}

/* ═══ WALLET ═══ */
.wallet-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wallet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
    border-radius: 50%;
    animation: walletGlow 6s ease-in-out infinite;
}

@keyframes walletGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.wallet-hero-label {
    font-size: 12px;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.wallet-hero-balance {
    font-size: 56px;
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, #10B981, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.wallet-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.wallet-hero-stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wallet-hero-stat.debit {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.wallet-hero-stat-label {
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
}

.wallet-hero-stat-value {
    font-size: 20px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #10B981;
}

.wallet-hero-stat.debit .wallet-hero-stat-value {
    color: #EF4444;
}

/* Transaction Timeline */
.transaction-list {
    position: relative;
    padding-left: 40px;
}

.transaction-list::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #10B981, #3B82F6, transparent);
    opacity: 0.3;
}

.transaction-item {
    position: relative;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.transaction-item:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateX(4px);
}

.transaction-icon {
    position: absolute;
    left: -36px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #1E293B;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

.transaction-icon.credit {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.transaction-icon.debit {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-type {
    font-weight: 800;
    color: #F1F5F9;
    font-size: 13px;
    margin-bottom: 2px;
}

.transaction-desc {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-date {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
}

.transaction-amount {
    text-align: right;
    flex-shrink: 0;
}

.transaction-value {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 16px;
    color: #10B981;
}

.transaction-value.debit {
    color: #EF4444;
}

.transaction-balance {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
}

/* ═══ PROFILE ═══ */
.profile-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #F59E0B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
    border: 4px solid rgba(15, 23, 42, 0.8);
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 24px;
    font-weight: 900;
    color: #F1F5F9;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.profile-mobile {
    font-size: 14px;
    font-family: var(--font-mono);
    color: #94A3B8;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.profile-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-badge.verified {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-badge.member {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-details {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-detail-row {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.profile-detail-label {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.profile-detail-value {
    font-size: 14px;
    font-weight: 800;
    color: #F1F5F9;
    font-family: var(--font-mono);
}

.profile-actions {
    display: grid;
    gap: 8px;
}

.profile-action {
    padding: 14px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #F1F5F9;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-action:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #10B981;
    transform: translateX(4px);
}

.profile-action-icon {
    font-size: 20px;
}

.profile-action-arrow {
    margin-left: auto;
    color: #64748B;
}

/* ═══ EMPTY STATE ═══ */
.user-empty {
    text-align: center;
    padding: 60px 24px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

.user-empty-icon {
    font-size: 80px;
    opacity: 0.2;
    margin-bottom: 20px;
    animation: emptyFloat 4s ease-in-out infinite;
}

.user-empty-title {
    font-size: 20px;
    font-weight: 900;
    color: #94A3B8;
    margin-bottom: 8px;
}

.user-empty-text {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 24px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .user-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .user-stat-value {
        font-size: 20px;
    }
    .wallet-hero-balance {
        font-size: 40px;
    }
    .panel-heatmap {
        gap: 4px;
    }
    .panel-cell {
        font-size: 12px;
    }
    .panel-cell-freq {
        font-size: 8px;
    }
    .bet-card-header {
        padding: 14px 16px;
        gap: 10px;
    }
    .bet-card-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 24: USER PAGES ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.achievement-card {
    background: var(--bg-700);
    border: 1px solid var(--bg-600);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.achievement-card.unlocked {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.achievement-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-100);
    margin-bottom: 8px;
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-400);
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-800);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s;
}

.progress-text {
    font-size: 11px;
    color: var(--text-400);
}

.achievement-reward {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 12px;
}

.unlocked-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
}

.kyc-section {
    margin-bottom: 30px;
}

.kyc-status-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
}

.kyc-verified { background: rgba(16, 185, 129, 0.2); color: var(--primary); }
.kyc-pending { background: rgba(245, 158, 11, 0.2); color: var(--accent); }
.kyc-rejected { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.result-card {
    background: var(--bg-700);
    border: 1px solid var(--bg-600);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.result-game {
    font-size: 12px;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-session {
    font-size: 11px;
    color: var(--text-400);
    margin-bottom: 16px;
}

.result-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.result-time {
    font-size: 11px;
    color: var(--text-400);
}

.skeleton-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-400);
}
