/* ============================================================================
 * XƯỞNG DỊCH VỤ NHANH 5 PHÚT — NHẬN HÀNG TRƯỚC, QUÉT VIETQR SAU (DICH-VU-NHANH)
 * Giao diện Chuyên Nghiệp, Uy Tín Cao, Tối Ưu Chốt Đơn Nhanh Trên Điện Thoại & Máy Tính
 * ============================================================================ */

:root {
  --bg-dark: #060a14;
  --bg-panel: rgba(15, 23, 42, 0.9);
  --bg-card: rgba(30, 41, 59, 0.82);
  --gold: #f59e0b;
  --gold-bright: #fde68a;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border-gold: rgba(245, 158, 11, 0.38);
  --border-emerald: rgba(16, 185, 129, 0.4);
  --border-soft: rgba(148, 163, 184, 0.2);
}

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

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.18), transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.18), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.14), transparent 45%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

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

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
}

.brand-group h1 {
  font-size: 18.5px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff, #fde68a, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-group p {
  font-size: 12px;
  color: var(--text-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.btn-green:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border: 1px solid var(--border-soft);
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Hero Banner */
.hero-box {
  text-align: center;
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.trust-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-box h2 {
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ffffff, #fde68a, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-box p {
  max-width: 780px;
  margin: 0 auto 14px;
  color: var(--text-soft);
  font-size: 15px;
}

/* Mode Switcher Tabs */
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .nav-tabs {
    grid-template-columns: 1fr;
  }
}

.nav-tab-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 15px 18px;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.nav-tab-btn .icon {
  font-size: 28px;
}

.nav-tab-btn strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.nav-tab-btn small {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-tab-btn.active,
.nav-tab-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.2));
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 4 Service Packages Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

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

.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.price-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
}

.time-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 18.5px;
  color: #ffffff;
  margin: 8px 0 6px;
}

.service-list {
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.service-list li {
  margin-bottom: 5px;
}

/* Order & Instant VietQR Checkout Card */
.order-panel {
  background: var(--bg-panel);
  border: 2px solid var(--border-emerald);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

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

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: #050811;
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 12px;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--emerald-bright);
}

.qr-checkout-box {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

/* Owner Playbook Cards */
.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.script-card h4 {
  color: var(--gold-bright);
  font-size: 15.5px;
  margin-bottom: 6px;
}

.script-card .where-badge {
  display: inline-block;
  font-size: 12px;
  color: #6ee7b7;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #0f172a;
  border: 2px solid var(--gold);
  border-radius: 22px;
  max-width: 500px;
  width: 100%;
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
