/* =========================================================================
   Dükkan Otomasyon — Premium arayüz
   ========================================================================= */
:root {
  --bg: #0f1115;
  --bg-2: #151922;
  --panel: #1a1f2b;
  --panel-2: #20262f;
  --line: #2a313d;
  --text: #e9eef6;
  --text-dim: #9aa7bd;
  --text-faint: #6a7689;
  --accent: #7c6cff;
  --accent-2: #3b7bff;
  --brand-1: #8b3df0;
  --brand-2: #2563eb;
  --brand: linear-gradient(135deg, #8b3df0, #2563eb);
  --brand-soft: rgba(124, 92, 255, 0.14);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --amber: #fbbf24;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --sidebar-bg: linear-gradient(180deg, #12151c 0%, #0d0f14 100%);
}

/* ===== AÇIK (LIGHT) TEMA ===== */
body[data-theme="acik"] {
  --bg: #f5f7fb;
  --bg-2: #eef1f7;
  --panel: #ffffff;
  --panel-2: #f4f6fb;
  --line: #e4e8f1;
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.10);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.09);
  --amber: #d97706;
  --brand-soft: rgba(124, 92, 255, 0.10);
  --shadow: 0 12px 40px rgba(40, 55, 100, 0.14);
  --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #eef1f7 100%);
}
body[data-theme="acik"] .sidebar { border-right-color: var(--line); }
body[data-theme="acik"] ::-webkit-scrollbar-thumb { background: #c4ccda; }

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  -webkit-text-size-adjust: 100%;  /* iOS metin şişmesini engelle */
  text-size-adjust: 100%;
}
* { -webkit-tap-highlight-color: transparent; }     /* tıklamada gri parlama olmasın */
img, svg, video, canvas { max-width: 100%; }         /* hiçbir görsel taşmasın */
input, select, textarea { max-width: 100%; }

.titlebar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 38px;
  -webkit-app-region: drag;
  z-index: 50;
}

.app { display: flex; height: 100vh; }

/* ===================== KENAR ÇUBUĞU ===================== */
.sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 46px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
/* foot, içerik sığdığında alta yapışsın; taşınca akışla kayabilsin */
.sidebar-foot { flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.sidebar-toggle {
  margin-left: auto; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text-dim); font-size: 15px; cursor: pointer; display: grid; place-items: center;
  transition: all .15s;
}
.sidebar-toggle:hover { color: var(--text); border-color: var(--accent); }
.sidebar-ac { display: none; }
/* Masaüstü: paneli gizle/göster */
@media (min-width: 821px) {
  .sidebar { transition: width .26s cubic-bezier(.4,0,.2,1), padding .26s, opacity .2s; }
  body.sidebar-kapali .sidebar {
    width: 0 !important; padding-left: 0; padding-right: 0; opacity: 0;
    pointer-events: none; overflow: hidden; border-right: none;
  }
  .sidebar-ac {
    position: fixed; top: 16px; left: 16px; z-index: 90;
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line); color: var(--text);
    font-size: 18px; place-items: center; box-shadow: var(--shadow);
    transition: transform .15s, border-color .15s;
  }
  .sidebar-ac:hover { transform: translateY(-1px); border-color: var(--accent); }
  body.sidebar-kapali .sidebar-ac { display: grid; }
  body.sidebar-kapali .content { padding-left: 70px; }
}
@media (max-width: 820px) {
  .sidebar-toggle { display: none; }   /* mobilde çekmece zaten var */
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.brand-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-weight: 700; font-size: 14.5px; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.shop-switch { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.shop-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-dim); font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.shop-btn:hover { background: var(--panel); color: var(--text); }
.shop-btn.active { background: var(--panel); border-color: var(--line); color: var(--text); }
.shop-emoji { font-size: 16px; width: 22px; text-align: center; }
.shop-logo {
  width: 24px; height: 24px; border-radius: 7px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.shop-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: 9px;
  background: transparent; border: none;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.12s;
}
.nav-btn .ic { font-size: 11px; width: 14px; color: var(--text-faint); }
.nav-btn:hover { background: var(--panel); color: var(--text); }
.nav-btn.active { background: var(--brand-soft); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.nav-btn.active .ic { color: var(--accent); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.ghost-btn {
  padding: 9px 12px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.12s;
}
.ghost-btn:hover { color: var(--text); border-color: #3a4350; }

/* premium / kibar çıkış butonu */
.ghost-btn.cikis-aktif {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 12px; transition: all .15s;
}
.ghost-btn.cikis-aktif:hover {
  border-color: rgba(244,63,94,0.45);
  background: linear-gradient(135deg, rgba(244,63,94,0.07), transparent);
}
.cikis-ic {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 3px 10px rgba(225,29,72,0.3);
}
.cikis-yazi { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cikis-yazi b { font-size: 13px; }
.cikis-mail { font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 165px; }
.save-state {
  font-size: 10.5px; color: var(--green); text-align: center;
  padding-top: 6px; opacity: 0.85;
}
.save-state.hata { color: var(--red); opacity: 1; font-weight: 700; }

/* ===================== ANA İÇERİK ===================== */
.content { flex: 1; overflow-y: auto; padding: 46px 38px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.topbar > div:first-child { min-width: 150px; flex-shrink: 0; }
.crumb { font-size: 12px; color: var(--text-faint); font-weight: 600; margin-bottom: 4px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }

.period { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; justify-content: flex-end; }
.period label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
select, input, textarea {
  font-family: inherit; font-size: 13px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; outline: none; transition: border 0.12s;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
select { cursor: pointer; min-width: 150px; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%239aa6b8' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; }

/* ===================== KARTLAR ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(124,92,255,0.12), transparent 70%);
}
.kpi-label { font-size: 11.5px; color: var(--text-dim); font-weight: 600; margin-bottom: 9px; }
.kpi-value { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; }
.kpi-value.pos { color: var(--green); }
.kpi-value.neg { color: var(--red); }
.kpi-sub { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.kpi-sub.pos { color: var(--green); }
.kpi-sub.neg { color: var(--red); }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 700; }
.panel-title .muted { color: var(--text-faint); font-weight: 500; font-size: 12.5px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===================== TABLO ===================== */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-faint);
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td {
  padding: 12px; font-size: 13px; border-bottom: 1px solid rgba(42,49,61,0.5);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; background: var(--panel-2); color: var(--text-dim);
}
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text-dim); cursor: pointer; font-size: 12px;
  display: grid; place-items: center; transition: all 0.12s;
}
.icon-btn:hover { color: var(--text); border-color: #3a4350; }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }

.empty {
  text-align: center; padding: 40px 20px; color: var(--text-faint);
}
.empty-emoji { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }
.empty p { font-size: 13px; }

.btn-primary {
  background: var(--brand);
  color: #fff; border: none; border-radius: 9px;
  padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: filter 0.12s, box-shadow 0.12s; box-shadow: 0 6px 18px rgba(99, 70, 230, 0.30);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-secondary:hover { color: var(--text); }
.btn-add {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.btn-add:hover { border-color: var(--accent); }

/* ===================== BAR / İLERLEME ===================== */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { }
.bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.bar-top .name { color: var(--text-dim); font-weight: 600; }
.bar-top .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-track { height: 8px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s ease; }

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shop-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--panel); position: relative; overflow: hidden;
}
.shop-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.shop-card-emoji { font-size: 26px; }
.shop-card-logo {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.shop-card-name { font-size: 15.5px; font-weight: 700; }
.shop-card-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(42,49,61,0.5); }
.shop-card-row:last-child { border-bottom: none; }
.shop-card-row .lbl { color: var(--text-dim); }
.shop-card-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100;
}
.modal-backdrop.show { display: grid; }
.modal {
  width: 460px; max-width: 92vw; max-height: 86vh; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-faint); font-size: 16px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 4px 22px 8px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* Ayarlar bölümleri */
.ayar-bolum-baslik {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 20px 0 10px; padding-top: 14px; border-top: 1px solid var(--line);
}
.ayar-bolum-baslik:first-child { margin-top: 2px; padding-top: 0; border-top: none; }
.ayar-dukkan-liste { display: flex; flex-direction: column; gap: 7px; }
.ayar-dukkan-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
}
.ayar-dukkan-ad { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; min-width: 0; }
.ayar-dukkan-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ayar-dukkan-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ayar-dukkan-nokta { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ayar-dukkan-btns { display: flex; gap: 6px; flex-shrink: 0; }
.calc-box {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-top: 4px; margin-bottom: 14px;
}
.calc-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; color: var(--text-dim); }
.calc-line.total { color: var(--text); font-weight: 700; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 9px; }
.calc-line .v { font-variant-numeric: tabular-nums; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 20px; border-radius: 11px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--green); }
.toast.err { border-color: var(--red); }

/* premium scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(124,92,255,0.4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,92,255,0.55), rgba(37,99,235,0.55));
  border-radius: 20px; border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124,92,255,0.85), rgba(37,99,235,0.85));
  border-width: 2px; background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .split-cards { grid-template-columns: 1fr; }
}

/* ===================== EK ÖZELLİKLER (v2) ===================== */
/* Dönem / tarih aralığı filtresi */
.period-sep { font-size: 11px; color: var(--text-faint); }
.period-dash { color: var(--text-faint); }
.period input[type="date"] { padding: 7px 9px; font-size: 12px; min-width: 130px; }
.btn-mini {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-dim);
}
.btn-mini:hover { color: var(--red); border-color: var(--red); }

/* Grafik */
.chart { width: 100%; height: auto; display: block; margin-top: 6px; }

/* Rapor / PDF */
.rapor-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px;
}
.print-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.print-head h2 { font-size: 20px; font-weight: 800; }
.print-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }

/* PIN kilit ekranı */
.lock-screen {
  position: fixed; inset: 0; z-index: 500; place-items: center;
  background: var(--bg); background-image: radial-gradient(circle at 50% 30%, rgba(124,92,255,0.12), transparent 60%);
}
.lock-box {
  width: 320px; text-align: center; padding: 36px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.lock-logo { font-size: 40px; margin-bottom: 10px; }
.lock-title { font-size: 18px; font-weight: 800; }
.lock-sub { font-size: 12.5px; color: var(--text-dim); margin: 6px 0 20px; }
.lock-input {
  width: 100%; text-align: center; font-size: 24px; letter-spacing: 8px;
  padding: 12px; margin-bottom: 10px;
}
.lock-err { color: var(--red); font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.lock-btn { width: 100%; }

/* Yazdırma (PDF) */
@media print {
  .sidebar, .topbar, .no-print, .titlebar, .row-actions { display: none !important; }
  .content { padding: 0 !important; overflow: visible !important; }
  body, html { overflow: visible !important; background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel, .kpi { break-inside: avoid; }
  body[data-theme] { --bg:#fff; --panel:#fff; --text:#111; --text-dim:#444; --line:#ccc; }
}

/* ===================== DÜKKANA GÖRE RENKLİ SOL PANEL ===================== */
/* Alifredo seçili → yeşil; Mezgitçi seçili → mavi (logo renkleri) */
body[data-shop="renkli"] { --sidebar-bg: linear-gradient(180deg, #1f9a4f 0%, #115b2c 100%); }
body[data-shop="renkli"] { --sidebar-bg: linear-gradient(180deg, #1664b3 0%, #0b2748 100%); }

/* Renkli panelde yazılar/öğeler okunur kalsın */
body[data-shop="renkli"] .sidebar,
body[data-shop="renkli"] .sidebar { border-right-color: rgba(255,255,255,0.14); }

body[data-shop="renkli"] .brand-name,
body[data-shop="renkli"] .brand-name { color: #fff; }
body[data-shop="renkli"] .brand-sub,
body[data-shop="renkli"] .brand-sub { color: rgba(255,255,255,0.7); }

body[data-shop="renkli"] .shop-btn,
body[data-shop="renkli"] .shop-btn,
body[data-shop="renkli"] .nav-btn,
body[data-shop="renkli"] .nav-btn { color: rgba(255,255,255,0.82); }

body[data-shop="renkli"] .shop-btn:hover,
body[data-shop="renkli"] .shop-btn:hover,
body[data-shop="renkli"] .nav-btn:hover,
body[data-shop="renkli"] .nav-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

body[data-shop="renkli"] .shop-btn.active,
body[data-shop="renkli"] .shop-btn.active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.25); color: #fff; }

body[data-shop="renkli"] .nav-btn.active,
body[data-shop="renkli"] .nav-btn.active { background: rgba(255,255,255,0.2); color: #fff; }
body[data-shop="renkli"] .nav-btn .ic,
body[data-shop="renkli"] .nav-btn .ic,
body[data-shop="renkli"] .nav-btn.active .ic,
body[data-shop="renkli"] .nav-btn.active .ic { color: rgba(255,255,255,0.85); }

body[data-shop="renkli"] .ghost-btn,
body[data-shop="renkli"] .ghost-btn {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: #fff;
}
body[data-shop="renkli"] .ghost-btn:hover,
body[data-shop="renkli"] .ghost-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); }

body[data-shop="renkli"] .save-state,
body[data-shop="renkli"] .save-state { color: rgba(255,255,255,0.85); }

/* ===================== WEB / GİRİŞ / MOBİL ===================== */
.titlebar { display: none; }
.sidebar { padding-top: 20px; }
.content { padding-top: 26px; }

/* Giriş ekranı */
.giris-ekran {
  position: fixed; inset: 0; z-index: 600; place-items: center;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 25%, rgba(124,92,255,0.14), transparent 60%);
}
.giris-box {
  width: 340px; max-width: 92vw; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 34px 28px 26px;
}
.giris-logos { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.giris-logos img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.giris-title { font-size: 20px; font-weight: 800; }
.giris-sub { font-size: 12.5px; color: var(--text-dim); margin: 5px 0 22px; }
.giris-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: 11px; cursor: pointer;
  background: #fff; color: #1a2233; border: 1px solid #dadce0;
  font-size: 14px; font-weight: 700; transition: filter .12s;
}
.giris-google:hover { filter: brightness(0.97); }
.g-ikon {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #4285F4; color: #fff; font-weight: 800; font-size: 14px;
}
.giris-not { font-size: 11.5px; color: var(--text-dim); margin: 12px 2px 18px; line-height: 1.5; }
.giris-yerel {
  width: 100%; padding: 11px; border-radius: 10px; cursor: pointer;
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.giris-yerel:hover { color: var(--text); }
.giris-not2 { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; }
.giris-err { color: var(--red); font-size: 11.5px; margin-top: 12px; min-height: 14px; }

/* ===================== MOBİL (telefon) ===================== */
/* ============ MOBİL: app-benzeri premium düzen ============ */
.mobil-ust, .alt-nav, .drawer-scrim { display: none; }

@media (max-width: 820px) {
  body, html { overflow-x: hidden; }
  body { overflow-y: auto; }
  .app { flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; }
  /* iOS: input font-size < 16px olunca odakta otomatik zoom yapar → 16px sabitle */
  select, input, textarea { font-size: 16px; }
  .period input[type="date"] { font-size: 15px; }

  /* ÜST BAR — sticky, hamburger + marka + aktif dükkan */
  .mobil-ust {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 60;
    padding: calc(env(safe-area-inset-top, 0px) + 11px) 16px 11px;
    background: var(--sidebar-bg); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobil-menu-btn {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: var(--panel); border: 1px solid var(--line); color: var(--text);
    font-size: 18px; cursor: pointer; display: grid; place-items: center;
  }
  .mobil-brand { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; flex: 1; }
  .mobil-shop {
    max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: var(--panel); border: 1px solid var(--line); color: var(--text-dim);
    border-radius: 20px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  }

  /* KENAR ÇUBUĞU → soldan açılan çekmece */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 320px; z-index: 120;
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    border-right: 1px solid var(--line); border-bottom: none;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
  }
  .sidebar.acik { transform: translateX(0); }
  .drawer-scrim {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .28s;
  }
  .drawer-scrim.acik { opacity: 1; pointer-events: auto; }
  .shop-switch { flex-direction: column; }
  .nav { flex-direction: column; }

  /* İÇERİK */
  .content { padding: 16px 14px calc(env(safe-area-inset-bottom, 0px) + 86px); }
  .topbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 18px; }
  .crumb { display: none; }
  .page-title { font-size: 21px; white-space: normal; }
  .period { flex-wrap: wrap; gap: 7px; }
  .period label { width: 100%; }
  .period select, .period input { min-width: 0; flex: 1 1 auto; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .bugun-grid { grid-template-columns: 1fr 1fr; }
  .bugun-aksiyon .btn-primary, .bugun-aksiyon .btn-glass { flex: 1; }
  .kpi { padding: 15px 16px; }
  .kpi-value { font-size: 21px; }
  .two-col, .split-cards { grid-template-columns: 1fr; }

  /* TABLOLAR → KART (yatay kaydırma yok, her satır bir kart) */
  .panel { overflow: visible; padding: 15px; }
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 4px 13px; margin-bottom: 10px;
  }
  .table tbody tr:hover { background: var(--bg-2); }
  .table td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid rgba(128,128,128,0.14);
    text-align: right; font-size: 13px;
  }
  .table td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label); text-align: left;
    font-size: 11px; font-weight: 600; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0;
  }
  .table td[colspan] { padding: 10px 0; }
  .table td[colspan]::before { content: none; }
  .table td[colspan] .empty { padding: 24px 10px; }
  .row-actions { justify-content: flex-end; }

  /* MODAL → her cihazda ORTADA (bottom-sheet değil) */
  .modal-backdrop.show { place-items: center; padding: 12px; }
  .modal {
    width: 100%; max-width: 460px; max-height: 88vh;
    border-radius: 18px;
    animation: modalGir .26s cubic-bezier(.16,.84,.24,1);
  }
  @keyframes modalGir { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
  .modal-foot {
    position: sticky; bottom: 0; background: var(--panel);
    padding-bottom: 16px;
  }
  .modal-foot .btn-primary, .modal-foot .btn-secondary { flex: 1; padding: 13px; }

  /* ALT NAVİGASYON — başparmak erişimi */
  .alt-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--sidebar-bg); border-top: 1px solid var(--line);
    padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .alt-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; cursor: pointer;
    color: var(--text-faint); font-size: 10.5px; font-weight: 600;
    padding: 6px 2px; border-radius: 10px; transition: color .15s;
  }
  .alt-ic { font-size: 17px; line-height: 1; }
  .alt-btn.active { color: var(--accent); }
}
@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .bugun-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }   /* dar telefonda form alanları alt alta */
}

/* ===================== LİSANS KİLİT + YÖNETİCİ ===================== */
.lisans-ekran {
  position: fixed; inset: 0; z-index: 700; place-items: center;
  background: var(--bg); background-image: radial-gradient(circle at 50% 25%, rgba(251,191,36,0.12), transparent 60%);
}
.lisans-box {
  width: 360px; max-width: 92vw; text-align: center; padding: 34px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.lisans-logo { font-size: 42px; margin-bottom: 10px; }
.lisans-title { font-size: 20px; font-weight: 800; }
.lisans-sub { font-size: 12.5px; color: var(--text-dim); margin: 8px 0 18px; line-height: 1.5; }
.lisans-mail-kutu { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.lisans-mail-lbl { font-size: 11px; color: var(--text-faint); }
.lisans-mail { font-size: 14px; font-weight: 700; color: var(--accent); word-break: break-all; margin-top: 3px; }
.lisans-not { font-size: 11.5px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.5; }
.lisans-btn { width: 100%; margin-bottom: 10px; }
.lisans-cikis { width: 100%; padding: 10px; border-radius: 10px; cursor: pointer; background: transparent; color: var(--text-faint); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.lisans-cikis:hover { color: var(--text); }

.admin-ekran { position: fixed; inset: 0; z-index: 710; place-items: center; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.admin-box { width: 560px; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.admin-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.admin-head h3 { font-size: 16px; font-weight: 700; }
.admin-liste { padding: 4px 20px 20px; overflow-y: auto; }
.admin-baslik { font-size: 13px; font-weight: 700; color: var(--text-dim); margin: 8px 0 8px; }
.admin-bos { font-size: 12.5px; color: var(--text-faint); padding: 8px 0; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,0.15); }
.admin-row b { font-size: 13px; }
.admin-sub { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; word-break: break-all; }
.admin-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.admin-liste button { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.admin-liste button:hover { border-color: var(--accent); }
.admin-onay { background: linear-gradient(135deg, var(--green), #10b981) !important; color: #fff !important; border: none !important; }
.admin-btn { color: var(--amber) !important; border-color: rgba(251,191,36,0.4) !important; }
.lisans-sure { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 600; min-width: 92px; cursor: pointer; }

/* Lisans sistemi ana aç/kapat kutusu */
.lisans-toggle-kutu {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px;
}
.lisans-toggle {
  flex-shrink: 0; padding: 9px 18px !important; border-radius: 20px !important;
  font-weight: 800 !important; font-size: 12.5px !important; cursor: pointer; border: none !important; color: #fff !important;
}
.lisans-toggle.acik { background: linear-gradient(135deg, var(--green), #10b981) !important; }
.lisans-toggle.kapali { background: linear-gradient(135deg, var(--red), #dc2626) !important; }

/* ===================== DİNAMİK DÜKKAN + LOGO + RENK ===================== */
.dukkan-ekle-btn { border: 1px dashed var(--line) !important; color: var(--text-faint) !important; opacity: 0.85; }
.dukkan-ekle-btn:hover { border-color: var(--accent) !important; color: var(--accent) !important; opacity: 1; }
.dukkan-ekle-btn .shop-emoji { font-weight: 800; }

/* Giriş ekranı nötr marka */
.giris-marka {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; font-size: 32px;
  background: linear-gradient(135deg, var(--accent), #9b6cff);
  box-shadow: 0 6px 18px rgba(124,92,255,0.4);
}

/* Renk seçimi — gradyanlı yumuşak swatch'lar */
.renk-secim { display: flex; flex-wrap: wrap; gap: 10px; }
.renk-nokta {
  width: 40px; height: 40px; border-radius: 13px; cursor: pointer; padding: 0;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 3px 9px rgba(40,50,90,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .12s, box-shadow .12s; position: relative;
}
.renk-nokta:hover { transform: translateY(-2px) scale(1.06); }
.renk-nokta.sec { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent), 0 4px 12px rgba(40,50,90,0.25); }
.renk-nokta.sec::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 17px; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
/* Renksiz / varsayılan (aydınlık) seçeneği */
.renk-nokta.renksiz {
  background: repeating-linear-gradient(45deg, #f1f5f9 0 7px, #e2e8f0 7px 14px);
  color: #94a3b8; font-size: 18px; font-weight: 800; display: grid; place-items: center;
  border: 2px dashed #cbd5e1;
}
.renk-nokta.renksiz.sec::after { color: var(--accent); text-shadow: none; }
/* Dokunmatik renk çarkı */
.cark-wrap { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.cark-box { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.cark { width: 200px; height: 200px; border-radius: 50%; cursor: crosshair; touch-action: none;
  box-shadow: 0 4px 16px rgba(40,50,90,0.18), inset 0 0 0 1px rgba(0,0,0,0.06); display: block; }
.cark-imlec {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%); pointer-events: none;
}
.cark-yan { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.cark-onz { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--line); box-shadow: inset 0 1px 4px rgba(0,0,0,0.15); }
.cark-lbl { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.parlak-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 8px; padding: 0;
  background: linear-gradient(90deg, #000, #fff); border: 1px solid var(--line); cursor: pointer;
}
.parlak-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,0.3); cursor: pointer;
}
.parlak-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.ozel-renk-kod { font-size: 13px; color: var(--text-dim); font-weight: 700; font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.5px; }

/* Logo yükleme */
.logo-yukle { display: flex; align-items: center; gap: 14px; }
.logo-onizleme {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 28px;
}
.logo-onizleme img { width: 100%; height: 100%; object-fit: cover; }

/* Renkli panelde dükkan-ekle butonu okunur kalsın */
body[data-shop="renkli"] .dukkan-ekle-btn { border-color: rgba(255,255,255,0.3) !important; color: rgba(255,255,255,0.8) !important; }
body[data-shop="renkli"] .dukkan-ekle-btn:hover { background: rgba(255,255,255,0.12); color: #fff !important; }

/* ===================== PREMIUM ANİMASYONLU GİRİŞ ===================== */
.giris-ekran {
  position: fixed; inset: 0; z-index: 600; display: grid; place-items: center;
  overflow: hidden; background: radial-gradient(ellipse at 50% -10%, #eef2ff 0%, #f6f8fc 45%, #eef1f7 100%);
}
/* hareketli ışık küreleri (aydınlık zeminde yumuşak) */
.giris-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.28;
  pointer-events: none; will-change: transform;
}
.giris-glow.g1 { width: 560px; height: 560px; top: -14%; left: -10%;
  background: radial-gradient(circle, #8b3df0, transparent 70%); animation: glowMove 20s ease-in-out infinite; }
.giris-glow.g2 { width: 520px; height: 520px; bottom: -16%; right: -10%;
  background: radial-gradient(circle, #2563eb, transparent 70%); animation: glowMove 24s ease-in-out infinite -8s; }
.giris-glow.g3 { width: 420px; height: 420px; top: 40%; left: 55%;
  background: radial-gradient(circle, #60a5fa, transparent 70%); opacity: 0.20; animation: glowMove 18s ease-in-out infinite -14s; }
.giris-glow.g4 { width: 360px; height: 360px; top: 8%; right: 12%;
  background: radial-gradient(circle, #a78bfa, transparent 70%); opacity: 0.18; animation: glowMove2 16s ease-in-out infinite -6s; }
@keyframes glowMove {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(90px, 60px) scale(1.22); }
  50% { transform: translate(40px, -40px) scale(0.95); }
  75% { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes glowMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-80px, 70px) scale(1.25); }
}

/* kartın üstünden geçen ışık süpürmesi */
.giris-shine {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; pointer-events: none; z-index: 5;
}
.giris-shine::before {
  content: ""; position: absolute; top: -60%; left: -40%; width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(124,58,237,0.10), transparent);
  transform: rotate(18deg); animation: shineSweep 5.5s ease-in-out infinite;
}
@keyframes shineSweep {
  0% { left: -50%; } 55% { left: 130%; } 100% { left: 130%; }
}

/* aydınlık kart */
.giris-box {
  position: relative; z-index: 2; width: 372px; max-width: 92vw; text-align: center;
  padding: 44px 34px 32px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(124,58,237,0.12); border-radius: 26px;
  box-shadow: 0 30px 70px rgba(45, 60, 120, 0.18), inset 0 1px 0 rgba(255,255,255,0.7);
  animation: kartGir 0.8s cubic-bezier(.16,.84,.24,1) both;
}
@keyframes kartGir { from { opacity: 0; transform: translateY(34px) scale(0.96); } to { opacity: 1; transform: none; } }

/* birebir logo (yatay lockup) */
.giris-logo-tam {
  position: relative; z-index: 2; display: block;
  width: 300px; max-width: 90%; height: auto; margin: 6px auto 26px;
  filter: drop-shadow(0 8px 20px rgba(99, 70, 230, 0.14));
  animation: markaGir 0.9s cubic-bezier(.16,.84,.24,1) both;
}
@keyframes markaGir { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: scale(1); } }
@keyframes yukariGir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.giris-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 15px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #8b3df0, #2563eb); color: #fff; border: none;
  font-size: 14.5px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(78, 70, 229, 0.35);
  transition: transform .15s, box-shadow .15s, filter .15s; animation: yukariGir 0.7s 0.26s both;
}
.giris-google:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(78, 70, 229, 0.45); filter: brightness(1.05); }
.giris-google:active { transform: translateY(0); }
.g-ikon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #4285F4; font-weight: 800; font-size: 14px; }
.giris-err { color: #dc2626; font-size: 11.5px; margin-top: 12px; min-height: 14px; }

/* ===================== SATIŞ / PREMIUM MODÜLLER ===================== */
.btn-glass { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .12s; }
.btn-glass:hover { border-color: var(--accent); color: var(--accent); }

/* Bugünün Durumu kartı */
.bugun-karti { background: var(--brand); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; color: #fff; box-shadow: 0 14px 38px rgba(99,70,230,0.28); }
.bugun-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bugun-tarih { font-size: 11.5px; opacity: 0.88; font-weight: 600; }
.bugun-baslik { font-size: 17px; font-weight: 800; margin-top: 2px; }
.bugun-rozet { flex-shrink: 0; font-size: 11.5px; font-weight: 800; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,0.2); letter-spacing: .3px; }
.bugun-rozet.r-neg { background: rgba(0,0,0,0.22); }
.bugun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bugun-metric { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 12px 14px; }
.bm-lbl { font-size: 11px; opacity: 0.92; font-weight: 600; margin-bottom: 5px; }
.bm-val { font-size: 16.5px; font-weight: 800; color: #fff; }
.bugun-aksiyon { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bugun-aksiyon .btn-primary { background: #fff; color: #5b3fd6; box-shadow: none; }
.bugun-aksiyon .btn-primary:hover { filter: none; background: #f3f0ff; }
.bugun-aksiyon .btn-glass { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.3); }
.bugun-aksiyon .btn-glass:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Akıllı uyarılar */
.uyari-list { display: flex; flex-direction: column; gap: 8px; }
.uyari-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.uyari-row.u-amber { border-color: rgba(245,158,11,0.42); background: rgba(245,158,11,0.09); }
.uyari-row.u-red { border-color: rgba(239,68,68,0.42); background: rgba(239,68,68,0.09); }
.uyari-ik { font-size: 16px; flex-shrink: 0; }

/* Sağlık puanı */
.saglik-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.saglik-daire { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.saglik-ic { width: 90px; height: 90px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; }
.saglik-puan { font-size: 30px; font-weight: 900; line-height: 1; }
.saglik-alt { font-size: 11px; color: var(--text-faint); }
.saglik-mad { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 180px; }
.saglik-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.saglik-nokta { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* Patron raporu + günü kapat */
.rapor-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-wa { flex: 1; min-width: 160px; background: #25D366; color: #fff; border: none; border-radius: 10px; padding: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.btn-wa:hover { filter: brightness(1.05); }
.gun-sonuc { text-align: center; }
.gun-sonuc-ik { font-size: 44px; }
.gun-sonuc-baslik { font-size: 17px; font-weight: 800; margin: 4px 0 16px; color: var(--green); }
.gun-sonuc .shop-card-row { text-align: left; }

/* ===================== GRAFİKLER ===================== */
.grafik { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 8px 2px 0; }
.gcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.gbarw { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.gbar { width: 60%; min-height: 2px; border-radius: 5px 5px 0 0; transition: height .4s cubic-bezier(.4,0,.2,1); }
.gbarw2 .gbar { width: 42%; }
.gbar.gpos { background: linear-gradient(180deg, #34d399, #059669); }
.gbar.gneg { background: linear-gradient(180deg, #fb7185, #e11d48); }
.glbl { font-size: 10.5px; color: var(--text-faint); font-weight: 600; white-space: nowrap; }
.lejant { font-size: 11px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.lejant i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lejant .lj-pos { background: #10b981; }
.lejant .lj-neg { background: #e11d48; }

/* ===================== DEMO BANNER ===================== */
.demo-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(124,92,255,0.10));
  border: 1px solid rgba(245,158,11,0.4); border-radius: 12px; padding: 11px 15px; margin-bottom: 16px; font-size: 13px; color: var(--text); }
.demo-btns { margin-left: auto; display: flex; gap: 8px; }
.demo-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); font-size: 12px; font-weight: 700; cursor: pointer; }
.demo-btn:hover { color: var(--text); border-color: var(--accent); }
.demo-btn.cik { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; border: none; }

/* ===================== YAKINDA NAV ===================== */
.nav-ayrac { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); padding: 14px 13px 6px; }
.nav-yakinda { opacity: 0.7; }
.nav-yakinda:hover { opacity: 1; }
.yk-badge { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .3px; padding: 2px 7px; border-radius: 20px;
  background: linear-gradient(135deg, #8b3df0, #2563eb); color: #fff; }

/* ===================== PAKETLER ===================== */
.paket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.paket { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; background: var(--panel-2); display: flex; flex-direction: column; }
.paket-vurgu { border-color: var(--accent); box-shadow: 0 10px 30px rgba(99,70,230,0.18); background: linear-gradient(180deg, var(--brand-soft), var(--panel-2)); }
.paket-rozet { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; letter-spacing: .4px; padding: 4px 12px; border-radius: 20px; background: var(--brand); color: #fff; white-space: nowrap; }
.paket-ad { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.paket-fiyat { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
.paket-fiyat span { font-size: 12px; font-weight: 600; color: var(--text-faint); }
.paket-liste { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.paket-liste li { font-size: 12px; color: var(--text-dim); padding-left: 20px; position: relative; line-height: 1.4; }
.paket-liste li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.paket-btn { width: 100%; }
@media (max-width: 720px) { .paket-grid { grid-template-columns: 1fr; } }

/* Cari WhatsApp ikon */
.icon-btn.wa:hover { color: #25D366; border-color: #25D366; }

/* ===================== KURULUM SİHİRBAZI ===================== */
.sihirbaz-adim { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800; color: var(--text);
  margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sihirbaz-adim:first-child { margin-top: 2px; padding-top: 0; border-top: none; }
.sa-no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }

/* ===================== ROL / YETKİ ===================== */
.rol-secim { display: grid; gap: 10px; }
.rol-kart { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; gap: 2px 12px; text-align: left;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: all .15s; }
.rol-kart:hover { border-color: var(--accent); transform: translateY(-1px); }
.rol-kart.sec { border-color: var(--accent); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--accent); }
.rol-ik { grid-row: 1 / 3; font-size: 26px; align-self: center; }
.rol-ad { font-size: 14px; font-weight: 800; }
.rol-aciklama { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
.ghost-btn.rol-aktif { display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(124,92,255,0.10)); border-color: rgba(245,158,11,0.45); }
.rol-rozet { font-weight: 800; font-size: 12.5px; color: var(--text); }
.rol-don { font-size: 10.5px; color: var(--accent); font-weight: 700; }

/* ===================== HIZLI DÖNEM BUTONLARI ===================== */
.donem-cips { display: inline-flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.cip { padding: 6px 12px; border-radius: 7px; border: none; background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .12s; white-space: nowrap; }
.cip:hover { color: var(--text); }
.cip.aktif { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(99,70,230,0.3); }
@media (max-width: 820px) {
  .donem-cips { width: 100%; justify-content: space-between; }
  .cip { flex: 1; padding: 8px 6px; }
}

/* ===================== PIN GİRİŞ MODALI ===================== */
.pin-modal { text-align: center; }
.pin-input { width: 100%; text-align: center; font-size: 30px; letter-spacing: 12px; padding: 14px; font-weight: 800; }
.pin-err { color: var(--red); font-size: 12.5px; min-height: 16px; margin-top: 8px; font-weight: 600; }
.pin-unut { display: block; width: 100%; margin-top: 12px; background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 12.5px; font-weight: 700; }
.pin-unut:hover { text-decoration: underline; }
