/* =========================================================================
   SEDİR TEKEL ADMIN — Tasarım Sistemi (TECH-5730)
   Peralta + Manrope · gold+green · neo-brutalist · dark/light · sidebar 248px
   ========================================================================= */
:root {
  --gold: #d85a17; --gold-soft: #e76a22; --gold-deep: #ab420b;
  --green: #1f9d57; --green-soft: #2cb968; --green-deep: #0e5e36;
  --ink: #02110a; --hard: 4px 4px 0 var(--ink);
  --on-accent: #ffffff;
  --font-display: "Peralta", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --r: 14px; --r-sm: 9px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root, [data-theme="dark"] {
  --bg: #07140d; --bg-2: #0b1f15; --panel: #0f2418; --panel-2: #15301f;
  --border: rgba(255,244,223,.16); --border-strong: rgba(255,244,223,.3);
  --text: #f4efe2; --text-soft: #b7c2b4; --text-faint: #7f8c7e;
  --green-on: #46c46a; --red: #e0584f;
  --ink: #02110a; --hard: 4px 4px 0 var(--ink);
  --dot: rgba(255,255,255,.04);
  --field-bg: var(--bg-2);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f1f5ef; --bg-2: #e7efe4; --panel: #ffffff; --panel-2: #eef3ec;
  --border: rgba(10,44,27,.16); --border-strong: rgba(10,44,27,.3);
  --text: #0f2419; --text-soft: #46594d; --text-faint: #6f8377;
  --green-on: #1f9d57; --red: #d14036;
  --ink: #123524; --hard: 4px 4px 0 var(--ink);
  --dot: rgba(18,53,36,.05);
  --field-bg: #ffffff;
  color-scheme: light;
}

/* admin gövdesi `.adm` ile kapsanır (eski Tailwind sayfaları kırılmasın) */
.adm { margin: 0; font-family: var(--font-body); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  transition: background .4s var(--ease), color .4s var(--ease); }
/* Tam yükseklik + arka plan deseni yalnızca DIŞ admin gövdesinde (.shell'in ebeveyni);
   iç sayfa/bileşen .adm sarmalayıcıları 100vh almasın → kartlar arası dev boşluk olmaz */
.adm:has(> .shell) { background: var(--bg);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.5px); background-size: 16px 16px;
  min-height: 100vh; }
.adm *, .adm *::before, .adm *::after { box-sizing: border-box; }
/* Genel link rengi (düşük specificity — .nav a / .btn varyantları kendi rengini korur) */
.adm a { color: var(--gold-soft); }
/* .btn varyantları kendi yazı rengini belirler (zeminle okunur) */
.adm a.btn--primary, .adm a.btn--green, .adm a.btn--danger { color: #fff; }
.adm a.btn--ghost { color: var(--text); }
.adm h1, .adm h2, .adm h3 { font-family: var(--font-display); font-weight: 400; }

/* layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.side__mark { width: 40px; height: 40px; border-radius: 11px; flex: none; overflow: visible; box-shadow: 2px 2px 0 #02110a; }
.side__mark svg { width: 100%; height: 100%; display: block; }
.side__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1; }
.side__name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.nav a {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--text-soft); cursor: pointer; text-decoration: none;
  padding: 11px 12px; border-radius: var(--r-sm); font-family: var(--font-body);
  font-size: .92rem; font-weight: 600; transition: background .2s, color .2s; position: relative;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel-2); color: var(--text); }
.nav a.active::before { content: ""; width: 4px; height: 16px; background: var(--gold-soft); border-radius: 3px; position: absolute; left: -4px; }
.nav svg, .nav i { width: 18px; height: 18px; flex: none; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 6px; }

.side__foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.side-credit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-top: 10px; padding: 10px 6px 0; font-size: .72rem; color: var(--text-faint); line-height: 1.4; }
.side-credit img { width: 90px; height: auto; object-fit: contain; display: block; margin: 2px auto; }

.main { padding: 0; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 1200; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 34px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 2px solid var(--ink); }
.topbar h1 { font-size: 1.35rem; margin: 0; }
.topbar__actions { display: flex; gap: 10px; align-items: center; }
.theme-toggle { display: flex; gap: 2px; background: var(--bg-2); border: 2px solid var(--border); border-radius: 999px; padding: 3px; }
.tt-btn { width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-soft); border-radius: 999px; cursor: pointer; display: grid; place-items: center; transition: background .18s, color .18s; }
.tt-btn svg { width: 16px; height: 16px; }
.tt-btn.is-active { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; }
.save-hint { font-size: .82rem; color: var(--text-faint); white-space: nowrap; }
.save-hint.dirty { color: var(--gold-soft); }
.save-hint.saved { color: var(--green, #2f9e63); }
.content { padding: 30px 34px 60px; max-width: 1320px; margin: 0 auto; width: 100%; }

/* hamburger butonu — yalnızca mobilde görünür (masaüstünde gizli) */
.burger { display: none; width: 40px; height: 40px; flex: none; border: 2px solid var(--border); background: var(--bg-2); color: var(--text); border-radius: var(--r-sm); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.side-backdrop { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: .9rem; border-radius: 999px; padding: 11px 18px; border: 2px solid var(--ink); transition: transform .18s, box-shadow .2s, background .2s, filter .2s; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: linear-gradient(140deg,var(--gold-soft),var(--gold-deep)); color: var(--on-accent); box-shadow: var(--hard); }
.btn--primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--ghost { background: var(--panel-2); color: var(--text); box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost:hover { background: var(--panel); transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn--danger { background: var(--red); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.btn--danger:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); filter: brightness(1.05); }
.btn--green { background: linear-gradient(140deg,var(--green-soft),var(--green-deep)); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn--green:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
.btn--sm { padding: 8px 13px; font-size: .82rem; }

/* card + grid */
.card { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 24px; margin-bottom: 20px; box-shadow: var(--hard); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card__head h2 { font-size: 1.2rem; margin: 0; }
.card__desc { color: var(--text-soft); font-size: .88rem; margin: -8px 0 18px; }
.grid { display: grid; gap: 16px; margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; } /* grid içi kartlar gap ile ayrılır; alt margin grid bloğunda */
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.grid--4 { grid-template-columns: repeat(4,1fr); }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: .8rem; font-weight: 700; color: var(--text-soft); letter-spacing: .02em; }
.field .hint { font-size: .74rem; color: var(--text-faint); }
.adm input[type=text], .adm input[type=number], .adm input[type=time], .adm input[type=url], .adm input[type=password], .adm input[type=tel], .adm input[type=email], .adm textarea, .adm select {
  width: 100%; background: var(--field-bg); border: 2px solid var(--border); color: var(--text);
  border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.adm input:focus, .adm textarea:focus, .adm select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,90,23,.2); }
.adm textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

/* login form alanları (.adm kapsamı dışında olduğundan ayrıca stillenir) */
.login-page input[type=text], .login-page input[type=password] {
  width: 100%; background: var(--field-bg); border: 2px solid var(--border); color: var(--text);
  border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-page input[type=text]::placeholder, .login-page input[type=password]::placeholder { color: var(--text-faint); }
.login-page input[type=text]:focus, .login-page input[type=password]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,90,23,.2); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-faint); transition: transform .22s, background .2s; }
.switch input:checked + .track { background: rgba(70,196,106,.25); border-color: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--green); }
.switch span.lbl { font-size: .9rem; font-weight: 600; }

/* dashboard istatistik kartları */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 16px 16px 18px; box-shadow: var(--hard); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--gold)); }
.stat__n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.stat__l { font-size: .78rem; font-weight: 700; color: var(--text-soft); margin-top: 7px; }
.stat__t { font-size: .72rem; color: var(--text-faint); margin-top: 2px; }

/* dashboard stacked-bar grafiği (saf CSS) */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 8px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 5px 5px 0 0; overflow: hidden; border: 1px solid var(--ink); min-height: 2px; }
.bar__seg { width: 100%; }
.bar__lbl { font-size: .62rem; color: var(--text-faint); margin-top: 6px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .78rem; color: var(--text-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* aktivite listesi */
.activity { display: flex; flex-direction: column; gap: 2px; }
.activity__row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.activity__row:last-child { border-bottom: 0; }
.activity__dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.activity__txt { flex: 1; font-size: .88rem; }
.activity__time { font-size: .74rem; color: var(--text-faint); white-space: nowrap; }

.seg-btns { display: inline-flex; gap: 2px; background: var(--bg-2); border: 2px solid var(--border); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--text-soft); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .82rem; }
.seg-btn.is-active { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; }

@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* chips (ödeme yöntemleri vb.) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--border); background: var(--bg-2); color: var(--text-soft); cursor: pointer; font-weight: 700; font-size: .88rem; transition: transform .15s, box-shadow .18s, background .18s, color .18s, border-color .18s; }
.chip:hover { border-color: var(--border-strong); }
.chip.is-on { border-color: var(--ink); background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; box-shadow: 2px 2px 0 var(--ink); }

/* responsive: mobilde GERÇEK hamburger menü (off-canvas drawer) */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .burger { display: grid; }

  /* sidebar ekran dışına kayar; .is-open ile soldan içeri girer */
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; width: 264px; height: 100dvh; z-index: 1400;
    border-right: 1px solid var(--border); border-bottom: 0;
    transform: translateX(-100%); transition: transform .28s var(--ease);
    overflow-y: auto;
  }
  .side.is-open { transform: translateX(0); box-shadow: 8px 0 30px -8px rgba(0,0,0,.5); }

  /* arka plan örtüsü */
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .28s; }
  .side-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* menü dikey kalır (drawer içinde) */
  .nav { flex-direction: column; }
  .nav a { width: 100%; }
  .side-credit { display: flex; }

  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 1.12rem; }
  .topbar__actions { gap: 8px; }
  .save-hint { display: none; }
  .content { padding: 22px 16px 60px; }
  .card { padding: 18px; }
  .card__head { flex-wrap: wrap; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* dar telefon kırılımı (erken tanımlı seçiciler) */
@media (max-width: 560px) {
  .content { padding: 18px 12px 70px; }
  .card { padding: 15px; border-radius: 11px; }
  .topbar { padding: 10px 12px; }
  .topbar__actions .btn { padding: 9px 14px; font-size: .82rem; }
  .nav a { font-size: .8rem; gap: 7px; }
  .btn { padding: 10px 15px; font-size: .85rem; }
  .stat__n { font-size: 1.5rem; }
}

/* =========================================================================
   CANLI DESTEK — gelen kutusu (inbox) + thread (TECH-5739)
   ========================================================================= */
.chat-card { padding-bottom: 20px; }
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 18px; height: min(640px, calc(100vh - 240px)); min-height: 460px; }

/* sol: arama + konuşma listesi (ayrı kart) */
.inbox__side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.inbox__search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; }
.inbox__search svg { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
.adm .inbox__search input { border: 0; background: transparent; padding: 0; box-shadow: none; font-size: .88rem; }
.adm .inbox__search input:focus { box-shadow: none; border: 0; }
.inbox__list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; flex: 1; }
.inbox__none { color: var(--text-faint); font-size: .88rem; text-align: center; padding: 30px 12px; line-height: 1.6; }
.conv { display: flex; align-items: center; gap: 11px; text-align: left; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; position: relative; transition: border-color .15s, transform .12s, background .15s; }
.conv:hover { border-color: var(--gold); transform: translateX(2px); }
.conv.is-active { border-color: var(--gold); background: rgba(216,90,23,.1); }
.conv__av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-soft), var(--green-deep)); color: #fff; font-weight: 800; font-size: .9rem; border: 2px solid var(--ink); position: relative; }
.conv__main { flex: 1; min-width: 0; }
.conv__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv__name { font-weight: 800; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__time { font-size: .68rem; color: var(--text-faint); flex: none; }
.conv__last { display: block; font-size: .78rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv__badge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red);
  color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; align-self: center; }

/* sağ: thread (ayrı kart) */
.inbox__thread { background: var(--bg); border: 2px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.inbox__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-faint); text-align: center; padding: 24px; }
.inbox__empty svg { width: 38px; height: 38px; opacity: .4; }
.inbox__empty p { margin: 0; font-size: .92rem; font-weight: 700; color: var(--text-soft); }
.inbox__empty .inbox__empty-sub { font-size: .8rem; font-weight: 500; color: var(--text-faint); max-width: 26ch; }
.thread { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.thread__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--border); background: var(--bg-2); }
.thread__av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-soft), var(--green-deep)); color: #fff; font-weight: 800; font-size: .95rem; border: 2px solid var(--ink); }
.thread__id { flex: 1; min-width: 0; }
.thread__id b { font-family: var(--font-display); font-size: 1.12rem; display: block; }
.thread__id span { font-size: .76rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.thread__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); background-image: radial-gradient(var(--dot) 1.4px, transparent 1.5px); background-size: 16px 16px; }
.msg { max-width: 74%; padding: 9px 13px; border-radius: 13px; font-size: .9rem; line-height: 1.45; position: relative;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); word-wrap: break-word; }
.msg__time { display: block; font-size: .66rem; opacity: .7; margin-top: 4px; }
.msg--user { align-self: flex-start; background: var(--panel); color: var(--text); }
.msg--admin { align-self: flex-end; background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; }
.msg--bot { align-self: flex-end; background: var(--panel-2); color: var(--text-soft); border-style: dashed; box-shadow: none; }
.msg__img { display: block; max-width: 180px; border-radius: 8px; margin-top: 4px; border: 1px solid var(--border); }
.msg__loc { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: inherit; text-decoration: underline; }

/* hazır mesaj satırı + yanıt çubuğu (mockup: quick-row + thread__foot) */
.quick-row { display: flex; gap: 7px; padding: 9px 12px; overflow-x: auto; border-top: 1px solid var(--border); scrollbar-width: thin; }
.quick-row button { flex: none; background: var(--panel-2); border: 2px solid var(--border); color: var(--text-soft); border-radius: 999px; padding: 6px 12px; font-family: var(--font-body); font-weight: 600; font-size: .76rem; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, transform .12s; }
.quick-row button:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.thread__foot { display: flex; gap: 8px; padding: 14px 16px; border-top: 2px solid var(--border); background: var(--bg-2); align-items: flex-end; }
.thread__foot textarea { flex: 1; min-height: 42px; max-height: 130px; }
.thread__foot .btn { flex: none; }

/* bot ayarları: kural satırı */
.rule { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: start; padding: 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg-2); margin-bottom: 10px; }
.rule__rm { align-self: center; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox__side { max-height: 280px; }
  .inbox__thread { height: 420px; }
  .rule { grid-template-columns: 1fr; }
}

/* =========================================================================
   GİRİŞ EKRANI — iki panelli (mockup Design System/admin login gate) TECH-5730
   ========================================================================= */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.5px); background-size: 16px 16px; }
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login-shell { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr;
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; }

.login-aside { background: linear-gradient(150deg, var(--green-deep), #07140d 78%); color: #f4efe2;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.login-aside::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.5px); background-size: 15px 15px; pointer-events: none; }
.login-aside > * { position: relative; z-index: 1; }
.login-aside__top { display: flex; align-items: center; gap: 11px; }
.login-aside__mark { width: 46px; height: 46px; flex: none; }
.login-aside__mark svg { width: 100%; height: 100%; display: block; }
.login-aside__brand { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .5px; }
.login-aside__brand b { color: var(--gold-soft); }
.login-aside__mid { margin-top: auto; }
.login-aside__mid h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.08; margin: 0 0 12px; }
.login-aside__mid p { color: rgba(244,239,226,.75); font-size: .92rem; line-height: 1.55; margin: 0 0 18px; }
.login-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login-feats li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: rgba(244,239,226,.92); }
.login-feats svg { width: 18px; height: 18px; flex: none; color: var(--gold-soft); background: rgba(216,90,23,.16); border-radius: 50%; padding: 3px; }
.login-aside__credit { display: flex; align-items: center; gap: 7px; font-size: .68rem; color: rgba(244,239,226,.6); margin-top: 8px; text-decoration: none; }
.login-aside__credit img { height: 22px; width: auto; object-fit: contain; opacity: .85; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.login-box { width: 100%; max-width: 340px; }
.login-title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.login-sub { color: var(--text-soft); font-size: .88rem; margin: 0 0 22px; }
.login-box .field { margin-bottom: 14px; }
.login-submit { width: 100%; justify-content: center; margin-top: 6px; }
.login-hint { font-size: .76rem; color: var(--text-faint); text-align: center; margin: 14px 0 0; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; }
.login-remember { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-soft); cursor: pointer; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--gold); }
.login-err { display: block; margin-top: 14px; text-align: center; color: var(--red); font-weight: 700; font-size: .85rem;
  background: rgba(224,88,79,.12); border: 1.5px solid var(--red); border-radius: var(--r-sm); padding: 9px 12px; }

.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 44px; }
.pw-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 30px; height: 30px; border: 0;
  background: transparent; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; border-radius: 7px; transition: color .15s, background .15s; }
.pw-btn svg { width: 17px; height: 17px; }
.pw-btn:hover, .pw-btn.on { color: var(--gold-soft); }

@media (max-width: 720px) {
  .login-shell { grid-template-columns: 1fr; max-width: 420px; }
  .login-aside { display: none; }
}

/* =========================================================================
   MOCKUP PARİTESİ — tasarım sisteminde olup eksik kalan bileşenler
   (Design System/admin/css/admin.css ile birebir) — hepsi .adm kapsamında
   ========================================================================= */

/* renk girişi */
.adm input[type=color] { width: 46px; height: 40px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; }

/* not/uyarı kutusu */
.note { font-size: .84rem; color: var(--text-soft); background: var(--bg-2); border: 2px solid var(--ink); border-left: 5px solid var(--gold); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 18px; box-shadow: 2px 2px 0 var(--ink); }

/* tekrarlanabilir satırlar */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; position: relative; }
.row-item__del { position: absolute; top: 12px; right: 12px; }
.row-item h4 { margin: 0 0 12px; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.row-item.is-sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(216,90,23,.25); }
.row-item__tools { display: flex; gap: 8px; position: absolute; top: 12px; right: 12px; }
.row-item__tools .row-item__del { position: static; }

/* gün satırı (çalışma saatleri) */
.day-row { display: grid; grid-template-columns: 120px 1fr 1fr 110px; gap: 14px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--border); }
.day-row:last-child { border-bottom: 0; }
.day-row .dname { font-weight: 800; align-self: center; }
.day-row .tlabel { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; display: block; }
.day-row.closed .tp__btn { opacity: .35; pointer-events: none; }

/* ===== özel saat seçici ===== */
.tp { position: relative; }
.tp__btn { display: flex; align-items: center; gap: 9px; width: 100%; background: var(--bg-2); border: 2px solid var(--border); color: var(--text); border-radius: var(--r-sm); padding: 10px 13px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: border-color .18s, box-shadow .18s, transform .12s; }
.tp__btn svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; }
.tp__btn .tp__caret { width: 15px; height: 15px; color: var(--text-faint); margin-left: auto; transition: transform .2s; }
.tp__btn:hover { border-color: var(--gold); }
.tp--open .tp__btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,90,23,.2); }
.tp--open .tp__btn .tp__caret { transform: rotate(180deg); }
.tp__val { color: var(--text); }
.tp__unit { font-weight: 700; color: var(--text-soft); font-size: .82rem; margin-left: -3px; }
.tp-backdrop { position: fixed; inset: 0; z-index: 70; background: transparent; }
.tp-pop { position: absolute; z-index: 80; width: 248px; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 16px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .16s, transform .16s; transform-origin: top left; user-select: none; -webkit-user-select: none; outline: none; }
.tp-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.tpc-dialwrap { position: relative; width: 216px; height: 216px; margin: 0 auto; }
.tpc-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.tpc-svg:active { cursor: grabbing; }
/* Çocuk öğeler pointer almaz → pointerdown/move daima SVG'ye düşer, OffsetX/Y SVG'ye göre */
.tpc-svg > * { pointer-events: none; }
.tpc-face { fill: var(--bg-2); stroke: var(--border-strong); stroke-width: 2; }
.tpc-tick { stroke: var(--border-strong); stroke-width: 1.5; }
.tpc-tick--big { stroke: var(--text-faint); stroke-width: 2.5; }
.tpc-lab { fill: var(--text-soft); font: 800 13px var(--font-body); user-select: none; }
.tpc-lab.is-active { fill: #fff; }
.tpc-hand { stroke-linecap: round; transition: x2 .12s ease, y2 .12s ease, stroke .15s; }
.tpc-hand--h { stroke: var(--green-soft); stroke-width: 5; }
.tpc-hand--m { stroke: var(--gold-soft); stroke-width: 3.5; }
.tpc-hand.is-active { filter: drop-shadow(0 0 3px rgba(216,90,23,.5)); }
.tpc-pin { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 2; }
.tpc-num { position: absolute; transform: translate(-50%,-50%); width: 30px; height: 30px; border: 0; background: transparent; color: var(--text-soft); font-family: var(--font-body); font-weight: 800; font-size: .85rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; font-variant-numeric: tabular-nums; }
.tpc-num:hover { background: var(--bg-2); color: var(--text); }
.tpc-num.is-active { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; }
.tpc-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.tpc-read { display: flex; align-items: center; justify-content: center; gap: 1px; margin: 0 auto 14px; background: var(--bg-2); border: 2px solid var(--ink); border-radius: 12px; padding: 7px 10px; box-shadow: 3px 3px 0 var(--ink); width: max-content; }
.tpc-seg { border: 0; background: transparent; color: var(--text-soft); cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 8px; transition: background .15s, color .15s; line-height: 1; }
.tpc-seg.is-active { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; }
.tpc-colon { font-weight: 800; color: var(--text); font-size: 1.5rem; }
.tpc-unit { font-weight: 800; color: var(--text-soft); font-size: 1rem; margin-left: 4px; align-self: flex-end; margin-bottom: 4px; display: none; }
.tpc-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tpc-period { display: flex; gap: 6px; flex: 1; }
.tpc-per { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.05; background: var(--bg-2); border: 2px solid var(--border); color: var(--text-soft); border-radius: var(--r-sm); padding: 7px 4px; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: .9rem; transition: border-color .15s, background .15s, color .15s; }
.tpc-per small { font-size: .6rem; font-weight: 700; letter-spacing: .04em; opacity: .8; margin-top: 2px; }
.tpc-per.is-active { border-color: var(--gold); background: rgba(216,90,23,.14); color: var(--text); }
.tpc-now { background: linear-gradient(140deg, var(--green-soft), var(--green-deep)); color: #fff; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 8px 14px; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: .82rem; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .15s; }
.tpc-now:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.tpc-chips { display: none; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tpc-chip { flex: 1 1 auto; background: var(--bg-2); border: 2px solid var(--border); color: var(--text-soft); border-radius: 999px; padding: 7px 10px; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: .82rem; transition: border-color .15s, color .15s, transform .12s; }
.tpc-chip:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.tpc--dur .tpc-h, .tpc--dur .tpc-colon, .tpc--dur .tpc-foot { display: none; }
.tpc--dur .tpc-unit { display: inline; }
.tpc--dur .tpc-chips { display: flex; }
.tpc--dur .tpc-seg { font-size: 2rem; padding: 2px 10px; }

/* ===== MOBİL ÇARK (wheel) SAAT SEÇİCİ =====
   Dar ekran/dokunmatikte analog kadran yerine slot-makinesi tarzı, aşağı/yukarı
   kaydırılan iki kolon (saat : dakika). Ortadaki değer seçilidir. */
.tpc-wheel { display: none; position: relative; justify-content: center; align-items: stretch; gap: 6px; height: 180px; margin: 0 auto; }
.tpc-wheel__col {
  width: 72px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  padding: 72px 0; /* (180 - 36) / 2 → ilk/son öğe de ortalanabilsin */
  scrollbar-width: none; -ms-overflow-style: none;
  background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}
.tpc-wheel__col::-webkit-scrollbar { display: none; }
.tpc-wheel__item {
  display: grid; place-items: center; width: 100%; height: 36px; scroll-snap-align: center;
  border: 0; background: transparent; color: var(--text-soft); cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.tpc-wheel__item.is-active { color: var(--gold-soft); font-size: 1.35rem; }
.tpc-wheel__colon { align-self: center; font-weight: 800; font-size: 1.4rem; color: var(--text); }
/* seçim penceresi çizgileri (ortadaki satır) */
.tpc-wheel__win {
  position: absolute; left: 0; right: 0; top: 50%; height: 36px; transform: translateY(-50%);
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  pointer-events: none; border-radius: 4px;
}

/* Dar ekran / dokunmatik: kadran gizlenir, çark gösterilir; popup alt-sayfa (bottom sheet) olur */
@media (max-width: 640px), (pointer: coarse) {
  .tpc-dialwrap { display: none; }
  .tpc-wheel { display: flex; }
  .tp-backdrop { background: rgba(0, 0, 0, .45); z-index: 1400; }
  .tp-pop {
    position: fixed; left: 50%; right: auto; top: auto; bottom: 12px;
    width: min(340px, calc(100vw - 20px)); z-index: 1500;
    transform: translateX(-50%) translateY(12px) scale(.98); transform-origin: bottom center;
  }
  .tp-pop.show { transform: translateX(-50%); }
}

/* ürün ikon seçici ızgarası — ikon + TR etiket (anlamlı kategori seçimi) */
.icon-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.icon-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; text-align: center; border: 2px solid var(--border); background: var(--bg-2); color: var(--text-soft); border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, color .15s, transform .12s, background .15s; }
.icon-pick svg { width: 24px; height: 24px; flex: none; }
.icon-pick span { font-size: .72rem; font-weight: 700; line-height: 1.15; }
.icon-pick:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.icon-pick.is-on { border-color: var(--ink); background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 560px) { .icon-pick-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); } }

/* teslimat süresi (dakika) picker — stepper + hazır değer chip'leri */
.dur-picker { display: inline-flex; align-items: stretch; border: 2px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.dur-picker__btn { width: 48px; border: 0; background: var(--panel-2); color: var(--text); font-size: 1.4rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.dur-picker__btn:hover { background: var(--gold-soft); color: #fff; }
.dur-picker__val { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 4px; }
.dur-picker__val b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.dur-picker__val span { font-size: .7rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.dur-picker__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 560px) { .dur-picker { width: 100%; } .dur-picker__val { flex: 1; } }

/* ikon buton + bölge satırı başlığı */
.region-item__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.region-item__bar h4 { margin: 0; }
.region-item__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; cursor: pointer; background: var(--bg-2); border: 2px solid var(--border); border-radius: 9px; color: var(--text-soft); transition: border-color .15s, color .15s, background .15s, transform .12s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--text); }
.icon-btn--danger:hover { border-color: var(--red); color: var(--red); background: rgba(224,88,79,.1); }
/* İmleç üzerine gelince belirgin alt metin (tooltip) — data-tip ile */
.icon-btn[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 800;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; z-index: 60;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.icon-btn[data-tip]:hover::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink); pointer-events: none; z-index: 60;
}

/* harita tooltip (leaflet) */
.sedir-tip.leaflet-tooltip { background: var(--panel); color: var(--text); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 0; font-family: var(--font-body); }
.sedir-tip.leaflet-tooltip::before { display: none; }
.tip { padding: 11px 13px; min-width: 150px; }
.tip__title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.1; margin-bottom: 7px; color: var(--text); }
.tip__row { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-soft); }
.tip__row svg { width: 15px; height: 15px; color: var(--gold-soft); flex: none; }
.tip__row b { color: var(--gold-soft); font-size: .95rem; }
.tip__row--shop svg { color: var(--green-soft); }
.tip__kind { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 5px; }
.leaflet-popup-content-wrapper { border-radius: 10px !important; }

/* segment pill sekmeleri (canlı destek) */
.seg-tabs { display: inline-flex; gap: 3px; background: var(--bg-2); border: 2px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text-soft); font-family: var(--font-body); font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .18s, color .18s; position: relative; }
.seg-tab svg { width: 16px; height: 16px; }
.seg-tab.is-active { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.seg-badge { background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.seg-badge[hidden] { display: none; }
.seg-pane { display: none; }
.seg-pane.is-active { display: block; animation: admfade .3s ease; }
@keyframes admfade { from { opacity: 0; transform: translateY(6px); } }

/* ödeme açma/kapama etiketleri */
.pay-toggle { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-toggle label { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; transition: border-color .2s, background .2s; }
.pay-toggle label.on { border-color: var(--gold); background: rgba(216,90,23,.12); }
.pay-toggle input { accent-color: var(--gold); width: 17px; height: 17px; }

/* mini liste (yasal satırlar) */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line-row { display: flex; gap: 10px; align-items: flex-start; }
.line-row textarea { min-height: 52px; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--green); color: #04321a; font-weight: 700; padding: 13px 22px; border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* kur düzenleme + trend (döviz & altın) */
.rate-edit { display: flex; flex-direction: column; gap: 10px; }
.rates-fetch-state { font-size: .82rem; font-weight: 700; margin-bottom: 12px; min-height: 1.1em; }
.rates-fetch-state.busy { color: var(--gold-soft); }
.rates-fetch-state.ok { color: var(--green-on); }
.rates-fetch-state.err { color: var(--red); }
.rate-edit__row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; }
.rate-edit__lbl { font-weight: 700; font-size: .9rem; }
.trend-ind { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; white-space: nowrap; }
.trend-ind svg { width: 17px; height: 17px; }
.rate-charts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rate-chart { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.rate-chart__top { display: flex; align-items: center; justify-content: space-between; }
.rate-chart__top b { font-size: .82rem; }
.rate-chart__tr svg { width: 17px; height: 17px; }
.rate-chart__val { font-family: var(--font-display); font-size: 1.35rem; margin: 4px 0 8px; }
.rate-chart__val span { font-size: .8rem; color: var(--text-faint); }
.spark { width: 100%; height: 40px; display: block; }
@media (max-width: 820px) { .rate-charts { grid-template-columns: 1fr 1fr; } .rate-edit__row { grid-template-columns: 1fr; gap: 6px; } }

/* dashboard üst başlık + stat ikonu (mockup zenginleştirmesi) */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.dash-sub { color: var(--text-soft); font-size: .9rem; margin: 5px 0 0; }
.dash-range { display: flex; gap: 4px; background: var(--bg-2); border: 2px solid var(--border); border-radius: 999px; padding: 3px; }
.dash-total { font-size: .82rem; font-weight: 800; color: var(--gold-soft); }
.stat__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--gold)) 18%, transparent); color: var(--c, var(--gold)); margin-bottom: 10px; }
.stat__ic svg { width: 18px; height: 18px; }
.stat__t b { color: var(--c, var(--gold)); }

/* 2FA + admin yönetimi (profil & güvenlik) */
.tfa-badge { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 2px solid var(--border); color: var(--text-faint); }
.tfa-badge.on { color: var(--green-on); border-color: var(--green-on); }
.tfa-setup { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.tfa-qr img { width: 180px; height: 180px; border: 2px solid var(--ink); border-radius: var(--r-sm); display: block; background:#fff; }
.tfa-info { flex: 1; min-width: 240px; }
.tfa-secret { display: inline-block; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; font-family: ui-monospace, monospace; font-size: .9rem; letter-spacing: 2px; word-break: break-all; }
.tfa-on-note { color: var(--green-on); font-weight: 700; margin: 0 0 14px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.admin-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; }
.admin-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(140deg,var(--gold-soft),var(--gold-deep)); color: #fff; border: 2px solid var(--ink); }
.admin-meta { flex: 1; display: flex; flex-direction: column; }
.admin-meta b { font-size: .92rem; }
.admin-meta small { font-size: .74rem; color: var(--text-faint); }
.admin-add h4 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }

/* şifre alanı üret butonu (pw-wrap üzerine) + login yardımcıları */
.pw-wrap [data-pwtoggle] { right: 36px; }
.pw-wrap [data-pwgen] { right: 6px; }
.pw-wrap.has-gen input { padding-right: 70px; }
.login-link { background: 0; border: 0; color: var(--gold-soft); font-family: var(--font-body); font-weight: 700; font-size: .82rem; cursor: pointer; padding: 0; }
.login-link:hover { text-decoration: underline; }
.login-code { text-align: center; font-size: 1.5rem; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.login-forgot-note { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); padding: 14px; font-size: .85rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 16px; }
.login-forgot-note p { margin: 0 0 10px; }
.login-forgot-sub { font-size: .78rem; color: var(--text-faint); }
.auth-msg { display: inline-block; font-size: .8rem; font-weight: 700; margin-left: 10px; }
.auth-msg.ok { color: var(--green-on); }
.auth-msg.err { color: var(--red); }

/* adres seçme modalı */
.addr-modal { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.addr-modal[hidden] { display: none; }
.addr-modal__box { width: min(640px, 100%); background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; display: flex; flex-direction: column; }
.addr-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 2px solid var(--border); }
.addr-modal__head b { font-family: var(--font-display); font-size: 1.1rem; }
.addr-modal__hint { margin: 0; padding: 10px 16px 0; font-size: .82rem; color: var(--text-soft); }
.addr-modal__map { height: 340px; margin: 12px 16px; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.addr-modal__result { margin: 0 16px; padding: 11px 13px; background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--r-sm); font-size: .85rem; color: var(--text); line-height: 1.45; min-height: 1.4em; }
.addr-modal__foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 2px solid var(--border); margin-top: 12px; flex-wrap: wrap; }

/* logo yükleyici (işletme bilgileri) */
.logo-uploader { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 96px; height: 96px; flex: none; border-radius: 16px; border: 2px solid var(--ink); box-shadow: var(--hard); background: #fff3df center/contain no-repeat; display: grid; place-items: center; overflow: hidden; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview.empty { background: var(--bg-2); }
.logo-preview.empty::after { content: "Logo yok"; font-size: .72rem; color: var(--text-faint); font-weight: 700; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.logo-actions .hint { margin-top: 2px; }

/* ürün görsel önizleme */
.img-field { display: flex; gap: 12px; align-items: stretch; }
.img-field input { flex: 1; }
.img-thumb { width: 52px; height: 52px; flex: none; border-radius: 9px; border: 2px solid var(--border); background: var(--bg-2) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb.empty svg { width: 20px; height: 20px; color: var(--text-faint); }
.img-thumb.bad { border-color: var(--red); }

/* harita araç çubuğu (teslimat & bölgeler) */
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.map-tools .spacer { flex: 1; }
.geo-state { font-size: .8rem; color: var(--gold-soft); font-weight: 700; min-height: 1.1em; }
#adminMap, #admin-service-map { height: 380px; border-radius: var(--r); overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--hard); position: relative; z-index: 0; isolation: isolate; }
#admin-service-map { height: 500px; }
#adminMap.is-adding, #admin-service-map.is-adding { cursor: crosshair; }
.adding-banner { display: none; align-items: center; gap: 8px; background: rgba(216,90,23,.16); border: 2px solid var(--gold); color: var(--gold-soft); font-weight: 700; font-size: .84rem; padding: 9px 14px; border-radius: var(--r-sm); margin-bottom: 12px; }
.adding-banner.show { display: flex; }

/* çalışma saatleri hızlı ön ayarlar */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.preset-row .lbl { font-size: .78rem; font-weight: 700; color: var(--text-soft); align-self: center; margin-right: 4px; }
.preset-row .chip { background: var(--bg-2); border: 2px solid var(--border); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: .8rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: border-color .2s, transform .15s; }
.preset-row .chip:hover { border-color: var(--gold); background: var(--bg-2); color: var(--text); transform: translateY(-1px); box-shadow: none; }
.time-wrap { position: relative; }
.time-wrap input[type=time] { width: 100%; }

/* çalışma saatleri — hızlı uygula bloğu (düzenlenebilir saat + kapsam) */
.bulk-apply { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-bottom: 18px; }
.bulk-apply__times { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.bulk-apply__times > div { min-width: 120px; }
.bulk-apply .preset-row { margin-bottom: 0; }
@media (max-width: 560px) {
  .bulk-apply__times { gap: 10px; }
  .bulk-apply__times > div, .bulk-apply__times .btn { width: 100%; }
}

/* admin tablo (dashboard / loglar) */
.adm table.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.adm table.tbl thead th { text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 9px 10px; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--panel); }
.adm table.tbl tbody td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.adm table.tbl tbody tr:last-child td { border-bottom: 0; }
.adm table.tbl tbody tr:hover td { background: var(--bg-2); }
.tbl-wrap { overflow-x: auto; max-height: 380px; overflow-y: auto; }

/* yatay oran çubuğu (GA dağılımları) */
.barline { display: flex; align-items: center; gap: 12px; }
.barline__lbl { font-size: .82rem; font-weight: 600; color: var(--text-soft); width: 110px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barline__t { flex: 1; height: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.barline__f { height: 100%; border-radius: 999px; background: var(--gold-soft); transition: width .4s var(--ease); }
.barline__v { font-size: .82rem; font-weight: 800; color: var(--text); width: 48px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.barlines { display: flex; flex-direction: column; gap: 11px; }

/* canlı kullanıcı rozeti */
.live-badge { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(140deg, var(--green-soft), var(--green-deep)); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 13px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* dükkan durumu vurgu şeridi */
.status-card { border-left-width: 6px; border-left-style: solid; }
.status-card.on { border-left-color: var(--green); }
.status-card.off { border-left-color: var(--red); }
.status-pill { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.status-pill.on { color: #04321a; background: var(--green-on); }
.status-pill.off { color: #fff; background: var(--red); }

/* Ürün kategori görseli: URL + yükle butonu (sol) + sabit oranlı önizleme (sağ) */
.img-row { display: flex; gap: 14px; align-items: stretch; }
.img-row__inputs { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.img-row__inputs .btn { align-self: flex-start; }
.img-preview { width: 108px; height: 80px; flex: none; border: 2px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview__empty { color: var(--text-faint); display: grid; place-items: center; }
.img-preview__empty svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .img-row { flex-direction: column-reverse; } .img-preview { width: 100%; height: 120px; } }

/* =========================================================================
   MOBİL RESPONSIVE — GEÇ TANIMLI SEÇİCİLER (dosya SONUNDA olmalı; aynı
   specificity'de sonra gelen kural kazanır, yoksa yukarıdaki temel kurallar
   media query'yi ezer)
   ========================================================================= */
@media (max-width: 820px) {
  /* çalışma saatleri: 4 kolonlu gün satırı mobilde taşıyordu → 2 kolon, gün adı tam satır */
  .day-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .day-row .dname { grid-column: 1 / -1; }
  .day-row .switch { grid-column: 1 / -1; justify-self: start; }
  #adminMap, #admin-service-map { height: 320px; }
}

@media (max-width: 560px) {
  .map-tools { gap: 8px; }
  .map-tools .btn { flex: 1 1 auto; justify-content: center; }
  #adminMap, #admin-service-map { height: 280px; }
  .preset-row { gap: 6px; }
  .rate-charts { grid-template-columns: 1fr; }
  .addr-modal__map { height: 260px; }
  .dash-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .row-item { padding: 13px; }
}
