/* =============================================
   EasyPark — Main Stylesheet
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  height: 64px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100%;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 16px !important;
  }
}

.navbar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 24px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 8px 0;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-flex;
}

.lang-switcher select {
  appearance: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 28px 6px 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* Hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #b91c1c;
  color: white;
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* === FORM CONTROLS === */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary { background: var(--accent-light); color: var(--accent); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* === AD BANNER === */
.ad-banner {
  display: none;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 50;
}

.ad-banner .ad-label {
  background: rgba(255,255,255,0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  margin-right: 8px;
  text-transform: uppercase;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  animation: toastSlideIn 0.3s ease;
  font-size: 0.9rem;
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info { border-left: 4px solid var(--info); }

.toast-exit { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* === LOADER / SPINNER === */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Full page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-loader .spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-secondary) 25%,
    var(--bg-elevated) 50%,
    var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 24px; width: 40%; margin-bottom: 16px; }
.skeleton-image { height: 200px; width: 100%; }

/* === LAYOUT HELPERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 800px; }

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

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

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* === TABLE === */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

tr:hover td {
  background: var(--bg-secondary);
}

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: none; /* Hidden on PC */
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
}

.bottom-nav-item.active {
  color: var(--accent);
}

/* === HERO SECTION === */
.hero-section {
  background: var(--accent-gradient);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><circle cx=%2250%22 cy=%2250%22 r=%2240%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.05)%22 stroke-width=%222%22/></svg>') repeat;
  opacity: 0.5;
}

.hero-container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle-text {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.8;
}

.btn-white {
  background: white !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.btn-glass {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.25) !important;
}



/* === ACCORDION === */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: var(--bg-secondary);
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === AVATAR === */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.85rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-xl { width: 100px; height: 100px; font-size: 2rem; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-text {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* === TABS === */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover { color: var(--accent); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* === CHIP / TAG === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.chip:hover,
.chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* === STAT CARD === */
.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === BOTTOM NAV (Mobile) === */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  height: var(--bottom-nav-height);
  padding: 0 16px;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px;
}

.bottom-nav-item .nav-icon { font-size: 1.3rem; }

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--accent);
}

/* === PLAN BADGE === */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan-free { background: #f1f5f9; color: #64748b; }
.plan-go { background: #dbeafe; color: #2563eb; }
.plan-plus { background: #ede9fe; color: #7c3aed; }
.plan-ultra { background: #fef3c7; color: #d97706; }

/* === PROMO BANNER === */
.promo-banner {
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.promo-banner h3 { font-size: 1.2rem; margin-bottom: 8px; }
.promo-banner p { opacity: 0.9; margin-bottom: 16px; font-size: 0.9rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
  }

  .bottom-nav { display: flex; }
  body { padding-bottom: var(--bottom-nav-height); }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .container { padding: 0 16px; }

  .hero-title { font-size: 2rem !important; }

  .modal { padding: 24px; margin: 16px; }
}

@media (max-width: 480px) {
  .btn { padding: 10px 18px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .navbar { padding: 0 16px; }
}

/* === PAGE CONTENT PADDING FOR INNER PAGES === */
.page-content {
  min-height: calc(100vh - var(--nav-height));
  padding: 32px 0;
}

/* === PRICING TOGGLE === */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-toggle-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-toggle-label.active { color: var(--text-primary); }

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* === QR CODE Container === */
.qr-container {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  box-shadow: var(--shadow-md);
}

/* === Countdown Timer === */
.countdown {
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* === Notice Box === */
.notice {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.notice-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.notice-info {
  background: var(--info-bg);
  border: 1px solid var(--info);
  color: var(--info);
}

.notice-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

/* === Photo Carousel (CSS only) === */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.carousel-btn:hover { background: var(--accent); color: white; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.carousel-dot.active { background: white; width: 24px; }

/* === Spot Grid === */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.spot {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.spot.available {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.spot.taken {
  background: var(--bg-secondary);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.5;
}

.spot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.spot.truck {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

/* === Payment Method Cards === */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-method {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.payment-method .pm-name {
  font-weight: 700;
  margin-top: 8px;
  font-size: 0.9rem;
}

.payment-method .pm-icon {
  font-size: 2rem;
}

/* === Success Animation === */
.success-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.success-check {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* === Page Transitions === */
.page-enter {
  animation: pageEnter 0.3s ease;
}

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

/* === BANK LOGOS === */
.bank-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bank-logo-sm {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === AMENITY CHIP === */
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Lucide icon alignment fixes === */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg,
.modal-close svg {
  width: 18px;
  height: 18px;
}

/* === ENHANCED MOBILE === */
@media (max-width: 768px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 24px;
  }

  body {
    padding-bottom: 80px; /* Space for sticky bottom nav */
  }

  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 60px;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu {
    display: none !important;
  }

  .hero-section {
    padding: 60px 0 40px !important;
    text-align: center;
    border-radius: 0 0 32px 32px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.15;
    margin-bottom: 20px;
  }

  .hero-subtitle-text {
    font-size: 1.05rem !important;
    opacity: 0.95;
    margin-bottom: 32px;
  }
  
  .hero-actions {
    gap: 12px;
    flex-direction: row;
    padding: 0 10px;
  }
  
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .hero-stats {
    margin-top: 40px;
    gap: 20px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .card {
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Bottom Nav Premium */
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px calc(env(safe-area-inset-bottom, 0px) + 10px);
    height: auto;
    min-height: 65px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .navbar-hamburger {
    display: flex;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 8px 0;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-item.active svg {
    transform: translateY(-2px);
    stroke-width: 2.5px;
  }

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

  .modal-container {
    width: 95%;
    max-height: 90vh;
    margin: 10px;
    padding: 24px 20px;
  }

  .form-input, .form-select {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 14px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%; /* Most buttons should be full width on mobile */
  }

  .footer { display: none; }

  /* Mobile Map Sidebar Handle */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 1000;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  }

  .sidebar.expanded {
    transform: translateY(0);
  }

  .sidebar-header::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 10px;
    margin: 8px auto;
    display: block;
  }

  /* Active states for mobile touch */
  .btn:active, 
  .card:active, 
  .nav-item:active,
  .bottom-nav-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.7rem !important;
  }
  .grid-3 { gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 1.2rem; }
}

/* Accessibility and Responsive Helpers */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  
  .hero-stats { 
    flex-direction: column; 
    align-items: center;
    gap: 12px;
  }
}


