/* ============ PvPLand — koyu + altın tema ============ */
:root {
  --bg: #0b0d12;
  --panel: #12151d;
  --panel2: #171b26;
  --border: #232838;
  --gold: #fca800;
  --gold2: #ffd700;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --red: #ff4d4d;
  --green: #39d98a;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(252,168,0,.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

.container { width: min(1120px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* ---------- Logo ---------- */
.navlogo { height: 42px; width: auto; }
.sword { font-size: 22px; margin-left: 6px; }
.hero-logo {
  display: block; margin: 0 auto 20px;
  width: min(340px, 70vw); height: auto;
  filter: drop-shadow(0 10px 34px rgba(252,168,0,.4));
  animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* ---------- Arka plan fotoğrafı (img/bg.jpg konunca otomatik görünür) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: url("../img/bg.jpg") center / cover no-repeat;
  opacity: .14; filter: blur(3px) saturate(.85);
}

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,18,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.brand .logo { font-size: 24px; }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-size: 14.5px; font-weight: 600; transition: .15s;
}
.nav-links a:hover { color: var(--text); background: var(--panel2); }
.nav-links a.active { color: #10120a; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
}
.online-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.userchip { display: none; align-items: center; gap: 10px; font-size: 14px; }
.userchip.show { display: inline-flex; }
.userchip .kredi { color: var(--gold2); font-weight: 700; }
.btn-logout { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.btn-logout:hover { color: var(--red); border-color: var(--red); }
.hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 20px; border-radius: 10px; width: 42px; height: 40px; cursor: pointer; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 800; font-size: 15px;
  border: none; cursor: pointer; transition: .16s; letter-spacing: .2px;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #161206; box-shadow: 0 8px 26px rgba(252,168,0,.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(252,168,0,.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 90px 0 70px; }
.hero .badge {
  display: inline-block; background: var(--panel2); border: 1px solid var(--border);
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 2px;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; line-height: 1.08; }
.hero h1 span { background: linear-gradient(135deg, var(--gold), var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 20px auto 34px; }
.ip-box {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 10px 10px 10px 22px; border-radius: 16px; margin-bottom: 30px;
}
.ip-box code { font-size: 18px; font-weight: 700; color: var(--gold2); letter-spacing: .5px; }
.ip-box .btn { padding: 10px 20px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Kartlar & bölümler ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 900; }
.section-head h2 i { color: var(--gold); font-style: normal; margin-right: 8px; }
.section-head a.more { color: var(--gold); font-weight: 700; font-size: 14px; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: .16s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(252,168,0,.45); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.card .icon { font-size: 30px; margin-bottom: 14px; display: block; }

.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ---------- Haberler ---------- */
.news-item { display: block; }
.news-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.news-tag { background: rgba(252,168,0,.12); color: var(--gold); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.news-tag.guncelleme { background: rgba(57,217,138,.12); color: var(--green); }
.news-tag.duyuru { background: rgba(255,77,77,.12); color: var(--red); }

/* ---------- Mağaza ---------- */
.rank-card { text-align: center; position: relative; }
.rank-card .rk-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.rank-card h3 { font-size: 22px; font-weight: 900; }
.rank-card.vip h3 { color: var(--gold2); }
.rank-card.vipplus h3 { color: #4ee1ff; }
.rank-card.mvp h3 { color: #ff6bd6; }
.price { font-size: 30px; font-weight: 900; margin: 14px 0 4px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.perks { list-style: none; text-align: left; margin: 18px 0 22px; display: grid; gap: 9px; }
.perks li { color: var(--muted); font-size: 14px; padding-left: 26px; position: relative; }
.perks li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.perks li.no::before { content: "✖"; color: var(--red); opacity: .55; }
.ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(38deg);
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #161206;
  font-size: 11px; font-weight: 900; padding: 5px 40px; letter-spacing: 1px;
}
.kredi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kredi-card { text-align: center; cursor: pointer; }
.kredi-card .amount { font-size: 26px; font-weight: 900; color: var(--gold2); }
.kredi-card .coin { font-size: 34px; display: block; margin-bottom: 10px; }

/* ---------- Tablo (yasaklar) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 14.5px; }
thead th { text-align: left; padding: 15px 18px; color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); background: var(--panel2); }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(252,168,0,.04); }
.tag-ban { color: var(--red); font-weight: 800; }
.tag-temp { color: var(--gold); font-weight: 800; }
.tag-ok { color: var(--green); font-weight: 800; }
.searchbar {
  width: 100%; max-width: 420px; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 18px; font-size: 14.5px; outline: none;
}
.searchbar:focus { border-color: var(--gold); }

/* ---------- Adımlar ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; font-size: 19px;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #161206;
}
.step h3 { margin-bottom: 6px; font-size: 16.5px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.step code { background: var(--panel2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; color: var(--gold2); font-size: 13px; }

/* ---------- Formlar ---------- */
.auth-wrap { max-width: 430px; margin: 60px auto 80px; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px; }

/* ---------- Skin kafası ---------- */
.auth-flex { display: flex; gap: 28px; align-items: center; }
.skin-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 128px; }
.skin-side img, .skin-ph {
  width: 112px; height: 112px; image-rendering: pixelated;
  border-radius: 14px; border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(252,168,0,.25); background: var(--panel2);
}
.skin-ph { display: flex; align-items: center; justify-content: center; font-size: 52px; }
.skin-hint { font-size: 11.5px; color: var(--muted); text-align: center; max-width: 130px; line-height: 1.5; }
.userhead {
  width: 22px; height: 22px; image-rendering: pixelated;
  border-radius: 5px; vertical-align: -6px; margin-right: 5px;
  border: 1px solid var(--gold); background: var(--panel2);
}
@media (max-width: 640px) {
  .auth-flex { flex-direction: column-reverse; }
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card p.desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: .4px; }
.field input {
  width: 100%; background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  padding: 13px 16px; border-radius: 11px; font-size: 15px; outline: none; transition: .15s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252,168,0,.12); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--gold); font-weight: 700; }
.w100 { width: 100%; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel2); color: var(--text); border: 1px solid var(--gold);
  padding: 13px 24px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 34px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--gold); }
.discord-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: #5865F2; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(88,101,242,.45); transition: .16s;
}
.discord-fab:hover { transform: scale(1.09); }

.discord-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(88,101,242,.16), rgba(88,101,242,.05));
  border: 1px solid rgba(88,101,242,.45); border-radius: var(--radius); padding: 24px 26px;
}
.discord-banner .txt { flex: 1; min-width: 220px; }
.discord-banner h3 { font-size: 19px; margin-bottom: 4px; }
.discord-banner p { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4, .kredi-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { flex-wrap: wrap; }
  .hamburger { display: block; margin-left: auto; }
  .nav-right { order: 3; width: 100%; display: none; }
  .nav-right.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links {
    display: none; order: 4; width: 100%; flex-direction: column; margin-left: 0;
    border-top: 1px solid var(--border); padding-top: 10px;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4, .kredi-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 46px; }
  .ip-box { flex-direction: column; padding: 18px; }
}

/* ---------- Kredi Yükle Sayfası ---------- */
.credit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.amount-row { display: flex; gap: 12px; align-items: center; }
.amount-input {
  width: 100%; background: var(--panel2); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 14px 16px;
  font-size: 20px; font-weight: 800; outline: none;
}
.amount-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252,168,0,.12); }
.kredi-preview { font-size: 15px; color: var(--muted); margin-top: 10px; }
.kredi-preview b { color: var(--gold2); font-size: 17px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qchip {
  cursor: pointer; background: var(--panel2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; transition: all .15s ease;
}
.qchip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.iban-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1.5px dashed var(--gold); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 18px; flex-wrap: wrap;
}
.iban-box code { font-size: 17px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold2); }
.privacy-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(252,168,0,.07); border: 1px solid rgba(252,168,0,.25);
  padding: 13px 15px; border-radius: 10px; margin-top: 14px;
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.privacy-note span:first-child { font-size: 17px; }
@media (max-width: 860px) {
  .credit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .iban-box { flex-direction: column; align-items: flex-start; }
}
