@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0d18; --bg2: #10152a; --card: #141a31; --card2: #1a2140; --line: #232b4d;
  --text: #e8ebf7; --muted: #9aa3c4; --accent: #168bff; --accent2: #5aa9ff; --good: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, 'Segoe UI', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }

/* ust menu */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 13, 24, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--accent); }
.nav { display: flex; gap: 20px; margin-left: 12px; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.spacer { flex: 1; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langs button { background: none; border: 0; color: var(--muted); padding: 6px 10px; cursor: pointer; font: 600 13px Inter, sans-serif; }
.langs button.on { background: var(--card2); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font: 600 15px Inter, sans-serif; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #2b97ff; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.discord { background: #5865f2; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* giris */
.hero { padding: 88px 0 56px; background: radial-gradient(900px 420px at 15% 0%, rgba(22, 139, 255, 0.22), transparent 70%), radial-gradient(700px 380px at 95% 10%, rgba(88, 101, 242, 0.18), transparent 70%); }
.kicker { display: inline-block; color: var(--accent2); background: rgba(22, 139, 255, 0.12); border: 1px solid rgba(22, 139, 255, 0.35); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -1px; max-width: 760px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 28px; color: var(--accent2); }
.stat span { color: var(--muted); font-size: 14px; }

/* bolumler */
section { padding: 64px 0; }
.head { text-align: center; margin-bottom: 32px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 8px; letter-spacing: -0.5px; }
.head p { color: var(--muted); margin: 0; }
.periods { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.periods button { background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.periods button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.periods small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(22, 139, 255, 0.15); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.total { color: var(--muted); font-size: 13px; min-height: 20px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: #cfd5ec; font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(22, 139, 255, 0.14); color: var(--accent2); font-size: 20px; margin-bottom: 12px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 48px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/24px Inter, sans-serif; text-align: center; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a:hover { color: var(--text); }

/* panel */
.panel { padding: 40px 0 64px; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 32px; height: 32px; border-radius: 50%; }
.inst { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.inst-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 18px; }
.inst-head h2 { margin: 0; font-size: 22px; flex: 1; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.pill.good { color: var(--good); border-color: rgba(34, 197, 94, 0.4); }
.pill.warn { color: var(--warn); border-color: rgba(245, 158, 11, 0.4); }
.pill.bad { color: var(--bad); border-color: rgba(239, 68, 68, 0.4); }
.bot { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.bot .label b { display: block; }
.bot .label span { color: var(--muted); font-size: 13px; }
.bot form { display: flex; gap: 8px; }
.bot input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: 14px Inter, sans-serif; }
.bot input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.msg { min-height: 20px; font-size: 13px; margin-top: 4px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--good); }
.start-row { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.inst h3 { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.guide { background: var(--bg2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.guide ol { margin: 6px 0 0; padding-left: 20px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: #cfd5ec; cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent2); }

/* sozlesme */
.legal h1 { font-size: 34px; margin: 0 0 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal h3 { font-size: 16px; margin: 16px 0 6px; color: var(--muted); }
.legal p, .legal li { color: #cfd5ec; }
.legal .muted { color: var(--muted); }
.legal table { border-collapse: collapse; width: 100%; max-width: 760px; }
.legal th, .legal td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; width: 220px; }
.legal blockquote { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 8px; }

.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.notice.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: var(--good); }
.notice.err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: var(--bad); }

/* satin al */
.narrow { max-width: 820px; }
.buy-form h3 { margin: 22px 0 10px; color: var(--text); font-size: 16px; }
.buy-form h3:first-child { margin-top: 0; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { accent-color: var(--accent); margin-top: 4px; }
.choice small { display: block; color: var(--muted); font-size: 12px; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; }
.total-row b { font-size: 26px; }

/* admin */
.admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.admin-form input, .admin-form select { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: 14px Inter, sans-serif; }
.admin-form .start-row { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table .muted { color: var(--muted); font-size: 12px; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.actions-cell .btn { padding: 6px 10px; font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans, .grid3 { grid-template-columns: 1fr; }
  .bot { grid-template-columns: 1fr; }
}
