/* dashboard — koyu, bordo/pembe vurgulu */
:root {
  --bg: #0a090c;
  --bg-2: #0f0c11;
  --panel: #131017;
  --panel-2: #17121b;
  --line: rgba(255, 210, 235, 0.09);
  --line-2: rgba(255, 210, 235, 0.16);
  --ink: #f2eef5;
  --dim: #a89fb0;
  --mute: #6f6679;
  --pink: #ef6fae;
  --pink-2: #ff9ecb;
  --violet: #a06bf0;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --r: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 82% -10%, #1d0f18 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #120e14, #0b090d);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}


.side-label {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); padding: 14px 10px 8px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--dim); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,0.035); color: var(--ink); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(239,111,174,0.16), rgba(160,107,240,0.08));
  border-color: rgba(239,111,174,0.32);
}
.nav-item.active svg { stroke: var(--pink-2); }

.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.out-btn {
  display: flex; align-items: center; gap: 9px;
  background: none; border: 0; color: var(--dim);
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
}
.out-btn:hover { background: rgba(255,255,255,0.04); color: #fff; }
.status-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(74,222,128,0.28);
  background: rgba(74,222,128,0.07);
  font-size: 13px; color: #c9f7d8;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,0.15); }

/* ---------- main ---------- */
.main { padding: 20px 26px 40px; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 13px; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.crumbs b { color: var(--ink); font-weight: 700; letter-spacing: 0.06em; font-size: 12.5px; }
.crumbs i { font-style: normal; color: var(--mute); }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pill {
  font-size: 11.5px; letter-spacing: 0.08em; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--dim);
}
.pill.live { color: #ffd0e4; border-color: rgba(239,111,174,0.4); background: rgba(239,111,174,0.1); }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; margin-bottom: 4px; }
.page-head p { margin: 0; color: var(--mute); font-size: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
}
.stat .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(239,111,174,0.12); border: 1px solid rgba(239,111,174,0.22);
  flex: 0 0 auto;
}
.stat .ico svg { width: 19px; height: 19px; fill: none; stroke: var(--pink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat b { display: block; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--mute); }

.row2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-bottom: 14px; }

.panel {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(170deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 14px; letter-spacing: 0.02em; }
.panel-head .tag { margin-left: auto; font-size: 10.5px; letter-spacing: 0.1em; color: var(--mute); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.panel-body { padding: 14px 16px 18px; min-height: 190px; }

.empty-state { display: grid; place-items: center; gap: 10px; height: 160px; color: var(--mute); font-size: 13.5px; text-align: center; }
.empty-state svg { width: 26px; height: 26px; fill: none; stroke: var(--mute); stroke-width: 1.6; }

/* activity */
.act { display: grid; gap: 2px; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 9px; }
.act-row:hover { background: rgba(255,255,255,0.025); }
.act-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--mute); }
.act-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,0.12); }
.act-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(248,113,113,0.12); }
.act-dot.new { background: var(--pink); box-shadow: 0 0 0 3px rgba(239,111,174,0.14); }
.act-main { min-width: 0; }
.act-main b { font-size: 13.5px; font-weight: 700; }
.act-main span { display: block; font-size: 12.5px; color: var(--mute); }
.act-time { margin-left: auto; font-size: 12px; color: var(--mute); white-space: nowrap; }

/* origin */
.origin-list { display: grid; gap: 9px; }
.origin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 13.5px; }
.origin-row span { color: var(--dim); }
.origin-row b { color: var(--ink); }
.origin-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 4px; }
.origin-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); }

/* map */
.map-wrap { position: relative; padding: 8px 6px 0; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-land { fill: #241820; stroke: rgba(255,180,220,0.18); stroke-width: 0.6; }
.map-dot { fill: var(--pink); opacity: 0.9; }
.map-glow { fill: var(--pink); opacity: 0.25; filter: blur(4px); }
.map-grid { stroke: rgba(255,255,255,0.05); stroke-width: 0.5; }

/* table */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
td.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.07em; white-space: nowrap; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; }
.badge.aktif { color: #bbf7d0; background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.28); }
.badge.suresi { color: #fde68a; background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.26); }
.badge.iptal { color: #fecaca; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.28); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--mute); letter-spacing: 0.03em; }
input, select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,0.35);
  color: var(--ink); font: inherit; font-size: 14px; outline: none;
}
input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(239,111,174,0.14); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form-row > .field { flex: 0 0 120px; }
.form-row > .field.grow { flex: 1 1 200px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(110deg, #f2a0c9, var(--pink) 55%, var(--violet)); color: #1a0a14; box-shadow: 0 12px 28px -14px rgba(239,111,174,0.9); }
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(239,111,174,1); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-danger { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: #ffb3b3; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

.hint { font-size: 12.5px; color: var(--mute); }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: #1b1420; border: 1px solid var(--line-2); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* login ekrani */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate .card { width: 100%; max-width: 400px; }
.card {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 28px 26px; box-shadow: 0 28px 70px -34px #000;
}
.err { margin-top: 12px; font-size: 13px; color: #ffb3b3; display: none; }
.err.show { display: block; }

.hidden { display: none !important; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .side-brand { padding: 0 8px 0 0; border: 0; margin: 0; }
  .side-label { display: none; }
  .side nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-foot { margin: 0 0 0 auto; }
  .main { padding: 16px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- builder ---------- */
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .builder-grid { grid-template-columns: 1fr; } }

.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.fmt {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left; color: inherit; font: inherit;
}
.fmt:hover { border-color: var(--line-2); }
.fmt.on { border-color: rgba(239,111,174,0.6); background: rgba(239,111,174,0.07); box-shadow: inset 0 0 0 1px rgba(239,111,174,0.25); }
.fmt.off { opacity: 0.45; cursor: not-allowed; }
.fmt .fi {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(239,111,174,0.12); border: 1px solid rgba(239,111,174,0.22);
}
.fmt .fi svg { width: 17px; height: 17px; fill: none; stroke: var(--pink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fmt b { display: block; font-size: 14.5px; }
.fmt small { display: block; font-size: 11.5px; color: var(--mute); letter-spacing: 0.06em; }
.fmt p { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); }

.seg { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 16px; }
.seg button {
  background: transparent; border: 0; color: var(--dim); font: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 20px; cursor: pointer;
}
.seg button.on { background: rgba(239,111,174,0.14); color: #fff; }

.lbl { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 16px 0 7px; }

.out-file {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px;
  font-size: 13px; color: var(--mute);
}
.out-file b { color: var(--ink); font-family: ui-monospace, Consolas, monospace; }

.start-build {
  width: 100%; margin-top: 22px; padding: 15px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(100deg, #e0508f, #f0409a 45%, #d94fb8);
  box-shadow: 0 14px 34px -14px rgba(240,64,154,0.85);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter 0.2s, transform 0.15s;
}
.start-build:hover { filter: brightness(1.08); }
.start-build:active { transform: translateY(1px); }
.start-build:disabled { opacity: 0.6; cursor: wait; }

.how { display: grid; gap: 10px; }
.how-step { display: flex; gap: 10px; font-size: 13px; color: var(--dim); }
.how-step i {
  font-style: normal; font-weight: 800; color: var(--pink-2); min-width: 14px;
}
.cool {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 12px; border-radius: 9px;
  border: 1px solid rgba(74,222,128,0.28); background: rgba(74,222,128,0.07);
  font-size: 12.5px; color: #c9f7d8;
}
.cool .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.builds { margin-top: 16px; }
.build-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.build-row b { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.build-row .meta { color: var(--mute); font-size: 12.5px; }
.build-row a { margin-left: auto; }

/* maskot */



/* ---------- sidebar marka ---------- */
.side-brand {
  position: relative;
  padding: 90px 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  text-align: center;
}
.brand-mascot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 98px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 22px rgba(244, 114, 182, 0.35));
}
.brand-mark {
  position: relative;
  font-family: var(--font, Inter, system-ui, sans-serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 4.5px;
  line-height: 1.1;
  color: #e4d8e3;
  text-transform: lowercase;
  text-shadow: 0 0 26px rgba(244, 114, 182, 0.28);
}
.brand-mark::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #f472b6, #67e8f9);
  opacity: 0.65;
}
.brand-tag {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #b0a2b1;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ---------- account ---------- */
.acc-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .acc-grid { grid-template-columns: 1fr; } }

.acc-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar {
  width: 96px; height: 96px; flex: 0 0 auto;
  border-radius: 20px; display: grid; place-items: center;
  font-size: 38px; font-weight: 800; color: #f9a8d4;
  background: linear-gradient(150deg, rgba(244,114,182,0.18), rgba(160,107,240,0.12));
  border: 1px solid rgba(244,114,182,0.35);
  box-shadow: 0 0 34px -10px rgba(244,114,182,0.55);
  text-transform: uppercase;
}
.acc-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.acc-since { font-size: 13px; color: var(--mute); margin: 2px 0 8px; }
.pill.role { color: #f9a8d4; border-color: rgba(244,114,182,0.35); background: rgba(244,114,182,0.08); }

.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini > div {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,0.22); padding: 16px 16px 18px;
}
.mini b { display: block; font-size: 21px; line-height: 1.15; }
.mini span { font-size: 12.5px; color: var(--mute); }
.mini i { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mute); }

.ro { margin-bottom: 16px; }
.ro label { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.code {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.3); word-break: break-all; color: #f9c6de;
}
.code.dim { color: var(--dim); }

.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px;
}
.lb-row + .lb-row { margin-top: 4px; }
.lb-row.me { border-color: rgba(244,114,182,0.28); background: rgba(244,114,182,0.06); }
.lb-rank { width: 34px; color: var(--mute); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.lb-av {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(244,114,182,0.14); border: 1px solid rgba(244,114,182,0.25);
  font-weight: 800; font-size: 13px; color: #f9a8d4; text-transform: uppercase;
}
.lb-logs { margin-left: auto; color: var(--mute); font-size: 13px; }

/* ---------- builder ikon ---------- */
.icon-drop {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed rgba(244,114,182,0.28); border-radius: 12px;
  background: rgba(255,255,255,0.015);
  padding: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.icon-drop:hover { border-color: rgba(244,114,182,0.55); background: rgba(244,114,182,0.04); }
.icon-box {
  width: 62px; height: 62px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px dashed rgba(244,114,182,0.35); background: rgba(0,0,0,0.25);
  overflow: hidden;
}
.icon-box svg { width: 20px; height: 20px; fill: none; stroke: #f9a8d4; stroke-width: 1.8; stroke-linecap: round; }
.icon-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-text b { display: block; font-size: 14px; }
.icon-text small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .dl-grid { grid-template-columns: 1fr; } }

.file-row { display: flex; align-items: center; gap: 14px; }
.file-ico {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(244,114,182,0.12); border: 1px solid rgba(244,114,182,0.24);
}
.file-ico svg { width: 21px; height: 21px; fill: none; stroke: #f9a8d4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-meta b { display: block; font-size: 15px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.02em; }
.file-meta span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }

/* ---------- build ilerleme ---------- */
.buildprog { margin-top: 16px; }
.buildprog-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--dim); margin-bottom: 7px; }
.buildprog-top b { font-family: ui-monospace, Consolas, monospace; color: #f9a8d4; font-size: 13px; }
.buildprog-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.buildprog-track > i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #a06bf0, #f472b6);
  box-shadow: 0 0 18px -2px rgba(244,114,182,0.7);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.buildprog.hidden { display: none; }
