/* =====================================================================
   SosyoKart — Panel tasarım sistemi (kurum, esnaf, platform, giriş)
   ===================================================================== */
:root {
  --navy-900: #071E3D;
  --navy-800: #0B2E59;
  --navy-700: #12407A;
  --blue-600: #1556A6;
  --blue-500: #2069C4;
  --blue-50: #EEF4FC;
  --amber: #F2A900;
  --amber-50: #FFF7E0;
  --green: #12805C;
  --green-50: #E8F6F0;
  --red: #C62828;
  --red-50: #FDECEC;
  --orange: #B45309;
  --orange-50: #FEF3E2;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sb-w: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(32, 105, 196, .45); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; }

/* ------------------------------------------------------------- yerleşim */
.panel { display: flex; min-height: 100vh; }
.sidebar { width: var(--sb-w); background: var(--navy-800); color: #C7D3E6; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; overflow-y: auto; }
.sb-brand { padding: 20px 20px 14px; }
.sb-logo img { display: block; height: 28px; width: auto; }
.sb-org { display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; padding: 10px; background: rgba(255,255,255,.06); border-radius: 8px; }
.sb-org strong { display: block; color: #fff; font-size: .9rem; line-height: 1.2; }
.sb-org small { color: #9FB2CF; font-size: .75rem; }
.sb-org-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.sb-org-mono { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.sb-nav { padding: 4px 10px 20px; flex: 1; }
.sb-group { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7F95B6; margin: 16px 10px 6px; font-weight: 600; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #D5DEEC; font-size: .9rem; }
.sb-link:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.sb-link.active { background: var(--blue-600); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.sb-foot { padding: 12px 20px; font-size: .72rem; color: #7F95B6; border-top: 1px solid rgba(255,255,255,.08); }
.main { flex: 1; margin-left: var(--sb-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.tb-title h1 { font-size: 1.1rem; margin: 0; font-weight: 650; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar .sb-toggle { display: none; }
.content { padding: 24px; max-width: 1440px; width: 100%; }
.sb-backdrop { position: fixed; inset: 0; background: rgba(7, 30, 61, .45); z-index: 35; }
.acting-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--amber-50); border-bottom: 1px solid #F5D98B; padding: 8px 24px; font-size: .88rem; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 600; }
.um-name { display: flex; flex-direction: column; font-size: .86rem; line-height: 1.2; font-weight: 600; }
.um-name small { font-weight: 400; }
.um-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.um-menu a, .um-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.um-menu a:hover, .um-menu button:hover { background: var(--bg); text-decoration: none; }
.um-head { padding: 8px 12px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head small { display: block; font-weight: 400; }

/* ------------------------------------------------------------- bileşenler */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-h { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; font-size: 1rem; }
.card-b { padding: 18px; }
.card-b > :last-child { margin-bottom: 0; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--line); background: #FAFBFD; border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 20px; }
.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)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.mt0 { margin-top: 0 !important; } .mb0 { margin-bottom: 0 !important; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }

.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .k-label { font-size: .8rem; color: var(--muted); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.kpi .k-value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue-600); }
.kpi.k-green::after { background: var(--green); } .kpi.k-amber::after { background: var(--amber); } .kpi.k-red::after { background: var(--red); } .kpi.k-navy::after { background: var(--navy-800); }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.flow > div { padding: 14px 16px; border-right: 1px solid var(--line); position: relative; }
.flow > div:last-child { border-right: 0; }
.flow small { display: block; font-size: .75rem; color: var(--muted); }
.flow strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.flow > div:not(:last-child)::after { content: "›"; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--line-2); font-size: 20px; line-height: 1; z-index: 1; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: #F8FAFC; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid #EEF2F6; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: #FAFCFF; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t .actions { text-align: right; white-space: nowrap; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge-ok { background: var(--green-50); color: var(--green); }
.badge-warn { background: var(--amber-50); color: #8A5A00; }
.badge-danger { background: var(--red-50); color: var(--red); }
.badge-muted { background: #EEF2F6; color: var(--ink-2); }
.badge-info { background: var(--blue-50); color: var(--blue-600); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; border: 1px solid transparent; font-size: .9rem; }
.alert-success { background: var(--green-50); border-color: #BFE3D3; color: #0B5D42; }
.alert-danger { background: var(--red-50); border-color: #F5C2C2; color: #8E1C1C; }
.alert-info { background: var(--blue-50); border-color: #C9DCF5; color: #0F3E78; }
.alert-warn { background: var(--amber-50); border-color: #F5D98B; color: #6E4A00; }
.mode-banner { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.mode-pill { font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.mode-pill.mode-salt_okunur { background: var(--orange); }

/* ------------------------------------------------------------- formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .88rem; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0D6849; }
.btn-danger { background: #fff; color: var(--red); border-color: #F0B5B5; }
.btn-danger:hover { background: var(--red-50); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { background: #F8FAFC; border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--blue-600); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-sm { padding: 6px 11px; font-size: .8rem; border-radius: 6px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
form.inline { display: inline; }

.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 5px; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=file], input[type=color], select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
input[type=color] { padding: 3px; height: 40px; }
input[type=file] { padding: 7px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(32, 105, 196, .15); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin-bottom: 10px; }
.check input { margin-top: 3px; width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chips label { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: .86rem; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter .field { margin: 0; min-width: 150px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 120px; }

.pager { display: flex; gap: 6px; justify-content: flex-end; padding: 12px 18px; align-items: center; font-size: .85rem; color: var(--muted); }

.dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

.steps { display: flex; gap: 0; counter-reset: s; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { flex: 1; padding: 10px 12px; background: #fff; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .72rem; font-weight: 700; margin-right: 6px; }
.steps li.done::before { background: var(--green); color: #fff; content: "✓"; }
.steps li.cur { color: var(--ink); font-weight: 600; border-color: var(--blue-500); }
.steps li.cur::before { background: var(--blue-600); color: #fff; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 8px 0 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.bars .bar span { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.meter { height: 8px; background: #EEF2F6; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.meter.m-blue i { background: var(--blue-600); }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid #EEF2F6; font-size: .87rem; }
.feed li:last-child { border-bottom: 0; }
.feed .f-amt { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.feed li.new { animation: flash 1.6s ease; }
@keyframes flash { from { background: #FFF7E0; } to { background: transparent; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--green); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.pending-list a { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid #EEF2F6; color: var(--ink); font-size: .88rem; }
.pending-list a:last-child { border-bottom: 0; }
.pending-list a:hover { background: #FAFCFF; text-decoration: none; }
.count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--amber); color: #3B2800; font-weight: 700; font-size: .75rem; display: inline-grid; place-items: center; }
.count.zero { background: #EEF2F6; color: var(--muted); }

.secret { font-family: var(--mono); background: #F1F5F9; padding: 10px 12px; border-radius: 8px; word-break: break-all; font-size: .85rem; border: 1px dashed var(--line-2); }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: max-content; margin: 0 auto 12px; }
.qr-box canvas, .qr-box img { display: block; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 5px; background: #EEF2F6; font-size: .76rem; margin: 1px 2px 1px 0; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
details.box { border: 1px solid var(--line); border-radius: 8px; padding: 0; background: #fff; margin-bottom: 12px; }
details.box > summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
details.box > div { padding: 0 16px 16px; }

/* ------------------------------------------------------------- giriş sayfaları */
.authpage { background: #fff; }
.auth-wrap { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 100vh; }
.auth-side { background: radial-gradient(1200px 600px at -10% 110%, rgba(242,169,0,.20), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #C9D6EA; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side img { height: 34px; width: auto; }
.auth-side h2 { color: #fff; font-size: 1.8rem; line-height: 1.2; margin-bottom: 14px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-points li { padding: 6px 0 6px 26px; position: relative; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 8px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-card-wide { max-width: 760px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-logo { display: none; margin-bottom: 18px; }
.auth-logo img { height: 32px; width: auto; }
.auth-foot { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.otp-input { font-family: var(--mono); font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; padding: 12px !important; }

/* vatandaş kartı */
.vcard { border-radius: 14px; color: #fff; padding: 20px; position: relative; overflow: hidden; margin-bottom: 18px; }
.vcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.vcard .v-bal { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vcard small { color: rgba(255,255,255,.8); }

/* ------------------------------------------------------------- hata/kurulum */
.barepage { background: var(--bg); }
.bare-main { max-width: 860px; margin: 40px auto; padding: 0 16px; }
.err { text-align: center; padding: 60px 24px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.err .code { font-size: 4rem; font-weight: 800; color: var(--navy-800); line-height: 1; }
.req li { list-style: none; padding: 4px 0; }
.req li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.req li.no::before { content: "✗"; color: var(--red); }
.req { padding: 0; }

/* ------------------------------------------------------------- esnaf arayüzü */
.esnaf { background: #EEF2F7; padding-bottom: 80px; }
.es-top { background: var(--navy-800); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
.es-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.es-brand img { height: 24px; width: auto; }
.es-brand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--amber); color: #2B1D00; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.es-merchant { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.es-merchant strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-merchant small { color: #AFC1DB; }
.es-branch select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); min-height: 30px; padding: 3px 8px; font-size: .8rem; margin-top: 2px; }
.es-branch option { color: var(--ink); }
.usermenu-dark summary:hover { background: rgba(255,255,255,.08); }
.usermenu-dark .avatar { background: var(--amber); color: #2B1D00; }
.es-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 54px; z-index: 20; }
.es-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; color: var(--ink-2); font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.es-tabs a.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.es-tabs a:hover { text-decoration: none; background: #F8FAFC; }
.es-main { max-width: 980px; margin: 0 auto; padding: 18px 14px; }

.pos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.pos-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.pos-step h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.pos-step h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-600); color: #fff; display: inline-grid; place-items: center; font-size: .82rem; }
.scanner { position: relative; background: #0B1220; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; color: #9FB2CF; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(242,169,0,.95); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.scanner .scan-line { position: absolute; left: 18%; right: 18%; height: 2px; background: var(--amber); top: 20%; animation: scan 2s linear infinite; }
@keyframes scan { 0% { top: 20%; } 50% { top: 78%; } 100% { top: 20%; } }
.scanner .placeholder { text-align: center; padding: 20px; }
.cardinfo { border-radius: 12px; padding: 16px; color: #fff; background: var(--navy-700); margin-bottom: 14px; }
.cardinfo .ci-top { display: flex; justify-content: space-between; font-size: .8rem; opacity: .9; }
.cardinfo .ci-no { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .08em; margin: 10px 0 4px; }
.cardinfo .ci-name { font-weight: 600; }
.amount-input { font-size: 2rem !important; font-weight: 800; text-align: right; padding: 12px 16px !important; font-variant-numeric: tabular-nums; min-height: 64px !important; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.keypad button { font: inherit; font-size: 1.3rem; font-weight: 700; padding: 14px 0; border-radius: 10px; border: 1px solid var(--line); background: #F8FAFC; cursor: pointer; color: var(--ink); }
.keypad button:active { background: var(--blue-50); }
.pos-result { text-align: center; padding: 28px 16px; }
.pos-result .big-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 12px; }
.receipt { font-family: var(--mono); font-size: .86rem; background: #FFFDF6; border: 1px dashed var(--line-2); border-radius: 8px; padding: 14px; text-align: left; margin: 14px auto 0; max-width: 360px; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.timer { font-family: var(--mono); font-weight: 700; color: var(--orange); }
.demo-code { background: #FFF7E0; border: 1px dashed var(--amber); padding: 8px 12px; border-radius: 8px; font-size: .85rem; margin-bottom: 10px; }
.hidden { display: none !important; }

/* tasarım editörü */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.card-preview { display: grid; gap: 18px; justify-items: center; padding: 24px; background: repeating-conic-gradient(#EEF2F7 0% 25%, #F7F9FC 0% 50%) 50% / 20px 20px; border-radius: 12px; border: 1px solid var(--line); }
.card-preview svg { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 10px 18px rgba(15,23,42,.18)); }
.card-preview .lbl-face { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: -10px; }

/* ------------------------------------------------------------- duyarlı */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .designer { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .topbar .sb-toggle { display: grid; }
  .g3 { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo { display: inline-block; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; height: 56px; }
  .um-name { display: none; }
  .g2, .g4, .form-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow > div:nth-child(2n) { border-right: 0; }
  .flow > div { border-bottom: 1px solid var(--line); }
  .flow > div::after { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .auth-card { padding: 22px 18px; border-radius: 12px; }
  .es-tabs a span { display: none; }
  .es-tabs { top: 50px; }
  .steps { flex-direction: column; }
  .acting-bar { flex-direction: column; align-items: flex-start; padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .sidebar, .topbar, .es-top, .es-tabs, .btn, .acting-bar, form { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
