:root {
  --primary: #063b55;
  --primary-light: #086d8a;
  --accent: #087f7c;
  --coral: #de563f;
  --surface: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(6, 59, 85, 0.1);
  --shadow: 0 10px 30px rgba(6, 59, 85, 0.08);
  --radius: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #e2eeef;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.viewport-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-bottom: 90px;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 20px 18px 24px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}

.app-header::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text b {
  color: #8ff1e6;
}

.brand-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.header-contact-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Section */
.hero-banner {
  margin: 18px 18px 0;
  padding: 22px;
  background: linear-gradient(135deg, #087f7c 0%, #065e5c 100%);
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(8, 127, 124, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-banner h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

/* Categories Filter */
.categories-nav {
  display: flex;
  gap: 8px;
  padding: 18px 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(6, 59, 85, 0.2);
}

/* Vehicle Grid */
.section-title {
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

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

.vehicle-list {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.vehicle-card:active {
  transform: scale(0.99);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #e2e8f0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(222, 86, 63, 0.95);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.card-cat {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(6, 59, 85, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-title-row h3 {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text);
}

.card-price {
  text-align: right;
  flex-shrink: 0;
}

.card-price strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--coral);
}

.card-price span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 12px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.feature-item {
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-item i {
  color: var(--accent);
  font-weight: bold;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-book {
  flex: 1;
  padding: 11px 16px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-book:hover {
  background: var(--primary-light);
}

.btn-zalo {
  padding: 11px 16px;
  background: #0068ff;
  color: #ffffff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Hotline Banner */
.hotline-card {
  margin: 24px 18px 0;
  padding: 18px;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hotline-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: #c2410c;
}

.hotline-info p {
  font-size: 11px;
  color: #9a3412;
}

.hotline-btn {
  padding: 10px 16px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Footer & Visitor Counter */
.app-footer {
  padding: 30px 18px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-footer strong {
  color: var(--primary);
  font-size: 15px;
}

.visitor-counter {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: 0 6px 20px rgba(6, 59, 85, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.counter-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.counter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}

/* Modal Booking */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 30px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 8px;
}

/* Floating Action Bar */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: max(20px, calc((100vw - 640px) / 2 + 20px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.float-zalo { background: #0068ff; }
.float-phone { background: #de563f; }
