@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

/* ════════════════════════════════════════
   DARK MODE (varsayılan)
   ════════════════════════════════════════ */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #1a1a24;
  --border:    rgba(255,255,255,0.08);
  --accent:    #c8ff00;
  --accent2:   #7c3aed;
  --text:      #f0f0f8;
  --muted:     #b8b8d0;
  --won:       #22c55e;
  --lost:      #ef4444;
  --pending:   #f59e0b;
  --radius:    12px;
  --radius-sm: 6px;
  --nav-bg:    rgba(10,10,15,0.92);
}

/* ════════════════════════════════════════
   LIGHT MODE — body.light class'ı eklenince
   ════════════════════════════════════════ */
body.light {
  --bg:        #f0f0f5;
  --bg2:       #ffffff;
  --bg3:       #e4e4ee;
  --border:    rgba(0,0,0,0.10);
  --accent:    #5a7a00;
  --accent2:   #6d28d9;
  --text:      #0f0f1a;
  --muted:     #52526e;
  --won:       #15803d;
  --lost:      #b91c1c;
  --pending:   #b45309;
  --nav-bg:    rgba(240,240,245,0.95);
}

/* ════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.25s ease;
}

.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 4px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--bg3);
}

/* ── Sağ kontroller (tema + dil + kullanıcı) ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ════════════════════════════════════════
   TEMA TOGGLE
   ════════════════════════════════════════ */
.theme-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg2);
}

/* ════════════════════════════════════════
   DİL SEÇİCİ
   ════════════════════════════════════════ */
.lang-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  text-transform: uppercase;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg2);
}
.lang-toggle .lang-flag { font-size: 14px; }

/* ════════════════════════════════════════
   WRAPPER
   ════════════════════════════════════════ */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 16px;
  max-width: 480px;
  margin-inline: auto;
}

/* ════════════════════════════════════════
   STATS GRID
   ════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.stat-card .val {
  font-family: 'DM Mono', monospace;
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.stat-card .lbl {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ════════════════════════════════════════
   TABLE
   ════════════════════════════════════════ */
.table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg3); }

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

tr:hover td { background: rgba(128,128,128,0.04); }

.rank { font-family: 'DM Mono', monospace; color: var(--muted); font-size: 12px; width: 40px; }
.rank-1 { color: #ffd700; font-weight: 700; }
.rank-2 { color: #c0c0c0; font-weight: 700; }
.rank-3 { color: #cd7f32; font-weight: 700; }

/* ════════════════════════════════════════
   AVATAR & AGENT
   ════════════════════════════════════════ */
.agent-cell { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.agent-name {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.agent-name:hover { opacity: 0.85; }

/* ════════════════════════════════════════
   BADGES
   ════════════════════════════════════════ */
.risk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-dusuk  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.risk-orta   { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.risk-yuksek { background: rgba(239,68,68,0.15);   color: #ef4444; }

body.light .risk-dusuk  { background: rgba(21,128,61,0.12);  color: #15803d; }
body.light .risk-orta   { background: rgba(180,83,9,0.12);   color: #b45309; }
body.light .risk-yuksek { background: rgba(185,28,28,0.12);  color: #b91c1c; }

.mono { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text); }

.positive { color: var(--won); }
.negative { color: var(--lost); }
.neutral  { color: var(--muted); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge-won     { background: rgba(34,197,94,0.15);  color: var(--won); }
.badge-lost    { background: rgba(239,68,68,0.15);  color: var(--lost); }
.badge-pending { background: rgba(245,158,11,0.15); color: var(--pending); }

/* ════════════════════════════════════════
   PROGRESS BAR
   ════════════════════════════════════════ */
.pbar-wrap { display: flex; align-items: center; gap: 8px; }
.pbar { height: 4px; border-radius: 2px; background: var(--bg3); flex: 1; min-width: 60px; }
.pbar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.6s ease; }
.pbar-fill.won { background: var(--won); }

/* ════════════════════════════════════════
   CARDS
   ════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

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

/* ════════════════════════════════════════
   COUPON CARD
   ════════════════════════════════════════ */
.coupon-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, background 0.25s ease;
}

.coupon-card:hover { border-color: rgba(128,128,128,0.3); }
.coupon-card.won   { border-color: rgba(34,197,94,0.3); }
.coupon-card.lost  { border-color: rgba(239,68,68,0.2); }

body.light .coupon-card:hover { border-color: rgba(0,0,0,0.18); }

.coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.coupon-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.coupon-selection {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.coupon-selection:last-child { border-bottom: none; }

.match-name {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}

.bet-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bet-type-label {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.odd-val {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.coupon-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-odds-total {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* ════════════════════════════════════════
   AGENT PROFILE
   ════════════════════════════════════════ */
.profile-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.profile-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.profile-bio { color: var(--muted); margin-top: 6px; font-style: italic; }
.profile-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: auto;
  min-width: 400px;
}

.profile-stat {
  background: var(--bg2);
  padding: 20px;
  text-align: center;
  transition: background 0.25s ease;
}

.profile-stat .val {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.profile-stat .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   TABS
   ════════════════════════════════════════ */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
}
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.25s ease, color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary { background: var(--accent); color: #0a0a0f; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--lost);
  border: 1px solid rgba(239,68,68,0.3);
}

/* ════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.admin-main { padding: 24px; }

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-menu a:hover,
.sidebar-menu a.active { background: var(--bg3); color: var(--accent); }

/* ════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: var(--won); }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: var(--lost); }
.alert-info    { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); color: #a78bfa; }

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty h3 { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--accent); margin-bottom: 8px; }

/* ════════════════════════════════════════
   ROI
   ════════════════════════════════════════ */
.roi { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .wrapper { padding: 20px 16px; }
  .profile-hero { flex-direction: column; }
  .profile-stats { min-width: unset; }
  .admin-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .lang-toggle .lang-label { display: none; }
}
