/* ═══════════════════════════════════════════════════════════
   Onixmedya Yönetim — "kontrol odası" görsel kimlik
   Koyu grafit · kehribar · teknik netlik
   (Lumina panelinden bilerek farklı: hangi paneldesin belli olsun)
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:        #12151A;
  --bg-2:      #171B21;
  --panel:     #1C2128;
  --panel-2:   #232A33;
  --line:      #2C3440;
  --line-soft: #232A33;
  --ink:       #E6EAF0;
  --ink-soft:  #98A3B3;
  --ink-faint: #6B7688;
  --amber:     #E0A340;
  --amber-d:   #B37F28;
  --green:     #4FA97C;
  --red:       #D9564F;
  --blue:      #4E8FD1;
  --purple:    #8B7BD8;

  --sans: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 12px; --r-s: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ── GİRİŞ ── */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 20% -10%, rgba(224,163,64,.10), transparent 60%), var(--bg); }
.login-card { width: min(390px,100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 40px 34px 30px; box-shadow: var(--shadow); text-align: center; }
.mark { width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--amber), var(--amber-d)); color: #12151A; font-size: 21px; font-weight: 700; }
.login-card h1 { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.login-card .sub { color: var(--ink-faint); font-size: 12.5px; margin: 5px 0 26px; }
.fld { text-align: left; margin-bottom: 13px; }
.fld label { display: block; font-size: 10.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--r-s); font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg-2); outline: none; }
.fld textarea { min-height: 70px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--amber); }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; }
.btn-primary { width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: var(--r-s);
  cursor: pointer; font: inherit; font-weight: 600; color: #12151A;
  background: linear-gradient(135deg, var(--amber), var(--amber-d)); }
.btn-primary:hover { filter: brightness(1.07); }
.err { margin-top: 12px; font-size: 13px; color: var(--red); min-height: 18px; }

/* ── İSKELET ── */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 226px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-head { padding: 22px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.sb-head .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--amber), var(--amber-d)); color: #12151A; font-weight: 700; font-size: 15px; }
.sb-head b { font-size: 15px; font-weight: 600; display: block; }
.sb-head span { font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.sb-nav { flex: 1; padding: 14px 10px; }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s);
  color: var(--ink-soft); font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s; }
.sb-nav a:hover { background: var(--panel); color: var(--ink); }
.sb-nav a.on { background: rgba(224,163,64,.13); color: var(--amber); }
.sb-me { margin: 10px; padding: 11px 13px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-s); font-size: 12px; color: var(--ink-soft); }
.sb-me b { display: block; color: var(--ink); font-size: 13px; }

.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 20px 24px;
  border-bottom: 1px solid var(--line); background: var(--bg-2); }
.topbar h1 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.topbar .muted { font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.topbar .right { margin-left: auto; display: flex; gap: 9px; }
.view { padding: 22px 24px 40px; display: none; }
.view.on { display: block; }

/* ── KARTLAR ── */
.grid { display: grid; gap: 13px; }
.g4 { grid-template-columns: repeat(4,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g2 { grid-template-columns: 1.4fr 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); margin-bottom: 12px; }
.stat .n { font-size: 30px; font-weight: 600; letter-spacing: -1px; font-family: var(--mono); }
.stat .lbl { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.card.hero { background: linear-gradient(140deg, rgba(224,163,64,.14), rgba(224,163,64,.04));
  border-color: rgba(224,163,64,.3); }
.card.hero .n { color: var(--amber); }

/* ── TABLO ── */
.tbl-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl-top { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tbl-top h3 { margin: 0; }
.tbl-top .sp { margin-left: auto; }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .14s; }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.dim { color: var(--ink-faint); }

/* ── ROZETLER ── */
.pill { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill.aktif    { background: rgba(79,169,124,.16); color: var(--green); }
.pill.deneme   { background: rgba(78,143,209,.16); color: var(--blue); }
.pill.odenmedi { background: rgba(224,163,64,.16); color: var(--amber); }
.pill.askida   { background: rgba(139,123,216,.16); color: var(--purple); }
.pill.iptal    { background: rgba(217,86,79,.16); color: var(--red); }
.pill.plan     { background: var(--panel-2); color: var(--ink-soft); }
.pill.on       { background: rgba(79,169,124,.16); color: var(--green); }
.pill.off      { background: rgba(217,86,79,.16); color: var(--red); }

.dom { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.dom.off { color: var(--ink-faint); text-decoration: line-through; }

/* ── BUTONLAR ── */
.btn { padding: 8px 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-soft);
  border-radius: var(--r-s); font: inherit; font-size: 12.5px; cursor: pointer; transition: .15s; }
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn.solid { background: linear-gradient(135deg, var(--amber), var(--amber-d)); color: #12151A;
  border: 0; font-weight: 600; }
.btn.solid:hover { filter: brightness(1.08); }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* ── MODAL ── */
.mask { position: fixed; inset: 0; z-index: 80; background: rgba(8,10,13,.7);
  display: none; place-items: center; padding: 20px; }
.mask.on { display: grid; }
.modal { width: min(720px,100%); max-height: 88vh; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.modal.sm { width: min(480px,100%); }
.modal-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.modal-h h3 { font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.modal-h .x { margin-left: auto; background: none; border: 0; color: var(--ink-faint); font-size: 19px; cursor: pointer; }
.modal-b { padding: 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; }

/* ── DETAY ── */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.dl dt { color: var(--ink-faint); font-size: 12.5px; }
.dl dd { margin: 0; }
.sec { margin-top: 20px; }
.sec > h4 { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); margin-bottom: 10px; }
.box { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-s);
  padding: 13px 15px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.box.warn { background: rgba(224,163,64,.08); border-color: rgba(224,163,64,.25); color: var(--amber); }
.box.ok { background: rgba(79,169,124,.08); border-color: rgba(79,169,124,.25); color: var(--green); }

/* Kullanım çubuğu */
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.bar i.warn { background: var(--amber); }
.bar i.over { background: var(--red); }
.use-row { margin-bottom: 12px; }
.use-row .t { display: flex; font-size: 12.5px; }
.use-row .t span { margin-left: auto; color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }

/* Kurulum adımları */
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-s); font-size: 12.5px; }
.step .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; }
.step.ok .ic   { background: rgba(79,169,124,.2); color: var(--green); }
.step.hata .ic { background: rgba(217,86,79,.2); color: var(--red); }
.step.atlandi .ic, .step.uyari .ic { background: rgba(224,163,64,.2); color: var(--amber); }
.step .d { margin-left: auto; color: var(--ink-faint); font-size: 11.5px; font-family: var(--mono); }

/* Paket kartı */
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.plan h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.plan .price { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--amber); }
.plan .price small { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.plan .setup { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.plan ul { list-style: none; margin: 14px 0; padding: 0; }
.plan li { font-size: 12.5px; color: var(--ink-soft); padding: 5px 0 5px 18px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 11px; }
.plan .lim { font-size: 11.5px; color: var(--ink-faint); font-family: var(--mono);
  padding-top: 12px; border-top: 1px solid var(--line-soft); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(70px);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); padding: 12px 20px;
  border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); opacity: 0; z-index: 90;
  transition: transform .3s, opacity .3s; pointer-events: none; }
.toast.on { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2,1fr); }
  .g3, .g2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
