/* LockerLuggage - Main Design System & Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #2458A6;
  --primary-hover: #1b4585;
  --primary-light: #eaf1fb;
  --primary-border: #bfdbfe;

  --secondary: #25A566;
  --secondary-hover: #1e8753;
  --secondary-light: #eaf8f0;
  --secondary-border: #bbf7d0;

  --bg: #F2F6FB;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #2458A6;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 32px -4px rgba(36, 88, 166, 0.15);

  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

img, svg {
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

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

.nav-logo {
  height: 75px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--primary);
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  letter-spacing: 0.5px;
  line-height: 1;
}

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

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(36, 88, 166, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36, 88, 166, 0.35);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: var(--surface-alt);
  border-color: var(--text-muted);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: #20ba59;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 18px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* Professional Hero Booking Widget (Bounce / Radical Storage Style) */
.hero-booking-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 980px;
  margin: 36px auto 0;
  padding: 22px 26px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: left;
  position: relative;
  z-index: 10;
}

.widget-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr auto;
  gap: 14px;
  align-items: flex-end;
}

.widget-field {
  display: flex;
  flex-direction: column;
}

.widget-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.widget-input {
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.2s ease;
  width: 100%;
}

.widget-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 88, 166, 0.15);
}

.widget-action {
  display: flex;
}

.widget-submit-btn {
  height: 48px;
  padding: 0 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  white-space: nowrap;
  width: 100%;
  box-shadow: 0 4px 14px rgba(36, 88, 166, 0.3);
}

.hero-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.quick-chip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.quick-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(36, 88, 166, 0.25);
}

.hero-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Compact Dashboard KPI strip (Above the Fold) */
.kpi-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-grid.compact .kpi-card {
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.kpi-grid.compact .kpi-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.kpi-grid.compact .kpi-value {
  font-size: 1.55rem;
  line-height: 1.15;
}

.kpi-grid.compact .kpi-sub {
  font-size: 0.72rem;
  margin-top: 3px;
}

/* Features Section */
.features {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
  padding: 60px 0;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.pricing-size-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pricing-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.pricing-price-box {
  margin: 16px 0;
}

.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

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

.pricing-tier-breakdown {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 16px 0 24px;
  font-size: 0.85rem;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.tier-row:last-child {
  border-bottom: none;
}

.tier-row.best-value {
  color: var(--secondary);
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Map & Location Picker */
.location-section {
  padding: 60px 0;
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-top: 30px;
}

.map-container {
  height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.shops-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.shop-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.shop-card:hover, .shop-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.shop-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.shop-badge {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid var(--secondary-border);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.shop-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.shop-availability {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.avail-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avail-pill.low {
  background: var(--warning-light);
  color: #92400e;
  border-color: #fde68a;
}

.avail-pill.out {
  background: var(--danger-light);
  color: #991b1b;
  border-color: #fecaca;
}

/* Locker Size Picker */
.size-picker-section {
  padding: 60px 0;
}

.size-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.size-option-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.size-option-card:hover, .size-option-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.size-icon-graphic {
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.size-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.size-dims-text {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.size-price-tag {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  padding: 32px;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Legal Modal Styling */
.legal-modal-card {
  max-width: 720px;
  width: 100%;
}
.legal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.legal-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.legal-tab-btn:hover {
  color: var(--primary);
}
.legal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.legal-pane {
  display: none;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}
.legal-pane.active {
  display: block;
}
.legal-pane h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 18px 0 6px 0;
}
.legal-pane h4:first-child {
  margin-top: 0;
}
.legal-pane p, .legal-pane ul {
  margin-bottom: 12px;
  color: var(--text-main);
}
.legal-pane ul {
  padding-left: 20px;
}
.legal-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  margin-bottom: 10px;
}

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

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 88, 166, 0.15);
}

/* Password Input with Show/Hide Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-control {
  padding-right: 44px !important;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  z-index: 2;
  padding: 0;
  user-select: none;
  touch-action: manipulation;
}

.password-toggle-btn:hover {
  color: var(--primary);
  background: var(--surface-alt);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.password-toggle-btn.active {
  color: var(--primary);
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.alert-warning {
  background: var(--warning-light);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Confirmation Card */
.confirmation-container {
  text-align: center;
  padding: 20px 0;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.booking-code-badge {
  display: inline-block;
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin: 12px 0;
  font-family: var(--font-heading);
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: inline-block;
  margin: 16px auto;
  box-shadow: var(--shadow-sm);
}

/* Partner Recruitment Section */
.partner-cta-section {
  background: linear-gradient(135deg, #1b3f75 0%, #2458A6 100%);
  color: #ffffff;
  padding: 70px 0;
  border-radius: var(--radius-xl);
  margin: 60px 0;
}

.partner-cta-section h2 {
  color: #ffffff;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.partner-cta-section p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Dashboard Layout (Partner & Admin) */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

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

.sidebar-shop-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar-shop-code {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav-item .badge {
  margin-left: auto;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.main-content {
  flex-grow: 1;
  padding: 32px;
  background: var(--bg);
  overflow-y: auto;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.kpi-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* Visual Locker Grid */
.locker-grid-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 30px;
}

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

.locker-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.legend-dot.available { background: var(--secondary); }
.legend-dot.occupied { background: var(--danger); }
.legend-dot.reserved { background: var(--primary); }

.locker-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.locker-slot-card {
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
}

.locker-slot-card.available {
  background: var(--secondary-light);
  border-color: var(--secondary-border);
  color: var(--secondary-hover);
}
.locker-slot-card.available:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 165, 102, 0.2);
}

.locker-slot-card.occupied {
  background: var(--danger-light);
  border-color: #fecaca;
  color: #991b1b;
}
.locker-slot-card.occupied:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.locker-slot-card.reserved {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.slot-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.slot-size {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.slot-status-text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Camera Viewfinder */
.camera-viewfinder-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Table styles */
.data-table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
}

.data-table-container::-webkit-scrollbar {
  height: 6px;
}
.data-table-container::-webkit-scrollbar-track {
  background: var(--surface-alt);
}
.data-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--surface-alt);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--surface-alt);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Helper Utilities */
.resp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.resp-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
}

.resp-grid-equal-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .widget-grid { grid-template-columns: 1fr 1fr; }
  .widget-action { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 30px auto 0; }
  .location-layout { grid-template-columns: 1fr; }
  .map-container { height: 360px; }
  
  /* Dashboard layout sidebar collapse to horizontal swipe bar */
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-nav-item {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .sidebar > div[style*="margin-top:auto"] { display: none; }
  .main-content { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari automatic zoom on form input focus */
  input, select, textarea, .form-control, .widget-input {
    font-size: 16px !important;
  }

  /* Universal touch targets >= 44px */
  .btn {
    min-height: 44px;
  }
  .btn-sm {
    min-height: 38px;
    padding: 6px 14px;
  }
  
  /* Responsive Navbar */
  .navbar {
    padding: 10px 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-logo {
    height: 46px !important;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .nav-actions > div:first-child {
    width: 100%;
  }
  #partner-shop-select {
    flex: 1;
    width: 100% !important;
    min-width: 0;
  }
  
  /* Auto-stack form/content grids into single-column on tablet and mobile */
  .resp-grid-2,
  .resp-grid-3,
  .resp-grid-equal-3,
  .modal-card [style*="grid-template-columns"],
  .main-content form [style*="grid-template-columns"],
  form [style*="grid-template-columns: 1fr 1fr"],
  form [style*="grid-template-columns: 1fr 1.5fr"],
  form [style*="grid-template-columns: 1fr 1fr 1.5fr"],
  form [style*="grid-template-columns: repeat(3, 1fr)"],
  section [style*="grid-template-columns: 1fr 1fr"],
  section [style*="grid-template-columns: 1fr 1.5fr"],
  section [style*="grid-template-columns: 1fr 1fr 1.5fr"],
  section [style*="grid-template-columns: 1fr 1fr 1fr"],
  section [style*="grid-template-columns: 1.4fr 1fr"],
  section [style*="grid-template-columns: 1.6fr 1fr"],
  section [style*="grid-template-columns: 2fr 1fr"],
  section [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Size Selector Grid */
  .size-selector-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px;
    margin: 20px auto 0;
  }

  /* Compact KPI Cards */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .kpi-card {
    padding: 14px 12px !important;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 10px;
  }
  .modal-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
    max-height: 92vh;
    width: 100%;
  }

  /* Table padding on tablet/mobile */
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  /* Filter toolbars */
  .tab-content > div[style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
  .tab-content input[type="text"][style*="max-width"],
  .tab-content select[style*="max-width"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 40px 0 30px; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 20px; }
  .hero-booking-widget { padding: 16px 14px; border-radius: 16px; margin-top: 20px; }
  .widget-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .hero-quick-chips { gap: 6px; }
  .quick-chip { font-size: 0.76rem; padding: 4px 10px; }
  .hero-trust-row { flex-direction: column; gap: 6px; font-size: 0.78rem; }
  
  .size-selector-grid { grid-template-columns: 1fr; }
  .map-container { height: 290px; }

  /* Locker grid compact for 3 columns on small phone screens */
  .locker-slots {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)) !important;
    gap: 8px;
  }
  .locker-slot-card {
    height: 102px;
    padding: 10px 6px;
  }
  .slot-name {
    font-size: 0.95rem;
  }
  .slot-size {
    font-size: 0.7rem;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Full screen overlay logins on phone */
  #partner-login-screen, #admin-login-screen {
    padding: 12px;
  }
  #partner-login-screen > div,
  #admin-login-screen > div {
    padding: 24px 18px !important;
    border-radius: var(--radius-lg) !important;
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.6rem; }
  .kpi-grid { grid-template-columns: 1fr !important; }
  .btn-lg { padding: 12px 18px; font-size: 0.95rem; }
  .camera-viewfinder-box { height: 210px; }
}
