/* ---------- Alt sayfalar: ortak ---------- */
.page { min-height: 100vh; padding-bottom: 100px; }

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-img, url("/assets/hero.jpg")) center 40% / cover no-repeat;
  filter: grayscale(0.85) sepia(0.4) brightness(0.3);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 8, 5, 0.9), rgba(11, 8, 5, 0.4) 60%, rgba(11, 8, 5, 0.75)), linear-gradient(180deg, transparent 50%, var(--bg));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.95;
  color: #f6ecd9;
}
.page-hero h1::before { content: ""; display: block; width: 38px; height: 2px; margin-bottom: 18px; background: var(--gold); }
.page-hero p { max-width: 620px; margin: 14px 0 0; color: #cdbfa3; font-size: 16px; }

.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 8px; font-family: var(--title); font-weight: 400; font-size: 24px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { color: #cdbfa3; }
.card .muted { color: var(--muted); font-size: 14px; }

.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(180deg, #ecd090, #b88a45); color: #1a120a; box-shadow: 0 8px 20px rgba(216, 176, 106, 0.2); }
.btn-gold:hover:not(:disabled) { background: linear-gradient(180deg, #f6e0aa, #c99a52); }
.btn-ghost { border-color: var(--line-strong); background: rgba(216, 176, 106, 0.05); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); background: rgba(216, 176, 106, 0.12); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover:not(:disabled) { background: #4752c4; }
.btn-green { background: #3f7a34; color: #f1f7ee; }
.btn-green:hover:not(:disabled) { background: #4c913f; }
.btn-red { background: #8f3422; color: #fbeae5; }
.btn-red:hover:not(:disabled) { background: #a63e29; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { color: var(--gold-light); }
.badge-interview { color: #9aa6ff; border-color: rgba(88, 101, 242, 0.5); }
.badge-approved { color: #9ad48b; border-color: rgba(111, 191, 90, 0.5); }
.badge-rejected { color: #e8907a; border-color: rgba(184, 69, 46, 0.6); }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(216, 176, 106, 0.06);
  color: #d9ccb1;
  font-size: 14.5px;
}
.notice.error { border-left-color: var(--red); background: rgba(184, 69, 46, 0.08); }

.spinner {
  width: 34px;
  height: 34px;
  margin: 40px auto;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ---------- Form alanları ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.field label .req { color: var(--gold); }
.field .hint { margin: -2px 0 8px; color: var(--muted); font-size: 13px; }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 130px; resize: vertical; }
.textarea.long { min-height: 260px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 176, 106, 0.15); }
.select option { background: #140f0a; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: rgba(184, 69, 46, 0.8); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; }
.field-error { color: #e8907a; }
.counter { margin-left: auto; color: var(--muted); }
.counter.low { color: #e8b26e; }
.counter.ok { color: #9ad48b; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check:hover { border-color: var(--line-strong); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.field.invalid .check { border-color: rgba(184, 69, 46, 0.8); }

.form-section { margin-bottom: 28px; }
.form-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-section-head .no { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--gold); }
.form-section-head h3 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 20px; }
.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Adım göstergesi ---------- */
.steps-bar { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.steps-bar li {
  flex: 1;
  position: relative;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  counter-increment: step;
}
.steps-bar li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.steps-bar li span::before { content: counter(step, decimal-leading-zero) " "; color: var(--gold-dark); }
.steps-bar li.done { color: #cdbfa3; }
.steps-bar li.done::before { background: var(--gold-dark); }
.steps-bar li.current { color: var(--gold-light); }
.steps-bar li.current::before { background: var(--gold); box-shadow: 0 0 12px rgba(216, 176, 106, 0.5); }

/* ---------- Başvuru sayfası ---------- */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; margin-top: 40px; }
.apply-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.apply-side .card { padding: 22px; }
.apply-side h3 { font-family: var(--title); font-weight: 400; font-size: 18px; }
.apply-side ol { margin: 10px 0 0; padding-left: 20px; color: #cdbfa3; font-size: 14px; }
.apply-side li { margin-bottom: 6px; }

.login-card { padding: 50px 30px; text-align: center; }
.login-card .emblem { margin: 0 auto 26px; }

.user-chip { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.user-chip img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); }
.user-chip b { display: block; }
.user-chip small { color: var(--muted); }

.quiz-q { padding: 20px 0; border-top: 1px solid var(--line); }
.quiz-q h4 { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.quiz-q h4 span { color: var(--gold); font-family: var(--display); font-size: 22px; margin-right: 8px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option:hover { border-color: var(--line-strong); }
.quiz-option input { accent-color: var(--gold); }
.quiz-option:has(input:checked) { border-color: var(--gold); background: rgba(216, 176, 106, 0.1); }
.quiz-progress { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 2; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(16, 11, 7, 0.95); font-size: 13.5px; }
.quiz-progress .bar { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.quiz-progress .bar i { display: block; height: 100%; background: var(--gold); transition: width 0.3s; }
.wrong-list { margin: 14px 0 0; padding: 0; list-style: none; }
.wrong-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.wrong-list a { color: var(--gold); font-size: 13px; white-space: nowrap; }

.score { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--gold-light); }

.timeline { position: relative; margin: 24px 0 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}
.timeline li.done::before { border-color: var(--gold); background: var(--gold); }
.timeline li.current::before { border-color: var(--gold); background: var(--bg); box-shadow: 0 0 0 4px rgba(216, 176, 106, 0.18); animation: pulse-gold 2s infinite; }
.timeline li.failed::before { border-color: var(--red); background: var(--red); }
.timeline b { display: block; font-size: 15.5px; }
.timeline small { color: var(--muted); font-size: 13px; }
.timeline p { margin: 4px 0 0; font-size: 14px; }

.answers { margin-top: 10px; }
.answers dt { margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
.answers dd { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.answers h4 { margin: 26px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--title); font-weight: 400; font-size: 17px; color: var(--gold-light); }

details.collapse summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 14.5px; }

/* ---------- Kurallar sayfası ---------- */
.rules-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
.rules-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 10px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 176, 106, 0.3) transparent;
}
.rules-toc a { display: block; overflow-wrap: anywhere; padding: 5px 8px; border-radius: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.35; transition: color 0.15s, background 0.15s; }
.rules-toc a:hover { color: var(--ink); background: rgba(216, 176, 106, 0.06); }
.rules-toc a.active { color: var(--gold-light); background: rgba(216, 176, 106, 0.1); }
.rules-toc a.l2 { margin-top: 10px; color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.rules-toc a.l3, .rules-toc a.l4 { padding-left: 18px; }
.rules-toc a b { color: var(--gold-dark); font-weight: 600; margin-right: 4px; }

.rules-search { position: relative; margin-bottom: 26px; }
.rules-search input { padding-left: 42px; }
.rules-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); }
.rules-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 13px; }

.rule-block { padding: 26px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.rule-block.l2 { padding-top: 40px; border-top-color: var(--line-strong); }
.rule-block h2, .rule-block h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-weight: 400; }
.rule-block h2 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); line-height: 1; }
.rule-block h3 { font-family: var(--title); font-size: 20px; }
.rule-block .num { color: var(--gold); font-family: var(--display); font-size: 0.9em; }
.rule-block ul { margin: 0; padding: 0; list-style: none; }
.rule-block li { position: relative; padding: 7px 0 7px 26px; color: #ddd0b6; font-size: 15.5px; line-height: 1.65; }
.rule-block li::before { content: "\2726"; position: absolute; left: 2px; top: 9px; color: var(--gold); font-size: 11px; }
.rule-block .copy { margin-left: auto; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); font-size: 12px; opacity: 0; cursor: pointer; transition: opacity 0.2s, border-color 0.2s; }
.rule-block:hover .copy { opacity: 1; }
.rule-block .copy:hover { border-color: var(--line-strong); color: var(--ink); }
mark { padding: 0 2px; border-radius: 3px; background: rgba(216, 176, 106, 0.35); color: #fff; }
.rule-block.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: rgba(216, 176, 106, 0.08); } 100% { background: transparent; } }

/* ---------- Yetkili paneli ---------- */
.panel-types { display: flex; gap: 8px; margin-top: 26px; }
.panel-types button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(216, 176, 106, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.panel-types button.active { border-color: var(--gold); background: rgba(216, 176, 106, 0.14); color: var(--ink); }
.panel-types .count:empty { display: none; }
.panel-types .count { padding: 1px 7px; border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; }
.players-view { margin-top: 16px; }
.player-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.player-row img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.player-row .body { flex: 1; min-width: 0; }
.player-row .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.panel-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 16px; }
.panel-list { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-h) - 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.panel-tabs { display: flex; gap: 2px; padding: 8px 8px 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.panel-tabs button {
  position: relative;
  flex-shrink: 0;
  padding: 10px 10px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.panel-tabs button.active { color: var(--ink); }
.panel-tabs button.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--gold); }
.panel-tabs .count:empty { display: none; }
.panel-tabs .count { margin-left: 5px; padding: 1px 6px; border-radius: 8px; background: rgba(216, 176, 106, 0.15); color: var(--gold); font-size: 10.5px; }
.panel-search { padding: 12px; border-bottom: 1px solid var(--line); }
.panel-search .input { padding: 9px 12px; font-size: 14px; }
.panel-items { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(216, 176, 106, 0.3) transparent; }
.panel-item { display: flex; gap: 12px; width: 100%; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
.panel-item:hover { background: rgba(216, 176, 106, 0.05); }
.panel-item.active { background: rgba(216, 176, 106, 0.1); box-shadow: inset 3px 0 0 var(--gold); }
.panel-item img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.panel-item .body { flex: 1; min-width: 0; }
.panel-item .top { display: flex; align-items: center; gap: 8px; }
.panel-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.panel-item .id { margin-left: auto; color: var(--muted); font-size: 12px; }
.panel-item .sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.panel-item .votes { color: #cdbfa3; }
.panel-item .mine { color: var(--gold); }
.panel-more { padding: 12px; text-align: center; }
.panel-empty { padding: 40px 20px; color: var(--muted); text-align: center; font-style: italic; }

.detail-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.detail-head img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); }
.detail-head h2 { margin: 0; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.detail-head .meta button { padding: 0; border: 0; background: none; color: var(--gold); font-size: 13px; cursor: pointer; }
.detail-head .badge { margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.fact { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.fact small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.fact b { display: block; margin-top: 2px; font-size: 15px; }
.fact.warn { border-color: rgba(232, 178, 110, 0.6); }
.fact.warn b { color: #e8b26e; }

.vote-box textarea { margin-top: 12px; }
.vote-list { margin: 14px 0 0; padding: 0; list-style: none; }
.vote-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vote-list .v-approve { color: #9ad48b; }
.vote-list .v-reject { color: #e8907a; }
.vote-list p { margin: 2px 0 0; color: #cdbfa3; white-space: pre-wrap; }
.vote-progress { display: flex; gap: 14px; margin-top: 8px; font-size: 14px; }
.vote-progress span { display: inline-flex; align-items: center; gap: 6px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; }
.dots i.on { background: currentColor; }

.events { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.events li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.events time { flex-shrink: 0; width: 150px; color: var(--muted); }
.events p { margin: 2px 0 0; color: #cdbfa3; white-space: pre-wrap; }

.history { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.history li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.history p { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
  .apply-layout, .rules-layout, .panel-layout { grid-template-columns: 1fr; }
  .apply-side, .rules-toc, .panel-list { position: static; max-height: none; }
  .rules-toc { max-height: 320px; }
  .panel-list { max-height: 60vh; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .card { padding: 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .steps-bar li { font-size: 0; }
  .steps-bar li span::before { font-size: 11px; }
  .events li { flex-direction: column; gap: 2px; }
}
