/* ============================================================
   Batarya Maliyet Sistemi — Arayuz Stilleri
   Koyu/Acik tema, cam efektli kartlar, akici animasyonlar.
   ============================================================ */

:root {
  --bg: #0a0e15;
  --bg-2: #0c111a;
  --surface: #121823;
  --surface-2: #19212e;
  --surface-3: #212b3a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7edf5;
  --text-dim: #9aa7b8;
  --text-faint: #6b7686;
  --accent: #2de2a3;
  --accent-2: #22b1ff;
  --accent-soft: rgba(45, 226, 163, 0.14);
  --accent-grad: linear-gradient(135deg, #2de2a3 0%, #22b1ff 100%);
  --danger: #ff5d6c;
  --danger-soft: rgba(255, 93, 108, 0.14);
  --warn: #ffb454;
  --warn-soft: rgba(255, 180, 84, 0.14);
  --ok: #2de2a3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --nav-w: 252px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #eef1f7;
  --bg-2: #e7ebf3;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #eaeef6;
  --border: rgba(12, 22, 44, 0.09);
  --border-strong: rgba(12, 22, 44, 0.18);
  --text: #0f1726;
  --text-dim: #51607a;
  --text-faint: #8a97ab;
  --accent: #11b585;
  --accent-2: #1487e0;
  --accent-soft: rgba(17, 181, 133, 0.12);
  --accent-grad: linear-gradient(135deg, #12c08c 0%, #1487e0 100%);
  --shadow: 0 12px 32px -16px rgba(20, 40, 80, 0.28);
  --shadow-lg: 0 28px 64px -24px rgba(20, 40, 80, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* dekoratif arka plan parlamasi */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60vw 50vh at 15% -10%, rgba(45, 226, 163, 0.10), transparent 60%),
    radial-gradient(50vw 45vh at 100% 0%, rgba(34, 177, 255, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--accent-soft); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: padding-box; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================ Uygulama Kabugu ============================ */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100vh;
}

/* --------------------------------- Sidebar --------------------------------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(45, 226, 163, 0.6);
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; color: #06231a; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: 0.2px; }
.brand-text span { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.4px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.nav-label { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); padding: 14px 12px 6px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); }
.nav-item.active svg { color: var(--accent); }
.nav-item .badge-count { margin-left: auto; font-size: 11px; color: var(--text-faint); background: var(--surface-2); padding: 1px 8px; border-radius: 20px; }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }

/* --------------------------------- Main --------------------------------- */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 30px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.2px; }
.topbar .sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 26px 30px 90px; max-width: 1280px; width: 100%; }

.view { animation: viewIn 0.4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================ Bilesenler ============================ */

/* Kartlar */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card.glass {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; font-weight: 620; }
.card-head .hint { font-size: 12px; color: var(--text-dim); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Istatistik kart */
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat .icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px;
}
.stat .icon svg { width: 19px; height: 19px; }
.stat .label { font-size: 12.5px; color: var(--text-dim); }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.stat .delta { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); border-color: var(--text-faint); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.primary {
  background: var(--accent-grad);
  color: #052017;
  border: none;
  box-shadow: 0 10px 24px -12px rgba(45, 226, 163, 0.7);
}
[data-theme="light"] .btn.primary { color: #fff; }
.btn.primary:hover { box-shadow: 0 14px 30px -12px rgba(45, 226, 163, 0.85); }

.btn.ghost { background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  transition: all 0.15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--text-faint); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* Rozetler / cipler */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.example { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 550; cursor: pointer; color: var(--text-dim);
  transition: all 0.15s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Form ogeleri */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; color: var(--text-dim); font-weight: 550; }
.field .suffix-wrap { position: relative; display: flex; align-items: center; }
.field .suffix { position: absolute; right: 12px; font-size: 12px; color: var(--text-faint); pointer-events: none; }

input, select, textarea {
  width: 100%;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: var(--surface-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg);
}
[data-theme="light"] input:focus, [data-theme="light"] select:focus { background: #fff; }
input::placeholder { color: var(--text-faint); }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { resize: vertical; min-height: 72px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { min-width: 0; }

/* Segment kontrol */
.segment { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.segment button { border: none; background: transparent; color: var(--text-dim); padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s var(--ease); }
.segment button.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--text-dim); cursor: pointer; border: none; background: transparent; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* Tablo / liste */
.list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), background 0.15s;
}
.row-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
.row-item .ri-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-dim); flex: none; }
.row-item .ri-icon svg { width: 19px; height: 19px; }
.row-item .ri-main { min-width: 0; flex: 1; }
.row-item .ri-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-item .ri-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.row-item .ri-meta b { color: var(--text); font-weight: 600; }
.row-item .ri-price { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
.row-item .ri-actions { display: flex; gap: 6px; flex: none; }

/* Bos durum */
.empty { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.empty .ico { width: 60px; height: 60px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 16px; color: var(--text-faint); }
.empty .ico svg { width: 28px; height: 28px; }
.empty h4 { color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; max-width: 340px; margin: 0 auto 18px; }

/* ===================== Hesaplama gorunumu ===================== */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.calc-controls { min-width: 0; }
.calc-results { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.metric-big { text-align: center; padding: 8px 0 4px; }
.metric-big .lbl { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.metric-big .val { font-size: 40px; font-weight: 800; letter-spacing: -1px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; margin-top: 4px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.metric-cell { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; min-width: 0; }
.metric-cell .m-val { overflow-wrap: anywhere; }
.metric-cell .m-lbl { font-size: 11px; color: var(--text-dim); }
.metric-cell .m-val { font-size: 16px; font-weight: 700; margin-top: 3px; }

/* Maliyet dokumu cubuklari */
.breakdown { display: flex; flex-direction: column; gap: 11px; }
.bd-row { display: flex; flex-direction: column; gap: 5px; }
.bd-head { display: flex; justify-content: space-between; font-size: 13px; }
.bd-head span:first-child { color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.bd-head .dot { width: 9px; height: 9px; border-radius: 3px; }
.bd-bar { height: 7px; background: var(--bg-2); border-radius: 20px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 20px; transition: width 0.6s var(--ease); }

/* Pil paketi gorsellestirici */
.pack-vis { display: flex; flex-direction: column; gap: 10px; }
.pack-groups { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 10px; }
.pack-group { display: flex; flex-direction: column; gap: 4px; padding: 7px 5px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; flex: none; }
.pack-group .pg-label { font-size: 9px; text-align: center; color: var(--text-faint); margin-top: 2px; }
.cell-ico { width: 13px; height: 30px; border-radius: 4px; background: var(--accent-grad); position: relative; opacity: 0; animation: cellPop 0.4s var(--ease) forwards; }
.cell-ico::after { content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 6px; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
@keyframes cellPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.pack-note { font-size: 12px; color: var(--text-dim); text-align: center; }

/* Uyari satirlari */
.warn-list { display: flex; flex-direction: column; gap: 8px; }
.warn-item { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.warn-item.error { background: var(--danger-soft); color: var(--danger); }
.warn-item.warn { background: var(--warn-soft); color: var(--warn); }
.warn-item.info { color: var(--text-dim); }
.warn-item svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ===================== Oneri kartlari ===================== */
.rec-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.rec-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.rec-card.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow); }
.rec-rank { position: absolute; top: -10px; left: 18px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--accent-grad); color: #052017; }
[data-theme="light"] .rec-rank { color: #fff; }
.rec-config { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.rec-config small { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.rec-cell-name { font-size: 13px; color: var(--text-dim); margin: 2px 0 14px; }
.rec-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-bottom: 14px; }
.rec-spec { display: flex; justify-content: space-between; font-size: 12.5px; }
.rec-spec span { color: var(--text-dim); }
.rec-spec b { font-weight: 650; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.rec-cost { font-size: 18px; font-weight: 750; }
.rec-cost small { display: block; font-size: 11px; color: var(--text-faint); font-weight: 500; }

/* ============================ Modal ============================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 14, 0.66);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; animation: fadeIn 0.22s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  animation: modalIn 0.28s var(--ease) forwards;
}
@keyframes modalIn { to { transform: none; } }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; font-weight: 650; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--border); }

/* ============================ Toast ============================ */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 13px; padding: 13px 16px; min-width: 240px; max-width: 360px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%); animation: toastIn 0.4s var(--ease) forwards;
  font-size: 13.5px;
}
@keyframes toastIn { to { transform: none; } }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast .t-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.toast .t-ico svg { width: 15px; height: 15px; }
.toast.success .t-ico { background: var(--accent-soft); color: var(--accent); }
.toast.error .t-ico { background: var(--danger-soft); color: var(--danger); }
.toast.info .t-ico { background: var(--surface-2); color: var(--text-dim); }

/* Yardimci siniflar */
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.text-sm { font-size: 12.5px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: none; }
.section-title { font-size: 13px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin: 4px 0 12px; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobil alt navigasyon (varsayilan gizli) */
.mobile-nav { display: none; }
.mobile-topbar-btn { display: none; }

/* ============================ Responsive ============================ */
@media (max-width: 980px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-results { position: static; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 18px 16px 100px; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 18px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }

  /* mobil alt nav */
  .mobile-nav {
    display: flex; justify-content: space-around;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: none; background: transparent; color: var(--text-faint); font-size: 10px; font-weight: 600; cursor: pointer; border-radius: 10px; transition: color 0.15s; }
  .mnav-item svg { width: 21px; height: 21px; }
  .mnav-item.active { color: var(--accent); }
  .stat .value { font-size: 23px; }
  .metric-big .val { font-size: 34px; }
  .modal { max-height: 92vh; }
  .toast-wrap { left: 14px; right: 14px; bottom: 84px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 420px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .rec-specs { grid-template-columns: 1fr; }
}

/* ============================ Yazdirma ============================ */
@media print {
  .sidebar, .topbar, .mobile-nav, .no-print { display: none !important; }
  body::before { display: none; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  body { background: #fff; color: #000; }
}
