/* Mercan ortak tasarım (Mikro Saha dili): mercanportal · mercanmarket · mercanuretim — prototip */
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url(manrope-latin-400-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url(manrope-latin-ext-400-800.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --ink: #6D4AFF; --ink-2: #5B37F0; --ink-soft: #EEE9FF; --text: #1C1830; --muted: #6B6880; --line: #ECE9F5; --bg: #FAF8FF; --sheet: #FFFFFF;
  --raised: #F3F0FB; --ok: #16A34A; --ok-soft: #E7F7EE; --debit: #DC2626; --debit-soft: #FDECEC; --warn: #D97706; --warn-soft: #FFF4E5;
  --grad: linear-gradient(120deg, #F97316, #E11D74 55%, #7C3AED); --grad-btn: linear-gradient(90deg, #6D4AFF, #D9467A); --r: 18px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
body { font-family: Geist, system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .baslik { font-family: Manrope, Geist, system-ui, sans-serif; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .k { font-size: 11.5px; color: var(--muted); } .b { font-weight: 650; }
.ok { color: var(--ok); } .debit { color: var(--debit); } .warn { color: var(--warn); } .ink { color: var(--ink); }

/* düzen: masaüstünde yan menü, telefonda alt sekme */
.kabuk { display: flex; min-height: 100vh; }
.yan { width: 240px; flex-shrink: 0; background: var(--sheet); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.marka { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.marka-logo { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: Manrope; font-weight: 800; }
.marka-ad { font-family: Manrope; font-weight: 800; font-size: 16px; line-height: 1.1; } .marka-ad small { display: block; font-family: Geist; font-weight: 500; font-size: 11px; color: var(--muted); }
.yan a, .yan button.oge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 550; text-decoration: none; text-align: left; width: 100%; }
.yan .oge.on, .yan a.on { background: var(--ink-soft); color: var(--ink); }
.yan .oge:hover { background: var(--raised); }
.yan .alt-blok { margin-top: auto; }
.ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ust { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 22px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.ust h1 { font-size: 19px; font-weight: 700; flex: 1; }
.icerik { padding: 20px 22px 110px; max-width: 1280px; width: 100%; }
.alt-sekme { display: none; }
.demo-rozet { background: var(--warn-soft); color: #B45309; font-size: 10.5px; font-weight: 700; border-radius: 8px; padding: 3px 8px; letter-spacing: .03em; }
.kul { display: flex; align-items: center; gap: 8px; } .av { width: 34px; height: 34px; border-radius: 12px; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
@media (max-width: 860px) {
  .yan { display: none; }
  .ust { padding: 0 14px; height: 58px; } .ust h1 { font-size: 18px; }
  .icerik { padding: 12px 14px 110px; }
  .alt-sekme { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .alt-sekme button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 11px; color: var(--muted); }
  .alt-sekme button.on { color: var(--ink); font-weight: 650; }
  .gizle-tel { display: none !important; }
}
@media (min-width: 861px) { .gizle-mas { display: none !important; } }
.ikon { width: 20px; height: 20px; flex-shrink: 0; } .ikon-k { width: 16px; height: 16px; }

/* bileşenler */
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }
.p { padding: 14px 16px; } .p-s { padding: 10px 12px; }
.bant { border-radius: 22px; padding: 18px 20px; color: #fff; background: var(--grad); box-shadow: 0 10px 28px rgba(225,29,116,.18); }
.bant .k { color: rgba(255,255,255,.82); }
.bant-kutu { background: rgba(255,255,255,.16); border-radius: 14px; padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 11px 16px; font-weight: 650; min-height: 44px; text-decoration: none; }
.btn-ink { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px rgba(109,74,255,.28); }
.btn-ink:disabled { opacity: .45; box-shadow: none; }
.btn-q { background: var(--sheet); border: 1px solid var(--line); }
.btn-q:hover { background: var(--raised); }
.btn-sil { color: var(--debit); }
.tam { width: 100%; }
.field { width: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; outline: none; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(109,74,255,.12); }
label.l { display: block; font-size: 12px; color: var(--muted); } label.l .field { margin-top: 5px; }
.cips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .cips::-webkit-scrollbar { display: none; }
.cip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--sheet); font-size: 12.5px; white-space: nowrap; }
.cip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.etiket { font-size: 10.5px; font-weight: 700; border-radius: 7px; padding: 2px 7px; background: var(--ink-soft); color: var(--ink); white-space: nowrap; }
.etiket.ok { background: var(--ok-soft); color: #15803D; } .etiket.warn { background: var(--warn-soft); color: #B45309; } .etiket.debit { background: var(--debit-soft); color: var(--debit); } .etiket.gri { background: var(--raised); color: var(--muted); }
.yol { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--raised); border-radius: 14px; padding: 4px; }
.yol button { padding: 10px 0; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--muted); }
.yol button.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.liste > * + * { border-top: 1px solid var(--line); }
.satir { display: flex; align-items: center; gap: 12px; }
.ara { flex: 1; min-width: 0; }
.kes { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.izgara { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .v { font-family: Manrope; font-size: 24px; font-weight: 800; margin-top: 2px; } .kpi .d { font-size: 12px; margin-top: 2px; }
.sec { font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 18px 2px 8px; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.bos { border: 1px dashed var(--line); border-radius: var(--r); padding: 24px; text-align: center; color: var(--muted); }
.not { font-size: 12px; color: var(--muted); line-height: 1.45; }
.mini { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.stp { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.stp button { width: 30px; height: 30px; color: var(--ink); font-weight: 800; background: var(--raised); } .stp span { min-width: 42px; text-align: center; font-weight: 650; }
.toplam { display: flex; justify-content: space-between; padding: 4px 0; } .toplam.g { font-family: Manrope; font-size: 19px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.tablo { width: 100%; border-collapse: collapse; } .tablo th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tablo td { padding: 11px 14px; border-bottom: 1px solid var(--line); } .tablo tr:last-child td { border-bottom: 0; } .tablo .sag { text-align: right; }
.modal-ort { position: fixed; inset: 0; background: rgba(28,24,48,.4); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--sheet); border-radius: 24px; width: min(440px, 100%); padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.giris-ort { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 10% -10%, #FDE2EF 0, transparent 60%), radial-gradient(900px 500px at 110% 10%, #E6E0FF 0, transparent 60%), var(--bg); }
.giris-kart { width: min(400px, 100%); }
.tus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .tus button { padding: 14px 0; border-radius: 14px; background: var(--raised); font-size: 20px; font-weight: 700; }
