/**
 * Mn Ludo - Complete Stylesheet
 * Version: 2.0.0
 * Author: KingLudo Team
 */

/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
    --primary: #6C3CE1;
    --primary-dark: #5A2FC9;
    --primary-light: #8B5CF6;
    --secondary: #0B112C;
    --accent: #FBBF24;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark-bg: #0F172A;
    --card-bg: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #334155;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --youtube-red: #FF0000;
}

/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(108, 60, 225, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .app-container {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

::selection { background: var(--primary); color: white; }

/* =============================================
   HEADER
   ============================================= */
.header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1f3a 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-brand .brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-brand h1 {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-money-btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.add-money-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.add-money-btn .balance-display {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 2px;
}

.add-money-btn .balance-display i {
    font-size: 10px;
    margin-right: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
    position: relative;
}

.profile-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(108, 60, 225, 0.5);
}

.profile-btn .badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

/* =============================================
   FILTER SECTION
   ============================================= */
.filter-section {
    padding: 20px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

/* =============================================
   MATCH CARDS
   ============================================= */
.matches-grid {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-card {
    background: linear-gradient(145deg, var(--card-bg), #1a2332);
    border-radius: var(--radius);
    padding: 20px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 60, 225, 0.3);
    box-shadow: var(--shadow-hover);
}

.match-card.joined-match {
    border-color: rgba(16, 185, 129, 0.2);
}

.match-id-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-right: 50px;
}

.ludo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.2), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(108, 60, 225, 0.2);
    overflow: hidden;
    padding: 6px;
}

.ludo-icon.history-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1));
}

.king-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.card-title-area h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.card-title-area .match-time {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-text-fill-color: var(--text-secondary);
}

.card-title-area .match-time i {
    color: var(--primary-light);
    font-size: 10px;
}

/* Prize Pool */
.prize-pool {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    text-align: center;
}

.prize-amount .label,
.entry-fee .label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.prize-amount .amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}

.entry-fee .fee {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Match Details */
.match-details {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-item i {
    color: var(--primary-light);
    font-size: 13px;
    width: 14px;
    text-align: center;
}

.room-code {
    cursor: pointer;
    transition: var(--transition);
    padding: 2px 8px;
    border-radius: 6px;
}

.room-code:hover {
    background: rgba(108, 60, 225, 0.15);
    color: var(--text-primary);
}

.room-code:active {
    transform: scale(0.95);
}

.room-code-text {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.room-code:hover .room-code-text {
    color: var(--accent);
}

.waiting-room {
    color: var(--warning);
}

/* Progress Bar */
.progress-section {
    margin-bottom: 14px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-fill.full {
    background: linear-gradient(90deg, var(--danger), #dc2626);
}

.progress-bar.full-bg {
    background: rgba(239, 68, 68, 0.15);
}

.progress-text {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

/* Match Actions */
.match-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.btn-how-to-play {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-how-to-play:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--youtube-red);
    border-color: var(--youtube-red);
}

.btn-how-to-play i {
    color: var(--youtube-red);
    font-size: 14px;
}

.action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-xs);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-join {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 60, 225, 0.4);
}

.btn-full {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    cursor: not-allowed;
}

.btn-joined {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    cursor: default;
}

/* =============================================
   EMPTY STATES
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-small {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-state-small i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

/* =============================================
   HISTORY SECTION
   ============================================= */
.history-section {
    padding: 0 20px 20px;
}

.history-section h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* =============================================
   TABLE
   ============================================= */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-container td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    vertical-align: middle;
}

.table-container tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.text-right {
    text-align: right;
}

.txn-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.txn-time {
    font-size: 11px;
    color: var(--text-muted);
}

.txn-amount {
    font-weight: 700;
}

.txn-balance {
    color: var(--text-secondary);
    font-size: 13px;
}

.type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.type-badge.entry_fee { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.type-badge.prize_won { background: rgba(251, 191, 36, 0.2); color: #FBBF24; }
.type-badge.deposit { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.type-badge.withdrawal { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.type-badge.refund { background: rgba(251, 191, 36, 0.2); color: #F59E0B; }

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.completed { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.status-badge.pending { background: rgba(251, 191, 36, 0.2); color: #FBBF24; }
.status-badge.failed { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.status-badge.refunded { background: rgba(139, 92, 246, 0.2); color: #8B5CF6; }

/* =============================================
   MODALS
   ============================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px 28px;
    width: 92%;
    max-width: 400px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content::-webkit-scrollbar {
    width: 3px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Modal Titles */
.modal-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Avatar Icon */
.user-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.35);
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary-light);
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 14px;
}

.forgot-password a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary-light);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 60, 225, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, #8B5CF6, #6C3CE1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* Auth Toggle */
.auth-toggle {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-toggle a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-toggle a:hover {
    color: var(--accent);
}

/* User Info in Modal */
.user-info {
    margin: 16px 0 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-row .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.balance-highlight {
    font-size: 20px;
    color: var(--success);
    font-weight: 800;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 4px;
}

.btn-action {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-withdraw {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.btn-password {
    background: linear-gradient(135deg, #8B5CF6, #6C3CE1);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-admin {
    background: linear-gradient(135deg, var(--accent), #F59E0B);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    text-decoration: none;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

/* =============================================
   PAYMENT MODALS
   ============================================= */
.payment-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.payment-icon.add {
    background: linear-gradient(135deg, #10B981, #059669);
}

.payment-icon.withdraw {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.payment-option {
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.payment-option i {
    font-size: 16px;
}

.payment-option.bkash { border-color: #E2136E; color: #E2136E; }
.payment-option.bkash:hover { background: rgba(226, 19, 110, 0.1); }

.payment-option.nagad { border-color: #FF6B00; color: #FF6B00; }
.payment-option.nagad:hover { background: rgba(255, 107, 0, 0.1); }

.payment-option.paypal { border-color: #003087; color: #009CDE; }
.payment-option.paypal:hover { background: rgba(0, 156, 222, 0.1); }

.payment-option.skrill { border-color: #861F41; color: #861F41; }
.payment-option.skrill:hover { background: rgba(134, 31, 65, 0.1); }

.payment-option.upi { border-color: #00BFA5; color: #00BFA5; }
.payment-option.upi:hover { background: rgba(0, 191, 165, 0.1); }

.payment-option.creditcard { border-color: #1A1F71; color: #348F8D; }
.payment-option.creditcard:hover { background: rgba(26, 31, 113, 0.1); }

.payment-option.bank { border-color: #3B82F6; color: #3B82F6; }
.payment-option.bank:hover { background: rgba(59, 130, 246, 0.1); }

/* Withdraw Balance */
.withdraw-balance {
    background: rgba(16, 185, 129, 0.08);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    text-align: center;
    margin: 12px 0 16px;
}

.withdraw-balance .label {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
    font-weight: 500;
}

.withdraw-balance .balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    margin-top: 4px;
}

/* Payment Demo Box */
.payment-demo-box {
    background: rgba(251, 191, 36, 0.08);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.15);
    text-align: center;
    margin-top: 4px;
}

.payment-demo-box p {
    color: #FBBF24;
    font-size: 12px;
    line-height: 1.7;
}

.payment-demo-box a {
    color: #FBBF24;
    font-weight: 700;
    text-decoration: underline;
}

.payment-demo-box a:hover {
    color: #fff;
}

/* Password Modal */
.password-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6C3CE1);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

/* Forget Password Modal */
.forget-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warning), #D97706);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.support-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--youtube-red), #cc0000);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    transition: var(--transition);
    z-index: 50;
    text-decoration: none;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

.fab-refresh {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
    transition: var(--transition);
    z-index: 50;
}

.fab-refresh:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(108, 60, 225, 0.5);
}

.fab-refresh.spinning {
    animation: spin 0.8s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    z-index: 3000;
    display: none;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    max-width: 90%;
    font-size: 14px;
    text-align: center;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.toast.active {
    display: block;
    animation: toastSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlideDown {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0) scale(1); 
    }
}

/* =============================================
   LOADING OVERLAY
   ============================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-light);
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 12px;
    font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(20px);
    z-index: 50;
}

.footer .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.footer .brand i {
    color: var(--accent);
    font-size: 18px;
}

.footer .copy {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-spacer {
    height: 80px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .header-brand h1 {
        font-size: 15px;
    }
    
    .header-brand .brand-icon {
        width: 26px;
        height: 26px;
    }
    
    .back-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .add-money-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .add-money-btn .balance-display {
        font-size: 10px;
        padding: 1px 8px;
    }
    
    .profile-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .filter-tab {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .ludo-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-title-area h2 {
        font-size: 14px;
    }
    
    .card-title-area .match-time {
        font-size: 10px;
    }
    
    .prize-amount .amount,
    .entry-fee .fee {
        font-size: 14px;
    }
    
    .match-details {
        gap: 10px;
    }
    
    .detail-item {
        font-size: 11px;
    }
    
    .support-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 80px;
        left: 15px;
    }
    
    .fab-refresh {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 80px;
        right: 15px;
    }
    
    .match-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .btn-how-to-play {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 6px 14px;
    }

    .modal-content {
        padding: 24px 18px;
        margin: 12px;
        width: 95%;
        border-radius: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .user-avatar-large,
    .payment-icon,
    .password-icon,
    .forget-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .payment-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .payment-option {
        font-size: 12px;
        padding: 10px 6px;
    }
    
    .payment-option i {
        font-size: 14px;
    }
    
    .withdraw-balance .balance-amount {
        font-size: 24px;
    }
    
    .btn-action {
        font-size: 13px;
        padding: 10px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 420px;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.w-100 { width: 100%; }
.w-50 { width: 50%; }

.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-hover:hover { box-shadow: var(--shadow-hover); }