/* GKT — Siyah / Beyaz / Metalik Altın tasarım sistemi. Mobil öncelikli. */
:root {
  --bg: #0A0A0B; --bg-2: #0F0F11; --surface: #151518; --surface-2: #1C1C20; --line: #2A2A30; --line-2: #3A3A42;
  --text: #F4F2EC; --muted: #A3A19B; --dim: #6E6C67;
  --gold: #C9A54C; --gold-2: #E8CF8A; --gold-3: #8C6F2A;
  --gold-grad: linear-gradient(135deg, #8C6F2A 0%, var(--gold) 35%, var(--gold-2) 55%, var(--gold) 75%, #8C6F2A 100%);
  --ok: #4CAF7A; --warn: #E0A43A; --bad: #E05252; --info: #6AA6E0;
  --r: 12px; --r-sm: 8px; --shadow: 0 8px 30px rgba(0,0,0,.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --top: 64px; --bottom: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.gold { color: var(--gold); } .gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Üst bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10,10,11,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.brand-text { font-weight: 900; font-size: 1.45rem; letter-spacing: .12em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .65rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: block; line-height: 1; }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a, .mainnav .dd > button { color: var(--muted); padding: 8px 10px; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.mainnav a:hover, .mainnav a.active, .mainnav .dd > button:hover { color: var(--text); background: var(--surface); }
.mainnav a.active { color: var(--gold-2); }
.dd { position: relative; }
.dd-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: none; box-shadow: var(--shadow); z-index: 50; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; }
.top-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.icon-btn { background: none; border: 0; color: var(--text); width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface); }
.dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #000; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--gold-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold-2); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 2rem; }
.breaking { background: var(--gold-grad); color: #000; font-weight: 700; font-size: .85rem; padding: 6px 16px; text-align: center; }
.breaking a { color: #000; text-decoration: underline; }

/* Çekmece menü (mobil) */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.drawer-panel a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 600; }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--surface); color: var(--gold-2); }
.drawer-panel .sub { padding-left: 44px; font-weight: 500; color: var(--muted); font-size: .92rem; }
.drawer-panel hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* Alt navigasyon */
.bottomnav { display: none; }
@media (max-width: 899px) {
  .mainnav { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(12,12,14,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 40; }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 600; background: none; border: 0; cursor: pointer; min-height: 48px; }
  .bottomnav a.active { color: var(--gold-2); }
  .bottomnav svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(var(--bottom) + env(safe-area-inset-bottom)); }
  .only-desktop { display: none !important; }
}
@media (min-width: 900px) { .only-mobile { display: none !important; } }

/* Düzen */
main { flex: 1; width: 100%; outline: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
.narrow { max-width: 820px; }
.section { margin: 32px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 1.1em; background: var(--gold-grad); border-radius: 2px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.g6 { grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } }
.page-head { padding: 28px 0 8px; }
.page-head p { color: var(--muted); max-width: 720px; }
.crumbs { font-size: .8rem; color: var(--dim); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Kartlar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; min-width: 0; }
.card.link { display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--gold-3); transform: translateY(-1px); color: var(--text); }
.card h3 { margin-bottom: 6px; }
.card .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card-img { aspect-ratio: 16/9; background: var(--surface-2) center/cover no-repeat; border-radius: var(--r-sm); margin: -4px -4px 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.gold { border-color: var(--gold-3); background: linear-gradient(180deg, rgba(201,165,76,.08), transparent 60%), var(--surface); }
.stat { text-align: center; padding: 14px 10px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 850; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* Kahraman alanı */
.hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(1200px 400px at 85% -10%, rgba(201,165,76,.18), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(201,165,76,.08), transparent 60%), var(--bg-2); padding: 40px 22px; margin-top: 8px; }
.hero.has-img { background-size: cover; background-position: center; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.95), rgba(10,10,11,.6)); }
.hero > * { position: relative; }
.hero h1 { max-width: 760px; }
.hero p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.hero .logo-hero { height: 110px; width: auto; margin-bottom: 18px; }
.kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; display: block; }
@media (min-width: 900px) { .hero { padding: 64px 48px; } }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 650; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--gold-3); color: var(--text); }
.btn.primary { background: var(--gold-grad); color: #111; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); color: #000; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(224,82,82,.5); color: #ff9c9c; background: rgba(224,82,82,.08); }
.btn.ok { border-color: rgba(76,175,122,.5); color: #8fe0b2; background: rgba(76,175,122,.08); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* Rozetler */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; line-height: 1.6; }
.badge.gold { background: rgba(201,165,76,.12); color: var(--gold-2); border-color: rgba(201,165,76,.4); }
.badge.ok { background: rgba(76,175,122,.12); color: #8fe0b2; border-color: rgba(76,175,122,.4); }
.badge.warn { background: rgba(224,164,58,.12); color: #f2c77a; border-color: rgba(224,164,58,.4); }
.badge.bad { background: rgba(224,82,82,.12); color: #ff9c9c; border-color: rgba(224,82,82,.4); }
.badge.info { background: rgba(106,166,224,.12); color: #a9cdf0; border-color: rgba(106,166,224,.4); }
.badge.live { background: var(--bad); color: #fff; border-color: var(--bad); animation: pulse 1.6s infinite; }
.badge.sample { background: repeating-linear-gradient(45deg, #2a2a30, #2a2a30 4px, #222227 4px, #222227 8px); color: #cfcabd; border-style: dashed; }
@keyframes pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Sekmeler */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-size: .92rem; }
.tabs a.active, .tabs button.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; font-weight: 600; background: none; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold-2); }

/* Tablolar — mobilde yatay kaydırma */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap-cell { white-space: normal; min-width: 200px; }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
th.sticky-col { background: var(--bg-2); z-index: 2; }
.rank { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; background: var(--surface-2); font-size: .85rem; }
.rank.r1 { background: var(--gold-grad); color: #000; } .rank.r2 { background: #c7c7c7; color: #000; } .rank.r3 { background: #9c6b3c; color: #fff; }
.trend-up { color: var(--ok); } .trend-down { color: var(--bad); }
.team-cell { display: flex; align-items: center; gap: 10px; }
.logo-sm { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2) center/cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: var(--gold-2); border: 1px solid var(--line-2); overflow: hidden; }
.logo-sm img { width: 100%; height: 100%; object-fit: cover; }
.logo-lg { width: 96px; height: 96px; border-radius: 18px; font-size: 1.6rem; }
.scroll-hint { font-size: .75rem; color: var(--dim); margin: 6px 2px 0; }
@media (min-width: 900px) { .scroll-hint { display: none; } }

/* Formlar */
.form { display: grid; gap: 14px; }
.field label, .label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 6px; }
.field .help { font-size: .78rem; color: var(--dim); margin-top: 4px; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 16px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 260px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,165,76,.15); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-row.c2 { grid-template-columns: 1fr 1fr; } .form-row.c3 { grid-template-columns: 1fr 1fr 1fr; } }
.hp { position: absolute; left: -5000px; }
.err { color: #ff9c9c; font-size: .88rem; }
.img-field { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.img-field img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; }

/* İçerik */
.prose { font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--r); margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--bg-2); padding: 12px; border-radius: var(--r-sm); overflow-x: auto; }
.prose table { margin: 1em 0; }
.cover { aspect-ratio: 21/9; border-radius: var(--r); background: var(--surface-2) center/cover; margin-bottom: 18px; border: 1px solid var(--line); }
.embed { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.room-box { border: 1px solid var(--gold-3); background: rgba(201,165,76,.06); border-radius: var(--r); padding: 16px; }
.room-box .code { font-family: ui-monospace, Consolas, monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; color: var(--gold-2); }
.timeline { border-left: 2px solid var(--line-2); margin-left: 8px; padding-left: 18px; }
.timeline > div { position: relative; padding-bottom: 16px; }
.timeline > div::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sponsor-logo { height: 70px; display: flex; align-items: center; justify-content: center; filter: grayscale(.2); }
.sponsor-logo img { max-height: 60px; width: auto; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); width: 100%; cursor: zoom-in; }

/* Takvim */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: .7rem; color: var(--dim); text-align: center; text-transform: uppercase; padding: 4px 0; }
.cal .day { min-height: 74px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px; font-size: .72rem; overflow: hidden; }
.cal .day.other { opacity: .35; } .cal .day.today { border-color: var(--gold); }
.cal .day b { display: block; font-size: .8rem; color: var(--muted); }
.cal .ev { display: block; background: rgba(201,165,76,.14); color: var(--gold-2); border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .cal .day { min-height: 52px; } .cal .ev { font-size: 0; height: 6px; padding: 0; } }

/* Grafik */
.chart { width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: url(#gg); }
.chart .line { stroke: var(--gold); stroke-width: 2.5; fill: none; }
.chart .grid-line { stroke: var(--line); }

/* AI sohbet */
.chat { display: grid; grid-template-columns: 1fr; gap: 16px; min-height: calc(100vh - var(--top) - 120px); }
@media (min-width: 1000px) { .chat { grid-template-columns: 280px 1fr; } }
.chat-side { display: none; }
@media (min-width: 1000px) { .chat-side { display: block; } }
.chat-main { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 70vh; min-width: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 68vh; }
.msg { max-width: min(760px, 92%); padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--gold-grad); color: #111; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.assistant .prose { font-size: .95rem; }
.msg .tools { font-size: .72rem; color: var(--dim); margin-top: 6px; }
.chat-input { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { min-height: 46px; max-height: 160px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 12px; }
.action-card { border: 1px solid var(--gold-3); border-radius: var(--r-sm); padding: 10px; background: rgba(201,165,76,.05); margin-top: 8px; font-size: .88rem; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin: 0 2px; animation: pulse 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }

/* Admin */
.admin { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--top)); }
@media (min-width: 1000px) { .admin { grid-template-columns: 250px 1fr; } }
.admin-nav { background: var(--bg-2); border-right: 1px solid var(--line); padding: 12px; display: none; }
@media (min-width: 1000px) { .admin-nav { display: block; position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; } }
.admin-nav h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 16px 8px 6px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.admin-nav a:hover, .admin-nav a.active { background: var(--surface); color: var(--gold-2); }
.admin-main { padding: 18px 16px 60px; min-width: 0; }
.admin-mobile-nav { margin-bottom: 14px; }
@media (min-width: 1000px) { .admin-mobile-nav { display: none; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; flex: 1 1 160px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.kbd { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .85em; }
.res-row { display: grid; grid-template-columns: minmax(140px, 1fr) 80px 80px 80px; gap: 8px; align-items: center; }
.res-row input { min-height: 40px; padding: 6px 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 4px 16px; }

/* Bildirim / modal */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { border-left-color: var(--bad); } .toast.ok { border-left-color: var(--ok); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; padding: 20px; } }
.modal-box { background: var(--bg-2); border: 1px solid var(--line-2); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-box { border-radius: 18px; } }
.modal-box.wide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.modal-head h3 { margin: 0; }

/* Alt bilgi */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer a { color: var(--muted); display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--gold-2); }
.footer .disclaimer { font-size: .8rem; color: var(--dim); border-top: 1px solid var(--line); padding: 16px; text-align: center; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.socials a:hover { border-color: var(--gold); color: var(--gold-2); }
.socials svg { width: 18px; height: 18px; }

.page-loading { display: flex; justify-content: center; padding: 80px 0; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Sertifika ve yazdırma */
.certificate { background: #fff; color: #111; padding: 48px 36px; border: 10px solid #111; outline: 3px solid #C9A54C; outline-offset: -22px; text-align: center; max-width: 900px; margin: 0 auto; }
.certificate h1 { color: #111; font-size: 2.2rem; letter-spacing: .1em; }
.certificate .name { font-size: 1.8rem; font-weight: 800; border-bottom: 2px solid #C9A54C; display: inline-block; padding: 0 20px 6px; margin: 10px 0 18px; }
.certificate img.qr { width: 110px; margin: 16px auto 0; }
@media print {
  .topbar, .footer, .bottomnav, .no-print, .toasts, .breaking { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .table-wrap { border: 0; overflow: visible; background: #fff; }
  table { color: #000; } th { background: #eee; color: #000; } td, th { border-color: #ccc; }
  .card { background: #fff; border-color: #ccc; color: #000; }
  .rank { background: #eee !important; color: #000 !important; }
}
