/* Kocaeli Polat Otomotiv — Randevu Sistemi */
:root {
  --brand: #c8102e;
  --brand-dark: #9b0c23;
  --brand-light: #e23a52;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --secondary: #05569D;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ==================== HEADER ==================== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  z-index: 100;
}

/* Top Bar */
.header-topbar {
  background: var(--secondary);
  color: #fff;
  padding: 8px 0;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
}
.header-contact a:hover {
  color: rgba(255,255,255,0.8);
}
.header-contact .divider {
  color: rgba(255,255,255,0.4);
}
.header-social {
  display: flex;
  gap: 8px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
}
.header-social a:hover {
  background: rgba(255,255,255,0.3);
}

/* Main Header */
.header-main {
  padding: 12px 0;
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo img {
  height: 60px;
  width: auto;
}

/* Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

/* Dropdown */
.has-dropdown > .nav-link::after {
  content: ' ▾';
  font-size: 11px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--slate-100);
}
.dropdown li a:hover {
  background: var(--slate-50);
  color: var(--brand);
}

/* CTA Button */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s;
}
.header-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ==================== CONTENT ==================== */
.site-content-contain {
  min-height: calc(100vh - 200px);
}
.site-content {
  padding: 0;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.8) 100%),
    url('https://kocaelipolatotomotiv.com/wp-content/uploads/2026/03/BANER-2.png') center center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 16px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  max-width: 640px;
}
.hero .badge {
  display: inline-block;
  background: rgba(200,16,46,.2);
  color: var(--brand-light);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.hero h1 {
  margin: 16px 0 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
}
.hero p {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--slate-300);
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 56px 0; min-height: 400px; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-brand:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--slate-300); }
.btn-outline:hover { background: var(--slate-50); }
.btn-lg { padding: 14px 32px; }

/* ==================== STEPS ==================== */
.steps { padding: 56px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.step-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(200,16,46,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.step-card .lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
}
.step-card h3 { margin: 4px 0 0; font-size: 18px; }
.step-card p { margin: 8px 0 0; font-size: 14px; color: var(--slate-500); }

/* ==================== EUROREPAR ==================== */
.eurorepar {
  position: relative;
  padding: 64px 0;
  background: #fff;
  overflow: hidden;
}
.eurorepar-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  min-height: 420px;
}

/* Sol medya paneli — mavi gradient arka plan;
   sağ kenarındaki ok ucu (sola bakan ◀) clip-path ile çizilir */
.eurorepar-media {
  position: relative;
  background: #0b1838;
  overflow: visible;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px 48px 40px;
  min-height: 420px;
  /* ok ucu polygon: sol kenar düz, sağ kenar sivri orta noktada */
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 70px) 50%,
    100% 100%,
    0 100%
  );
}
.eurorepar-media-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.18) 0, transparent 35%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.12) 0, transparent 30%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.08) 0, transparent 40%),
    linear-gradient(180deg, #1c3460 0%, #0b1838 100%);
  z-index: 0;
}
.eurorepar-media-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eurorepar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 22px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.eurorepar-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}
.eurorepar-logo img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
}

/* Sağ içerik paneli — sol kenarında sağa bakan ▶ ok ucu */
.eurorepar-content {
  position: relative;
  background: #fff;
  padding: 56px 56px 48px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* ok ucu polygon: sol kenar sivri orta noktada, sağ kenar düz */
  clip-path: polygon(
    70px 0,
    100% 0,
    100% 100%,
    70px 100%,
    0 50%
  );
}
.eurorepar-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eurorepar-title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.eurorepar-desc {
  margin: 0 0 26px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}
.eurorepar-content strong { color: var(--ink); }

.eurorepar-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  max-width: 560px;
}
.eurorepar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
}
.eurorepar-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #1f4f9e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.eurorepar-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 0 0 24px;
  max-width: 560px;
}

.eurorepar-badges {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cert-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #1f4f9e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1f4f9e;
  line-height: 1;
  background: #fff;
}
.cert-circle span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.cert-circle small {
  font-size: 7px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.cert-diamond {
  width: 64px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8102e;
  font-weight: 800;
  font-size: 16px;
  background: #fff;
  border: 2px solid #c8102e;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.cert-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-600);
  letter-spacing: 0.4px;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .eurorepar { padding: 48px 0; }
  .eurorepar-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .eurorepar-media {
    min-height: 280px;
    padding: 40px 24px;
    clip-path: none;
  }
  .eurorepar-content {
    padding: 36px 24px 32px;
    clip-path: none;
  }
  .eurorepar-title { font-size: 26px; }
  .eurorepar-list { grid-template-columns: 1fr; }
  .eurorepar-badges { gap: 20px; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .eurorepar-title { font-size: 22px; }
  .eurorepar-desc { font-size: 14px; }
  .cert-circle { width: 48px; height: 48px; }
  .cert-diamond { width: 56px; height: 42px; font-size: 14px; }
}

/* ==================== BOOKING ==================== */
.booking { background: var(--slate-100); padding: 56px 0; }
.booking h2 { text-align: center; font-size: 30px; font-weight: 800; margin: 0; }
.booking .sub { text-align: center; color: var(--slate-500); margin: 8px 0 32px; }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (max-width: 640px) { .card { padding: 20px; } }
.card h3 { margin: 0 0 4px; font-size: 20px; }
.card .muted { font-size: 14px; color: var(--slate-500); margin: 0 0 20px; }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.stepper .item { display: flex; align-items: center; gap: 8px; }
.stepper .dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--slate-200);
  color: var(--slate-500);
}
.stepper .item.active .dot { background: var(--brand); color: #fff; }
.stepper .item.done .dot { background: #16a34a; color: #fff; }
.stepper .name { font-size: 14px; font-weight: 500; color: var(--slate-400); }
.stepper .item.active .name { color: var(--ink); }
.stepper .line { width: 28px; height: 1px; background: var(--slate-300); }
@media (max-width: 520px) { .stepper .name { display: none; } }

/* Calendar */
.calendar {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-title { font-weight: 600; }
.cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--slate-600);
  border-radius: 8px;
}
.cal-nav:hover { background: var(--slate-100); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-wd {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  padding: 4px 0;
}
.cal-day {
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.cal-day:hover:not(:disabled) { background: rgba(200,16,46,.1); }
.cal-day.selected { background: var(--brand); color: #fff; }
.cal-day:disabled { color: var(--slate-300); cursor: not-allowed; }
.cal-day.empty { visibility: hidden; }
@media (min-width: 640px) { .cal-day { height: 48px; } }

/* Slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 520px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.slot {
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.slot:hover:not(:disabled) { border-color: var(--brand); background: rgba(200,16,46,.05); }
.slot.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot:disabled {
  cursor: not-allowed;
  border-color: var(--slate-100);
  background: var(--slate-50);
  color: var(--slate-300);
  text-decoration: line-through;
}

/* Form */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.col-span-2 { grid-column: span 2; }
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--slate-300);
  padding: 11px 14px;
  font-size: 16px;
  background: #fff;
  outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.18); }
textarea.input { resize: none; }
.field .err { margin: 4px 0 0; font-size: 12px; color: #dc2626; }

/* Nav Row */
.nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}
.nav-row.end { justify-content: flex-end; }

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-red { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Success */
.success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.success .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success h3 { margin: 0; font-size: 24px; }
.success p { color: var(--slate-600); }
.summary {
  max-width: 360px;
  margin: 24px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}
.summary .row:last-child { border-bottom: none; }
.summary .row .k { font-size: 14px; color: var(--slate-500); }
.summary .row .v { font-size: 14px; font-weight: 600; text-align: right; }
.success-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.statbig .v { font-size: 30px; font-weight: 800; color: var(--brand-light); }
.statbig .k { margin-top: 4px; font-size: 14px; color: var(--slate-400); }
.section-dark { background: var(--ink); color: #fff; padding: 48px 0; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--secondary);
  color: #fff;
}

.footer-main {
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 16px;
}
.footer-address,
.footer-phone,
.footer-email {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 12px;
  line-height: 1.5;
}
.footer-address svg,
.footer-phone svg,
.footer-email svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-phone a,
.footer-email a {
  color: rgba(255,255,255,0.8);
}
.footer-phone a:hover,
.footer-email a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.footer-links li a:hover {
  color: #fff;
}

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.footer-hours li:last-child { border-bottom: none; }
.footer-hours li span:first-child { color: rgba(255,255,255,0.7); }
.footer-hours li span:last-child { font-weight: 600; color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.3);
}

/* ==================== FLOATING BUTTONS ==================== */
.floating-buttons {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-map { background: #dd3333; }
.float-instagram { background: #e4405f; }
.float-whatsapp { background: #25d366; }
.float-phone { background: #1e73be; }

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 70px;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .header-main-inner {
    flex-wrap: wrap;
  }
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .nav-list {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .header-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-contact {
    flex-direction: column;
    gap: 8px;
  }
  .header-contact .divider {
    display: none;
  }
  .header-logo img {
    height: 45px;
  }
  .header-cta {
    padding: 10px 14px;
    font-size: 13px;
  }
  .floating-buttons {
    right: 5px;
    transform: translateY(-50%) scale(0.85);
  }
  .scroll-to-top {
    right: 55px;
  }
}

/* ==================== ADMIN ==================== */
.admin-header {
  background: var(--ink);
  color: #fff;
  padding: 16px 0;
}
.admin-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header a, .admin-header button {
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.admin-header a:hover, .admin-header button:hover {
  color: var(--brand-light);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  padding: 16px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.login-card h1 { margin: 0; font-size: 20px; }
.login-card p { margin: 4px 0 24px; font-size: 14px; color: var(--slate-500); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.stat-card .v { font-size: 24px; font-weight: 800; }
.stat-card .k { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--slate-500); }
.stat-card.brand .v { color: var(--brand); }
.stat-card.green .v { color: #16a34a; }
.stat-card.amber .v { color: #d97706; }
.stat-card.red .v { color: #dc2626; }
.stat-card.blue .v { color: #2563eb; }
.stat-card.indigo .v { color: #4f46e5; }

.toggle {
  display: inline-flex;
  border: 1px solid var(--slate-300);
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.toggle button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
}
.toggle button.active { background: var(--brand); color: #fff; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  border: none;
  background: #fff;
  color: var(--slate-600);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.chip.active { background: var(--brand); color: #fff; }

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
table.res {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.res th {
  text-align: left;
  color: var(--slate-500);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-200);
}
table.res td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}
table.res tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.confirmed { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #fee2e2; color: #b91c1c; }
.act {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #fff;
  margin: 0 2px 2px 0;
}
.act.confirm { background: #16a34a; }
.act.confirm:hover { background: #15803d; }
.act.cancel { background: #f59e0b; }
.act.cancel:hover { background: #d97706; }
.act.del { background: var(--slate-200); color: var(--slate-700); }
.act.del:hover { background: var(--slate-300); }

/* Calendar Grid */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.week-nav .mid { text-align: center; }
.week-nav .mid .t { font-weight: 600; }
.week-nav .mid a {
  display: block;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}
.grid-cal { min-width: 760px; }
.grid-row {
  display: grid;
  grid-template-columns: 80px repeat(6, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.grid-head {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  padding: 8px;
}
.day-head {
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  background: var(--slate-50);
}
.day-head.today { background: rgba(200,16,46,.1); }
.day-head .wd { font-size: 12px; font-weight: 600; color: var(--slate-500); }
.day-head .dt { font-size: 14px; font-weight: 700; }
.day-head.today .dt { color: var(--brand); }
.hour-lbl {
  display: flex;
  align-items: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}
.cell-empty {
  min-height: 52px;
  border: 1px dashed var(--slate-200);
  border-radius: 8px;
  background: rgba(248,250,252,.5);
}
.cell-res {
  min-height: 52px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
  color: #fff;
}
.cell-res.pending { background: rgba(245,158,11,.9); color: #451a03; }
.cell-res.confirmed { background: rgba(34,197,94,.9); }
.cell-res .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-res .vh { opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--slate-500);
  align-items: center;
}
.legend .sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.section { padding: 32px 0; }
.bg-slate { background: var(--slate-100); min-height: 100vh; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-200);
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--slate-400);
  border-radius: 8px;
}
.modal-close:hover { background: var(--slate-100); color: var(--ink); }
.modal-body { padding: 20px 24px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .dk { font-size: 14px; color: var(--slate-500); font-weight: 500; }
.detail-row .dv { font-size: 14px; font-weight: 600; text-align: right; }
.modal-actions {
  padding: 16px 24px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grid-admins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .grid-admins { grid-template-columns: 1fr; } }

.alert-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
