/* AdisyonJet - yonetim/panel arayuzu */
:root {
  --accent: #16140f;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #8a8478;
  --line: #e9e4da;
  --ok: #1f7a4d;
  --err: #b3261e;
  --shadow: 0 1px 2px rgba(20,16,10,.04), 0 12px 28px -12px rgba(20,16,10,.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.45;
}
a { color: inherit; }
img { display: block; }

/* ---- Topbar ---- */
.topbar {
  background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 30;
}
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.brand small { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; opacity: .6; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: -2px; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: .85; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.topbar nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.topbar nav a.cikis { background: rgba(255,255,255,.16); }

/* ---- Yönetici vekil modu şeridi ---- */
.vekil-serit {
  background: #fdf3d8; border-bottom: 1px solid #efdfae; color: #6b551a;
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px; flex-wrap: wrap; text-align: center;
}
.vekil-serit b { font-weight: 800; }
.vekil-serit a { color: #6b551a; text-decoration: underline; white-space: nowrap; }
.vekil-serit a:hover { color: #4a3a10; }

/* ---- Layout ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---- Cards / grid ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.firma-card { overflow: hidden; display: flex; flex-direction: column; }
.firma-card .banner { height: 96px; background: #efece4 center/cover no-repeat; position: relative; }
.firma-card .logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 2px solid #fff; background: #fff; position: absolute; left: 16px; bottom: -22px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.firma-card .body { padding: 30px 16px 16px; }
.firma-card h3 { font-size: 17px; font-weight: 700; }
.firma-card .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.firma-card .slug { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.firma-card .slug:hover { color: var(--ink); }
.firma-card .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 11px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: .15s ease;
}
.btn:hover { border-color: #cfc8bb; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: var(--err); border-color: #e7c9c6; }
.btn-danger:hover { background: #fbeceb; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }

/* ---- Forms ---- */
.form { max-width: 620px; }
.form .card { padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-weight: 500; font-size: 12px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 14.5px;
  background: #fcfbf9; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 84px; resize: vertical; }
.field input[type=color] { width: 54px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; vertical-align: middle; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.alert-ok { background: #e7f4ec; color: var(--ok); border: 1px solid #bfe3cd; }
.alert-err { background: #fbeceb; color: var(--err); border: 1px solid #f0cfcc; }

/* ---- Table (urun listesi) ---- */
.tablo { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tablo th, .tablo td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tablo th { background: #faf8f4; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tablo tr:last-child td { border-bottom: none; }
.tablo .urun-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #efece4; }
.tablo .fiyat { font-weight: 700; white-space: nowrap; }

/* ---- Login ---- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: 100%; max-width: 380px; }
.login-box .card { padding: 28px; }
.login-box .logo-mark { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 26px; text-align: center; margin-bottom: 4px; }
.login-box .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---- Aktif menü ---- */
.topbar nav a.aktif { background: rgba(255,255,255,.20); opacity: 1; }

/* ---- Rozetler ---- */
.rozet { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.rozet.yesil { color: var(--ok); background: #e7f4ec; border-color: #bfe3cd; }
.rozet.kirmizi { color: var(--err); background: #fbeceb; border-color: #f0cfcc; }
.rozet.sari { color: #8a6d1f; background: #fdf3d8; border-color: #efdfae; }

/* ---- Yetki seçimi (admin) ---- */
.yetki-grup { margin-bottom: 14px; }
.yetki-grup-ad { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.yetki-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.yetki-kart {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fcfbf9;
  transition: .14s ease;
}
.yetki-kart:hover { border-color: #cfc8bb; }
.yetki-kart input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.yetki-kart .y-ad { font-weight: 700; font-size: 13.5px; display: block; }
.yetki-kart .y-ac { font-size: 11.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 1px; }
.yetki-kart.secili { background: #fff; border-color: var(--accent); }
.yetki-kart:not(.secili) .y-ad { color: var(--muted); text-decoration: line-through; }

/* ---- Modül seçim kutuları (admin) ---- */
.modul-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.modul-kart { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: #fcfbf9; cursor: pointer; transition: .15s ease; }
.modul-kart:hover { border-color: #cfc8bb; }
.modul-kart input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.modul-kart .m-ad { font-weight: 700; font-size: 14px; }
.modul-kart .m-ac { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.modul-kart.secili { background: #fff; border-color: var(--accent); }

@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .topbar nav { margin-left: 0; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { white-space: nowrap; flex-shrink: 0; }
  .wrap { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 25px; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
}
