/* RMI Booking - Main CSS */
/* Developer: appinstan.com | appinstan@gmail.com */

:root {
  --red: #E02020;
  --red-dark: #B91C1C;
  --red-light: #FEE2E2;
  --red-soft: #FFF5F5;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --blue: #2563EB;
  --green: #16A34A;
  --yellow: #D97706;
  --orange: #EA580C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-main); font-weight: 800; font-size: 12px;
  letter-spacing: -0.5px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-main); font-weight: 800; font-size: 1rem; color: var(--gray-900); line-height: 1.1; }
.logo-sub { font-size: 0.65rem; color: var(--gray-400); font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--red); background: var(--red-soft); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all 0.3s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: white; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: white; box-shadow: 0 4px 15px rgba(224,32,32,0.35); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: white; }
.btn-ghost { color: var(--gray-600); }
.btn-ghost:hover { color: var(--red); background: var(--red-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-white { background: white; color: var(--red); border-color: white; }
.btn-white:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: white; border-color: var(--green); }
.btn-green:hover { background: #15803d; color: white; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #B91C1C 0%, #E02020 40%, #EF4444 70%, #F87171 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; color: white; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 20px;
  color: white;
}
.hero h1 { color: white; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.hero-sub { font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px; font-weight: 500; }

/* Search Box */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.search-field select,
.search-field input {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color var(--transition);
  width: 100%;
}
.search-field select:focus,
.search-field input:focus { outline: none; border-color: var(--red); background: white; }
.search-btn { padding: 12px 28px; border-radius: var(--radius-sm); height: 48px; font-size: 0.95rem; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-light { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--gray-500); margin-top: 8px; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ===== KOTA CARDS ===== */
.kota-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kota-card {
  background: var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform var(--transition);
}
.kota-card:hover { transform: translateY(-4px); }
.kota-card:hover .kota-img { transform: scale(1.08); }
.kota-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
  transition: transform 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.kota-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.kota-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px; color: white; }
.kota-info h3 { font-size: 1rem; margin-bottom: 2px; }
.kota-info span { font-size: 0.78rem; opacity: 0.75; }

/* ===== MOTOR CARD ===== */
.motor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.motor-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.motor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.motor-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.motor-img img { width: 100%; height: 100%; object-fit: cover; }
.verified-badge {
  position: absolute; top: 12px; left: 12px;
  background: white;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  border: 1.5px solid var(--green);
  display: flex; align-items: center; gap: 4px;
}
.motor-body { padding: 16px; }
.motor-mitra { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 4px; font-weight: 600; }
.motor-nama { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.motor-specs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.spec-tag {
  background: var(--gray-100);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
}
.motor-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--gray-100); }
.motor-harga { font-size: 0.78rem; color: var(--gray-500); }
.motor-harga strong { display: block; font-size: 1.1rem; color: var(--red); font-family: var(--font-main); }
.motor-rating { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--gray-600); }
.star { color: #F59E0B; }

/* ===== USP SECTION ===== */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usp-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-light); }
.usp-icon {
  width: 64px; height: 64px;
  background: var(--red-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}
.usp-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.usp-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ===== SEARCH PAGE ===== */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 32px 0; min-height: 70vh; }
.filter-sidebar { position: sticky; top: 88px; height: fit-content; }
.filter-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; }
.filter-header { padding: 18px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); font-weight: 700; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; }
.filter-body { padding: 20px; }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); margin-bottom: 10px; }
.filter-group select,
.filter-group input[type=text] {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { outline: none; border-color: var(--red); }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 0.88rem; }
.filter-check input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }

.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.result-count { font-weight: 700; color: var(--gray-700); }
.result-sort { display: flex; align-items: center; gap: 10px; }
.result-sort select { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.85rem; }

.list-motor-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.list-motor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-200); }
.list-motor-img {
  width: 220px;
  flex-shrink: 0;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.list-motor-img img { width: 100%; height: 100%; object-fit: cover; }
.list-motor-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.list-motor-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.list-motor-title h3 { font-size: 1.1rem; color: var(--gray-900); margin-bottom: 4px; }
.list-motor-title span { font-size: 0.82rem; color: var(--gray-500); font-weight: 500; }
.list-motor-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.harga-big { font-family: var(--font-main); }
.harga-big .harga-val { font-size: 1.4rem; font-weight: 800; color: var(--red); }
.harga-big .harga-unit { font-size: 0.8rem; color: var(--gray-500); }
.lokasi-tag { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--gray-500); }

/* ===== DETAIL PAGE ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 32px 0; }
.photo-slider { border-radius: var(--radius); overflow: hidden; background: var(--gray-100); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 8rem; margin-bottom: 16px; position: relative; }
.photo-slider img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo-thumb { width: 72px; height: 52px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.photo-thumb.active { border-color: var(--red); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 24px; margin-bottom: 20px; }
.detail-card h2 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.spec-item { }
.spec-item dt { font-size: 0.75rem; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.spec-item dd { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.booking-card { position: sticky; top: 88px; background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-md); overflow: hidden; }
.booking-card-header { background: var(--red); padding: 20px; color: white; }
.booking-card-header .price { font-family: var(--font-main); font-size: 1.8rem; font-weight: 800; }
.booking-card-header .price-unit { font-size: 0.85rem; opacity: 0.85; }
.booking-card-body { padding: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: all var(--transition);
  background: white;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,32,32,0.1); }
.price-breakdown { background: var(--gray-50); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.price-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 8px; color: var(--gray-600); }
.price-row:last-child { margin-bottom: 0; font-weight: 700; color: var(--gray-900); border-top: 1px solid var(--gray-200); padding-top: 8px; }
.mitra-info { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--gray-100); margin-top: 14px; }
.mitra-avatar { width: 42px; height: 42px; border-radius: 10px; background: var(--gray-200); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mitra-detail h4 { font-size: 0.88rem; font-weight: 700; }
.mitra-detail span { font-size: 0.78rem; color: var(--gray-500); }

/* ===== BOOKING FLOW ===== */
.booking-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--red); color: white; }
.step.done .step-num { background: var(--green); color: white; }
.step-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-500); }
.step.active .step-label { color: var(--red); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); min-width: 40px; }

/* ===== STATUS BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-info { background: #DBEAFE; color: #2563EB; }
.badge-primary { background: #EDE9FE; color: #7C3AED; }
.badge-success { background: #D1FAE5; color: #059669; }
.badge-danger { background: #FEE2E2; color: #DC2626; }
.badge-running { background: #E0F2FE; color: #0284C7; }
.badge-dispute { background: #FEF9C3; color: #B45309; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--gray-900);
  color: white;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.sidebar-menu { padding: 0 12px; }
.sidebar-item { margin-bottom: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.sidebar-link:hover { color: white; background: rgba(255,255,255,0.08); }
.sidebar-link.active { color: white; background: var(--red); }
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-section { padding: 14px 20px 8px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); }
.dash-main { background: var(--gray-50); padding: 32px; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.5rem; color: var(--gray-900); }
.dash-header p { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid var(--gray-100); }
.stat-icon { font-size: 1.5rem; margin-bottom: 10px; }
.stat-val { font-family: var(--font-main); font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; margin-top: 2px; }
.stat-card.red .stat-val { color: var(--red); }
.stat-card.green .stat-val { color: var(--green); }
.stat-card.blue .stat-val { color: var(--blue); }

/* ===== TABLE ===== */
.table-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--gray-100); }
.table-header h3 { font-size: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-50); }
th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); white-space: nowrap; }
td { padding: 14px 16px; font-size: 0.88rem; border-top: 1px solid var(--gray-100); vertical-align: middle; }
tr:hover td { background: var(--gray-50); }
.td-bold { font-weight: 700; color: var(--gray-900); }

/* ===== FORMS ===== */
.form-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 28px; }
.form-section-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-400); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.form-group .hint { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-control.error { border-color: var(--red); }
.field-error { font-size: 0.78rem; color: var(--red); margin-top: 4px; }

/* ===== ALERTS ===== */
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--green); }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--red); }
.alert-info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--blue); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--yellow); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-size: 0.88rem; font-weight: 700;
  color: var(--gray-600);
  transition: all var(--transition);
  cursor: pointer;
  background: white;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: white; }

/* ===== STARS ===== */
.stars { color: #F59E0B; letter-spacing: 2px; font-size: 1rem; }
.star-empty { color: var(--gray-300); }

/* ===== ULASAN ===== */
.ulasan-card { background: white; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.ulasan-top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ulasan-author { font-weight: 700; font-size: 0.9rem; }
.ulasan-date { font-size: 0.78rem; color: var(--gray-400); }
.ulasan-text { font-size: 0.9rem; color: var(--gray-700); }
.ulasan-reply { margin-top: 12px; padding: 12px 16px; background: var(--gray-50); border-radius: var(--radius-sm); border-left: 3px solid var(--red); font-size: 0.85rem; }
.ulasan-reply strong { color: var(--red); font-size: 0.78rem; display: block; margin-bottom: 4px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 16px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--red); color: white; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.85rem; transition: color var(--transition); }
.footer-col ul a:hover { color: white; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.footer-logo .logo-main { color: white; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-dev a { color: var(--red); font-weight: 700; }
.footer-dev a:hover { color: #F87171; }

/* ===== AUTH ===== */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--gray-400); font-size: 0.8rem; margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--gray-200); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-footer { text-align: center; font-size: 0.88rem; color: var(--gray-500); margin-top: 20px; }
.auth-footer a { color: var(--red); font-weight: 700; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: var(--radius-lg); padding: 32px; max-width: 500px; width: 90%; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--gray-100); border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ===== TOOLTIP ===== */
.tooltip { position: relative; display: inline-block; }
.tooltip-text { visibility: hidden; background: var(--gray-800); color: white; text-align: center; border-radius: 6px; padding: 6px 10px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); font-size: 0.75rem; white-space: nowrap; }
.tooltip:hover .tooltip-text { visibility: visible; }

/* ===== UTILITIES ===== */
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-500); }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.d-none { display: none; }
.w-100 { width: 100%; }

/* ===== PROMO BANNER ===== */
.promo-section { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%); padding: 60px 0; color: white; text-align: center; }
.promo-section h2 { color: white; margin-bottom: 12px; }
.promo-section p { opacity: 0.9; font-size: 1rem; margin-bottom: 28px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: span 2; }
  .kota-grid { grid-template-columns: repeat(3, 1fr); }
  .motor-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--gray-100);
    flex-direction: column; padding: 16px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { width: 100%; }
  .hero { padding: 48px 0 64px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-btn { grid-column: auto; }
  .kota-grid { grid-template-columns: repeat(2, 1fr); }
  .motor-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -240px; z-index: 999; transition: left 0.3s; }
  .sidebar.open { left: 0; }
  .list-motor-card { flex-direction: column; }
  .list-motor-img { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .booking-steps { flex-wrap: wrap; gap: 8px; }
  .step-line { display: none; }
  .dash-main { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .kota-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  h2 { font-size: 1.5rem; }
  .auth-card { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr; }
}
