/* ===== GAMEKADEH - Base Styles ===== */
:root {
    --bg-color: #0b0f19;
    --card-bg: #151b2b;
    --gold: #f59e0b;
    --purple: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', Tahoma, sans-serif; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 85px !important;
    overflow-x: hidden;
}

/* ===== هدر ===== */
.top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    background: var(--bg-color) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 75px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top .logo img { height: 28px !important; max-width: 110px !important; object-fit: contain !important; }
.top > div { display: flex !important; align-items: center !important; gap: 6px !important; }
.top .hbtn {
    width: 42px !important; height: 42px !important;
    background: var(--card-bg) !important;
    border: 1px solid #2d3748 !important;
    border-radius: 12px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    overflow: hidden !important; flex-shrink: 0 !important; padding: 0 !important;
    text-decoration: none !important;
}
.top .hbtn img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.top .balance {
    display: flex !important; align-items: center !important; gap: 6px !important;
    background: var(--card-bg) !important; border: 1px solid #2d3748 !important;
    border-radius: 12px !important; padding: 4px 8px !important; height: 42px !important;
    text-decoration: none !important; color: white !important;
}
.top .balance .coin { width: 24px !important; height: 24px !important; object-fit: contain !important; }
.top .balance .amt b { display: block !important; font-size: 14px !important; line-height: 1.2 !important; }
.top .balance .amt small { display: block !important; font-size: 9px !important; color: var(--text-muted) !important; }

/* ===== منوی پایین ===== */
nav {
    position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: 70px !important; background: #111827 !important;
    display: flex !important; justify-content: space-around !important; align-items: center !important;
    border-top: 1px solid #1f2937 !important; z-index: 9999 !important;
    padding: 5px !important; box-sizing: border-box !important;
}
nav a {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: center !important; gap: 4px !important; text-decoration: none !important;
    color: var(--text-muted) !important; font-size: 10px !important; font-weight: 700 !important;
    flex: 1 !important; height: 100% !important; padding: 4px !important;
    border-radius: 14px !important; box-sizing: border-box !important;
}
nav a.on {
    background: linear-gradient(135deg, #2d1461, #1a1730) !important;
    border: 1px solid var(--purple) !important; color: white !important;
}
nav a img { width: 22px !important; height: 22px !important; object-fit: contain !important; display: block !important; }

/* ===== مودال ===== */
.user-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85); z-index: 99999; align-items: flex-end;
}
.user-modal-content {
    background: var(--card-bg); width: 100%;
    border-radius: 24px 24px 0 0; padding: 24px 20px;
    border-top: 2px solid var(--gold); animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.menu-item {
    display: flex; align-items: center; gap: 14px; padding: 15px;
    background: #1e293b; border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px; color: #fff; margin-bottom: 10px;
    font-family: inherit; font-size: 15px; cursor: pointer; width: 100%;
}
.menu-item.danger { background: rgba(127, 29, 29, 0.3); border-color: rgba(239, 68, 68, 0.4); }

/* ===== بنرها ===== */
.snap {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 10px; padding: 10px 15px; scrollbar-width: none;
}
.snap::-webkit-scrollbar { display: none; }
.banner {
    flex: 0 0 calc(100vw - 30px); scroll-snap-align: center;
    position: relative; border-radius: 20px; overflow: hidden;
    min-height: 180px; padding: 20px; background: #1e293b;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.banner .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 1;
}
.banner h2, .banner h3, .banner p, .banner .cta { position: relative; z-index: 2; }
.banner h2 { color: var(--gold) !important; font-size: 14px; margin-bottom: 5px; text-shadow: 0 1px 3px #000; }
.banner h3 { color: white !important; font-size: 22px; margin-bottom: 8px; text-shadow: 0 2px 5px #000; }
.banner p { color: #cbd5e1 !important; font-size: 12px; margin-bottom: 12px; text-shadow: 0 1px 3px #000; }
.banner .cta {
    display: inline-block; background: var(--gold); color: black;
    padding: 8px 20px; border-radius: 20px; text-decoration: none;
    font-weight: 700; font-size: 12px; width: fit-content;
}

/* ===== نقطه‌ها و آیکون‌های سریع ===== */
.dots { display: flex; justify-content: center; gap: 6px; padding: 5px 0 15px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #475569; transition: all 0.3s; }
.dots i.on { width: 20px; border-radius: 3px; background: var(--purple); }
.qa {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; padding: 0 15px; margin: 10px 0 20px;
}
.qa a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; background: var(--card-bg); border: 1px solid #2d3748;
    border-radius: 16px; padding: 12px 5px; text-decoration: none;
    color: var(--text-muted); font-size: 11px; font-weight: 700;
}
.qa a img { width: 30px; height: 30px; object-fit: contain; }

/* ===== بخش‌ها و کارت‌ها ===== */
.sec { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; margin-top: 10px; }
.sec h2 { font-size: 16px; font-weight: 800; margin: 0; color: white; }
.sec a { color: var(--text-muted); text-decoration: none; font-size: 12px; }

.crash {
    margin: 0 15px 20px; background: linear-gradient(135deg, #1c152e, #111827);
    border: 1px solid #5732a1; border-radius: 20px; padding: 15px;
    display: flex; align-items: center; gap: 15px;
}
.crash img { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; border-radius: 10px; }
.crash div { flex: 1; }
.crash h3 { color: var(--gold); margin: 0 0 5px; font-size: 16px; }
.crash p { color: var(--text-muted); font-size: 12px; margin: 0 0 10px; }
.crash .btn {
    display: inline-block; background: var(--gold); color: black;
    padding: 8px 20px; border-radius: 20px; text-decoration: none;
    font-weight: 700; font-size: 12px;
}

.cg {
    display: flex; gap: 12px; padding: 0 15px 20px;
    overflow-x: auto; scrollbar-width: none;
}
.cg::-webkit-scrollbar { display: none; }
.cg a {
    flex: 0 0 100px; display: flex; flex-direction: column; align-items: center;
    gap: 8px; text-decoration: none; color: white; font-size: 12px;
    font-weight: 700; text-align: center;
}
.cg img, .cg a > div {
    width: 100px !important; height: 100px !important; border-radius: 16px !important;
    object-fit: cover !important; border: 1px solid #2d3748 !important;
    margin: 0 !important; padding: 0 !important;
}

/* ===== پیش‌بینی ===== */
.markets-list { padding: 0 15px 20px; }
.market-card {
    background: #151b2b !important; border: 1px solid #2d3748 !important;
    border-radius: 16px !important; padding: 15px !important;
    margin-bottom: 15px !important; display: flex !important;
    flex-direction: column !important; gap: 12px !important;
}
.market-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.market-topic { color: #8b5cf6; font-weight: 700; }
.market-time { color: #f59e0b; font-weight: 700; }
.market-img-wrap { width: 100%; border-radius: 12px; overflow: hidden; background: #0f172a; }
.market-img-wrap img {
    width: 100% !important; height: auto !important; max-height: 220px !important;
    object-fit: contain !important; display: block !important;
}
.market-title { font-size: 15px; font-weight: 700; color: #f8fafc; line-height: 1.5; }
.market-outcomes { display: flex; flex-direction: column; gap: 8px; }
.outcome-btn {
    background: #0f172a; border: 2px solid #334155; border-radius: 12px;
    padding: 12px 16px; color: #94a3b8; font-weight: 700; font-size: 14px;
    font-family: inherit; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; transition: all 0.2s;
}
.outcome-btn:hover, .outcome-btn:active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6; color: #fff;
}
.outcome-meta { font-size: 12px; color: #f59e0b; }
.outcome-btn:hover .outcome-meta { color: #fde68a; }
.market-footer { text-align: center; padding-top: 8px; border-top: 1px solid #1f2937; }
.market-footer a { color: #64748b; font-size: 12px; text-decoration: none; }

.top-tabs {
    display: flex !important; gap: 8px !important; padding: 10px 15px !important;
    overflow-x: auto !important; margin: 0 !important; scrollbar-width: none !important;
}
.top-tabs::-webkit-scrollbar { display: none !important; }
.top-tab {
    flex: 0 0 auto !important; padding: 8px 16px !important;
    background: #1e293b !important; border: 1px solid #334155 !important;
    border-radius: 12px !important; color: #94a3b8 !important;
    font-size: 13px !important; font-weight: 700 !important;
    font-family: inherit !important; white-space: nowrap !important;
    cursor: pointer !important; transition: all 0.2s !important;
}
.top-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #8b5cf6 !important; color: #fff !important;
}
.topic-tabs {
    display: flex !important; gap: 8px !important; padding: 0 15px 10px !important;
    overflow-x: auto !important; margin: 0 !important; scrollbar-width: none !important;
}
.topic-tabs::-webkit-scrollbar { display: none !important; }
.topic-tab {
    flex: 0 0 auto !important; padding: 6px 14px !important;
    background: #1e293b !important; border: 1px solid #334155 !important;
    border-radius: 20px !important; color: #94a3b8 !important;
    font-size: 12px !important; font-weight: 600 !important;
    font-family: inherit !important; white-space: nowrap !important;
    cursor: pointer !important; transition: all 0.2s !important;
}
.topic-tab.active {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: #8b5cf6 !important; color: #c4b5fd !important;
}

/* ===== والپیپر و پروفایل ===== */
.wallet-page { padding: 0 15px 20px; }
.wallet-balance {
    background: linear-gradient(135deg, #1c152e, #111827);
    border: 1px solid #5732a1; border-radius: 20px; padding: 20px;
    margin: 15px 0; text-align: center;
}
.wallet-balance-label { color: #94a3b8; font-size: 13px; margin-bottom: 8px; }
.wallet-balance-value { display: flex; flex-direction: column; gap: 4px; }
.wallet-balance-usdt { font-size: 28px; font-weight: 800; color: #f59e0b; }
.wallet-balance-stars { font-size: 14px; color: #94a3b8; }
.wallet-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.wallet-tab {
    flex: 1; padding: 14px; background: #1e293b; border: 1px solid #334155;
    border-radius: 12px; color: #94a3b8; font-weight: 700; font-size: 14px;
    font-family: inherit; cursor: pointer;
}
.wallet-tab.active { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: #f59e0b; color: #000; }
.wallet-section-title { font-size: 15px; color: #f8fafc; font-weight: 700; margin-bottom: 12px; }
.wallet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wallet-option {
    background: #151b2b; border: 1px solid #2d3748; border-radius: 16px;
    padding: 20px 12px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; text-decoration: none;
    color: inherit; transition: all 0.2s;
}
.wallet-option:active { transform: scale(0.97); }
.wallet-option.disabled { opacity: 0.5; cursor: not-allowed; }
.wallet-option-icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}
.wallet-option-title { font-size: 14px; font-weight: 700; color: #f8fafc; text-align: center; }
.wallet-option-sub { font-size: 11px; color: #64748b; text-align: center; }

.profile-wrap { padding: 0 0 20px; }
.profile-head { text-align: center; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #f59e0b; object-fit: cover; }
.profile-name { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }
.profile-edit { color: #f59e0b; text-decoration: none; font-size: 14px; margin-right: 4px; }
.profile-id-box { font-family: monospace; font-size: 13px; color: #94a3b8; background: #0f172a; padding: 6px 14px; border-radius: 8px; direction: ltr; }
.profile-level { font-size: 14px; color: #f59e0b; font-weight: 700; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 15px; margin-bottom: 15px; }
.profile-action-btn {
    display: block; text-align: center; padding: 14px; background: #151b2b;
    border: 1px solid #2d3748; border-radius: 12px; color: #f59e0b !important;
    font-weight: 700; font-size: 14px; text-decoration: none !important; transition: all 0.2s;
}
.profile-action-btn:active { background: #8b5cf6; color: #fff !important; border-color: #8b5cf6; }
.profile-panel { background: #151b2b; border: 1px solid #2d3748; border-radius: 16px; padding: 16px; margin: 0 15px 15px; }
.profile-panel-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.profile-bar { height: 8px; background: #0f172a; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.profile-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #d97706); border-radius: 4px; }
.profile-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 15px; margin-bottom: 15px; }
.profile-card { background: #151b2b; border: 1px solid #2d3748; border-radius: 16px; padding: 15px 5px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; }
.profile-card img { width: 32px; height: 32px; object-fit: contain; }
.profile-card-title { color: #f59e0b; font-weight: 700; font-size: 13px; }
.profile-card-badge { color: #e2e8f0; font-size: 11px; background: #0f172a; padding: 2px 8px; border-radius: 10px; }
.profile-stats { display: flex; justify-content: space-between; margin-top: 12px; text-align: center; }
.profile-stats small { color: #94a3b8; font-size: 12px; }
.profile-stats b { color: #fff; font-size: 15px; }

/* ===== لودینگ ===== */
.no-data { text-align: center; padding: 40px 20px; color: #64748b; font-size: 14px; }
.loading { text-align: center; padding: 40px 20px; color: #94a3b8; }
.spinner {
    width: 30px; height: 30px; border: 3px solid #334155; border-top-color: #8b5cf6;
    border-radius: 50%; margin: 0 auto 10px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== استایل‌های ورزشی و پیش‌بینی ===== */
.sport-tabs {
    display: flex; gap: 8px; padding: 10px 15px; overflow-x: auto;
    scrollbar-width: none;
}
.sport-tab {
    flex: 0 0 auto; padding: 8px 16px; background: #1e293b; color: #94a3b8;
    border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.sport-tab.active { background: #8b5cf6; color: #fff; }
.date-tabs { display: flex; gap: 8px; padding: 10px 15px; overflow-x: auto; scrollbar-width: none; }
.date-tab { flex: 0 0 auto; padding: 8px 14px; background: #1e293b; color: #94a3b8; border-radius: 10px; font-size: 12px; cursor: pointer; }
.date-tab.active { background: #22c55e; color: #fff; }
.fixtures-list { padding: 0 15px 20px; }
.fixture-card { background: #151b2b; border: 1px solid #2d3748; border-radius: 14px; padding: 15px; margin-bottom: 12px; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #151b2b; border: 1px solid #334155; border-radius: 20px; padding: 24px 20px; width: 100%; max-width: 420px; }
.modal-title { font-size: 18px; font-weight: 800; color: #f59e0b; text-align: center; margin-bottom: 16px; }
.prediction-options { display: flex; gap: 8px; margin-bottom: 16px; }
.prediction-btn { flex: 1; padding: 14px 8px; background: #0f172a; border: 2px solid #334155; border-radius: 12px; color: #94a3b8; font-weight: 700; font-size: 12px; cursor: pointer; text-align: center; }
.prediction-btn.active { background: linear-gradient(135deg, #8b5cf6, #7c3aed); border-color: #8b5cf6; color: #fff; }
.amount-input { width: 100%; padding: 14px; background: #0f172a; border: 1px solid #334155; border-radius: 12px; color: #fff; font-size: 16px; text-align: center; margin-bottom: 10px; direction: ltr; }
.amount-presets { display: flex; gap: 6px; margin-bottom: 14px; }
.preset-btn { flex: 1; padding: 10px 4px; background: #0f172a; border: 1px solid #334155; border-radius: 10px; color: #94a3b8; font-weight: 700; font-size: 12px; cursor: pointer; }
.potential-win { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); border-radius: 12px; padding: 12px; text-align: center; color: #22c55e; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; }
.btn-submit { flex: 1; padding: 14px; background: linear-gradient(135deg, #22c55e, #16a34a); border: none; border-radius: 12px; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-cancel { flex: 1; padding: 14px; background: rgba(127, 29, 29, 0.3); border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 12px; color: #ef4444; font-weight: 800; font-size: 14px; cursor: pointer; }
.toast-msg { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: #151b2b; border: 1px solid #334155; border-radius: 12px; padding: 12px 24px; color: #fff; font-weight: 700; font-size: 13px; z-index: 999999; opacity: 0; pointer-events: none; transition: all 0.3s; }
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== استایل‌های صفحه پیش‌بینی (قدیمی) ===== */
.top-tab, .topic-tab {
    flex: 0 0 auto; padding: 8px 14px;
    background: #1e293b; border: 1px solid #334155; border-radius: 10px;
    color: #94a3b8; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}

/* ===== استایل‌های بت‌مودال (پیش‌بینی) ===== */
.bet-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.bet-modal-overlay.show { display: flex; }
.bet-modal-box { background: #151b2b; border: 1px solid #334155; border-radius: 20px; padding: 24px 20px; width: 100%; max-width: 380px; }
.bet-modal-title { font-size: 16px; font-weight: 800; color: #f59e0b; text-align: center; margin-bottom: 16px; }
.bet-modal-sub { font-size: 12px; color: #94a3b8; text-align: center; margin-bottom: 16px; }
.bet-modal-input { width: 100%; padding: 14px; background: #0f172a; border: 2px solid #334155; border-radius: 12px; color: #fff; font-size: 18px; text-align: center; margin-bottom: 12px; direction: ltr; }
.bet-modal-presets { display: flex; gap: 6px; margin-bottom: 16px; }
.bet-modal-preset { flex: 1; padding: 10px 4px; background: #0f172a; border: 1px solid #334155; border-radius: 10px; color: #94a3b8; font-weight: 700; font-size: 12px; cursor: pointer; }
.bet-modal-preview { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); border-radius: 12px; padding: 12px; text-align: center; color: #22c55e; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.bet-modal-actions { display: flex; gap: 8px; }
.bet-modal-btn { flex: 1; padding: 14px; border: none; border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.bet-modal-btn.cancel { background: rgba(127, 29, 29, 0.3); border: 1px solid rgba(239, 68, 68, 0.4); color: #ef4444; }
.bet-modal-btn.confirm { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }

/* استایل نهایی دکمه‌های واریز/برداشت */
.wallet-option-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* ============================================
   FIX: Menu Page (منو)
   ============================================ */
.mgrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 15px !important;
}
.mtile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px 5px !important;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    min-height: 100px !important;
}
.mtile .ic {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
}
.search {
    display: block !important;
    width: calc(100% - 30px) !important;
    margin: 15px auto !important;
    padding: 14px 16px !important;
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-family: inherit !important;
}
.mtile.hide { display: none !important; }

/* ============================================
   FIX: Sports Page (ورزشی)
   ============================================ */
.fixtures-list {
    padding: 0 15px 20px !important;
}
.fixture-card {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
/* فیکس کردن عکس‌های غول‌پیکر */
.fixture-card img,
.cg img,
.market-card img,
.mtile img,
.qa img {
    max-width: 100% !important;
}
.fixture-card .teams img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}
.fixture-card .league-logo img,
.fixture-card img[src*="league"] {
    width: 20px !important;
    height: 20px !important;
}
/* استایل‌های اختصاصی کارت‌های ورزشی */
.sport-fixture {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
}
.sport-fixture .teams-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
}
.sport-fixture .team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    text-align: center !important;
}
.sport-fixture .team img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
}
.sport-fixture .team-name {
    font-size: 12px !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
}
.sport-fixture .score-box {
    text-align: center !important;
    color: #f59e0b !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    flex: 0 0 auto !important;
}

/* ============================================
   FIX: Sports Fixture Cards (کارت‌های ورزشی)
   ============================================ */
.fixture-card {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
}

.fixture-league {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #1f2937 !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
}
.fixture-league img,
.fixture-league svg {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}
.fixture-league-name {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

/* ردیف تیم‌ها (کنار هم) */
.fixture-body {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    text-align: center !important;
    min-width: 0 !important;
}
.team img,
.team svg {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
    max-width: 45px !important;
    max-height: 45px !important;
}
.team-name {
    font-size: 12px !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* وسط (امتیاز) */
.fixture-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: 60px !important;
}
.fixture-center .score {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
}

/* دکمه شرط */
.bet-btn-wrap { margin-top: 10px !important; }
.bet-btn {
    width: 100% !important;
    padding: 10px !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    font-family: inherit !important;
}
.bet-btn-disabled {
    background: #334155 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* فیکس دکمه شرط بستن در کارت‌های ورزشی */
.bet-btn-wrap {
    margin-top: 12px !important;
    text-align: center !important;
}
.bet-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 140px !important;
    padding: 10px 24px !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border: none !important;
    border-radius: 20px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}
.bet-btn:active {
    transform: scale(0.96) !important;
}
.bet-btn-disabled {
    background: #334155 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* فیکس رنگ دکمه شرط (نارنجی طلایی) */
.bet-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    font-weight: 800 !important;
}
.bet-btn-disabled {
    background: #334155 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

/* ============================================
   FIX: Bonuses Page (صفحه بونوس‌ها)
   ============================================ */
.bcard {
    display: flex !important;
    align-items: stretch !important;
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0 15px 15px !important;
    min-height: 110px !important;
}

.bcard .art {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bcard .art img {
    width: 100px !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bcard .tx {
    flex: 1 !important;
    padding: 12px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: right !important;
    min-width: 0 !important;
}

.bcard .tx b {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.bcard .tx .muted,
.bcard .tx small {
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

.bcard .foot {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 6px !important;
    gap: 8px !important;
}

.bcard .foot .timer,
.bcard .timer {
    color: #ef4444 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.bcard .foot .amount,
.bcard .foot strong {
    color: #f59e0b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.bcard button,
.bcard .btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-weightک: 800 !important;
    font-size: 12px !important;
    font-family: inherit !important;
    cursor: کن pointer !important;
    margin-top: 8px !important;
}

/* سایز ۲۰۰ پیکسلی برای عکس کیف پول (به درخواست کاربر) */
.wallet-option-icon img,
#deposit-modal .dep-tab img,
#withdraw-modal .dep-tab img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ۱. برگردوندن سایز دکمه‌های تب (کریپتو، استارز، ریالی) به حالت عادی */
.wallet-option-icon img,
#deposit-modal .dep-tab img,
#withdraw-modal .dep-tab img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

/* ۲. بزرگ کردن عکس اصلی بالای مودال (همونی که دورش خط کشیدی) */
#deposit-modal .user-modal-content > div:first-child > div:first-child,
#withdraw-modal .user-modal-content > div:first-child > div:first-child {
    width: 100px !important;
    height: 100px !important;
    font-size: 50px !important;
}

/* ۳. اگه عکسی داخل اون دایره بالایی هست، بزرگش کن */
#deposit-modal .user-modal-content > div:first-child > div:first-child img,
#withdraw-modal .user-modal-content > div:first-child > div:first-child img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
}

/* ============================================
   FIX: Affiliate Page (صفحه افیلیت)
   ============================================ */
/* کارت بالای صفحه */
.aff-hero {
    background: linear-gradient(135deg, #1c152e, #111827) !important;
    border: 1px solid #5732a1 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.aff-hero .art {
    flex-shrink: 0 !important;
}

.aff-hero .art img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
}

.aff-hero .txt {
    flex: 1 !important;
    text-align: right !important;
}

.aff-hero .txt h3 {
    color: #f59e0b !important;
    font-size: 16px !important;
    margin: 0 0 6px 0 !important;
    font-weight: 800 !important;
}

.aff-hero .txt p {
    color: #94a3b8 !important;
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* لینک‌های دعوت */
.aff-link-card {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin: 0 15px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.aff-link-card .icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.aff-link-card .icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.aff-link-card .info {
    flex: 1 !important;
    min-width: 0 !important;
}

.aff-link-card .info b {
    display: block !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.aff-link-card .info small {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    margin-bottom: 8px !important;
}

.aff-link-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.aff-link-input {
    flex: 1 !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-family: monospace !important;
    direction: ltr !important;
    min-width: 0 !important;
}

.aff-copy-btn {
    background: #f59e0b !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-family: inherit !important;
}

/* گزارش‌های شما */
.aff-stats {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin: 0 15px 15px !important;
}
.aff-stats h3 {
    color: #f59e0b !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #1f2937 !important;
}
.aff-stat-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #1f2937 !important;
}
.aff-stat-row:last-child { border-bottom: none !important; }
.aff-stat-row .label { color: #94a3b8 !important; font-size: 13px !important; }
.aff-stat-row .value { color: #f59e0b !important; font-weight: 800 !important; font-size: 14px !important; }


/* ============================================
   FIX: Affiliate Page (صفحه افیلیت) - نهایی
   ============================================ */

/* بنر بالای افیلیت */
.aff-page .banner,
body .banner {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    min-height: 150px !important;
    padding: 25px 20px !important;
    margin: 0 15px 20px !important;
    background: linear-gradient(135deg, #1c152e, #111827) !important;
    border: 1px solid #5732a1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.banner .art {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    opacity: 0.9 !important;
}

.banner .art img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;
}

.banner h3, .banner p {
    position: relative !important;
    z-index: 2 !important;
    max-width: 65% !important;
    text-align: right !important;
}

.banner h3 {
    color: #f59e0b !important;
    font-size: 16px !important;
    margin-bottom: 5px !important;
    font-weight: 800 !important;
}

.banner p {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* کارت‌های لینک دعوت */
.panel.inv {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin: 0 15px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.panel.inv > div:first-child {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.panel.inv > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.panel.inv b {
    display: block !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.panel.inv .muted {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    margin-bottom: 10px !important;
}

/* کادر کپی لینک */
.copy {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

.copy input {
    flex: 1 !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-family: monospace !important;
    direction: ltr !important;
    min-width: 0 !important;
}

.copy button {
    background: #f59e0b !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    flex-shrink: 0 !important;
}

/* آمار */
.stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 15px !important;
    margin-bottom: 15px !important;
}

.stat {
    background: #151b2b !important;
    border: 1px solid #2d3748 !important;
    border-radius: 14px !important;
    padding: 15px !important;
    text-align: center !important;
}

.stat small {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    margin-bottom: 6px !important;
}

.stat b {
    display: block !important;
    color: #f59e0b !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}


/* ============================================
   FIX: Login Button (دکمه ورود نارنجی)
   ============================================ */
a[href="/login.php"],
a[href*="login"] {
    display: inline-block !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    transition: transform 0.15s !important;
}
a[href="/login.php"]:active,
a[href*="login"]:active {
    transform: scale(0.96) !important;
}

/* ============================================
   FIX: Banner Text Visibility (خوانایی متن روی بنر)
   ============================================ */
.banner h2 {
    color: #f59e0b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,1) !important;
    background: rgba(0,0,0,0.4) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    backdrop-filter: blur(4px) !important;
}

.banner h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 1px 4px rgba(0,0,0,1) !important;
    margin-top: 8px !important;
}

.banner p {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,1) !important;
    background: rgba(0,0,0,0.35) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    backdrop-filter: blur(4px) !important;
    margin-top: 6px !important;
}

/* دکمه روی بنر */
.banner .cta {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    text-shadow: none !important;
}
