/* ===================================================================
   ERDİNÇ TEKNİK — ana stil dosyası
   Tasarım fikri: "kontrol paneli" — beyaz eşya/kombi/klima cihazlarının
   fiziksel kontrol panellerinden esinlenilmiş, hafif kabartmalı (bevel)
   düğmeler; teknik servis fişi hissiyatı veren mono etiketler.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --surface-2: #EFEBE1;
  --ink: #14201F;
  --ink-soft: #4B5957;
  --line: #E1DCCE;

  --primary: #0F3D3E;
  --primary-dark: #0A2B2C;
  --primary-tint: #E4EEEC;

  --accent: #F2A93B;
  --accent-dark: #D98E1F;
  --accent-tint: #FCEDD3;

  --whatsapp: #25D366;
  --danger: #C1432E;
  --danger-tint: #F8E3DE;
  --success: #2E7D63;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-btn: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 6px 14px rgba(15,61,62,.16);
  --shadow-card: 0 1px 2px rgba(20,32,31,.04), 0 8px 24px rgba(20,32,31,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .container { padding: 0 18px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-tint); padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46,125,99,.18); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { font-size: 17px; }

/* ---------- Butonlar (kontrol paneli düğmesi hissi) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--primary-dark); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -2px 0 rgba(0,0,0,.1) inset, 0 6px 14px rgba(217,142,31,.28); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 6px 14px rgba(37,211,102,.3); }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a4341f; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,238,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -.01em;
  color: var(--primary-dark); line-height: 1;
}
.brand-wordmark .accent-part { color: var(--accent-dark); }
.brand-logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; display: block; }
@media (max-width: 560px) {
  .brand-wordmark { font-size: 20px; }
  .brand-logo-img { height: 38px; }
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { background: var(--primary-tint); color: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.cart-btn { position: relative; }
.cart-icon { display: none; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links-mobile-auth { display: none; }
  .navbar.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--surface); padding: 12px; border-bottom: 1px solid var(--line); gap: 2px;
    max-height: 80vh; overflow-y: auto;
  }
  .navbar.open .nav-links-mobile-auth {
    display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line);
  }
  .nav-actions-desktop { display: none; }

  /* Mobilde net 3 kolon: sol=menü, orta=logo, sağ=sepet */
  .navbar-inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 0; position: relative; }
  .nav-toggle { order: 1; justify-self: start; }
  .brand { order: 2; justify-self: center; grid-column: 2; }
  .nav-actions { order: 3; justify-self: end; grid-column: 3; }
  .cart-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .cart-btn-label { display: none; }
  .cart-icon { display: block; }
  .cart-badge { top: 2px; right: 2px; }
}
@media (min-width: 881px) {
  .nav-links-mobile-auth { display: none; }
}
@media (max-width: 560px) {
  .navbar-inner { gap: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 14px 0 16px; color: var(--primary-dark); }
.hero .lead { font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Kontrol paneli kartı — hero'nun imza öğesi */
.panel-card {
  background: var(--primary); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: 0 20px 50px rgba(10,43,44,.28);
  position: relative; overflow: hidden;
}
.panel-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-label { font-family: var(--font-mono); font-size: 11.5px; color: #BFE0DA; letter-spacing: .08em; text-transform: uppercase; }
.panel-led { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: #9FE7C8; }
.panel-led .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.panel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; padding: 16px 18px; border-radius: 12px; margin-bottom: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
}
.panel-btn:last-child { margin-bottom: 0; }
.panel-btn:hover { background: rgba(255,255,255,.12); }
.panel-btn .num { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: #CFEFE8; }
.panel-btn.wa { background: var(--whatsapp); border-color: transparent; }
.panel-btn.wa:hover { filter: brightness(1.05); }

/* ---------- Servis kartları ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
}
.service-card .tag {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--primary); background: var(--primary-tint);
  display: inline-block; padding: 4px 9px; border-radius: 6px; margin-bottom: 12px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Marka şeridi (kayan) ---------- */
.brand-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 22px 0; }
.brand-track { display: flex; gap: 46px; width: max-content; animation: scroll-x 34s linear infinite; align-items: center; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  /* Sadece gerçek fare/hover destekleyen cihazlarda duraklat; mobilde dokunma
     "hover" sanılıp animasyonun kalıcı takılı kalmasını önler. */
  .brand-strip:hover .brand-track { animation-play-state: paused; }
}
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-chip {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 56px; cursor: default; flex-shrink: 0;
}
.brand-chip img { height: 46px; width: auto; max-width: 120px; object-fit: contain; }
.brand-chip .letter-badge {
  width: 44px; height: 44px; border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
  font-family: var(--font-display);
}
/* Marka rozetleri için 6 renkli döngü (gerçek logo yoksa) */
.badge-c0 { background: #0F3D3E; } .badge-c1 { background: #D98E1F; } .badge-c2 { background: #2E7D63; }
.badge-c3 { background: #C1432E; } .badge-c4 { background: #3E5C76; } .badge-c5 { background: #7A5C61; }

/* ---------- Ürün kartları ---------- */
.product-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; justify-content: space-between; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 260px; }
.search-box input { border: none; outline: none; background: none; width: 100%; }

.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4/3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .placeholder { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; }
.img-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(20,32,31,.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.img-nav:hover { background: rgba(20,32,31,.8); }
.img-nav.prev { left: 8px; }
.img-nav.next { right: 8px; }
.img-count {
  position: absolute; bottom: 8px; right: 8px; background: rgba(20,32,31,.65); color: #fff;
  font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 999px;
}
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-code { font-family: var(--font-mono); font-size: 11.5px; color: var(--primary); background: var(--primary-tint); display: inline-block; padding: 3px 8px; border-radius: 6px; width: fit-content; }
.product-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.product-desc { font-size: 13.5px; margin-bottom: 4px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--primary-dark); }
.stock-badge { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; }
.stock-badge.in { background: #E3F3EC; color: var(--success); }
.stock-badge.low { background: var(--accent-tint); color: var(--accent-dark); }
.stock-badge.out { background: var(--danger-tint); color: var(--danger); }
.product-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qty-input { width: 60px; padding: 9px; border-radius: 7px; border: 1px solid var(--line); text-align: center; }

/* ---------- Genel kart / form / tablo ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.form-group .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); outline: none;
  transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-wrap h1 { font-size: 26px; }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--danger-tint); color: var(--danger); }
.form-msg.ok { background: #E3F3EC; color: var(--success); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.badge { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge.active { background: #E3F3EC; color: var(--success); }
.badge.passive { background: #EFECE3; color: var(--ink-soft); }
.badge.status-Beklemede { background: var(--accent-tint); color: var(--accent-dark); }
.badge.status-Onaylandı, .badge.status-Hazırlanıyor { background: var(--primary-tint); color: var(--primary); }
.badge.status-Tamamlandı { background: #E3F3EC; color: var(--success); }
.badge.status-İptal-Edildi { background: var(--danger-tint); color: var(--danger); }

/* ---------- Yıldızlar / memnuniyet ---------- */
.stars { color: var(--accent-dark); letter-spacing: 2px; font-size: 15px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
.testimonial-card .name { font-family: var(--font-display); font-weight: 600; margin-top: 10px; }

/* Yorum fotoğrafları — küçük, yana kaydırmalı şerit */
.testimonial-photos {
  display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.testimonial-photos img {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--line); cursor: pointer;
}
.testimonial-photos::-webkit-scrollbar { height: 4px; }
.testimonial-photos::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* "İlk yorumu siz yazın" boş durum kartı */
.testimonial-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--primary); background: var(--primary-tint);
}
.testimonial-cta:hover { background: var(--accent-tint); border-color: var(--accent-dark); }
.testimonial-cta-icon { font-size: 30px; }

/* ---------- Ana sayfa yorum karuseli (5'li sayfalama, yana kaydırmalı) ---------- */
.testimonial-carousel-wrap { position: relative; }
.testimonial-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel { scrollbar-width: none; }
.testimonial-carousel .testimonial-card {
  flex: 0 0 auto; width: 212px; scroll-snap-align: start; font-size: 13.5px; padding: 16px;
}
.testimonial-carousel .testimonial-card p { font-size: 13px; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary-dark); z-index: 5;
}
.carousel-nav.prev { left: -18px; }
.carousel-nav.next { right: -18px; }
.carousel-nav:hover { background: var(--primary-tint); }
.carousel-nav[disabled] { opacity: .35; cursor: default; }
@media (max-width: 700px) {
  .carousel-nav { display: none; }
  .testimonial-carousel-wrap { margin: 0 -18px; padding: 0 18px; }
}

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,20,20,.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 26px; max-width: 480px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal h3 { margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

/* ---------- Sepet çekmecesi ---------- */
.cart-drawer { position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px; height: 100%; background: var(--surface); z-index: 210; box-shadow: -12px 0 40px rgba(0,0,0,.2); transition: right .25s ease; display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.cart-drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.cart-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.cart-item .info { flex: 1; }
.cart-item .info .t { font-weight: 600; font-size: 14px; }
.cart-item .info .c { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.cart-item .rm { background: none; border: none; cursor: pointer; color: var(--danger); font-size: 12px; }
.overlay-dim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 205; display: none; }
.overlay-dim.open { display: block; }

/* ---------- WhatsApp yüzen buton ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  background: var(--whatsapp); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,211,102,.4);
}
.wa-float:hover { filter: brightness(1.05); }

/* ---------- Footer ---------- */
footer { background: var(--primary-dark); color: #CFE3DF; padding: 52px 0 26px; margin-top: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer a { color: #CFE3DF; opacity: .85; }
footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; opacity: .75; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Admin panel ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
@media (max-width: 880px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 6px; padding: 12px; -webkit-overflow-scrolling: touch; }
  .admin-side .tab { white-space: nowrap; flex: 0 0 auto; }
  .admin-main { padding: 18px; }
}
.admin-side { background: var(--primary-dark); color: #CFE3DF; padding: 22px 14px; }
.admin-side .tab { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: #CFE3DF; }
.admin-side .tab:hover { background: rgba(255,255,255,.06); }
.admin-side .tab.active { background: var(--accent); color: var(--primary-dark); }
.admin-main { padding: 30px; background: var(--bg); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.stat-card .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.stat-card .l { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.confirm-box { border: 1.5px dashed var(--danger); background: var(--danger-tint); border-radius: 10px; padding: 14px; margin-top: 10px; }

.pill-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pill-toggle button { border: none; background: var(--surface); padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pill-toggle button.on { background: var(--primary); color: #fff; }

.gate { max-width: 460px; margin: 80px auto; text-align: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- Harita kartı (İletişim sayfası) ---------- */
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--surface-2); }
.map-card .map-frame-wrap { position: relative; width: 100%; height: 340px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card .map-tap-layer {
  position: absolute; inset: 0; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 14px;
}
.map-card .map-open-pill {
  background: rgba(15,61,62,.94); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); pointer-events: none;
}
.map-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--surface); flex-wrap: wrap; }
.map-card-foot .addr { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .map-card .map-frame-wrap { height: 260px; }
  .map-card-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Genel mobil dokunuş iyileştirmeleri ---------- */
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .n { font-size: 22px; }
  .hero-actions .btn, .modal-actions .btn { flex: 1 1 auto; }
  table th, table td { padding: 10px 8px; font-size: 13px; }
  .service-card, .card { padding: 18px; }
}
