@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --bg: #0a0e14;
  --bg-soft: #0d1219;
  --surface: #141a24;
  --surface-2: #1b2330;
  --line: rgba(255,255,255,.08);
  --text: #f2f0ea;
  --muted: #8b93a4;
  --gold: #ffc247;
  --gold-deep: #e2a53a;
  --live: #ff4757;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 70px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background-color: #0e1019;
  background-image: radial-gradient(circle at 50% 0%, rgba(20,24,40,.4), rgba(14,16,25,.96)), url('/assets/site_bg.webp');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: auto; padding: 0 24px; }

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: rgba(10,14,20,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; }
.brand-logo { display: block; max-height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.admin-link { border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px; color: var(--text); }
.admin-link:hover { border-color: var(--gold); }

.topbar-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,.65);
  border: 1px solid rgba(255,194,75,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 0 12px rgba(255,194,75,.08);
  backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
  transition: all .3s ease;
}
.topbar-stats:hover { border-color: rgba(255,194,75,.5); box-shadow: 0 6px 24px rgba(255,194,75,.2); }
.topbar-stats strong { color: var(--gold); font-weight: 700; }
.topbar-stats .dot-sep { color: rgba(255,255,255,.3); margin: 0 2px; }

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,71,87,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,71,87,.55); }
  70% { box-shadow: 0 0 0 9px rgba(255,71,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,71,87,0); }
}

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 100px; padding: 15px 24px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #ffcf6b; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 48px 40px 36px;
  background: radial-gradient(circle at 75% 20%, #1e1b4b 0%, #0f172a 60%, #090d16 100%);
  border: 1px solid rgba(255,194,75,.18);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.7);
  margin-top: 24px;
  margin-bottom: 40px;
}
.hero-bg-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-stadium-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  filter: brightness(.65) contrast(1.2) hue-rotate(-10deg);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}
.hero-spotlight { position: absolute; width: 450px; height: 450px; border-radius: 50%; filter: blur(80px); opacity: .45; mix-blend-mode: screen; }
.spotlight-left { top: -100px; left: -100px; background: radial-gradient(circle, rgba(37,99,235,.6), transparent 70%); animation: spotlightMove 8s infinite alternate ease-in-out; }
.spotlight-right { bottom: -150px; right: -50px; background: radial-gradient(circle, rgba(255,194,75,.5), transparent 70%); animation: spotlightMove 10s infinite alternate-reverse ease-in-out; }
@keyframes spotlightMove {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,40px) scale(1.15); }
}
.hero-glow-orb { position: absolute; border-radius: 50%; filter: blur(50px); }
.orb-gold { width: 220px; height: 220px; background: rgba(255,194,75,.25); top: 10%; right: 15%; animation: orbFloat 6s ease-in-out infinite alternate; }
.orb-blue { width: 180px; height: 180px; background: rgba(96,165,250,.2); bottom: 15%; left: 25%; animation: orbFloat 7s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-25px) scale(1.1); }
}

.hero-top-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); text-transform: uppercase; color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(48px,6.6vw,88px); line-height: .96; letter-spacing: .5px; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 18px; max-width: 480px; color: var(--muted); line-height: 1.55; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scoreboard {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(30,41,59,.95), rgba(15,23,42,.98));
  border: 1px solid rgba(255,194,75,.35);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 20px 45px rgba(0,0,0,.6), 0 0 30px rgba(255,194,75,.15);
  overflow: hidden;
}
.scoreboard::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,194,71,.18), transparent 70%); }
.scoreboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.scoreboard-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.live-tag { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--live); }
.scoreboard-team { display: flex; align-items: center; gap: 14px; position: relative; }
.scoreboard-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 32px; letter-spacing: .3px; }
.scoreboard-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.scoreboard-amount { font-family: var(--font-mono); font-size: 42px; font-weight: 700; color: var(--gold); margin: 18px 0 4px; letter-spacing: -1px; }
.scoreboard-stats { display: flex; gap: 26px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.scoreboard-stats div strong { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--text); }
.scoreboard-stats div span { font-size: 12px; color: var(--muted); }
.scoreboard-cta { width: 100%; margin-top: 18px; justify-content: center; }

.team-star-icon { width: 22px; height: 22px; flex-shrink: 0; animation: starPulse 2.5s infinite alternate ease-in-out; }
@keyframes starPulse {
  0% { transform: scale(1) rotate(0deg); opacity: .9; }
  100% { transform: scale(1.15) rotate(8deg); opacity: 1; }
}

.badge { border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #12131a; overflow: hidden; flex-shrink: 0; }
.badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge-lg { width: 58px; height: 58px; font-size: 22px; }
.badge-lg img { object-fit: cover; }
.badge-md { width: 48px; height: 48px; font-size: 18px; }
.badge-sm { width: 40px; height: 40px; font-size: 15px; }

.ticker-wrapper {
  display: flex;
  align-items: center;
  background: #121620;
  border: 1px solid rgba(255,194,75,.25);
  border-radius: 14px;
  margin: 24px 0 28px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 0 12px rgba(255,194,75,.05);
  position: relative;
  height: 52px;
}
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffc247, #e2a53a);
  color: #0f172a;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .5px;
  padding: 0 20px;
  height: 100%;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 4px 0 12px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.ticker-badge .pulse-dot { width: 7px; height: 7px; background-color: #0f172a; border-radius: 50%; box-shadow: 0 0 8px rgba(15,23,42,.8); }
.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}
.ticker-track:hover .ticker-content { animation-play-state: paused; }
.ticker-content { display: inline-flex; align-items: center; gap: 20px; animation: tickerMarquee 35s linear infinite; will-change: transform; }
@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color .2s ease;
}
.ticker-item:hover { border-color: rgba(255,194,75,.4); }
.ticker-team { font-weight: 700; color: #fff; font-size: 12.5px; letter-spacing: .2px; }
.ticker-sep { color: rgba(255,255,255,.25); font-size: 14px; }
.ticker-name { color: #94a3b8; font-weight: 500; }
.ticker-amount { font-weight: 700; color: #ffc247; background: rgba(255,194,71,.12); border: 1px solid rgba(255,194,71,.25); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 20px 0 16px; margin: 0 auto; width: 100%; }
.filters { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; margin: 0 auto; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-submit { white-space: nowrap; }
.search {
  background: #1e2430;
  border: 1px solid rgba(255,255,255,.14);
  padding: 10px 18px;
  border-radius: 100px;
  color: #f8fafc;
  font-size: 13.5px;
  width: 210px;
}
.search:focus { outline: none; border-color: #ffc247; box-shadow: 0 0 0 3px rgba(255,194,71,.2); }
.pill {
  background: #1e2430;
  border: 1px solid rgba(255,255,255,.14);
  padding: 9.5px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: #e2e8f0;
  transition: all .2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.pill:hover { background: #2a3242; color: #fff; border-color: rgba(255,255,255,.3); }
.pill.active { background: linear-gradient(135deg, #ffc247, #e2a53a); border-color: #ffc247; color: #0f172a; font-weight: 700; box-shadow: 0 4px 14px rgba(255,194,71,.3); }

.flash { background: rgba(255,194,71,.14); border: 1px solid rgba(255,194,71,.35); color: var(--gold); padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px; }
.flash.error { background: rgba(255,71,87,.12); border-color: rgba(255,71,87,.35); color: #ff8a93; }

.leaderboard { margin-top: 8px; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 0 20px rgba(255,255,255,.01); }
.leader-row { display: grid; grid-template-columns: 46px 48px 1fr 190px 150px; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 18px 10px; transition: background .15s, transform .15s; border-radius: var(--radius-sm); }
.leader-row:hover { background: var(--surface); transform: translateX(4px); }
.leader-row .rank { font-family: var(--font-mono); color: var(--muted); font-size: 14px; }
.leader-row:nth-child(-n+3) .rank { color: var(--gold); font-weight: 700; }
.team-name { font-size: 18px; font-weight: 700; }
.team-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 9px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 9px; }
.amount { text-align: right; font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.amount small { font-family: var(--font-body); color: var(--muted); display: block; font-size: 11px; margin-top: 5px; font-weight: 400; }
.support { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); padding: 11px 16px; border-radius: 100px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.support:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.filter-status { color: var(--muted); font-size: 13px; margin: 16px 0 6px; text-align: center; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0 16px; margin-top: 0; }
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.page-button:hover:not(.disabled):not(.active) { background: var(--surface-2); color: var(--text); border-color: rgba(255,194,71,.4); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.page-button.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--bg); border-color: var(--gold); font-weight: 800; box-shadow: 0 4px 20px rgba(255,194,71,.35); transform: translateY(-1px); }
.page-button.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.page-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 42px; color: var(--muted); font-family: var(--font-mono); font-weight: 700; font-size: 16px; user-select: none; opacity: .6; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--muted); font-size: 13px; display: flex; justify-content: center; align-items: center; text-align: center; width: 100%; }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin: 0 auto; text-align: center; width: 100%; }

.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(6,8,12,.7); backdrop-filter: blur(3px); z-index: 30; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line); width: min(480px, 100%); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.modal h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 30px; letter-spacing: .3px; }
.modal p { color: var(--muted); font-size: 14px; margin: 0; }
.close { position: absolute; top: 18px; right: 18px; background: var(--surface-2); border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--text); }
.field { display: block; margin: 20px 0 0; font-size: 13px; font-weight: 700; }
.field input { width: 100%; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); padding: 13px 14px; margin-top: 8px; border-radius: var(--radius-sm); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); padding: 9px 14px; border-radius: 100px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 26px; }
.form-actions .btn { width: 100%; justify-content: center; }

.toast-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(26,32,48,.96), rgba(15,20,30,.98));
  border: 1px solid rgba(255,194,71,.5);
  box-shadow: 0 20px 45px rgba(0,0,0,.6), 0 0 25px rgba(255,194,71,.2);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(16px);
  animation: toastSlideIn .5s cubic-bezier(.16,1,.3,1) forwards;
  transition: opacity .4s ease, transform .4s ease;
}
.toast-popup.toast-hide { opacity: 0; transform: translateY(20px) scale(.95); pointer-events: none; }
@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateY(40px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-badge { display: inline-block; background: rgba(255,194,71,.15); color: var(--gold); border: 1px solid rgba(255,194,71,.3); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.toast-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.toast-desc { font-size: 13px; color: #cbd5e1; margin: 0; line-height: 1.45; }
.toast-close { background: none; border: none; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; margin-left: auto; transition: color .2s; }
.toast-close:hover { color: #fff; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #ff9800); border-radius: 0 0 16px 16px; width: 100%; animation: toastProgress 6s linear forwards; }
@keyframes toastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

.legal-container { max-width: 900px; margin: 30px auto 50px; }
.legal-nav-tabs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 24px; justify-content: center; align-items: center; }
.legal-nav-tabs a { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: all .25s ease; white-space: nowrap; }
.legal-nav-tabs a:hover { color: var(--text); border-color: rgba(255,215,0,.4); background: rgba(255,255,255,.05); }
.legal-nav-tabs a.active { background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(180,83,9,.25)); border-color: var(--gold); color: var(--gold); font-weight: 700; box-shadow: 0 0 12px rgba(251,191,36,.2); }

.legal-card { background-color: #141824; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.legal-card::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(251,191,36,.08), transparent 70%); pointer-events: none; }
.legal-card-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.legal-card-header h1 { font-family: var(--font-display); font-size: 36px; margin: 8px 0 0; letter-spacing: -.5px; }
.legal-card-body h2 { font-size: 20px; color: var(--gold); margin: 28px 0 12px; font-family: var(--font-display); }
.legal-card-body p { margin-bottom: 16px; }
.legal-card-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { padding-left: 20px; margin-bottom: 20px; }
.legal-list li { margin-bottom: 10px; }
.legal-card-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

.company-info-box { background: rgba(18,19,26,.7); border: 1px solid rgba(255,215,0,.25); border-radius: 14px; padding: 24px; margin-top: 36px; box-shadow: inset 0 0 20px rgba(0,0,0,.4); }
.company-info-header { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold); font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,215,0,.2); }
.company-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; font-size: 13px; color: var(--text); margin-bottom: 18px; }
.company-emails { font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.email-tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.email-tags a { font-size: 13px; color: var(--text); text-decoration: none; display: flex; justify-content: space-between; align-items: center; transition: all .25s ease; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; }
.email-tags a span { color: var(--muted); font-size: 12px; }
.email-tags a:hover { border-color: var(--gold); background: rgba(251,191,36,.1); color: var(--gold); transform: translateY(-1px); }

.admin-page { max-width: 1180px; margin: auto; padding: 50px 24px; }
.admin-page h1 { font-family: var(--font-display); font-size: 46px; letter-spacing: .3px; margin: 10px 0 30px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); }
.panel h2 { margin-top: 0; font-size: 19px; }
.save { background: var(--gold); color: var(--bg); border: 0; padding: 10px 16px; border-radius: 100px; cursor: pointer; font-weight: 700; }

.admin-body { background-color: #0e1019; color: #f8fafc; font-family: 'Inter', system-ui, -apple-system, sans-serif; min-height: 100vh; margin: 0; padding: 0; }
.admin-layout { display: flex; min-height: calc(100vh - 78px); }
.admin-sidebar { width: 260px; background: #121620; border-right: 1px solid rgba(255,255,255,.08); padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; color: #94a3b8; font-weight: 500; font-size: 14px; text-decoration: none; transition: all .2s ease; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,194,71,.12); color: #ffc247; }
.admin-nav-item svg { width: 18px; height: 18px; stroke: currentColor; }
.admin-content { flex: 1; padding: 32px 40px; overflow-y: auto; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-title { font-size: 24px; font-weight: 800; color: #f8fafc; margin: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.admin-stat-card { background: #141824; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 20px 24px; }
.admin-stat-card .label { font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
.admin-stat-card .value { font-size: 26px; font-weight: 800; color: #ffc247; }
.admin-table-wrap { background: #141824; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.admin-table th { background: rgba(255,255,255,.03); color: #94a3b8; font-weight: 600; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.05); color: #e2e8f0; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table input { width: 100%; border: 1px solid var(--line); padding: 8px; background: var(--bg-soft); color: var(--text); border-radius: 6px; }
.admin-badge-league { background: rgba(96,165,250,.15); color: #60a5fa; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.admin-toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.legal-card,
.scoreboard,
.leaderboard,
.panel,
.modal,
.leader-row,
.company-info-box {
  background-color: #121620;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  body { background-attachment: scroll; }

  .wrap { padding: 0 12px; max-width: 100%; }

  .topbar { height: 62px; padding: 0 10px; gap: 6px; }
  .brand { flex-shrink: 0; }
  .brand-logo { max-height: 28px; width: auto; }
  .topbar-stats { padding: 5px 10px; font-size: 11px; font-weight: 600; gap: 4px; white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar-stats strong { font-size: 11.5px; white-space: nowrap; }
  .nav { display: none; }

  .hero { padding: 22px 14px; margin-top: 10px; margin-bottom: 16px; border-radius: 16px; }
  .hero-top-row { grid-template-columns: 1fr; gap: 16px; }
  .eyebrow { font-size: 9.5px; letter-spacing: 1px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; margin: 8px 0 10px; }
  .hero p { font-size: 13px; line-height: 1.45; margin-bottom: 14px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 13.5px; width: 100%; justify-content: center; }

  .scoreboard { padding: 16px 14px; border-radius: 14px; margin-top: 0; width: 100%; }
  .scoreboard-top { margin-bottom: 10px; }
  .scoreboard-team { gap: 10px; }
  .scoreboard .badge { width: 44px; height: 44px; font-size: 19px; }
  .scoreboard-name { font-size: 22px; }
  .team-star-icon { width: 18px; height: 18px; margin-left: 4px; }
  .scoreboard-meta { font-size: 11px; }
  .scoreboard-amount { font-size: 28px; margin: 8px 0 2px; }
  .scoreboard-stats { gap: 16px; padding-top: 8px; margin-top: 8px; }
  .scoreboard-stats div strong { font-size: 14px; }
  .scoreboard-stats div span { font-size: 10.5px; }
  .scoreboard-cta { margin-top: 12px; padding: 12px 16px; font-size: 13.5px; }

  .ticker-wrapper { height: 40px; margin: 14px 0 16px; border-radius: 10px; }
  .ticker-badge { padding: 0 10px; font-size: 9.5px; letter-spacing: .2px; }
  .ticker-badge .pulse-dot { width: 5px; height: 5px; }
  .ticker-track { mask-image: linear-gradient(to right, transparent 0%, black 8px, black calc(100% - 8px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8px, black calc(100% - 8px), transparent 100%); }
  .ticker-content { gap: 8px; padding-left: 10px; }
  .ticker-item { padding: 3px 8px; font-size: 11px; gap: 5px; }
  .ticker-team { font-size: 11px; }
  .ticker-amount { padding: 2px 5px; font-size: 10px; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0 8px; }
  .search-form { width: 100%; gap: 6px; }
  .search { flex: 1; width: 100%; padding: 10px 14px; font-size: 13px; }
  .search-submit { padding: 10px 16px; font-size: 12.5px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; padding: 2px 0 6px; gap: 6px; }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; padding: 7px 14px; font-size: 12px; }

  .leaderboard { border-radius: 16px; padding: 6px 4px; }
  .leader-row {
    grid-template-columns: 28px 42px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    margin-bottom: 4px;
    background: rgba(255,255,255,.02);
  }
  .leader-row:hover { background: rgba(255,255,255,.05); transform: none; }
  .leader-row .rank { grid-column: 1; grid-row: 1 / span 2; font-size: 13px; text-align: center; }
  .leader-row:nth-child(1) .rank { color: #ffd700; font-size: 15px; }
  .leader-row:nth-child(2) .rank { color: #e2e8f0; font-size: 14px; }
  .leader-row:nth-child(3) .rank { color: #f59e0b; font-size: 14px; }
  .leader-row .badge { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; font-size: 17px; }
  .leader-row > div:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; min-width: 0; padding-right: 6px; }
  .team-name { font-size: 15px; font-weight: 800; line-height: 1.25; white-space: normal; word-break: break-word; margin-bottom: 2px; }
  .team-meta { font-size: 11px; line-height: 1.2; }
  .bar { display: none; }
  .amount { grid-column: 4; grid-row: 1; font-size: 14.5px; font-weight: 800; white-space: nowrap; align-self: end; margin-bottom: 2px; }
  .amount small { display: none; }
  .support { grid-column: 4; grid-row: 2; justify-self: end; padding: 5px 14px; font-size: 11.5px; align-self: start; }

  .pagination { flex-wrap: nowrap; gap: 3px; padding: 12px 0 16px; overflow-x: auto; }
  .page-button { min-width: 32px; height: 34px; padding: 0 6px; font-size: 12px; border-radius: 8px; box-shadow: none; }
  .page-ellipsis { min-width: 14px; height: 34px; font-size: 11px; }

  .modal-backdrop { padding: 12px; }
  .modal { padding: 22px 16px; border-radius: 18px; max-height: 86vh; overflow-y: auto; }
  .modal h2 { font-size: 22px; }
  .field input { font-size: 16px; padding: 12px 14px; }
  .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .chip { padding: 8px 4px; font-size: 12px; text-align: center; }

  .toast-popup { left: 12px; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 14px 16px; border-radius: 14px; }
  .toast-title { font-size: 14px; }
  .toast-desc { font-size: 12px; }

  .footer { padding: 24px 0 40px; }
  .footer-legal-links { gap: 8px 10px; font-size: 11px; padding: 0 4px; }

  .legal-container { margin: 10px auto 24px; padding: 0 2px; }
  .legal-nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; padding: 4px 2px 8px; gap: 5px; margin-bottom: 12px; }
  .legal-nav-tabs::-webkit-scrollbar { display: none; }
  .legal-nav-tabs a { flex-shrink: 0; white-space: nowrap; padding: 6px 11px; font-size: 11px; }
  .legal-card { padding: 18px 14px; border-radius: 16px; overflow: hidden; }
  .legal-card::before { display: none; }
  .legal-card-header h1 { font-size: 24px; }
  .legal-card-body h2 { font-size: 15px; margin: 16px 0 6px; }
  .legal-card-body p, .legal-card-body li { font-size: 12.5px; line-height: 1.5; }
  .company-info-box { padding: 14px; margin-top: 16px; border-radius: 10px; }
  .company-info-grid { grid-template-columns: 1fr; gap: 6px; }
  .email-tags { grid-template-columns: 1fr; gap: 6px; }
  .email-tags a { padding: 8px 10px; font-size: 11.5px; }
  .legal-card-footer .btn { width: 100%; justify-content: center; padding: 11px 16px; font-size: 13px; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .admin-content { padding: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
}

/* === Bagis Siralama (En Cok Bagis Yapanlar) === */
.crown-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; padding: 8px 16px; border: 1px solid rgba(255,194,75,.35); border-radius: 99px; background: rgba(255,194,75,.08); color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.crown-link svg { flex-shrink: 0; display: block; }
.crown-link:hover { background: rgba(255,194,75,.18); border-color: var(--gold); color: #ffd873; }

.donor-rank-container p { color: var(--muted); }
.donor-list { margin-top: 22px; }
.donor-row { display: grid; grid-template-columns: 44px 1fr 220px 130px; align-items: center; gap: 14px; padding: 14px 10px; border-top: 1px solid var(--line); border-radius: var(--radius-sm); transition: background .15s; }
.donor-row:first-child { border-top: none; }
.donor-row:hover { background: var(--surface); }
.donor-rank { font-family: var(--font-mono); color: var(--muted); font-size: 14px; }
.donor-row:nth-child(1) .donor-rank { color: #ffd700; font-weight: 800; font-size: 16px; }
.donor-row:nth-child(2) .donor-rank { color: #e2e8f0; font-weight: 700; font-size: 15px; }
.donor-row:nth-child(3) .donor-rank { color: #f59e0b; font-weight: 700; font-size: 15px; }
.donor-name { font-weight: 700; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.donor-team { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.donor-team .badge { flex-shrink: 0; }
.donor-amount { text-align: right; font-family: var(--font-mono); font-weight: 800; color: var(--gold); font-size: 15px; white-space: nowrap; }

@media (max-width: 900px) {
  .crown-link { flex-shrink: 0; padding: 7px 8px; margin-left: 0; gap: 0; border-radius: 10px; }
  .crown-link span { display: none; }

  .donor-list { margin-top: 14px; }
  .donor-row { grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; padding: 12px 8px; }
  .donor-rank { grid-column: 1; grid-row: 1 / span 2; text-align: center; }
  .donor-name { grid-column: 2; grid-row: 1; font-size: 14px; }
  .donor-team { grid-column: 2; grid-row: 2; font-size: 12px; }
  .donor-team .badge { width: 26px; height: 26px; font-size: 11px; }
  .donor-amount { grid-column: 3; grid-row: 1 / span 2; font-size: 14px; align-self: center; }
}