/* ==========================================================================
   M-STOURSYS - MahaBorobudur Smart Tourism System
   Design System & Styling (Inspired by Travellomatic & Modern Javanese Heritage)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #12151C;
  --bg-card: #1C212B;
  --bg-card-hover: #242B38;
  --bg-glass: rgba(28, 33, 43, 0.75);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --accent-gold: #D4AF37;
  --accent-gold-hover: #F39C12;
  --accent-gold-soft: rgba(212, 175, 55, 0.15);
  
  --accent-emerald: #10B981;
  --accent-emerald-hover: #059669;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-danger: #EF4444;
  --accent-warning: #F59E0B;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-hover);
}

.text-gold { color: var(--accent-gold); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF0B3 0%, var(--accent-gold) 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  color: #0F1217;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-emerald);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline-gold:hover {
  background: var(--accent-gold-soft);
  color: #FFF;
}

.btn-outline-emerald {
  background: transparent;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-outline-emerald:hover {
  background: var(--accent-emerald-soft);
  color: #FFF;
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: var(--radius-sm); }

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.badge-emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge-mini {
  background: var(--accent-gold);
  color: #0F1217;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: #0B0D12;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.82rem;
}

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

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

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-label { font-weight: 600; color: var(--text-muted); }
.status-value { color: var(--accent-gold); font-weight: 700; }
.divider { color: var(--border-color); }

.top-contacts {
  display: flex;
  gap: 12px;
}

/* MAIN HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 28, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F1217;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow-gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFF;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.nav-btn-b2b {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-btn-b2b:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #FFF;
}

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

/* HERO SECTION (TRAVELLOMATIC STYLE) */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
              url('https://images.unsplash.com/photo-1596402184320-417e7178b2cd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.85) 0%, rgba(18, 21, 28, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

/* SEARCH WIDGET (TRAVELLOMATIC DESIGN) */
.search-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main), var(--shadow-glow-gold);
  margin-bottom: 40px;
}

.search-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.search-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-tab:hover, .search-tab.active {
  background: var(--accent-gold);
  color: #0F1217;
}

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-input, .search-select {
  width: 100%;
  height: 48px;
  background: #12151C;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus, .search-select:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-search {
  height: 48px;
  white-space: nowrap;
}

/* METRICS STRIP */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.metric-icon.gold { background: var(--accent-gold-soft); color: var(--accent-gold); }
.metric-icon.emerald { background: var(--accent-emerald-soft); color: var(--accent-emerald); }
.metric-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.metric-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.metric-value { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #FFF; }
.metric-label { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }


/* MAIN CONTENT PANES */
.main-content {
  padding: 50px 24px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* TAB 1: RESERVASI TIKET & UPANAT */
.capacity-gauge-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 320px;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 10px;
  background: #12151C;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-gold) 70%, var(--accent-danger) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.gauge-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.ticket-card-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-main);
}

.ticket-card-box.secondary {
  border-color: var(--border-color);
}

.ticket-badge.popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-gold);
  color: #0F1217;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-gold);
}

.ticket-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.ticket-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.ticket-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ticket-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

/* Upanat Customizer */
.upanat-customizer-box {
  background: rgba(18, 21, 28, 0.7);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.upanat-customizer-box h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--accent-gold);
}

.upanat-customizer-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.upanat-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.size-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn input { display: none; }

.size-btn:hover, .size-btn.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.artisan-status-mini {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pamong Guide Dispatcher Preview */
.pamong-dispatch-preview {
  background: rgba(18, 21, 28, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.pamong-dispatch-preview h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--accent-blue);
}

.guide-card-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.guide-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.guide-spec { font-size: 0.75rem; color: var(--text-muted); }
.guide-status { font-size: 0.75rem; color: var(--accent-emerald); }


/* TAB 2: 20 DESA WISATA GRID & PROFILER */
.segment-toggle-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-group-toggle {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle:hover, .btn-toggle.active {
  background: var(--accent-gold);
  color: #0F1217;
}

.profiler-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.profiler-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.profiler-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.villages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.village-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.village-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-main);
}

.village-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.village-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.village-card:hover .village-img-wrapper img {
  transform: scale(1.06);
}

.v-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-santai { background: rgba(245, 158, 11, 0.9); color: #000; }
.badge-gaul { background: rgba(139, 92, 246, 0.9); color: #FFF; }

.v-balkondes-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18, 21, 28, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent-gold);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

.village-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.village-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.village-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.village-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  margin-top: auto;
}

.village-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.v-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.v-price span { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }


/* TAB 3: BOROBUDUR QUEST & WALLET */
.user-wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-glow-gold);
}

.wallet-icon {
  font-size: 1.8rem;
}

.wallet-info {
  display: flex;
  flex-direction: column;
}

.wallet-label { font-size: 0.75rem; color: var(--text-muted); }
.wallet-balance { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--accent-gold); }

.quest-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}

.column-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.quest-card:hover {
  border-color: var(--accent-gold);
}

.quest-status-icon {
  font-size: 1.6rem;
}

.quest-status-icon.done { color: var(--accent-emerald); }
.quest-status-icon.pending { color: var(--accent-gold); }

.quest-details {
  flex-grow: 1;
}

.quest-details h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.quest-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quest-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.badge-coin {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.quest-loc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
}

.reward-img {
  position: relative;
  width: 140px;
  flex-shrink: 0;
}

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

.reward-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(18, 21, 28, 0.85);
  font-size: 0.68rem;
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
}

.reward-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.reward-body h4 { font-size: 0.92rem; margin-bottom: 4px; }
.reward-body p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }

.reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reward-cost { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--accent-gold); }


/* TAB 4: B2B DASHBOARDS */
.b2b-role-switcher {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-role {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-role:hover, .btn-role.active {
  background: var(--accent-blue);
  color: #FFF;
}

.b2b-view-panel {
  display: none;
}

.b2b-view-panel.active {
  display: block;
}

.b2b-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.b2b-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.b2b-stat-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.b2b-stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: #FFF; margin-bottom: 4px; }
.b2b-stat-trend { font-size: 0.8rem; font-weight: 600; }
.b2b-stat-sub { font-size: 0.78rem; color: var(--text-dim); }

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.table-header h3 { font-size: 1.1rem; }

.table-responsive { overflow-x: auto; }

.b2b-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.b2b-table th, .b2b-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.b2b-table th {
  background: #12151C;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.coupon-scanner-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.coupon-scanner-box h3 { font-size: 1.25rem; margin-bottom: 6px; }
.coupon-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

.coupon-input-group {
  display: flex;
  gap: 12px;
}

.coupon-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}


/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-main), var(--shadow-glow-gold);
  overflow: hidden;
}

.modal-box.modal-lg {
  max-width: 800px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 { font-size: 1.15rem; }

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover { color: #FFF; }

.modal-body { padding: 24px; }

/* 5-Zone Diagram Styling */
.zone-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-box {
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.zone-1 { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--accent-danger); }
.zone-2 { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--accent-warning); }
.zone-3 { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--accent-emerald); }
.zone-4 { background: rgba(59, 130, 246, 0.15); border: 1px solid var(--accent-blue); }
.zone-5 { background: rgba(139, 92, 246, 0.15); border: 1px solid var(--accent-purple); }

.zone-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.zone-desc { font-size: 0.78rem; color: var(--text-muted); }

/* QR Ticket Receipt */
.qr-placeholder {
  width: 140px;
  height: 140px;
  background: #FFF;
  color: #000;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.qr-code-text { font-size: 0.7rem; font-weight: 700; font-family: monospace; color: #333; }

.receipt-details-list {
  background: #12151C;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  text-align: left;
}

.receipt-details-list div { display: flex; justify-content: space-between; }
.receipt-details-list span { color: var(--text-muted); }

.receipt-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}


/* FOOTER */
.main-footer {
  background: #0B0D12;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 16px 0 20px;
  max-width: 440px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent-gold);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}


/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .search-form-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .villages-grid { grid-template-columns: 1fr 1fr; }
  .quest-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2rem; }
  .search-form-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .villages-grid { grid-template-columns: 1fr; }
  .b2b-stats-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
