/* MRWIN v4 — adds Sports tabs, profile pages, crypto deposit + admin */
:root{
  --emerald-1:#10b981;
  --emerald-2:#22c55e;
  --gold-1:#c6a75e;
  --gold-2:#b08933;
  --bg:#f7fafc;
  --panel:#ffffff;
  --ink:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --radius:16px;
  --shadow-1: 0 6px 18px rgba(0,0,0,.06);
  --shadow-2: 0 12px 28px rgba(0,0,0,.08);
  --control:#ffffff;
}
:root[data-theme="dark"]{
  --bg:#0f172a;
  --panel:#111827;
  --ink:#e5e7eb;
  --muted:#9ca3af;
  --line:#1f2937;
  --control:#0b1220;
  --shadow-1: 0 6px 18px rgba(0,0,0,.35);
  --shadow-2: 0 12px 28px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; background:var(--bg); color:var(--ink); font-family:'Vazirmatn', system-ui, -apple-system, Segoe UI, sans-serif; line-height:1.6; letter-spacing:.1px; -webkit-font-smoothing:antialiased}
.en, :lang(en){ font-family:'Sora', ui-sans-serif, system-ui; font-weight:700; letter-spacing:.3px }
h1,h2,h3,.logo-text{ font-family:'Lalezar','Vazirmatn', system-ui; }

.mw-header{position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; padding:14px 20px; margin:12px; border-radius:calc(var(--radius) + 6px); background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-1)}
.brand{display:flex; align-items:center; gap:12px}
.logo-mark{width:14px; height:14px; border-radius:3px; background:linear-gradient(135deg,var(--gold-1),var(--gold-2))}
.logo-text{font-weight:400; font-size:22px; color:var(--ink)}
.mw-actions{display:flex; gap:10px; align-items:center}

/* Fancy Theme Switch */
.theme-switch{position:relative; width:74px; height:36px; border-radius:999px; background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-1); display:flex; align-items:center; justify-content:space-between; padding:0 8px; cursor:pointer}
.theme-switch .ico{width:18px; height:18px; display:grid; place-items:center}
.theme-switch .knob{position:absolute; top:3px; left:3px; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,var(--gold-1),var(--gold-2)); box-shadow:0 3px 10px rgba(0,0,0,.2); transition:transform .28s ease, background .28s ease}
:root[data-theme="dark"] .theme-switch .knob{transform:translateX(38px); background:linear-gradient(135deg,var(--emerald-2),var(--emerald-1))}

.btn{padding:10px 16px; border-radius:12px; font-weight:800; text-decoration:none; border:1px solid transparent; transition:.2s transform,.2s box-shadow,.2s background-color,.2s color; display:inline-flex; align-items:center; gap:8px; white-space:nowrap}
.btn.big{padding:14px 22px; font-size:1.04rem}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow-1)}
.btn:active{transform:translateY(0)}
.btn-outline.gold{border-color:var(--gold-1); color:var(--gold-1); background:var(--panel)}
.btn-outline.emerald{border-color:var(--emerald-1); color:var(--emerald-1); background:var(--panel)}
.btn-solid.gold{background:linear-gradient(135deg,var(--gold-1),var(--gold-2)); color:#fdfcfa}
.btn-solid.emerald{background:linear-gradient(135deg,var(--emerald-2),var(--emerald-1)); color:#ffffff}

/* Hero/Slider */
.hero{position:relative; width:100%; overflow:hidden; height:56vh; border-radius:var(--radius); margin:12px; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow-1)}
.slides{display:flex; width:200vw; height:100%; transform:translateX(0); transition:transform .6s ease}
.slide{width:100vw; height:100%; position:relative; display:flex; align-items:center; justify-content:center; text-align:center; padding:28px}
.slide-1,.slide-2{background:linear-gradient(180deg, rgba(16,185,129,.06), transparent 60%),linear-gradient(0deg, rgba(198,167,94,.07), transparent 40%)}
:root[data-theme="dark"] .slide-1,:root[data-theme="dark"] .slide-2{background:linear-gradient(180deg, rgba(16,185,129,.10), transparent 60%),linear-gradient(0deg, rgba(198,167,94,.10), transparent 40%)}
.slide-content{max-width:880px}
.slide h1,.slide h2{margin:0 0 12px}
.slide h1{font-size: clamp(28px, 4.2vw, 48px)}
.slide h2{font-size: clamp(24px, 3.6vw, 40px)}
.slider-controls{position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none}
.ctrl{pointer-events:auto; width:44px; height:44px; margin:0 10px; border-radius:10px; background:var(--control); border:1px solid var(--line); color:var(--ink); font-size:28px; line-height:1; display:grid; place-items:center; box-shadow:var(--shadow-1)}

/* Odds Section + Tabs */
.odds-section{padding:28px 16px; scroll-margin-top:90px}
.container{max-width:1100px; margin:0 auto}
.section-header h3{font-size:1.5rem; margin:0 0 6px}
.tabs{display:flex; gap:10px; margin:8px 0 12px}
.tab{padding:10px 14px; border-radius:10px; border:1px solid var(--line); background:var(--panel); cursor:pointer; font-weight:800}
.tab.active{border-color:var(--emerald-1); color:var(--emerald-1)}
.odds-toolbar{position:sticky; top:72px; z-index:30; display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:var(--panel); border:1px solid var(--line); padding:12px; border-radius:var(--radius); box-shadow:var(--shadow-1)}
.select{background:var(--panel); color:var(--ink); border:1px solid var(--line); padding:10px; border-radius:10px; min-width:160px}
.table-wrap{margin-top:14px; overflow:auto; border-radius:var(--radius); border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow-1)}
.odds-table{width:100%; border-collapse:collapse; color:var(--ink)}
.odds-table th, .odds-table td{padding:12px 10px; border-bottom:1px solid var(--line); text-align:center}
.odds-table thead th{position:sticky; top:0; background:rgba(0,0,0,0.03)}
:root[data-theme="dark"] .odds-table thead th{background:rgba(255,255,255,0.04)}
.odds-table .loading{color:var(--muted); text-align:center}
.col-3{display:table-cell}

/* Floating Footer */
.footer-nav{position:fixed; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:12px; padding:10px; border-radius:16px; background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-2); z-index:35}
.nav-item{display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 16px; border-radius:12px; text-decoration:none; color:var(--ink); border:1px solid transparent; font-weight:800; font-size:.86rem}
.nav-item svg{width:22px; height:22px; fill:currentColor}
.nav-item.active{border-color:var(--gold-1); color:var(--gold-1)}
.nav-item:hover{border-color:var(--emerald-1); color:var(--emerald-1); background:rgba(0,0,0,0.02)}
:root[data-theme="dark"] .nav-item:hover{background:rgba(255,255,255,0.04)}

/* Modals */
.modal-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.3); display:none; align-items:center; justify-content:center; z-index:60}
:root[data-theme="dark"] .modal-backdrop{background:rgba(0,0,0,.55)}
.modal{width:min(920px, 92vw); background:var(--panel); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-2); padding:16px}
.modal header{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.modal h3{margin:0; font-family:'Lalezar','Vazirmatn'; font-size:1.5rem}
.modal .close{border:none; background:var(--control); border:1px solid var(--line); border-radius:8px; padding:8px; cursor:pointer}

/* Grid Cards */
.grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px}
@media (max-width:800px){ .grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width:480px){ .grid{grid-template-columns: 1fr} }
.card{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px}
.card .icon{width:44px; height:44px; border-radius:10px; display:grid; place-items:center; border:1px solid var(--line); background:var(--control)}
.card h4{margin:0; font-family:'Lalezar'; font-size:1.16rem}
.card .en{font-weight:800}
.card a.btn{width:100%; justify-content:center}

/* Profile list */
.list{display:grid; grid-template-columns: repeat(2, 1fr); gap:10px}
.list .item{display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--line); background:var(--panel); border-radius:12px; padding:12px}
.list .item .label{font-weight:800}
.list .item .action{white-space:nowrap}
@media (max-width:720px){ .list{grid-template-columns: 1fr} }

/* Forms */
.auth{max-width:460px; margin:32px auto; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:22px; box-shadow:var(--shadow-1)}
.auth h1{margin:0 0 8px}
.auth .muted{color:var(--muted); margin:0 0 16px}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
.label{font-weight:800}
.input, .select, .textarea{border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); padding:12px 14px; outline:0}
.inline{display:flex; align-items:center; gap:8px}
.row{display:flex; gap:10px}
.row .field{flex:1}
.helper{font-size:.9rem; color:var(--muted)}
.auth .actions{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px}
a.link{color:var(--emerald-1); text-decoration:none; font-weight:700}
a.link:hover{text-decoration:underline}

/* Deposit page */
.deposit-currencies{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px}
.pill{padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:var(--panel); cursor:pointer; font-weight:800}
.pill.active{border-color:var(--emerald-1); color:var(--emerald-1)}
.addr-box{display:flex; gap:10px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:10px; background:var(--panel)}
.addr{font-family:monospace; direction:ltr; overflow:auto}
.qr{width:180px; height:180px; border:1px solid var(--line); border-radius:12px; display:block; background:#fff}
.notice{font-size:.9rem; color:var(--muted)}
.table{width:100%; border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--line); padding:10px; text-align:right}


/* === MRWIN v5 UI polish (emerald+gold theme) === */
.mw-header{backdrop-filter:saturate(150%) blur(10px);}
.mw-header .logo-text{letter-spacing:.8px}
.theme-switch{position:relative; width:74px; height:38px; border-radius:999px; padding:6px; display:inline-flex; align-items:center; gap:8px; transition:all .25s ease; overflow:hidden}
.theme-switch .ico{width:24px; height:24px; display:grid; place-items:center; font-size:18px; transition:transform .35s ease, opacity .2s ease}
.theme-switch .txt{font-size:12px; opacity:.8}
:root:not([data-theme="light"]) .theme-switch .ico{transform:rotate(-25deg)}
:root[data-theme="light"] .theme-switch .ico{transform:rotate(0)}
.card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-1); padding:18px}
.card + .card{margin-top:14px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{border:1px dashed var(--line); border-radius:999px; padding:6px 10px; font-size:12px; color:var(--muted); cursor:pointer}
.chip.active{border-style:solid; color:var(--ink); background:rgba(16,185,129,.08); border-color:var(--emerald-1)}
.skel{position:relative; overflow:hidden; background:linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.12), rgba(0,0,0,.06)); background-size:300% 100%; animation:sh 1.2s ease infinite}
@keyframes sh{0%{background-position:0% 0} 100%{background-position:100% 0}}
.skel.h16{height:16px} .skel.h20{height:20px} .skel.h28{height:28px}
.skel.r8{border-radius:8px}
.slider-bullets{display:flex; gap:8px; position:absolute; bottom:14px; left:50%; transform:translateX(-50%)}
.slider-bullets button{width:8px; height:8px; border-radius:50%; border:0; background:rgba(255,255,255,.55); cursor:pointer}
:root[data-theme="dark"] .slider-bullets button{background:rgba(255,255,255,.35)}
.slider-bullets button.active{background:linear-gradient(135deg,var(--gold-1),var(--gold-2))}
.odds-card{display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--panel); box-shadow:var(--shadow-1)}
.odds-card .teams{font-weight:700}
.odds-card .book{font-size:12px; color:var(--muted)}
.odds-card .prices{display:flex; gap:10px}
.mw-fab{position:fixed; inset:auto 16px 18px auto; z-index:50}
.mw-fab .btn{border-radius:999px; padding:10px 16px; box-shadow:0 10px 26px rgba(0,0,0,.14)}


/* --- MRWIN odds table polish (added) --- */
#oddsTable { width: 100%; border-collapse: collapse; border: 1px solid rgba(0,0,0,.06); }
#oddsTable thead th { background: linear-gradient(180deg,#f9fafb,#f0f2f5); text-align: center; font-weight: 700; padding: 10px; }
#oddsTable td { padding: 10px; border-top: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
#oddsTable td.time { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .8; text-align:center; }
#oddsTable td.match .teams { font-weight: 600; }
#oddsTable td.match .sport { font-size: 12px; opacity: .7; }
#oddsTable td.price { text-align: center; font-weight: 700; }
#oddsTable td.price.home { color: #2563eb; }  /* blue */
#oddsTable td.price.draw { color: #0ea5e9; }  /* cyan */
#oddsTable td.price.away { color: #16a34a; }  /* green */
#oddsTable td.books { text-align: center; opacity: .7; }
