/* ============================================================
   Baskı Odası — Bayilik Paneli  |  bayi.css
   ============================================================ */

:root {
  --brand:       #0b1220;
  --brand-mid:   #111827;
  --accent:      #0d9488;
  --accent-soft: #14b8a6;
  --teal:        #0f766e;
  --teal-light:  #14b8a6;
  --gold:        #d97706;
  --platin:      #7c3aed;
  --sidebar-w:   268px;
  --header-h:    64px;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-md:   0 12px 40px rgba(15,23,42,.1);
  --font:        'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --bg:          #f4f6f9;
  --card:        #ffffff;
  --border:      #e5e7eb;
  --text:        #0f172a;
  --text-2:      #64748b;
  --text-3:      #94a3b8;
  --success:     #059669;
  --warning:     #d97706;
  --danger:      #dc2626;
  --info:        #2563eb;
  --otp-gold:       #b45309;
  --otp-gold-mid:   #ca8a04;
  --otp-gold-light: #d4a84b;
  --otp-gold-dark:  #78350f;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── SMALL UX HELPERS ───────────────────────────────────────── */
.btn:disabled,
.btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

.img-modal-open { overflow: hidden; }
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.img-modal[hidden] { display: none; }
.img-modal__kutu {
  width: min(980px, 96vw);
  max-height: 92vh;
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.img-modal__kapat {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.img-modal__kapat:hover { background: rgba(15, 23, 42, 0.8); }
.img-modal__img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; background: #0b1220; display:block; }
.img-modal__caption { padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,0.85); border-top: 1px solid rgba(255,255,255,0.10); background: rgba(15, 23, 42, 0.45); }

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 2px;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.bayi-wrap {
  display: flex;
  min-height: 100vh;
}

/* ── SİDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform .3s ease;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo img { height: 36px; }
.sidebar-logo .logo-text {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.sidebar-bayi-info {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.bayi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}

.bayi-name {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bayi-code { font-size: .72rem; color: rgba(255,255,255,.45); }

.badge-seviye {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.badge-seviye.standart { background: #1e40af22; color: #93c5fd; border: 1px solid #1e40af44; }
.badge-seviye.altin    { background: #92400e22; color: #fcd34d; border: 1px solid #92400e44; }
.badge-seviye.platin   { background: #4c1d9522; color: #c4b5fd; border: 1px solid #4c1d9544; }

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section-label {
  padding: 10px 20px 4px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-nav a .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .7;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}

.sidebar-nav a.aktif {
  background: rgba(13,148,136,.22);
  color: #fff;
  border-left-color: var(--accent);
}

.sidebar-nav a.aktif .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-decoration: none;
}
.sidebar-footer a:hover { color: #fff; }

/* ── MAIN ───────────────────────────────────────────────────── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  min-height: var(--header-h);
  height: auto;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-2);
}
.topbar-menu-btn svg { width: 22px; height: 22px; }
.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-2);
  font-size: 1rem;
}
.topbar-bakiye {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: .8rem;
  white-space: nowrap;
}
.topbar-bakiye:hover { border-color: var(--accent); text-decoration: none; }
.topbar-bakiye__lbl { color: var(--text-2); font-weight: 600; }
.topbar-bakiye strong { color: var(--teal); font-weight: 800; }
.topbar-notif {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-2);
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
.topbar-notif svg { width: 18px; height: 18px; }
.topbar-notif:hover { background: var(--border); text-decoration: none; }
.topbar-site {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: .8rem;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-site svg { width: 15px; height: 15px; }
.topbar-site:hover { color: var(--text); text-decoration: none; }

.notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--card);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 90;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sidebar-backdrop.is-on { display: block; }

/* ── PAGE CONTENT ───────────────────────────────────────────── */
.page-content { padding: 28px; flex: 1; }

.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.page-header p {
  font-size: .85rem;
  color: var(--text-2);
  margin-top: 4px;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.card-body { padding: 22px; }

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-color, var(--accent));
}

.stat-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-sub {
  font-size: .75rem;
  color: var(--text-3);
}

.stat-icon {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--stat-bg, #fef2f2);
  display: flex; align-items: center; justify-content: center;
  color: var(--stat-color, var(--accent));
}

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafafa; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-gray    { background: #f3f4f6; color: #4b5563; }
.badge-purple  { background: #ede9fe; color: #5b21b6; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-secondary:hover { background: #0d0d1a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg); }

.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-lg { padding: 12px 24px; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

label .required { color: var(--accent); }

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=date],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

textarea { resize: vertical; min-height: 90px; }

.form-hint { font-size: .75rem; color: var(--text-2); margin-top: 4px; }

.form-row {
  display: grid;
  gap: 16px;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ── GİRİŞ SAYFASI ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}

.auth-header {
  background: var(--brand-mid);
  padding: 32px;
  text-align: center;
}

.auth-header img { height: 44px; margin-bottom: 12px; }
.auth-header h1 { color: #fff; font-size: 1.1rem; font-weight: 600; }
.auth-header p  { color: rgba(255,255,255,.5); font-size: .8rem; margin-top: 4px; }

.auth-body { padding: 32px; }

.auth-footer {
  text-align: center;
  padding: 0 32px 28px;
  font-size: .8rem;
  color: var(--text-2);
}

/* ── Giriş — e-posta kodu adımı (altın vurgu) ───────────────── */

.auth-page--otp {
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 45%, #1c1917 100%);
}

.auth-card--otp {
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.auth-body--otp {
  padding: 28px 32px 32px;
}

.auth-otp-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--otp-gold-mid);
  margin-bottom: 14px;
}

.auth-otp-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--otp-gold-light), var(--otp-gold-mid));
}

.auth-otp-icon {
  width: 22px;
  height: 22px;
  color: var(--otp-gold-mid);
  flex-shrink: 0;
}

.auth-otp-icon--sm {
  width: 18px;
  height: 18px;
}

.auth-otp-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.auth-otp-lead {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 22px;
}

.auth-otp-lead strong {
  color: var(--text);
  font-weight: 600;
}

.auth-otp-form {
  margin-bottom: 8px;
}

.auth-otp-field {
  margin-bottom: 18px;
}

.auth-otp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-otp-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  border: 2px solid rgba(180, 83, 9, 0.45);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-input::placeholder {
  color: var(--text-3);
  letter-spacing: 0.15em;
}

.auth-otp-input:focus {
  outline: none;
  border-color: var(--otp-gold-mid);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.2);
}

.auth-otp-hint {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 10px;
  line-height: 1.45;
}

.btn-otp-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--otp-gold-light) 0%, var(--otp-gold) 42%, var(--otp-gold-dark) 100%);
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.35);
  border-radius: var(--radius-sm);
}

.btn-otp-gold:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.btn-otp-gold svg {
  flex-shrink: 0;
}

.auth-otp-resend {
  text-align: center;
  margin: 4px 0 20px;
}

.btn-otp-text {
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--otp-gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-otp-text:hover {
  color: var(--otp-gold);
}

.auth-otp-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 18px;
}

.auth-otp-footnote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.auth-otp-footnote-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--text-3);
}

.auth-otp-footnote p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

.auth-otp-back {
  text-align: center;
  margin-top: 18px;
  font-size: 0.8rem;
}

.auth-otp-back a {
  color: var(--text-2);
}

.auth-otp-back a:hover {
  color: var(--otp-gold-dark);
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress { height: 8px; background: var(--border); border-radius: 20px; overflow: hidden; }
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
  transition: width .4s ease;
}

/* ── SIPARIŞ DURUMU ─────────────────────────────────────────── */
.siparis-adim {
  display: flex;
  align-items: center;
  gap: 0;
}

.adim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.adim::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.adim:last-child::after { display: none; }

.adim-daire {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.adim.aktif  .adim-daire { background: var(--accent); color: #fff; }
.adim.tamam  .adim-daire { background: var(--success); color: #fff; }

.adim-label {
  font-size: .65rem;
  color: var(--text-3);
  text-align: center;
  font-weight: 500;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-2);
}
.empty-state svg { width: 60px; height: 60px; margin-bottom: 16px; color: var(--border); }
.empty-state h3  { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p   { font-size: .85rem; }

/* ── TABS ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

.tab-link {
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color .15s;
}

.tab-link:hover { color: var(--text); text-decoration: none; }
.tab-link.aktif { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ── KOMİSYON ÇUBUĞU ────────────────────────────────────────── */
.komisyon-hedef {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  margin-bottom: 24px;
}

.komisyon-hedef h3 { font-size: .85rem; color: rgba(255,255,255,.6); font-weight: 500; margin-bottom: 8px; }
.komisyon-hedef .big-num { font-size: 2rem; font-weight: 700; }
.komisyon-hedef .progress { margin-top: 12px; background: rgba(255,255,255,.15); }
.komisyon-hedef .progress-bar { background: var(--accent-soft); }
.komisyon-hedef .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ── Kargo vurgusu (sipariş detay) ──────────────────────────── */
.kargo-vurgu-kutu {
  margin: 18px 0 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.5));
  overflow: hidden;
}
.kargo-vurgu-kutu__baslik {
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--info);
  background: rgba(37, 99, 235, 0.08);
}
.kargo-vurgu-kutu__govde { padding: 14px 16px; }

/* ── Menü araması ───────────────────────────────────────────── */
.sidebar-nav-ara-wrap { padding: 0 14px 12px; }
.sidebar-nav-ara {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.82rem;
}
.sidebar-nav-ara::placeholder { color: rgba(255, 255, 255, 0.45); }

/* ── Tasarım önizleme ızgarası ──────────────────────────────── */
.tasarim-oniz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.tasarim-oniz-kart {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 1;
}
.tasarim-oniz-kart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tasarim-oniz-kart__rozet {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}

html[data-theme="dark"] {
  --bg: #0f1419;
  --card: #1a2230;
  --border: #2d3748;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
}

html[data-theme="dark"] .topbar {
  background: rgba(26, 34, 48, 0.94);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .sidebar-nav a.aktif {
  background: rgba(13, 148, 136, 0.18);
}

/* Sayfa layout yardımcıları */
.tasarim-sayfa-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.kazanc-seviye-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.takip-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.takip-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-items: flex-end;
}
.takip-toolbar__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.takip-kartlar { display: none; }
.takip-kart {
  display: block;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.takip-kart:last-child { border-bottom: 0; }
.takip-kart__ust {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.takip-kart__no { font-size: .82rem; font-weight: 700; }
.takip-kart__musteri { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.takip-kart__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .8rem;
  color: var(--text-2);
}
.takip-kart__meta strong { color: var(--success); font-weight: 700; }
.takip-kart__not { margin-top: 8px; font-size: .78rem; color: var(--text-2); line-height: 1.4; }
.takip-kart__aksiyon {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.takip-kart__detay {
  min-width: 88px;
  justify-content: center;
  text-align: center;
}
.desktop-only-table { display: block; }
.mobile-only-cards { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 16px 0 40px rgba(0,0,0,.35); }
  .main-area { margin-left: 0; width: 100%; max-width: 100vw; }
  body.sidebar-open { overflow: hidden; }

  .topbar-menu-btn { display: inline-flex; }
  .topbar {
    padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    gap: 8px;
    flex-wrap: nowrap;
    min-height: 56px;
  }
  .topbar-title { font-size: .9rem; max-width: 42vw; }
  .topbar-right { gap: 6px; }
  .topbar-bakiye { padding: 6px 8px; font-size: .75rem; }
  .topbar-bakiye__lbl { display: none; }
  .topbar-site__txt { display: none; }
  .topbar-site {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .form-row-2, .form-row-3 { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-content {
    padding: 14px 12px 24px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-header h1 { font-size: 1.25rem; }
  .page-header p { font-size: .88rem; }

  .tasarim-sayfa-grid { grid-template-columns: 1fr; gap: 16px; }
  .tasarim-sayfa-grid > .card:last-child { order: -1; } /* Yükleme formu üstte */
  .kazanc-seviye-grid { grid-template-columns: 1fr; }

  .bayi-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 12px;
  }

  .card, .bp-card { border-radius: 14px; }
  .card-header, .bp-card__head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }
  .card-body { padding: 14px; }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    max-width: 100%;
  }
  .table-wrap > table { min-width: 560px; font-size: .82rem; }
  .table-wrap > table th,
  .table-wrap > table td { padding: 10px 8px; white-space: nowrap; }

  /* Mobil kart listesi olan sayfalarda tablo gizle */
  .has-mobile-cards .desktop-only-table { display: none; }
  .has-mobile-cards .mobile-only-cards,
  .has-mobile-cards .takip-kartlar { display: block; }

  .admin-tablo, .bp-notif-list { min-width: 0; }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-grup input,
  .form-grup select,
  .form-grup textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px; /* iOS zoom önleme */
    max-width: 100%;
  }
  .btn { min-height: 40px; }
  .btn-block { width: 100%; }
  .bp-grid-2 { grid-template-columns: 1fr !important; display: grid !important; }
  .bp-grid-2 > *:last-child { order: -1; }
  .bp-profil-grid { grid-template-columns: 1fr !important; }
  .bp-hero { flex-direction: column; align-items: flex-start !important; padding: 18px 16px !important; }
  .bp-head { flex-direction: column; align-items: flex-start; }
  .bp-head__actions { width: 100%; }
  .bp-head__actions .btn { flex: 1; justify-content: center; text-align: center; }
  .komisyon-hedef { padding: 16px; }
  .big-num { font-size: 1.4rem !important; }

  .takip-toolbar__form > div { flex: 1 1 100%; min-width: 0 !important; }
  .takip-toolbar__form input,
  .takip-toolbar__form select { width: 100%; }
  .takip-toolbar__form .btn { width: 100%; }
  .takip-toolbar > .btn { width: 100%; justify-content: center; }
  .takip-toolbar__chips .btn { flex: 1 1 auto; text-align: center; }

  .bayi-onay-modal,
  .bayi-confirm-modal { padding: 12px; }
  .bayi-onay-modal__kutu,
  .bayi-confirm-modal__kutu { padding: 22px 16px 18px; }

  .img-modal__kutu { max-width: calc(100vw - 24px); }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .page-content { padding: 12px 10px 20px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.25rem; }
  .topbar-title { max-width: 34vw; }
  .tasarim-oniz-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar { display: none; }
  .main-area { margin-left: 0; }
  .page-content { padding: 0; }
}

/* ── Bayi footer & modals ───────────────────────────────────── */
.bayi-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card);
}

.bayi-modal-acik { overflow: hidden; }

.bayi-onay-modal[hidden],
.bayi-confirm-modal[hidden] { display: none !important; }

.bayi-onay-modal,
.bayi-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bayi-onay-modal__arka,
.bayi-confirm-modal__arka {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
}

.bayi-onay-modal__kutu,
.bayi-confirm-modal__kutu {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  border: 1px solid rgba(226, 232, 240, .9);
  animation: bayiModalIn .22s ease-out;
}

@keyframes bayiModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.bayi-onay-modal__x,
.bayi-confirm-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
}

.bayi-onay-modal__ikon,
.bayi-confirm-modal__ikon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.bayi-confirm-modal__ikon--rev {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  color: #b45309;
  border-color: #fde68a;
}

.bayi-onay-modal__baslik,
.bayi-confirm-modal__baslik {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: #0f172a;
}

.bayi-onay-modal__metin,
.bayi-confirm-modal__metin {
  margin: 0 0 14px;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.55;
}

.bayi-onay-modal__liste {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.bayi-onay-modal__liste li {
  border-bottom: 1px solid #f1f5f9;
}

.bayi-onay-modal__liste li:last-child { border-bottom: 0; }

.bayi-onay-modal__liste a {
  display: block;
  padding: 10px 14px;
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.bayi-onay-modal__liste a:hover { background: #f8fafc; }

.bayi-onay-modal__aksiyon,
.bayi-confirm-modal__aksiyon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bayi-confirm-modal__revize {
  margin-bottom: 14px;
}

.bayi-confirm-modal__revize label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.bayi-confirm-modal__revize textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.page-header h1 {
  letter-spacing: -.02em;
  font-weight: 800;
}

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #111827 55%, #0f172a 100%);
}

.sidebar-nav a.aktif {
  background: rgba(13, 148, 136, 0.22);
  color: #fff;
}

.topbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme="dark"] .topbar {
  background: rgba(26, 34, 48, 0.94);
}
