:root {
  color-scheme: light;
  --bg: #f1f4f8;
  --panel: #ffffff;
  --primary: #1a2c6b;
  --secondary: #ffd900;
  --accent: #9aa0a6;
  --text: #101828;
  --muted: #667085;
  --border: #e5e7eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Sora", "Space Grotesk", sans-serif;
  margin: 0 0 12px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  z-index: -2;
  opacity: 0.9;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #ffd900 0%, #ffd900 30%, rgba(255, 217, 0, 0) 70%);
  top: -160px;
  right: -140px;
}

.orb-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 70% 30%, #224297 0%, rgba(34, 66, 151, 0.35) 45%, rgba(34, 66, 151, 0) 70%);
  bottom: -280px;
  left: -180px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: -3;
}

.bg-image {
  position: fixed;
  inset: 0;
  background-image: url("/Uber-Hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -4;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: sticky;
  top: 0;
  background: rgba(241, 244, 248, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.hero-header.simple-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  padding: 32px 48px 10px;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.hero-header.simple-header .tagline {
  color: var(--muted);
  font-size: 14px;
}

.tagline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  margin-left: auto;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.hero-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.danger-btn {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.danger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero {
  max-width: 1200px;
  margin: 40px auto 10px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
}

.hero-copy h1 span {
  color: var(--primary);
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
}

.primary {
  background: var(--secondary);
  color: #1d1d1d;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
}

.outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-stats div {
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  min-width: 140px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.hero-stats strong {
  display: block;
  font-size: 16px;
}

.hero-stats span {
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card.lead-form .booking-form {
  margin-top: 8px;
}

.hero-copy .hero-stats {
  margin-top: 18px;
}

.hero-card.lead-form .primary {
  width: 100%;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.pill {
  background: rgba(34, 66, 151, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-card-body {
  display: grid;
  gap: 16px;
}

.mini-chat {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
}

.bubble {
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 13px;
}

.bubble.ai {
  background: #e9edf8;
  color: #1d2b6b;
}

.bubble.user {
  background: #fde68a;
  color: #1f1f1f;
  align-self: flex-end;
}

.mini-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.mini-input {
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 8px;
  color: #1f2937;
}

.mini-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px;
  font-weight: 600;
}

.section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 48px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.booking {
  margin-bottom: 80px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.chat {
  height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}

.chat-message {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.chat-message .role {
  font-weight: 600;
  color: var(--primary);
}

.chat-message.user .role {
  color: #0f172a;
}

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat-form input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chat-form button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.chat-single {
  background: linear-gradient(135deg, rgba(26, 44, 107, 0.08), rgba(255, 217, 0, 0.08));
  border: 1px solid rgba(26, 44, 107, 0.15);
}

.chat-hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2430;
  padding: 10px 12px;
  border-radius: 16px;
}

.chat-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 14px;
}

.chat-bar input::placeholder {
  color: rgba(248, 250, 252, 0.6);
}

.chat-bar button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: var(--secondary);
  color: #1d1d1d;
  font-weight: 700;
  cursor: pointer;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form-section-title {
  font-size: 16px;
  margin: 8px 0 4px;
  color: #1f2937;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edit-grid .span-2 {
  grid-column: 1 / -1;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .edit-grid {
    grid-template-columns: 1fr;
  }
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-badge {
  display: none;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 217, 0, 0.2);
  color: #9a5d00;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(255, 217, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-hint {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.status-hint.show {
  display: block;
}

.result {
  margin-top: 12px;
  font-size: 14px;
  color: var(--primary);
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.auth-header p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.auth-sub {
  color: var(--muted);
  margin-top: 6px;
}

.auth-footer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.customer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  max-width: 1300px;
  margin: 24px auto 60px;
  padding: 0 36px 40px;
  position: relative;
  z-index: 2;
}

.customer-sidebar {
  background: #eef3fb;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.customer-side-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #1e3a8a;
}

.customer-logo {
  height: 38px;
  width: auto;
}

.customer-nav {
  display: grid;
  gap: 10px;
}

.customer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  font-weight: 600;
}

.customer-nav-item.active {
  background: #dde8ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.nav-dot {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #e0e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.customer-profile {
  margin-top: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c7d2fe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.customer-username-side {
  color: var(--muted);
  font-size: 12px;
}

.customer-main {
  display: grid;
  gap: 20px;
}

.customer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 4px;
}

.customer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.media-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
}

.media-card h3 {
  font-size: 16px;
  margin: 0;
}

.media-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.media-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.media-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.customer-chat .chat {
  background: #f8fafc;
}

.chat-compact {
  display: grid;
  gap: 12px;
}

.chat-preview {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  min-height: 80px;
}

.chat-preview-row {
  font-size: 14px;
  margin-bottom: 6px;
  color: #1f2937;
}

.chat-preview-row span {
  font-weight: 600;
  color: var(--primary);
  margin-right: 6px;
}

.chat-bar.compact {
  margin-top: 0;
}

.chat-bar.compact input {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--primary);
  padding: 12px 14px;
  color: #1f2937;
}

.chat-bar.compact button {
  border-radius: 14px;
  padding: 10px 18px;
}

.customer-tracking .tracking-list {
  display: grid;
  gap: 16px;
}

#progress-section .tracking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  #progress-section .tracking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tracking-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.tracking-card summary::-webkit-details-marker {
  display: none;
}

.tracking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.tracking-card[open] .tracking-icon {
  transform: rotate(180deg);
}

.tracking-body {
  display: grid;
  gap: 12px;
}

.tracking-header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.tracking-steps {
  display: grid;
  gap: 8px;
}

.stepper {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  position: relative;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  min-width: 120px;
}

.step-dot {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #cbd5f5;
  background: #f8fafc;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: inset 0 0 0 6px #eef2ff;
}

.step.done .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.step.current .step-dot {
  background: #ffd900;
  border-color: #ffd900;
  color: #1e3a8a;
  box-shadow: 0 0 0 6px rgba(255, 217, 0, 0.2);
}

.step.current {
  color: #1e3a8a;
  font-weight: 700;
}

.step-label {
  text-align: center;
  max-width: 120px;
}

.connector {
  position: absolute;
  top: 22px;
  right: -20px;
  width: 34px;
  height: 4px;
  background: #d1d5db;
  border-radius: 999px;
}

.connector.active {
  background: linear-gradient(90deg, #34d399, #1ea5ff);
}

@media (max-width: 720px) {
  .stepper {
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .step {
    min-width: 140px;
    scroll-snap-align: start;
  }
}

.tracking-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.tracking-step span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--border);
  display: inline-block;
}

.tracking-step.done {
  color: #1f2937;
}

.tracking-step.done span {
  border-color: var(--primary);
  background: var(--primary);
}

.tracking-notes {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}

.tracking-notes ul {
  margin: 8px 0 0 16px;
}

.tracking-actions {
  display: flex;
  justify-content: flex-end;
}

.progress-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.progress-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.progress-thumb img,
.progress-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.thumb-btn {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

.thumb-btn img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox img {
  max-width: min(900px, 90vw);
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.progress-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1f2937;
}

.progress-step input {
  width: 16px;
  height: 16px;
}

.progress {
  width: 120px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

.customer-bookings .reschedule-btn {
  margin-left: 6px;
}

@media (max-width: 900px) {
  .customer-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }
  .customer-sidebar {
    order: 2;
  }
  .customer-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .customer-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table .check-col {
  width: 40px;
  text-align: center;
}

.table .check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.wa-btn {
  border: none;
  background: #16a34a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.admin-header {
  display: none;
}

.admin-actions {
  display: none;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

#overview-section {
  margin-top: 8px;
}

#reservasi-section {
  margin-top: 8px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.admin-panel {
  margin-top: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.tracking-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-new {
  background: #dcfce7;
  color: #166534;
}

.panel-tools input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 220px;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #111827;
}

.status-menunggukonfirmasi {
  background: #fef3c7;
  color: #92400e;
}

.status-dihubungi {
  background: #dbeafe;
  color: #1e3a8a;
}

.status-dijadwalkan {
  background: #dcfce7;
  color: #166534;
}

.status-selesai {
  background: #e5e7eb;
  color: #111827;
}

.status-batal {
  background: #fee2e2;
  color: #991b1b;
}

.status-check-in {
  background: #e0f2fe;
  color: #0369a1;
}

.status-dalampengerjaan {
  background: #ede9fe;
  color: #5b21b6;
}

.status-working {
  background: #1e3a8a;
  color: #fff;
  margin-left: 6px;
}

@media (max-width: 900px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-tools input {
    width: 100%;
  }
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #dfe3ee;
  position: relative;
}

.admin-shell.collapsed {
  grid-template-columns: 92px 1fr;
}

.sidebar-overlay {
  display: none;
}

.admin-sidebar {
  background: var(--primary);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.admin-shell.collapsed .admin-sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  padding: 22px 12px;
}

.sidebar-logo {
  width: 42px;
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 40px;
  justify-content: flex-end;
}

.admin-topbar .sidebar-toggle {
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 1;
  visibility: visible;
}

.sidebar-brand p {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 12px;
}

.nav-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-pill.active {
  background: #f7f7fb;
  color: var(--primary);
  border-color: transparent;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.admin-shell.collapsed .brand-text,
.admin-shell.collapsed .sidebar-brand p {
  display: none;
}

.admin-shell.collapsed .sidebar-brand {
  justify-content: center;
}

.admin-shell.collapsed .nav-pill {
  justify-content: center;
  padding: 12px;
}

.admin-shell.collapsed .nav-text {
  display: none;
}

.sidebar-actions {
  display: none;
}

.admin-main {
  padding: 28px 32px 40px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  position: sticky;
  top: 0;
  background: rgba(223, 227, 238, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  padding-right: 8px;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  height: 42px;
  width: auto;
  display: block;
}

.inline-toggle {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.admin-topbar h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-topbar .tagline {
  color: var(--muted);
  margin: 0;
}

.admin-main .panel {
  background: #f8f9fc;
  border-radius: 20px;
  border: 1px solid #d7dbe7;
  box-shadow: 0 20px 30px rgba(17, 24, 39, 0.08);
}

.summary-card {
  background: #f8f9fc;
  border: 1px solid #d7dbe7;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.table-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

.table th {
  color: #4b5563;
}

.panel-tools input {
  background: #fff;
}

.ghost-btn {
  background: #f7f7fb;
  color: var(--primary);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 14px;
}

.trash-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 6px;
}

.tab-pill {
  border: 1px solid var(--border);
  background: #fff;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tab-pill span {
  color: var(--muted);
  margin-left: 6px;
  font-weight: 600;
}

.tab-pill.active {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.filters .panel-tools-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.filters .panel-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 2;
}

@media (max-width: 900px) {
  .filters .panel-tools-left,
  .filters .panel-tools-right {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

.filters select,
.filters input[type="date"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-width: 160px;
}

.customer-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.customer-tools select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-width: 200px;
}

.note-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.priority-select {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
}

.mechanic-select {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
}

.chart-card canvas {
  width: 100%;
  margin-top: 8px;
}

.reschedule-btn {
  border: 1px solid #f59e0b;
  color: #b45309;
  background: #fffbeb;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.edit-btn {
  border: 1px solid #2563eb;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.date-stack {
  display: grid;
  gap: 6px;
}

.reminder-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  background: #f8f9fc;
}

.upload-btn input {
  display: none;
}

.note-view-btn {
  border: none;
  background: #eef2ff;
  color: #1e3a8a;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  width: min(820px, 100%);
  box-shadow: 0 30px 40px rgba(15, 23, 42, 0.2);
}

#edit-modal .modal-card {
  width: calc(100% - 32px);
  max-width: 1400px;
  margin: 24px 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-width: 700px) {
  #edit-modal .modal-card {
    width: 100%;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notes-content {
  display: grid;
  gap: 12px;
}

.note-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fafb;
}

.note-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

@media (max-width: 1000px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10;
  }
  .sidebar-overlay.show {
    display: block;
  }
  .admin-sidebar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sidebar-nav {
    grid-auto-flow: row;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 20;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .admin-main {
    padding-top: 16px;
  }
}

@media (max-width: 700px) {
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-sidebar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sidebar-actions {
    width: 100%;
  }
  .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    background: #fff;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 6px;
  }
  .table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
}

@media (max-width: 900px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-nav {
    flex-wrap: wrap;
  }

  .hero-header.simple-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-header.simple-header .tagline-link {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card.lead-form {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }
}

@media (max-width: 640px) {
  .hero-header,
  .hero,
  .section {
    padding: 0 20px;
  }

  .hero {
    margin-top: 20px;
  }

  .chat {
    height: 300px;
  }
}
