/* ============================================================
   LUDOP2P.COM - MASTER STYLESHEET
   Modern Dark Gaming Theme
============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f0e17;
    --bg-card: #1a1a2e;
    --bg-input: #14141f;
    --border: #2a2a4a;
    --primary: #ff8906;
    --primary-dark: #e67800;
    --secondary: #e94560;
    --success: #4caf50;
    --warning: #ffb74d;
    --text: #ffffff;
    --text-muted: #a7a9be;
    --easypaisa: #00A859;
    --jazzcash: #E4002B;
    --bank: #2196F3;
    --usdt: #26A17B;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0,0,0,0.35);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; }
input, select, button { font-family: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: 0.25s;
    font-size: 15px;
}
.btn-primary { background: var(--primary); color: #0f0e17; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,137,6,0.35); }
.btn-danger { background: var(--secondary); color: white; }
.btn-danger:hover { background: #d13650; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: white; }

/* ============ SPLASH SCREEN ============ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1a1a3d 0%, #0f0e17 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: splashFade 3s ease forwards;
}
.splash-screen img, .splash-screen .splash-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 60px rgba(255,137,6,0.5);
    animation: splashPop 0.8s ease;
}
.splash-screen .splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.splash-screen h2 {
    margin-top: 25px;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: white;
    animation: splashPop 1s ease;
}
.splash-screen .splash-loader {
    margin-top: 20px;
    width: 160px;
    height: 4px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.splash-screen .splash-loader::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: var(--primary);
    animation: loaderFill 2.2s ease forwards;
}
@keyframes splashPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes loaderFill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
@keyframes splashFade {
    0% { opacity: 1; visibility: visible; }
    80% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ============ LANDING / HERO ============ */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,137,6,0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(233,69,96,0.15), transparent 40%),
        var(--bg);
}
.landing .logo-badge {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin-bottom: 20px;
    box-shadow: 0 0 40px rgba(255,137,6,0.35);
}
.landing h1 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing p.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.landing .currency-badge {
    background: rgba(26,26,46,0.7);
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(6px);
    font-weight: bold;
    color: var(--primary);
}
.landing .auth-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 40px;
    width: 220px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.auth-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.auth-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.auth-card h3 { color: white; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); font-size: 0.85rem; }
.auth-card.register { border-color: var(--primary); }

.landing-features {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.landing-features div { text-align: center; }
.landing-features .num { font-size: 1.6rem; font-weight: bold; color: var(--primary); }
.landing-features .label { color: var(--text-muted); font-size: 0.85rem; }

/* ============ AUTH PAGES (Login/Register) ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,137,6,0.12), transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(233,69,96,0.12), transparent 35%),
        var(--bg);
}
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 45px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: authPop 0.5s ease;
}
@keyframes authPop {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.auth-box .auth-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 18px;
}
.auth-box h2 {
    text-align: center;
    color: white;
    margin-bottom: 6px;
    font-size: 1.6rem;
}
.auth-box .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.form-group { margin-bottom: 16px; position: relative; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: white;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,137,6,0.15);
}
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert-error { background: rgba(233,69,96,0.15); border: 1px solid var(--secondary); color: #ff9baa; }
.alert-success { background: rgba(76,175,80,0.15); border: 1px solid var(--success); color: #a5d6a7; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer a { color: var(--primary); font-weight: bold; text-decoration: none; }
.back-home {
    position: absolute;
    top: 20px; left: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.back-home:hover { color: var(--primary); }

/* ============ SIDEBAR LAYOUT (Dashboard) ============ */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}
.sidebar .logo {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar .logo span { color: var(--primary); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.2s;
}
.sidebar nav a i { width: 18px; text-align: center; }
.sidebar nav a:hover { background: rgba(255,137,6,0.08); color: var(--primary); }
.sidebar nav a.active { background: var(--primary); color: #0f0e17; font-weight: bold; }
.sidebar .user-info {
    display: flex; align-items: center; gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 18px; margin-top: 18px;
}
.sidebar .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: white; flex-shrink: 0;
}
.status-online { color: var(--success); font-size: 10px; }

.main-content { margin-left: 260px; padding: 30px; min-height: 100vh; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px 15px; }
    .mobile-toggle { display: flex !important; }
}

.mobile-toggle {
    display: none;
    position: fixed; top: 15px; left: 15px; z-index: 200;
    background: var(--primary); color: #0f0e17;
    width: 42px; height: 42px; border-radius: 10px;
    align-items: center; justify-content: center;
    border: none; font-size: 1.2rem; cursor: pointer;
}

/* ============ STATS / CARDS ============ */
.header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.header-stats > div, .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.header-stats .num { font-size: 1.8rem; font-weight: bold; color: var(--primary); }
.header-stats .label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

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

/* ============ FILTERS ============ */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    align-items: center;
}
.filters select, .filters input {
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    border-radius: 10px;
}
.filters input { flex: 1; min-width: 200px; }

/* ============ GAMES GRID ============ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: 0.25s;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.game-card .game-thumb {
    width: 100%; height: 90px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    margin-bottom: 12px;
}
.game-card .game-name { font-weight: bold; margin-bottom: 4px; }
.game-card .game-id { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 4px; }
.game-card .provider { color: var(--text-muted); font-size: 0.75rem; }
.game-card .category {
    display: inline-block;
    background: rgba(255,137,6,0.15);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin: 8px 0;
}
.game-card .play-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    color: #0f0e17;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}
.game-card .play-btn:hover { background: var(--primary-dark); }
.pagination { text-align: center; color: var(--text-muted); margin-top: 20px; font-size: 0.9rem; }

/* ============ TABLES ============ */
table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
th { background: #23233f; padding: 14px; text-align: left; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }
td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; display: inline-block; }
.badge-completed { background: rgba(76,175,80,0.15); color: var(--success); }
.badge-pending { background: rgba(255,183,77,0.15); color: var(--warning); }
.badge-failed { background: rgba(233,69,96,0.15); color: var(--secondary); }
.badge-cancelled { background: rgba(167,169,190,0.15); color: var(--text-muted); }

/* ============ WALLET ============ */
.balance-card {
    background: linear-gradient(135deg, #2a1e3d, #1a1a2e);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.balance-card::after {
    content: '💰';
    position: absolute;
    right: 20px; top: 20px;
    font-size: 4rem;
    opacity: 0.08;
}
.balance-card h3 { color: var(--text-muted); font-weight: normal; margin-bottom: 8px; }
.balance-card .amount { font-size: 2.6rem; font-weight: bold; color: var(--primary); }
.wallet-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.wallet-actions a {
    flex: 1; min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.25s;
}
.wallet-actions a:hover { border-color: var(--primary); transform: translateY(-4px); }
.wallet-actions .icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ============ DEPOSIT / GATEWAY PAGE ============ */
.method-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.method-tab {
    flex: 1; min-width: 130px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}
.method-tab:hover { border-color: var(--primary); }
.method-tab.active { border-color: var(--primary); background: rgba(255,137,6,0.08); }
.method-tab .m-icon { font-size: 1.8rem; margin-bottom: 6px; }
.method-tab .m-name { font-weight: bold; font-size: 0.9rem; }

.gateway-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
}
.gateway-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.gateway-account .acc-label { color: var(--text-muted); font-size: 0.8rem; }
.gateway-account .acc-value { font-size: 1.1rem; font-weight: bold; color: var(--primary); letter-spacing: 1px; }
.copy-btn {
    background: var(--border);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}
.copy-btn:hover { background: var(--primary); color: #0f0e17; }
.gateway-instructions {
    background: rgba(255,137,6,0.06);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.quick-amounts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; }
.quick-amounts button {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}
.quick-amounts button:hover, .quick-amounts button.active { background: var(--primary); color: #0f0e17; border-color: var(--primary); }
.fee-summary {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.9rem;
}
.fee-summary div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-muted); }
.fee-summary .total { color: white; font-weight: bold; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .landing h1 { font-size: 2rem; }
    .auth-cards { flex-direction: column; align-items: center; }
    .auth-card { width: 100%; max-width: 280px; }
    .auth-box { padding: 30px 22px; }
    .wallet-actions a { min-width: 100%; }
}
