/* ====================================================================
   IRON MASTER - Responsive Design System & Brand Theme
   ==================================================================== */

:root {
  /* Brand Tokens - Mandatory Identity */
  --brand-navy: #0B285C;
  --brand-blue: #0756B5;
  --brand-cyan: #08A9EE;
  --brand-pale-blue: #DCEBFF;

  --page-background: #F3F7FF;
  --surface: #FFFFFF;
  --surface-muted: #EAF2FF;

  --text-primary: #10264A;
  --text-secondary: #536782;
  --border-color: #C8D9F0;

  --success: #167A48;
  --warning: #A85A00;
  --danger: #C62828;

  --sidebar-background: #0B285C;
  --sidebar-text: #FFFFFF;

  --button-primary: #0756B5;
  --button-primary-hover: #0B285C;
  --focus-ring: #08A9EE;

  --card-radius: 14px;
  --button-radius: 10px;
  --input-radius: 9px;

  /* Spacing & Elevations */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --shadow-sm: 0 2px 4px rgba(11, 40, 92, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 40, 92, 0.08);
  --shadow-lg: 0 8px 24px rgba(11, 40, 92, 0.12);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --sidebar-width: 260px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--page-background);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--brand-navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================================================================
   Layout & Shell Architecture
   ==================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Desktop Sidebar */
.desktop-sidebar {
  display: none;
  width: var(--sidebar-width);
  background: var(--sidebar-background);
  color: var(--sidebar-text);
  flex-shrink: 0;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sidebar-nav {
  padding: var(--space-md) 0;
  list-style: none;
  flex: 1;
}

.nav-item {
  margin-bottom: var(--space-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-left-color: var(--brand-cyan);
}

.nav-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* App Header */
.app-header {
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  height: auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 40, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(11, 40, 92, 0.04);
  box-sizing: border-box;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.app-logo {
  height: 28px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--surface-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  border: 1px solid var(--border-color);
}

.role-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: var(--brand-blue);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Main Content Area */
.app-main {
  flex: 1;
  padding: var(--space-md);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(11, 40, 92, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(11, 40, 92, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 3px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  touch-action: manipulation;
  user-select: none;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item.active {
  color: var(--brand-blue);
  font-weight: 700;
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 0 0 3px 3px;
}

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

.bottom-nav-item.active svg {
  transform: translateY(-1px);
}

.bottom-nav-fab {
  position: relative;
  top: -14px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #FFFFFF !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(7, 86, 181, 0.45);
  border: 3.5px solid #FFFFFF;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  user-select: none;
}

.bottom-nav-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(7, 86, 181, 0.4);
}

.bottom-nav-fab svg {
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
}

/* Smooth anchor offsets for sticky header in mobile view */
#dashboard, #active, #available, #history {
  scroll-margin-top: 80px;
}

/* Padding fix for bottom nav on mobile */
@media (max-width: 768px) {
  .app-main {
    padding-top: var(--space-sm);
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
    padding-left: 10px;
    padding-right: 10px;
  }
  #order-summary-card {
    margin-bottom: calc(var(--bottom-nav-height) + 1.25rem);
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

/* Desktop layout adaptations */
@media (min-width: 769px) {
  /* Default sidebar mode for authenticated dashboard views */
  .app-wrapper.has-sidebar .desktop-sidebar {
    display: flex;
  }
  .app-wrapper.has-sidebar .app-header {
    margin-left: var(--sidebar-width);
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 var(--space-xl);
  }
  .app-wrapper.has-sidebar .app-main {
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    max-width: calc(100vw - var(--sidebar-width) - 2rem);
  }
  .app-wrapper.has-sidebar .header-brand {
    display: none;
  }

  /* Full-width Public & Landing mode (No Sidebar) */
  .app-wrapper.no-sidebar .desktop-sidebar,
  .app-wrapper:not(.has-sidebar) .desktop-sidebar {
    display: none !important;
  }
  .app-wrapper.no-sidebar .app-header,
  .app-wrapper:not(.has-sidebar) .app-header {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 var(--space-xl) !important;
    height: 74px;
    min-height: 74px;
    box-shadow: 0 4px 20px rgba(11, 40, 92, 0.06);
    border-bottom: 1px solid rgba(8, 169, 238, 0.18);
  }
  .app-wrapper.no-sidebar .app-main,
  .app-wrapper:not(.has-sidebar) .app-main {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .app-wrapper.no-sidebar .header-brand,
  .app-wrapper:not(.has-sidebar) .header-brand {
    display: inline-flex !important;
    align-items: center;
  }
  .app-wrapper.no-sidebar .app-logo,
  .app-wrapper:not(.has-sidebar) .app-logo {
    height: 48px;
    max-width: 230px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
  }
  .app-wrapper.no-sidebar .app-logo:hover,
  .app-wrapper:not(.has-sidebar) .app-logo:hover {
    transform: scale(1.02);
  }

  .mobile-bottom-nav {
    display: none;
  }
  .desktop-only {
    display: flex !important;
  }
  .mobile-only {
    display: none !important;
  }
  .mobile-location-pill {
    display: none !important;
  }
  .mobile-floating-cart {
    display: none !important;
  }
}

/* ====================================================================
   Components: Cards, Buttons, Forms, Badges
   ==================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--surface-muted);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Touch target */
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--button-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--button-primary-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--brand-navy);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--brand-pale-blue);
}

.btn-cyan {
  background: var(--brand-cyan);
  color: #FFFFFF;
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #A71D1D;
}

.btn-outline {
  background: transparent;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-outline:hover {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  min-height: 36px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--input-radius);
  background-color: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  min-height: 44px;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(8, 169, 238, 0.25);
}

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

.invalid-feedback {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-navy {
  background: var(--brand-navy);
  color: #FFFFFF;
}

.badge-blue {
  background: var(--brand-pale-blue);
  color: var(--brand-blue);
}

.badge-success {
  background: #E8F5E9;
  color: var(--success);
  border: 1px solid #C8E6C9;
}

.badge-warning {
  background: #FFF3E0;
  color: var(--warning);
  border: 1px solid #FFE0B2;
}

.badge-danger {
  background: #FFEBEE;
  color: var(--danger);
  border: 1px solid #FFCDD2;
}

/* Alerts */
.alert {
  padding: var(--space-md);
  border-radius: var(--input-radius);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.alert-success {
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  color: var(--success);
}

.alert-danger {
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: var(--danger);
}

.alert-info {
  background: var(--brand-pale-blue);
  border: 1px solid var(--border-color);
  color: var(--brand-navy);
}

/* Metric Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-pale-blue);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--input-radius);
  border: 1px solid var(--border-color);
}

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

.table th {
  background: var(--surface-muted);
  color: var(--brand-navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.table tbody tr:hover {
  background: var(--surface-muted);
}

/* ====================================================================
   Responsive Table & List Pagination Bar
   ==================================================================== */
.im-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.im-pagination-bar.im-pagination-docked {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.im-pagination-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.im-pagination-info strong {
  color: var(--brand-navy);
  font-weight: 700;
}

.im-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.im-page-size-select {
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
  background-color: var(--surface);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.im-page-size-select:focus {
  border-color: var(--brand-blue);
}

.im-pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.im-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.im-page-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-muted);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.im-page-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(7, 86, 181, 0.25);
}

.im-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.im-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .im-pagination-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    padding: 0.75rem 0.5rem;
  }
  .im-pagination-info {
    justify-content: center;
    width: 100%;
    font-size: 0.8rem;
  }
  .im-pagination-nav {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 3px;
  }
  .im-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 0.78rem;
  }
}

/* Quick Login Account Switcher in Login Page */
.demo-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.demo-account-btn {
  padding: 0.5rem;
  background: var(--surface-muted);
  border: 1px dashed var(--brand-blue);
  border-radius: var(--button-radius);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-account-btn:hover {
  background: var(--brand-pale-blue);
  border-style: solid;
}

.demo-account-role {
  font-weight: 700;
  color: var(--brand-navy);
  display: block;
}

.demo-account-phone, .demo-account-email {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Rider Specific Toggle Switch */
.availability-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--card-radius);
  border: 2px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.availability-bar.online {
  border-color: var(--success);
  background: #F1FBF4;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--success);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Offline Banner */
#offline-banner {
  display: none;
  background: var(--danger);
  color: #FFFFFF;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ====================================================================
   Native Mobile App Bar & Experience Enhancements
   ==================================================================== */

/* Mobile Location Pill & Header Components */
.mobile-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--surface-muted);
  border: 1px solid rgba(11, 40, 92, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  max-width: 180px;
  min-width: 0;
  flex: 0 1 auto;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-location-pill:active {
  transform: scale(0.97);
  background: var(--brand-pale-blue);
}

.mobile-location-pill svg.loc-pin {
  width: 16px;
  height: 16px;
  fill: var(--brand-blue);
  flex-shrink: 0;
}

.loc-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  min-width: 0;
  line-height: 1.15;
}

.loc-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 2px;
}

.loc-arrow {
  font-size: 0.6rem;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.loc-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(7, 86, 181, 0.25);
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-user-avatar:active {
  transform: scale(0.92);
}

.btn-logout-mobile {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  border: 1.5px solid #FECACA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-logout-mobile svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-logout-mobile:active {
  transform: scale(0.92);
  background: #FCA5A5;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #FFFFFF !important;
}

.role-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--brand-pale-blue);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .app-header {
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px 12px;
  }
  .brand-container {
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }
  .role-badge-pill {
    font-size: 0.68rem;
    padding: 3px 7px;
    gap: 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  .app-header {
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }
  .brand-container {
    gap: 6px;
  }
  .app-logo {
    max-width: 95px;
    height: 24px;
  }
  .mobile-location-pill {
    padding: 3px 8px;
    max-width: 140px;
  }
  .loc-title {
    font-size: 0.74rem;
  }
  .loc-sub {
    font-size: 0.62rem;
  }
  .mobile-user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
  .btn-logout-mobile {
    width: 30px;
    height: 30px;
  }
  .btn-logout-mobile svg {
    width: 14px;
    height: 14px;
  }
}

/* Horizontal Scrollable Category Chips Carousel */
.category-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  margin: 0 -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cat-chip:active {
  transform: scale(0.95);
}

.cat-chip.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(7, 86, 181, 0.35);
}

/* Zomato/Swiggy-Style Floating Bottom Cart Bar */
.mobile-floating-cart {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
  left: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0F3B82 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(11, 40, 92, 0.35);
  z-index: 95;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideUpFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.28s;
  will-change: transform, opacity;
}

.mobile-floating-cart.floating-cart-hidden {
  transform: translateY(140%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

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

.floating-cart-info {
  display: flex;
  flex-direction: column;
}

.floating-cart-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
}

.floating-cart-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.floating-cart-action {
  background: var(--brand-blue);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.floating-cart-action:active {
  transform: scale(0.95);
}

/* Tactile 44px Steppers for Mobile */
.qty-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, background 0.12s ease !important;
}

.qty-btn:active {
  transform: scale(0.88) !important;
}

.qty-input {
  min-height: 44px !important;
  height: 44px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  text-align: center !important;
}

/* Pulsing Live Beacon Indicator */
.pulse-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #A7F3D0;
}

.pulse-beacon .beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beaconPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes beaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Native App Quick Action Tiles */
.quick-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.quick-action-tile {
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.quick-action-tile:active {
  transform: scale(0.97);
  background: var(--surface-muted);
}

.quick-action-tile .tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.quick-action-tile .tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 2px;
}

.quick-action-tile .tile-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Large Rider & Delivery Mobile Controls */
.mobile-action-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.mobile-action-btn-large:active {
  transform: scale(0.96);
}

/* Card roundness, typography and responsive refinement on mobile */
@media (max-width: 768px) {
  .card {
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 0.85rem;
  }

  .card-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .card-title {
    font-size: 1.05rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  /* Catalogue Split Layout & Responsive Sizing for Mobile View */
  .catalogue-split-container {
    gap: 8px;
  }

  .service-sidebar {
    width: 76px;
    gap: 8px;
  }

  .service-tab-btn {
    padding: 8px 4px;
    font-size: 0.62rem;
    gap: 4px;
    border-radius: 12px;
  }

  .service-tab-btn svg {
    width: 20px;
    height: 20px;
  }

  .group-tabs-segmented {
    padding: 3px;
    gap: 3px;
    margin-bottom: 10px;
  }

  .group-tab-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .pane-header {
    margin-bottom: 8px;
    padding: 0 2px;
  }

  .pane-breadcrumb {
    font-size: 0.84rem;
  }

  .pane-count {
    font-size: 0.75rem;
  }

  /* Garment Cards - Full Text Visibility & Standard Mobile Typography */
  .garment-card-v2 {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 7px;
    border-radius: 12px;
    align-items: center;
  }

  .garment-card-v2 .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .garment-card-v2 .icon-box svg {
    width: 19px;
    height: 19px;
  }

  .garment-card-v2 .garment-details {
    flex: 1;
    min-width: 0;
    padding-right: 2px;
  }

  .garment-card-v2 .garment-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-navy);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 2px;
    display: block;
  }

  .garment-card-v2 .garment-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--brand-navy);
  }

  .btn-add-item {
    padding: 5px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .item-stepper-box {
    border-radius: 8px;
    min-height: 32px;
  }

  .btn-step {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .step-qty {
    font-size: 0.82rem;
    min-width: 20px;
  }
}

/* ====================================================================
   Services & Garments Master-Detail Layout (Matching Design System)
   ==================================================================== */

.search-pill-container {
  position: relative;
  margin-bottom: 12px;
}

.search-pill-container input {
  width: 100%;
  border-radius: 24px;
  border: 1.5px solid var(--border-color);
  padding: 10px 16px 10px 42px;
  font-size: 0.88rem;
  color: var(--brand-navy);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.search-pill-container input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(7, 86, 181, 0.12);
}

.search-pill-container svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  pointer-events: none;
}

.group-tabs-segmented {
  display: flex;
  background: var(--surface-muted);
  border-radius: 24px;
  padding: 4px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.group-tabs-segmented::-webkit-scrollbar {
  display: none;
}

.group-tab-btn {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.group-tab-btn.active {
  background: #FFFFFF;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(7, 86, 181, 0.12);
}

/* Price List Page Centered Container (Matches Home Page 1240px Width) */
.price-list-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  width: 100%;
}

@media (max-width: 768px) {
  .price-list-container {
    padding: 1.25rem 1rem 3rem;
  }
}

.catalogue-split-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-sidebar {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  color: var(--brand-navy);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.service-tab-btn:active {
  transform: scale(0.94);
}

.service-tab-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 6px 16px rgba(7, 86, 181, 0.35);
}

.service-tab-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.catalogue-content-pane {
  flex: 1;
  min-width: 0;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 4px;
}

.pane-breadcrumb {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.pane-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.garment-card-v2 {
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 40, 92, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.garment-card-v2:hover {
  border-color: rgba(7, 86, 181, 0.25);
}

.garment-card-v2 .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EEF4FF;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.garment-card-v2 .icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.garment-card-v2 .garment-details {
  flex: 1;
  min-width: 0;
}

.garment-card-v2 .garment-name {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 2px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.28;
}

.garment-card-v2 .garment-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.btn-add-item {
  border: 1.5px solid var(--brand-blue);
  background: #FFFFFF;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-add-item:active {
  background: var(--brand-blue);
  color: #FFFFFF;
  transform: scale(0.94);
}

.item-stepper-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--brand-blue);
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
}

.btn-step {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.15s ease;
}

.btn-step:active {
  background: var(--brand-pale-blue);
}

.step-qty {
  padding: 0 8px;
  font-weight: 800;
  color: var(--brand-navy);
  font-size: 0.92rem;
  min-width: 22px;
  text-align: center;
}

/* ====================================================================
   Desktop View Redesign, Hero Showcase & Smooth Keyframe Animations
   ==================================================================== */

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes floatCardAlt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 169, 238, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(8, 169, 238, 0); }
}

@keyframes pulseGlowGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes shimmerBtn {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Desktop Navbar Menu */
.desktop-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav-link {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s ease;
}

.desktop-nav-link:hover {
  color: var(--brand-blue);
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.desktop-nav-link:hover::after {
  width: 100%;
}

.desktop-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 169, 238, 0.08);
  border: 1px solid rgba(8, 169, 238, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseGlowGreen 2s infinite;
}

/* Scroll Reveal & Entrance Animations */
.anim-reveal {
  opacity: 1;
  transform: translateY(0);
}

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

.anim-entrance {
  animation: fadeInUpSmooth 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Interactive Hover Cards */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 40, 92, 0.1) !important;
  border-color: rgba(8, 169, 238, 0.45) !important;
}

/* Hero Section Styles */
.hero-wrapper {
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 10% 20%, rgba(8, 169, 238, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(11, 40, 92, 0.06) 0%, transparent 40%),
              linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%);
  padding: 2.5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
    padding: 1.5rem 0 2rem;
  }
}

.hero-image-stage {
  position: relative;
  border-radius: 24px;
  width: 100%;
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

.hero-main-photo-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 40, 92, 0.16);
  border: 3px solid #FFFFFF;
  background: #0B285C;
  width: 100%;
  height: 420px;
  min-height: 360px;
}

@media (max-width: 768px) {
  .hero-main-photo-frame {
    height: 280px;
    min-height: 240px;
  }
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-img:hover {
  transform: scale(1.03);
}

.hero-badge-floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(8, 169, 238, 0.32);
  box-shadow: 0 10px 28px rgba(11, 40, 92, 0.14);
  border-radius: 16px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.badge-top-right {
  top: -14px;
  right: -10px;
  animation: floatCard 4.2s ease-in-out infinite;
}

.badge-bottom-left {
  bottom: -16px;
  left: -10px;
  animation: floatCardAlt 4.8s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero-badge-floating {
    position: static;
    margin-top: 0.75rem;
    animation: none !important;
  }
  .badge-top-right, .badge-bottom-left {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
}

.hero-switcher-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(11, 40, 92, 0.06);
  padding: 4px;
  border-radius: 30px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(11, 40, 92, 0.08);
}

.hero-switch-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-switch-btn.active {
  background: #FFFFFF;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(11, 40, 92, 0.1);
}

/* Shimmer primary button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0756B5 0%, #08A9EE 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(7, 86, 181, 0.25);
  transition: all 0.25s ease;
}
.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 86, 181, 0.35);
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmerBtn 3.2s infinite;
  pointer-events: none;
}

/* Home Price Filter Tabs */
.home-price-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.home-price-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  padding: 0.5rem 1.15rem;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(11, 40, 92, 0.04);
}

.home-price-tab-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.home-price-tab-btn.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 40, 92, 0.2);
}

/* ====================================================================
   Header Call Mobile Number & Quick Actions
   ==================================================================== */
.header-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 169, 238, 0.08);
  border: 1.5px solid rgba(8, 169, 238, 0.35);
  color: var(--brand-navy);
  padding: 0.45rem 0.95rem;
  border-radius: 24px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-call-pill:hover {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 40, 92, 0.15);
}

.header-call-pill svg {
  color: var(--brand-blue);
  transition: color 0.2s ease;
}

.header-call-pill:hover svg {
  color: #38BDF8;
}

.btn-call-mobile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 169, 238, 0.12);
  border: 1px solid rgba(8, 169, 238, 0.3);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-call-mobile:active {
  background: var(--brand-navy);
  color: #FFFFFF;
}

/* ====================================================================
   Public Brand Footer Section
   ==================================================================== */
.app-footer-section {
  background: #081D44;
  color: #DCEBFF;
  border-top: 3.5px solid var(--brand-cyan);
  margin-top: 3.5rem;
  padding: 3.5rem 1.5rem 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.app-wrapper.has-sidebar .app-footer-section {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

@media (max-width: 768px) {
  .app-wrapper.has-sidebar .app-footer-section {
    margin-left: 0;
    width: 100%;
    padding-bottom: 5.5rem; /* Space above mobile bottom nav */
  }
  .app-footer-section {
    padding: 2.5rem 1.25rem 5rem;
  }
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.9fr 1.2fr 1.35fr;
    gap: 3rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo {
  height: 40px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #A5C5EE;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

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

.footer-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(8, 169, 238, 0.25);
  color: #BAE6FD;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
  position: relative;
  letter-spacing: 0.2px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links li a {
  color: #A5C5EE;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: #38BDF8;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 0.95rem;
  font-size: 0.86rem;
  color: #DCEBFF;
  line-height: 1.5;
}

.footer-contact-item .contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.footer-contact-item strong {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer-phone-link {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.footer-phone-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-map-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(8, 169, 238, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-height: 180px;
}

.footer-map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38BDF8;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-map-directions-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Bottom Footer Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94A3B8;
}

.footer-copyright strong {
  color: #FFFFFF;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #A5C5EE;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #38BDF8;
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ====================================================================
   Fixed Floating Action Buttons: Call, WhatsApp & Go to Top
   ==================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border: 2px solid #FFFFFF;
}

.whatsapp-float-btn:hover {
  transform: scale(1.09);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.whatsapp-float-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.call-float-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #0756B5 0%, #0B285C 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(7, 86, 181, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
  border: 2px solid #FFFFFF;
}

.call-float-btn:hover {
  transform: scale(1.09);
  box-shadow: 0 10px 30px rgba(7, 86, 181, 0.65);
  color: #FFFFFF;
  background: linear-gradient(135deg, #08A9EE 0%, #0756B5 100%);
}

.call-float-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.goto-top-btn {
  position: fixed;
  bottom: 156px;
  right: 29px;
  width: 44px;
  height: 44px;
  background: #0B285C;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(11, 40, 92, 0.3);
  z-index: 9998;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid rgba(8, 169, 238, 0.45);
}

.goto-top-btn.is-auth-user {
  bottom: 24px;
  right: 24px;
}

.goto-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.goto-top-btn:hover {
  background: #0756B5;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 40, 92, 0.45);
}

.goto-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Stacking on Mobile Screens */
@media (max-width: 768px) {
  .whatsapp-float-btn {
    bottom: 20px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
  .call-float-btn {
    bottom: 78px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  .call-float-btn svg {
    width: 22px;
    height: 22px;
  }
  .goto-top-btn {
    bottom: 136px;
    right: 22px;
    width: 40px;
    height: 40px;
  }
  .goto-top-btn.is-auth-user {
    bottom: 80px; /* Above mobile bottom nav for logged in users */
    right: 18px;
  }
  .goto-top-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ====================================================================
   Mobile Force Install App Popup / Bottom Sheet
   ==================================================================== */
.mobile-pwa-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 40, 92, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-pwa-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-pwa-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 460px;
  border-radius: 26px 26px 0 0;
  padding: 1.25rem 1.4rem 2.25rem;
  box-shadow: 0 -10px 40px rgba(11, 40, 92, 0.35);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 3.5px solid var(--brand-cyan);
}

.mobile-pwa-overlay.is-open .mobile-pwa-sheet {
  transform: translateY(0);
}

.mobile-pwa-handle {
  width: 44px;
  height: 4.5px;
  background: #CBD5E1;
  border-radius: 3px;
  margin: 0 auto 1.15rem;
}

.mobile-pwa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.mobile-pwa-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.mobile-pwa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.mobile-pwa-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(7, 86, 181, 0.25);
  border: 2px solid #E0F2FE;
  flex-shrink: 0;
}

.mobile-pwa-title-area h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0B285C;
  margin: 0 0 3px 0;
  letter-spacing: -0.3px;
}

.mobile-pwa-title-area .badge-official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #A7F3D0;
}

.mobile-pwa-features {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-pwa-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #1E293B;
  font-weight: 600;
}

.mobile-pwa-feature-item .icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #0756B5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.mobile-pwa-btn-install {
  width: 100%;
  background: linear-gradient(135deg, #0756B5 0%, #08A9EE 100%);
  color: #FFFFFF;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(7, 86, 181, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-pwa-btn-install:hover,
.mobile-pwa-btn-install:active {
  transform: scale(0.98);
}

.mobile-pwa-btn-dismiss {
  width: 100%;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 0 0.25rem;
  cursor: pointer;
  text-align: center;
}

.mobile-pwa-btn-dismiss:hover {
  color: #0F172A;
}

/* iOS Safari Guide Box */
.mobile-pwa-ios-guide {
  background: #FFFBEB;
  border: 1px dashed #F59E0B;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #92400E;
  line-height: 1.5;
  display: none;
}
