/* AstraCraft — beyaz kış teması */
:root {
  --bg: #f6f9fd;
  --bg2: #eef4fb;
  --card: #ffffff;
  --card-solid: #ffffff;
  --line: #e2eaf4;
  --ice: #2f9bff;
  --blue: #1f7aec;
  --red: #ef4458;
  --gold: #e0a100;
  --green: #16a34a;
  --text: #13223a;
  --muted: #64748b;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 60, 120, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(47, 155, 255, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 15%, rgba(143, 201, 255, .14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, var(--bg2) 100%);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: #0b5cc4; }
h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", sans-serif; letter-spacing: .3px; color: #0f1d33; }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.wrap { width: min(1180px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- üst menü ---------- */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { font-size: 25px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #0f1d33; }
.brand span { background: linear-gradient(90deg, #0f1d33, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .pill, .pill { font-style: normal; font-family: "Nunito", sans-serif; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: #0f1d33; color: #fff; -webkit-text-fill-color: #fff; }
.nav .links { display: flex; gap: 18px; flex: 1; }
.nav .links a { color: var(--muted); font-weight: 800; }
.nav .links a:hover, .nav .links a.on { color: var(--text); }
.nav .links a.on { box-shadow: inset 0 -3px 0 var(--ice); }
.cart-btn, .user-btn { position: relative; padding: 8px 14px; border-radius: 999px; background: #f1f6fd; border: 1px solid var(--line); color: var(--text); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.user-btn img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; }
.cart-btn b { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 7px; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }
body.staff .nav { background: rgba(15, 29, 51, .96); }
body.staff .nav .links a { color: #a9b8d0; }
body.staff .nav .links a.on, body.staff .nav .links a:hover { color: #fff; }
body.staff .brand span { background: linear-gradient(90deg, #fff, #9fd4ff); -webkit-background-clip: text; background-clip: text; }
body.staff .brand .pill { background: var(--ice); }
body.staff .user-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 56px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); margin: 0; line-height: 1.02; }
.hero h1 .g { background: linear-gradient(90deg, #0f1d33, var(--blue) 55%, #5fb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 18px auto 30px; }
.season { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #eaf4ff; border: 1px solid #cfe4ff; color: var(--blue); font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.ipbox { display: inline-flex; align-items: center; gap: 14px; padding: 10px 10px 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 18px; box-shadow: var(--shadow); }
.ipbox .dot { width: 10px; height: 10px; border-radius: 50%; background: #c3cfdf; box-shadow: 0 0 0 4px rgba(100,116,139,.12); }
.ipbox .dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.ipbox small { color: var(--muted); font-weight: 700; }
.hero .cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--ice), var(--blue)); color: #fff; box-shadow: 0 10px 24px rgba(31,122,236,.25); }
.btn.primary:hover { color: #fff; }
.btn.red { background: linear-gradient(135deg, #ef4458, #ff7a59); color: #fff; box-shadow: 0 10px 24px rgba(239,68,88,.22); }
.btn.green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--text); }
body.staff .nav .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.discord { background: #5865f2; color: #fff; }

/* ---------- kartlar ---------- */
.section { padding: 40px 0; }
.section h2 { font-size: 32px; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.product { display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, white); box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 18%, transparent); }
.product::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.product .icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, white); position: relative; }
.product h3 { margin: 16px 0 2px; font-size: 24px; color: var(--c); }
.product .short { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.product ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.product li { padding: 5px 0 5px 24px; position: relative; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.product li::before { content: "❄"; position: absolute; left: 0; color: var(--c); font-size: 13px; top: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price b { font-size: 30px; font-family: "Fredoka", sans-serif; }
.price s { color: var(--muted); }
.ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--red); color: #fff; font-weight: 900; font-size: 12px; padding: 4px 40px; letter-spacing: 1px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #f1f5f9; border: 1px solid var(--line); color: var(--muted); }
.tag.paid, .tag.accepted, .tag.answered { color: var(--green); background: #ecfdf3; border-color: #bbf7d0; }
.tag.awaiting, .tag.pending, .tag.open { color: #b77900; background: #fff8e6; border-color: #fde7a6; }
.tag.cancelled, .tag.rejected { color: var(--red); background: #fff0f2; border-color: #fecdd3; }
.tag.closed { color: var(--muted); }
.tag.role { color: #fff; border: 0; background: var(--muted); }
.tag.role.rehber { background: #0ea5b7; } .tag.role.moderator { background: #e08a00; } .tag.role.admin { background: var(--red); } .tag.role.kurucu { background: #0f1d33; }

.cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cats a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 800; background: #fff; }
.cats a.on, .cats a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 20px; }
.feature .fi { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.recent { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.recent .r { display: flex; gap: 10px; align-items: center; min-width: 220px; padding: 12px 14px; }
.recent img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; }
.recent small { color: var(--muted); display: block; }

/* ---------- tablolar & formlar ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; vertical-align: middle; }
th { color: var(--muted); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
tr.link:hover td { background: #f6faff; cursor: pointer; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp .yes { color: var(--green); font-weight: 900; }
.cmp .no { color: #c3cfdf; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d6e2f0; background: #fbfdff; color: var(--text); font-family: inherit; font-size: 15px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,155,255,.18); border-color: var(--ice); background: #fff; }
input[readonly] { background: #f1f5f9; color: var(--muted); }
label { display: block; font-weight: 800; font-size: 14px; margin: 14px 0 6px; color: #334155; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text); }
.check input { width: auto; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.narrow { max-width: 460px; margin: 30px auto; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-line.total { color: var(--text); font-size: 22px; font-weight: 900; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.qty { width: 74px; text-align: center; }
.avatar { width: 64px; height: 64px; border-radius: 12px; image-rendering: pixelated; background: #e2e8f0; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 18px 0; font-weight: 700; border: 1px solid; }
.flash.ok { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.flash.err { background: #fff0f2; border-color: #fecdd3; color: #9f1239; }
.notice { padding: 16px; border-radius: 12px; background: #f1f7ff; border: 1px solid #d7e8ff; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; background: #eef3f9; padding: 2px 6px; border-radius: 6px; }
.big-code { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: 2px; color: var(--blue); font-weight: 900; }
.link-code { font-family: ui-monospace, Consolas, monospace; font-size: 38px; letter-spacing: 6px; font-weight: 900; color: #0f1d33; background: #f1f7ff; border: 2px dashed #9fd0ff; border-radius: 14px; padding: 12px 18px; display: inline-block; }

/* ---------- destek mesajları ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; }
.msg img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; flex: none; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; flex: 1; box-shadow: var(--shadow); white-space: pre-wrap; word-break: break-word; }
.msg .who { font-weight: 900; font-size: 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.msg .who small { color: var(--muted); font-weight: 700; }
.msg.staff .bubble { background: #f1f7ff; border-color: #cfe4ff; }
.qa { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.qa b { display: block; color: #334155; }
.qa p { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- alt bilgi ---------- */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0; color: var(--muted); position: relative; z-index: 1; background: #fff; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 14px; }

/* ---------- yönetim ---------- */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.admin-nav a { padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.admin-nav a.on { color: #fff; background: var(--blue); border-color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat b { display: block; font-size: 28px; font-family: "Fredoka", sans-serif; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 700; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 160px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8fc9ff, var(--blue)); min-height: 3px; }
.bars small { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .nav .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 4%; border-bottom: 1px solid var(--line); }
  body.staff .nav .links { background: #0f1d33; }
  .nav .links.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .hide-sm { display: none; }
  .two, .row { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  table { font-size: 13px; }
}

/* ---- sıralama / profil ---- */
.mini-head { width: 24px; height: 24px; border-radius: 6px; vertical-align: middle; margin-right: 6px; image-rendering: pixelated; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin: 6px 0 22px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); text-align: center; transition: transform .15s; }
.pod:hover { transform: translateY(-4px); }
.pod img { image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(30, 80, 160, .18)); }
.pod b { font-size: 18px; font-family: "Fredoka", sans-serif; }
.pod span { color: var(--muted); font-weight: 800; }
.pod .medal { font-size: 30px; }
.pod.p1 { padding-top: 26px; border: 2px solid #ffd36e; background: linear-gradient(180deg, #fffaf0, #fff); }
.pod.p2 { border: 2px solid #d5dde8; }
.pod.p3 { border: 2px solid #f1c3a0; }
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.profile .skin { text-align: center; }
.profile .skin img { image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(30, 80, 160, .2)); }
.profile .skin h2 { margin: 10px 0 8px; }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}
.tag.role.sponsor { background: linear-gradient(90deg, #f7971e, #ffd200); color: #fff; }
.tag.role.avipplus { background: linear-gradient(90deg, #b06ab3, #4568dc); color: #fff; }
.tag.role.avip { background: #7b3fbf; color: #fff; }
.tag.role.vipplus { background: #19b5d6; color: #fff; }
.tag.role.vip { background: #eef3fa; color: #24324a; border: 1px solid #d5dde8; }
.tag.role.medya { background: #d64fb0; color: #fff; }
.tag.role.oyuncu { background: #eef3fa; color: #5b6b84; }
