/* ═══ rankzupAI tasarım sistemi v2 — koyu tema ═══ */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* yüzeyler */
  --bg: #090d18;
  --surface: #0e1424;
  --card: #111930;
  --card-hover: #141d38;
  --inset: #0a101f;
  --border: rgba(146, 165, 205, .12);
  --border-strong: rgba(146, 165, 205, .22);
  /* mürekkep */
  --text: #eaf0fa;
  --text-2: #b6c3da;
  --muted: #7e90ad;
  --faint: #5a6a85;
  /* marka */
  --accent: #45b6fe;
  --accent-2: #8b8bf4;
  --grad: linear-gradient(120deg, #45b6fe, #8b8bf4);
  --grad-soft: linear-gradient(120deg, rgba(69,182,254,.14), rgba(139,139,244,.14));
  /* durum */
  --ok: #3ddc97;
  --bad: #ff7a7a;
  --warn: #ffc857;
  /* seriler (dataviz — koyu yüzeyde doğrulandı) */
  --s-openai: #3987e5;
  --s-gemini: #199e70;
  --s-perplexity: #c98500;
  --s-all: #9085e9;
  /* geometri */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(2, 6, 16, .5);
  --shadow-2: 0 1px 2px rgba(2,6,16,.4), 0 12px 32px -16px rgba(2,6,16,.8);
  --ring: 0 0 0 3px rgba(69, 182, 254, .35);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #26324d var(--bg); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.25rem; font-weight: 700; margin: 0; letter-spacing: -.015em; }
h2 { font-size: .98rem; font-weight: 650; margin: 0 0 .9rem; letter-spacing: -.01em; }
h3 { font-size: .84rem; font-weight: 600; color: var(--muted); margin: 1.1rem 0 .5rem; text-transform: uppercase; letter-spacing: .06em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.icon { vertical-align: -3.5px; opacity: .95; }
::selection { background: rgba(69,182,254,.3); }

/* ═══ Uygulama kabuğu ═══ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 244px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.15rem .8rem .9rem;
  display: flex; flex-direction: column; gap: .35rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.logo {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--text); display: flex; align-items: center; gap: .5rem;
  padding: .15rem .6rem 1rem;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #081020; font-size: .78rem; font-weight: 900; letter-spacing: 0;
  box-shadow: 0 4px 14px -4px rgba(69,182,254,.6);
}
.logo-ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* proje değiştirici */
.switcher { position: relative; margin: 0 0 .4rem; }
.switcher summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: .55rem .7rem; font-weight: 600; font-size: .88rem;
  transition: border-color .15s var(--ease);
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover { border-color: var(--border-strong); }
.switcher summary .chev { margin-left: auto; color: var(--muted); transition: transform .15s var(--ease); }
.switcher[open] summary .chev { transform: rotate(180deg); }
.switcher-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: .35rem; max-height: 300px; overflow-y: auto;
}
.switcher-menu a {
  display: block; padding: .5rem .65rem; border-radius: var(--r-sm);
  color: var(--text-2); font-size: .88rem; font-weight: 500;
}
.switcher-menu a:hover { background: rgba(146,165,205,.08); color: var(--text); text-decoration: none; }
.switcher-menu a.sel { color: var(--accent); background: rgba(69,182,254,.1); }
.switcher-menu .new { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .45rem; color: var(--accent); }

.side-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); padding: .75rem .6rem .3rem; font-weight: 700;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: .65rem;
  color: var(--text-2); padding: .52rem .6rem; border-radius: var(--r-sm);
  font-weight: 500; font-size: .9rem; position: relative;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.sidebar nav a:hover { background: rgba(146,165,205,.07); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--grad-soft); color: var(--accent); font-weight: 600; }
.sidebar nav a.active::before {
  content: ""; position: absolute; left: -8px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--grad);
}
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding-top: 1rem; }
.usage { background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-md); padding: .7rem .8rem; }
.usage-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); margin-bottom: .45rem; font-weight: 550; }
.bar { height: 5px; background: rgba(146,165,205,.14); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s var(--ease); }
.bar-fill.bar-warn { background: linear-gradient(120deg, var(--warn), var(--bad)); }
.user-row { display: flex; align-items: center; gap: .6rem; padding: .2rem .3rem; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #081020; flex-shrink: 0;
}
.user-name { flex: 1; font-size: .86rem; font-weight: 550; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row a { color: var(--faint); display: inline-flex; padding: .3rem; border-radius: var(--r-sm); }
.user-row a:hover { color: var(--bad); background: rgba(255,122,122,.1); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.8rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: rgba(9,13,24,.8); backdrop-filter: blur(12px);
}
.crumb { color: var(--muted); font-size: .82rem; font-weight: 550; margin-bottom: .1rem; }
.crumb a { color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: .7rem; }
.content { flex: 1; padding: 1.5rem 1.8rem 2rem; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-sub { color: var(--muted); font-size: .88rem; margin: -1rem 0 1.2rem; }

/* ═══ Kartlar ═══ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem 1.35rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-1);
}
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cardgrid .card { margin-bottom: 0; }
.kpigrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpigrid .card { margin-bottom: 0; position: relative; overflow: hidden; }
.stat-label { font-size: .74rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.hero-num { font-size: 2.35rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin: .2rem 0 .1rem; font-variant-numeric: tabular-nums; }
.hero-num.small-hero { font-size: 1.6rem; }
.hero-num .unit { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: .76rem; font-weight: 700; padding: .06rem .45rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); background: rgba(61,220,151,.12); }
.delta.down { color: var(--bad); background: rgba(255,122,122,.12); }
.delta.flat { color: var(--muted); background: rgba(146,165,205,.12); }
.spark { display: block; margin-top: .4rem; opacity: .9; }
.spark polyline { fill: none; stroke: url(#sparkgrad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .sparkfill { fill: url(#sparkfillgrad); stroke: none; opacity: .5; }

a.projcard { display: block; color: inherit; transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
a.projcard:hover { text-decoration: none; border-color: rgba(69,182,254,.45); background: var(--card-hover); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.projcard-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.projcard-head h2 { margin: 0; }

.empty { text-align: center; padding: 3.2rem 1.5rem; color: var(--muted); }
.empty .empty-art { margin: 0 auto 1rem; width: 88px; height: 88px; border-radius: 24px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.empty h2 { margin: .4rem 0; color: var(--text); }
.empty p { max-width: 400px; margin: .4rem auto 1.2rem; }
.empty-mini { color: var(--muted); padding: .7rem 0; display: flex; gap: .5rem; align-items: center; font-size: .88rem; }

.notice { border-color: rgba(69,182,254,.4); background: linear-gradient(120deg, rgba(69,182,254,.07), rgba(139,139,244,.07)), var(--card); display: flex; gap: .7rem; align-items: flex-start; }
.notice.warn { border-color: rgba(255,200,87,.45); background: linear-gradient(120deg, rgba(255,200,87,.06), transparent), var(--card); }
.danger { border-color: rgba(255,122,122,.3); }

/* ═══ Gösterge (gauge) ═══ */
.gauge-wrap { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.gauge { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { stroke: rgba(146,165,205,.12); }
.gauge .value { stroke: url(#gaugegrad); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-center .gnum { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-center .glabel { font-size: .6rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; margin-top: .3rem; max-width: 104px; text-align: center; line-height: 1.35; }
.gauge-side { flex: 1; min-width: 220px; }
.gauge-side .row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(146,165,205,.08); font-size: .9rem; }
.gauge-side .row:last-child { border-bottom: none; }

/* ═══ Form ═══ */
label { display: block; margin-bottom: .95rem; font-size: .84rem; color: var(--text-2); font-weight: 550; }
input, textarea, select {
  display: block; width: 100%; margin-top: .4rem; padding: .62rem .85rem;
  border-radius: var(--r-md); border: 1px solid var(--border-strong);
  background: var(--inset); color: var(--text); font-size: .93rem; font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: var(--ring); border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.narrow-form { max-width: 580px; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.inline-form select { width: auto; margin: 0; padding: .32rem .5rem; font-size: .8rem; }
.filterbox { max-width: 280px; margin: 0 0 .8rem; }
.filterbox input { margin-top: 0; padding: .45rem .75rem; font-size: .86rem; }

button {
  padding: .55rem 1.15rem; border: none; border-radius: var(--r-md);
  font-weight: 650; font-size: .9rem; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: filter .12s var(--ease), background .12s var(--ease), transform .06s var(--ease);
}
button:active { transform: translateY(1px); }
.btn-primary, button[type="submit"]:not(.btn-ghost):not(.btn-danger) {
  background: var(--grad); color: #081020;
  padding: .55rem 1.15rem; border: none; border-radius: var(--r-md);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  box-shadow: 0 4px 16px -6px rgba(69,182,254,.5);
}
a.btn-primary { text-decoration: none; }
.btn-primary:hover { filter: brightness(1.12); text-decoration: none; }
.btn-ghost { background: rgba(146,165,205,.1); color: var(--text-2); border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(146,165,205,.18); color: var(--text); }
.btn-danger { background: rgba(255,122,122,.12); color: var(--bad); border: 1px solid rgba(255,122,122,.3); }
.btn-danger:hover { background: rgba(255,122,122,.2); }
button.small { padding: .3rem .7rem; font-size: .78rem; border-radius: var(--r-sm); }
.wide { width: 100%; justify-content: center; }
button:disabled { opacity: .45; cursor: default; }

/* ═══ Tablolar ═══ */
.tablewrap { overflow-x: auto; margin: 0 -.35rem; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th {
  text-align: left; color: var(--muted); font-weight: 650; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .55rem .65rem; border-bottom: 1px solid var(--border-strong);
  white-space: nowrap; position: sticky; top: 0; background: var(--card);
}
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text-2); }
th[data-sort]::after { content: "↕"; opacity: .35; margin-left: .3rem; font-size: .8em; }
th[data-sort].asc::after { content: "↑"; opacity: 1; color: var(--accent); }
th[data-sort].desc::after { content: "↓"; opacity: 1; color: var(--accent); }
td { padding: .62rem .65rem; border-bottom: 1px solid rgba(146,165,205,.07); vertical-align: middle; }
tbody tr { transition: background .1s var(--ease); }
tbody tr:hover { background: rgba(146,165,205,.045); }
tbody tr:last-child td { border-bottom: none; }
table.mini td { border: none; padding: .32rem .4rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 700; }
tr.highlight td { background: rgba(69,182,254,.07); }
tr.highlight td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.listrow { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid rgba(146,165,205,.08); }
.listrow:last-child { border-bottom: none; }

/* ═══ Küçük parçalar ═══ */
.pill { display: inline-block; background: rgba(146,165,205,.13); border-radius: 999px; padding: .12rem .6rem; font-size: .74rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.pill-accent { background: rgba(69,182,254,.14); color: var(--accent); }
.pill-warn { background: rgba(255,200,87,.14); color: var(--warn); }
.pill-ok { background: rgba(61,220,151,.13); color: var(--ok); }
.ok { color: var(--ok); font-weight: 650; }
.bad { color: var(--bad); font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
.error { color: var(--bad); background: rgba(255,122,122,.08); border: 1px solid rgba(255,122,122,.28); border-radius: var(--r-md); padding: .6rem .9rem; font-size: .88rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.dot-openai { background: var(--s-openai); }
.dot-gemini { background: var(--s-gemini); }
.dot-perplexity { background: var(--s-perplexity); }
.dot-all { background: var(--s-all); }
blockquote.snippet { border-left: 3px solid var(--border-strong); margin: .65rem 0; padding: .4rem 1rem; color: var(--text-2); font-size: .92rem; }
blockquote.frame-positive { border-color: var(--ok); }
blockquote.frame-negative { border-color: var(--bad); }
.chartbox { position: relative; height: 320px; }
.footnote { text-align: center; color: var(--faint); font-size: .76rem; padding: 1.1rem; }
code { background: var(--inset); border: 1px solid var(--border); padding: .14rem .5rem; border-radius: 6px; font-size: .86em; }

/* ═══ Paket kartları ═══ */
.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1rem; }
.plancard { text-align: center; margin-bottom: 0; padding-top: 1.6rem; position: relative; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.plancard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.plancard.current { border-color: rgba(69,182,254,.55); box-shadow: 0 0 0 1px rgba(69,182,254,.25), var(--shadow-2); }
.plancard .hero-num { font-size: 2rem; }
.plancard ul { list-style: none; padding: 0; margin: .8rem 0 1.1rem; color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.plancard li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ═══ Yığılmış bar (algı çerçevesi) ═══ */
.stackbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin: .8rem 0 1rem; background: transparent; }
.stackbar span { display: block; height: 100%; border-radius: 2px; min-width: 2px; }
.sb-pos { background: var(--ok); }
.sb-neu { background: #64748b; }
.sb-neg { background: var(--bad); }
.legendrow { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; font-size: .88rem; border-bottom: 1px solid rgba(146,165,205,.07); }
.legendrow:last-child { border-bottom: none; }
.legendrow .lg { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); }
.legendrow .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ağırlıklı sıfat bulutu */
.tagcloud { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tagcloud .pill { padding: .18rem .7rem; }
.pill.w2 { font-size: .86rem; background: rgba(69,182,254,.12); color: var(--text-2); }
.pill.w3 { font-size: .98rem; background: rgba(69,182,254,.16); color: var(--text); font-weight: 700; }

/* tier ve durum rozetleri */
.pill-p1 { background: rgba(69,182,254,.16); color: var(--accent); }
.pill-p2 { background: rgba(146,165,205,.13); color: var(--text-2); }
.pill-p3 { background: rgba(146,165,205,.08); color: var(--muted); }
.pill-bad { background: rgba(255,122,122,.12); color: var(--bad); }

/* snippet üst bilgisi */
.snippet-meta { display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: var(--muted); margin-bottom: .2rem; font-weight: 600; }

/* sistem kontrolleri */
.controlgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; }
.control-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: .8rem 1rem;
  background: var(--inset);
}
.control-item.control-off { border-color: rgba(255,122,122,.3); }
.control-label { font-weight: 650; display: flex; align-items: center; gap: .5rem; margin-bottom: .15rem; }

/* fırsat listesi */
.opp-item {
  border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--r-md);
  padding: .9rem 1.1rem; margin-bottom: .8rem; background: var(--inset);
  display: flex; flex-direction: column; gap: .55rem;
}
.opp-item.sev-high { border-left-color: var(--bad); }
.opp-item.sev-medium { border-left-color: var(--warn); }
.opp-item.sev-low { border-left-color: var(--faint); }
.opp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.opp-head a { color: var(--text); font-weight: 650; font-size: .95rem; }
.opp-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.opp-rivals { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.opp-hint { color: var(--muted); font-size: .82rem; }
.sev-pill-high { background: rgba(255,122,122,.13); color: var(--bad); }
.sev-pill-medium { background: rgba(255,200,87,.13); color: var(--warn); }
.sev-pill-low { background: rgba(146,165,205,.1); color: var(--muted); }

/* yatay mini bar (kıyas) */
.minibar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 48px; align-items: center; gap: .8rem; padding: .38rem 0; font-size: .88rem; }
.minibar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.minibar-row.me .name { color: var(--accent); font-weight: 700; }
.minibar { height: 8px; background: rgba(146,165,205,.12); border-radius: 999px; overflow: hidden; }
.minibar > span { display: block; height: 100%; border-radius: 999px; background: #64748b; }
.minibar-row.me .minibar > span { background: var(--grad); }
.minibar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* platform bazlı küçük stackbar */
.pstack { margin-bottom: .9rem; }
.pstack .pstack-head { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-2); margin-bottom: .35rem; font-weight: 550; }
.pstack .stackbar { height: 8px; margin: 0; }

/* sihirbaz adımları */
.step { display: flex; gap: .9rem; margin-bottom: 1.3rem; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-soft); color: var(--accent); border: 1px solid rgba(69,182,254,.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
}
.step-body { flex: 1; }
.step-body > label:last-of-type { margin-bottom: 0; }
.step-title { font-weight: 650; margin-bottom: .5rem; }

/* ═══ Toast ═══ */
.toast-wrap { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--card); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: .7rem 1rem; box-shadow: var(--shadow-2);
  font-size: .88rem; animation: slidein .25s var(--ease);
}
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } }

/* ═══ Auth sayfaları ═══ */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.auth-body::before {
  content: ""; position: fixed; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(69,182,254,.14), rgba(139,139,244,.06), transparent);
  pointer-events: none;
}
.auth-wrap { width: 100%; max-width: 420px; position: relative; }
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand .logo { font-size: 1.5rem; padding: 0; justify-content: center; }
.auth-card { padding: 1.7rem 1.8rem; }
.auth-card h1 { margin-bottom: .5rem; font-size: 1.35rem; }
.auth-card form { margin-top: 1.1rem; }

/* ═══ Yardımcılar ═══ */
.fade-in { animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.skeleton { background: linear-gradient(90deg, rgba(146,165,205,.08), rgba(146,165,205,.16), rgba(146,165,205,.08)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ═══ Mobil ═══ */
@media (max-width: 880px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .7rem .8rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar nav a.active::before { display: none; }
  .side-label { display: none; }
  .switcher { min-width: 180px; margin: 0; }
  .side-bottom { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; }
  .usage { display: none; }
  .content { padding: 1rem; }
  .topbar { padding: .8rem 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .gauge-wrap { justify-content: center; }
}
