:root {
  --bg: #0b0d10; --bg2: #12161b; --card: #161b21; --card2: #1d232b; --line: #2a323c;
  --text: #eef1f4; --dim: #9aa4b0; --accent: #e8262e; --accent2: #a30e18; --glow: #2fd35b;
  --warn: #ffb300; --bad: #ff5252; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(232, 38, 46, .14), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: #ff6b72; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 8px 0 18px; }
h2 { font-size: 19px; margin: 26px 0 12px; }
h3 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--dim); font-weight: 400; }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.accent { color: var(--accent); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Üst çubuk */
.top { background: rgba(11, 13, 16, .85); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-in.wide, main.wide { max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.brand b { font-size: 19px; letter-spacing: .02em; }
.brand em { color: var(--accent); font-style: normal; font-weight: 800; font-size: 19px; }
.brand small { display: block; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: -3px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a, .top nav .link { color: var(--text); padding: 7px 11px; border-radius: 9px; font-size: 14px; }
.top nav a:hover, .top nav .link:hover { background: var(--card2); text-decoration: none; }
.chip { background: rgba(47, 211, 91, .12); color: var(--glow); border: 1px solid rgba(47, 211, 91, .4); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 700; }

main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
footer { text-align: center; color: var(--dim); font-size: 12px; padding: 18px; border-top: 1px solid var(--line); }

/* Kartlar ve düzen */
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cols > section > h1:first-child, .cols > aside > h2:first-child { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 180px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.narrow { max-width: 440px; margin: 30px auto; }
.inline { display: inline; margin: 0; }
.w80 { width: 90px; flex: none !important; min-width: 0 !important; }

/* Formlar */
label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.row input, .row select { margin-top: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 38, 46, .2); }
.seg { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.seg input { display: none; }
.seg label:has(input:checked) { background: linear-gradient(90deg, var(--accent), var(--accent2)); font-weight: 700; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
}
.btn:hover { border-color: #3b4552; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: #ff8a8f; border-color: rgba(255, 82, 82, .4); background: rgba(255, 82, 82, .08); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 4px; }
.link { background: none; border: 0; font: inherit; cursor: pointer; }

.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.btn-grid form, .btn-grid .btn { width: 100%; }
.btn-grid form .btn { width: 100%; }
.btn.disabled { opacity: .55; cursor: default; }
.card .row + .row, .card form.row { margin-top: 10px; }
.w-date { width: 170px; flex: none !important; min-width: 0 !important; }
.card-danger { border-color: rgba(255, 82, 82, .5); }
td.actions { display: flex; gap: 6px; }

/* Uyarılar */
.flash { padding: 12px 14px; border-radius: 11px; margin-bottom: 16px; font-weight: 600; }
.flash.ok { background: rgba(47, 211, 91, .12); border: 1px solid rgba(47, 211, 91, .4); color: #8ff0ac; }
.flash.err { background: rgba(255, 82, 82, .1); border: 1px solid rgba(255, 82, 82, .45); color: #ffb0b3; }
.empty { color: var(--dim); padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Rozetler */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.b-active { background: rgba(47, 211, 91, .15); color: var(--glow); }
.b-trial { background: rgba(255, 179, 0, .15); color: var(--warn); }
.b-expired, .b-blocked { background: rgba(255, 82, 82, .15); color: var(--bad); }
.tag { font-size: 11px; color: var(--dim); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; margin-left: 6px; }
.pos { color: var(--glow); font-weight: 700; }
.neg { color: var(--bad); font-weight: 700; }

/* Anahtar-değer */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 14px; }
.kv span { color: var(--dim); }
.kv b { text-align: right; overflow-wrap: anywhere; }

/* Listeler */
.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.item-main { flex: 1; min-width: 0; }
.item-actions { display: flex; gap: 6px; flex: none; }

/* Tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { margin-bottom: 14px; }
.filters select { width: auto; }

/* İstatistikler */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { display: block; color: var(--text); text-decoration: none !important; margin: 0; }
.stat span { color: var(--dim); font-size: 13px; }
.stat b { display: block; font-size: 28px; margin-top: 4px; }
.stat b.sm { font-size: 18px; }
a.stat:hover { border-color: var(--accent); }

/* Giriş sayfası */
.hero { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; padding: 30px 0; }
.hero h1 { font-size: 38px; line-height: 1.15; }
.lead { color: var(--dim); font-size: 17px; }
.steps { color: var(--dim); padding-left: 20px; }
.steps li { margin: 6px 0; }
.login h2 { margin-top: 0; }
.devcard p { margin: 10px 0; }

/* Planlar */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan .big { font-size: 26px; font-weight: 800; margin: 4px 0 8px; }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 30px rgba(232, 38, 46, .18); }

@media (max-width: 860px) {
  .cols, .hero, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .grid2 { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
  .top nav { margin-left: 0; width: 100%; }
}

.cols > aside > h3, .cols > section > h3 { margin-top: 22px; }

td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 180px; max-width: 340px; }
tr.revealed td { background: rgba(255, 179, 0, .07); }

.qr-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; }
.qr svg { width: 200px; height: 200px; }
.secret { font-size: 17px; letter-spacing: .08em; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; }
.w-code { max-width: 180px; }
.narrow-left { max-width: 440px; }
