/* hesaplariz.biz panel stilleri — gri, beyaz, turuncu */
:root {
  --bg: #FBFAF9; --surface: #FFFFFF; --side: #F7F6F4; --line: #ECE9E5; --line-2: #E2DED9; --line-3: #F3F1EE;
  --ink: #1F1D1B; --ink-2: #45413C; --muted: #67625C; --soft: #8A847D;
  --orange: #FF6B1A; --orange-2: #E85D0C; --orange-text: #B23F00; --orange-dark: #8A3000;
  --tint: #FFEDE0; --tint-2: #FFF6EF; --tint-3: #FFF4EC; --peach: #FFC9A3; --peach-2: #FFB98A;
  --graphite: #2B2926; --stone: #57524C; --chip: #F0EEEB;
  --red: #B42318; --red-tint: #FDECEC;
  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px; --r: 12px; --r-md: 16px; --r-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--orange-text); }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ düzen */
.app { display: flex; min-height: 100vh; }
.side { width: 272px; flex-shrink: 0; background: var(--side); border-right: 1.5px solid var(--line); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; background: var(--surface); border-bottom: 1.5px solid var(--line); padding: 0 36px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.page { padding: 28px 36px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.page-head p { margin: 0; color: var(--muted); }

.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.logo-word { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -0.035em; }
.logo-word span { color: var(--orange-2); }
.auth-side .logo, .s-nav .logo, .s-foot .logo, .empty .logo { padding: 0; }
.side .logo { flex-wrap: wrap; row-gap: 6px; }
.side .logo-word { font-size: 21px; }
.logo:hover, .logo:focus { text-decoration: none; }
.logo:focus:not(:focus-visible) { outline: none; }
.logo .logo-word, .logo .logo-word span { transition: color .15s ease; }
.logo:hover .logo-word, .logo:hover .logo-word span { color: var(--orange-2); }
.logo .brand-mark { display: block; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(240,82,10,.22)); }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; max-width: 470px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.auth-points li svg { color: var(--orange-2); flex-shrink: 0; margin-top: 2px; }
.auth-points b { color: var(--ink); }
.auth-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--orange-text); }
.auth-link:hover { text-decoration: underline; }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; margin-top: -6px; }
.auth-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--orange-2); flex-shrink: 0; }
.auth-box { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.auth-box h2 { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.auth-legal { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.auth-legal a { color: var(--muted); text-decoration: none; }
.auth-legal a:hover { color: var(--ink); }
.side-legal { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 12px; font-size: 12px; }
.side-legal a { color: var(--muted); text-decoration: none; }
.side-legal a:hover { color: var(--ink); }
.org { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; background: var(--orange); color: #fff; }
.avatar.dark { background: var(--graphite); }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.org-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.nav-sec { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 12px; font-weight: 600; color: var(--soft); padding: 4px 12px; }
.nav a, .nav summary { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--muted); }
.nav a:hover, .nav summary:hover { background: rgba(255,255,255,.7); }
.nav a.on { background: var(--surface); box-shadow: 0 1px 2px rgba(43,41,38,.08), 0 0 0 1.5px var(--line); font-weight: 700; }
.nav a.on svg, .nav details.on > summary svg { stroke: var(--orange-2); }
.nav details.on > summary { font-weight: 700; }
.nav summary .chev { margin-left: auto; width: 16px; height: 16px; stroke: var(--soft); transition: transform .15s; }
.nav details[open] > summary .chev { transform: rotate(90deg); }
.nav .sub { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 3px 0 4px 40px; }
.nav .sub::before { content: ''; position: absolute; left: 20px; top: 4px; bottom: 8px; width: 1.5px; background: var(--line-2); }
.nav .sub a { min-height: 34px; font-size: 14px; color: var(--ink-2); padding: 0 10px; }
.nav .sub a.on { color: var(--ink); background: var(--surface); box-shadow: none; }
.nav .soon { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--soft); background: var(--chip); border-radius: 99px; padding: 1px 7px; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: #C2410C; border-radius: 99px; padding: 1px 8px; }
.side-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bar { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

.search { position: relative; width: min(520px, 100%); }
.search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; stroke: var(--soft); }
.search input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 14px 0 42px; font: inherit; background: var(--side); }
.spacer { flex: 1; }

/* ------------------------------------------------ bileşenler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: 700 14.5px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #D2CCC5; color: var(--ink); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: #F2600F; border-color: #F2600F; }
.btn.soft { background: var(--tint-2); border-color: var(--peach-2); color: var(--orange-dark); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.card.hot { border-color: var(--peach); }
.card h2 { font-size: 18px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head .muted { font-size: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.row { display: flex; gap: 16px; align-items: flex-start; }
.row > .grow { flex: 1; min-width: 0; }

.kpi { gap: 10px; padding: 20px; }
.kpi .label { font-size: 14px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.kpi .value { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-size: 13px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--chip); color: var(--graphite); }
.pill.orange { background: var(--tint); color: var(--orange-text); }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.solid { background: #C2410C; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }

.alert { border-radius: var(--r); padding: 12px 16px; font-size: 14.5px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert.ok { background: var(--tint-2); color: var(--orange-dark); border: 1.5px solid var(--peach); }
.alert.error { background: var(--red-tint); color: var(--red); border: 1.5px solid #F5C2C0; }
.alert.info { background: var(--side); color: var(--ink-2); border: 1.5px solid var(--line); }

/* fiş kenarlı kart */
.receipt { display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px rgba(43,41,38,.06)); }
.receipt-body { background: var(--surface); border: 1.5px solid #F0E3D8; border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px 30px 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.receipt-edge { height: 14px; background: var(--surface); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.receipt-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--tint); display: grid; place-items: center; flex-shrink: 0; }

/* formlar */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label-strong { font-size: 14px; font-weight: 600; }
.input, .field input, .field select, .field textarea { height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 0 14px; font: 15px var(--body); color: var(--ink); background: var(--surface); width: 100%; }
.field textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.field .err { color: var(--red); font-size: 13px; font-weight: 600; }
.field.has-err input { border-color: var(--red); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input, table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.seg { display: inline-flex; gap: 2px; background: var(--chip); padding: 4px; border-radius: var(--r); }
.seg a, .seg label { height: 38px; padding: 0 14px; border-radius: 9px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.seg a.on, .seg input:checked + span { background: var(--surface); box-shadow: 0 1px 2px rgba(43,41,38,.1); color: var(--ink); font-weight: 700; }
.seg label { padding: 0; }
.seg label span { height: 38px; padding: 0 14px; border-radius: 9px; display: flex; align-items: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }

/* tablolar */
.table-card { padding: 0; overflow: hidden; gap: 0; }
.table-card .card-head { padding: 18px 22px 14px; align-items: center; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1.5px solid #F0EDE9; white-space: nowrap; }
table.list td { padding: 13px 14px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
table.list th:first-child, table.list td:first-child { padding-left: 22px; }
table.list th:last-child, table.list td:last-child { padding-right: 22px; }
table.list tr.sel td { background: var(--tint-2); }
table.list .r { text-align: right; }
table.list .strong { font-weight: 700; }
table.list .sub { display: block; font-size: 13px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* grafik */
.chart { position: relative; }
.chart .grid-line { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--soft); pointer-events: none; }
.chart .grid-line span:first-child { width: 38px; text-align: right; }
.chart .grid-line span:last-child { flex: 1; height: 1px; background: #F0EDE9; }
.chart svg { position: absolute; left: 0; top: 0; overflow: visible; }
.chart .x { position: absolute; font-size: 12px; color: var(--soft); transform: translateX(-50%); white-space: nowrap; }
.chart .tip { position: absolute; background: var(--surface); border: 1.5px solid var(--line); box-shadow: 0 6px 18px rgba(43,41,38,.12); border-radius: var(--r); padding: 8px 12px; font-size: 12.5px; pointer-events: none; display: none; white-space: nowrap; }
.chart .tip b { display: block; font-size: 15px; }
.legend { display: flex; flex-direction: column; gap: 6px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* seçim çubuğu ve SMS penceresi */
.selbar { position: fixed; left: calc(272px + 36px); right: 36px; bottom: 24px; background: var(--surface); border: 1.5px solid var(--peach); box-shadow: 0 12px 32px rgba(43,41,38,.14); border-radius: 18px; padding: 12px 12px 12px 24px; display: none; align-items: center; gap: 18px; z-index: 30; }
.selbar.show { display: flex; animation: up .2s ease-out; }
.modal-bg { position: fixed; inset: 0; background: rgba(120,110,100,.3); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { width: 480px; max-width: 100%; animation: pop .22s ease-out; }
.modal-body { background: var(--surface); border-radius: 24px 24px 0 0; padding: 30px 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.modal-foot { background: #F7F6F4; padding: 18px 32px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-edge { height: 14px; background: #F7F6F4; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.modal h2 { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.phase { display: none; flex-direction: column; gap: 18px; }
.phase.on { display: flex; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--tint); border-top-color: var(--orange); animation: spin .8s linear infinite; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.steps li.cur { color: var(--ink); font-weight: 600; }
.steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--chip); flex-shrink: 0; }
.steps li.cur::before { background: var(--tint); box-shadow: inset 0 0 0 5px var(--orange); }
.code-wrap { position: relative; display: flex; gap: 10px; }
.code-wrap span { flex: 1; height: 62px; border-radius: 14px; border: 2px solid var(--line-2); background: #FAF9F8; display: grid; place-items: center; font: 800 28px var(--display); }
.code-wrap span.fill { border-color: var(--ink); background: #fff; }
.code-wrap span.cur { border-color: var(--orange); }
.code-wrap.bad span { border-color: var(--red); }
.code-wrap input { position: absolute; inset: 0; opacity: 0; font-size: 28px; border: 0; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; align-self: center; }

/* sekmeli filtre */
.tabs { display: inline-flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: var(--r); flex-wrap: wrap; }
.tabs a { height: 38px; padding: 0 14px; border-radius: 9px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tabs a.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(43,41,38,.1); }
.tabs a small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* fatura kalemleri */
.items-head, .item-row { display: grid; grid-template-columns: 2.4fr .8fr .9fr 1fr .8fr 1fr 40px; gap: 10px; align-items: center; }
.items-head { font-size: 13px; font-weight: 600; color: var(--muted); }
.item-row input, .item-row select { height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; font: 15px var(--body); width: 100%; min-width: 0; background: #fff; }
.item-row .item-name { position: relative; min-width: 0; display: flex; }
.item-suggest { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: max(100%, 440px); max-width: calc(100vw - 40px); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: 320px; overflow: auto; }
.item-suggest [role=option] { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.item-suggest [role=option] + [role=option] { border-top: 1px solid #F0EDE9; }
.item-suggest [role=option].on, .item-suggest [role=option]:hover { background: var(--tint-2); }
.item-suggest .t { flex: 1; min-width: 0; }
.item-suggest .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-suggest .t small { font-size: 12.5px; color: var(--muted); }
.item-suggest .p { white-space: nowrap; }
.item-row .total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--chip); }
.add-row { align-self: flex-start; height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px dashed #D2CCC5; background: #FAF9F8; font: 700 14px var(--body); color: var(--ink-2); cursor: pointer; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row span:first-child { color: var(--muted); }

/* giriş ve site */
.guest { min-height: 100vh; display: flex; }
.auth-side { width: 50%; background: var(--side); border-right: 1.5px solid var(--line); padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h1 { font-family: var(--display); font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; max-width: 560px; position: relative; z-index: 1; }
.auth-side .sun { position: absolute; right: -200px; bottom: -270px; width: 440px; height: 440px; border-radius: 50%; background: var(--orange); }
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-form form { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.auth-form h2 { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }

/* mobil alt menü */
.tabbar { display: none; }
.menu-btn { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { flex-direction: column; }
  .row > * { width: 100% !important; }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 40px rgba(43,41,38,.2); }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .topbar .search { display: none; }
  .page { padding: 20px 16px 110px; }
  .page-head h1 { font-size: 28px; }
  .selbar { left: 12px; right: 12px; bottom: 96px; padding-left: 16px; }
  .form-grid, .form-grid-4, .grid-3 { grid-template-columns: 1fr; }
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); }
  .item-row > :first-child { grid-column: 1 / -1; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 76px; background: #fff; border-top: 1.5px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); z-index: 40; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabbar a.on { color: var(--ink); font-weight: 700; }
  .tabbar a.on svg { stroke: var(--orange-2); }
  .tabbar svg { width: 23px; height: 23px; stroke: var(--muted); }
  .tabbar .plus { flex: 0 0 54px; height: 54px; margin-top: -20px; border-radius: 18px; background: var(--orange); box-shadow: 0 8px 18px rgba(232,93,12,.35); }
  .tabbar .plus svg { stroke: var(--ink); }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { width: 100%; }
  .modal-body { border-radius: 26px 26px 0 0; padding: 26px 22px 20px; }
  .modal-edge { display: none; }
  .modal-foot { padding: 16px 22px calc(22px + env(safe-area-inset-bottom)); }
  .guest { flex-direction: column; }
  .auth-side { width: 100%; padding: 28px 24px; min-height: 260px; }
  .auth-side .sun { width: 250px; height: 250px; right: -70px; bottom: -90px; }
  .auth-side { gap: 16px; min-height: 0; }
  .auth-side .auth-lead, .auth-side .sun { display: none; }
  .auth-points { gap: 8px; }
  .auth-points li { font-size: 14.5px; }
}
[hidden] { display: none !important; }

/* Abonelik: havale/EFT ve kart */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bank-list { display: flex; flex-direction: column; gap: 10px; }
.bank { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--side); }
.bank-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.iban { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.iban .num { font-size: 17px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; word-break: break-all; }
.notice-form { display: flex; flex-direction: column; gap: 14px; border-top: 1.5px solid #F0EDE9; padding-top: 16px; }
.card-mock { border-radius: 16px; padding: 18px 20px; aspect-ratio: 1.586; max-width: 320px; width: 100%; color: #fff; background: linear-gradient(135deg, #3A3632, #1F1D1B 60%, #57524C); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(31,29,27,.2); align-self: center; }
.cm-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #FFC9A3, #FF8A3D); }
.cm-num { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.cm-row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; opacity: .8; }
.cc-fields { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; opacity: .6; }
.cc-fields input { background: #F7F6F4; cursor: not-allowed; }
.admin-note { width: 100%; min-width: 180px; height: 36px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; font: 13.5px var(--body); }
@media (max-width: 980px) { .pay-grid { grid-template-columns: 1fr; } }
/* Telefonla okut */
.phone-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--tint-2); border: 1.5px solid var(--peach); border-radius: var(--r); padding: 8px 12px; font-size: 14px; font-weight: 600; }
.phone-bar[hidden] { display: none; }
.phone-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #C9C2BA; flex-shrink: 0; }
.phone-bar .dot.on { background: #2E9E4F; box-shadow: 0 0 0 4px rgba(46,158,79,.18); }
.phone-bar span[data-phone-text] { flex: 1; min-width: 160px; }
/* Fatura: kayıtlı müşteri seçimi */
.cust-pick .item-name input { width: 100%; }
.cust-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--tint-2); border: 1.5px solid var(--peach); border-radius: var(--r); padding: 6px 8px 6px 14px; font-size: 14px; font-weight: 600; }
.cust-chip[hidden] { display: none; }
.cust-chip span { flex: 1; min-width: 160px; }
.cust-chip a { font-size: 13.5px; }

/* Telefonla stok girişi (stok sayfası) */
.sp-bar { display: flex; flex-direction: column; gap: 10px; background: var(--tint-2); border: 1.5px solid var(--peach); padding: 12px 16px; }
.sp-bar[hidden] { display: none; }
.sp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-head .btn { height: 38px; font-size: 14px; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; background: #C9C2BA; flex-shrink: 0; }
.sp-dot.on { background: #2E9E4F; box-shadow: 0 0 0 4px rgba(46,158,79,.18); }
.sp-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-size: 14.5px; }
.sp-text small { color: var(--muted); font-size: 13px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 220px; overflow: auto; }
.sp-list:empty { display: none; }
.sp-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--peach); font-size: 14px; }
.sp-list li .n { flex: 1; min-width: 0; }
.sp-list li em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange-text); margin-left: 4px; }
.sp-list li .q { font-weight: 700; white-space: nowrap; }
.sp-list li .t { color: var(--muted); font-size: 12.5px; }
.sp-list li.rev .n b, .sp-list li.rev .q { text-decoration: line-through; color: var(--muted); }

/* Döviz kurları (Genel Bakış) */
.fx { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; position: relative; padding-bottom: 18px; }
.fx-tile { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 10px; min-width: 168px; }
.fx-sym { width: 34px; height: 34px; border-radius: 10px; background: var(--tint-2, #FFF3EA); color: var(--orange-text); display: grid; place-items: center; font: 800 17px var(--display); flex-shrink: 0; }
.fx-body { display: flex; flex-direction: column; line-height: 1.2; }
.fx-body b { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.fx-val { font: 800 19px var(--display); color: var(--ink); }
.fx-body small { font-size: 11.5px; color: var(--soft); }
.fx-body small.up { color: #2E7D32; } .fx-body small.down { color: var(--orange-text); }
.fx-note { position: absolute; right: 2px; bottom: 0; font-size: 11px; color: var(--soft); white-space: nowrap; }

/* Rapor grafikleri */
.rchart { display: flex; flex-direction: column; gap: 8px; }
.rchart svg { display: block; max-width: 100%; height: auto; }
.rchart .hit:hover { fill: rgba(31,29,27,.04); }
.rchart-legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); }
.rchart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rchart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
table.list tfoot td { border-top: 1.5px solid var(--line-2); background: var(--side); }
table.pl tr.sum td { border-top: 1.5px solid var(--line-2); background: var(--side); }
.pur-items { table-layout: fixed; width: 100%; min-width: 640px; }
.pur-items td { vertical-align: top; }
.pur-items select.input { padding: 0 6px; }
.pur-items .input { height: 42px; padding: 0 10px; font-size: 14px; }
.pur-items small { display: block; margin-top: 3px; font-size: 12px; }
@media (max-width: 900px) { .fx { width: 100%; } .fx-tile { flex: 1; min-width: 140px; } .fx-note { position: static; width: 100%; } }
