/* =====================================================
   GUEST PORTAL - Warm Modern Hospitality
   A boutique hotel lobby meets contemporary design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  /* Warm, earthy palette */
  --color-cream: #FAF7F2;
  --color-cream-dark: #F0EBE3;
  --color-sand: #E8DFD1;
  --color-terracotta: #C17B5D;
  --color-terracotta-dark: #A66549;
  --color-forest: #2D4739;
  --color-forest-light: #3D5C4A;
  --color-charcoal: #2A2A28;
  --color-charcoal-light: #4A4A47;
  --color-gold: #C9A96E;
  --color-gold-light: #DBC291;
  --color-white: #FFFFFF;
  --color-error: #C1524B;
  --color-success: #4A7C59;
  --color-warning: #D4A84B;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

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

  /* Transitions */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(42, 42, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(42, 42, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 42, 40, 0.12);
  --shadow-xl: 0 24px 60px rgba(42, 42, 40, 0.16);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Scrollbar compensation for modals */
  --scrollbar-width: 0px;
}

/* Modal open state - prevents scrolling while keeping scrollbar visible */
body.modal-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll; /* Keep scrollbar visible */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-charcoal);
  background: var(--color-cream);
  min-height: 100vh;
}

/* Background texture - subtle paper grain */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-terracotta-dark);
}

/* =====================================================
   LAYOUT
   ===================================================== */

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

.layout__main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-sand);
  padding: var(--space-md) var(--space-lg);
  animation: headerSlide 0.6s var(--ease-out) forwards;
}

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

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.875rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal-light);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-charcoal);
  background: var(--color-sand);
}

.header__user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__user-name {
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
}

.header__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.footer__text {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* =====================================================
   AUTH PAGES (Login, Register, Forgot, Reset)
   ===================================================== */

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--color-sand) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(193, 123, 93, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  animation: cardReveal 0.8s var(--ease-out) forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.auth-card__title {
  margin-bottom: var(--space-sm);
}

.auth-card__subtitle {
  color: var(--color-charcoal-light);
  font-size: 0.9375rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  background: var(--color-cream);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input::placeholder {
  color: var(--color-charcoal-light);
  opacity: 0.6;
}

.form-input:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(193, 123, 93, 0.1);
}

.form-input:hover:not(:focus) {
  border-color: var(--color-sand);
}

/* Password toggle */
.form-input-wrapper {
  position: relative;
}

.form-input-toggle {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-charcoal-light);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--duration-fast);
}

.form-input-toggle:hover {
  color: var(--color-charcoal);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-terracotta);
  cursor: pointer;
}

.form-checkbox span {
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-charcoal), var(--color-charcoal-light));
  color: var(--color-white);
  padding: var(--space-lg) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

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

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-sand);
}

.btn--secondary:hover {
  background: var(--color-sand);
  border-color: var(--color-sand);
}

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

.btn--outline-terracotta:hover {
  background: rgba(193, 123, 93, 0.1);
  border-color: var(--color-terracotta);
}

.btn--google {
  width: 100%;
  background: var(--color-white);
  color: var(--color-charcoal);
  border: 2px solid var(--color-sand);
  padding: var(--space-md) var(--space-xl);
}

.btn--google:hover {
  background: var(--color-cream);
  border-color: var(--color-cream-dark);
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--color-charcoal-light);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-sand);
}

/* Footer links */
.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-cream-dark);
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
}

.auth-footer a {
  font-weight: 500;
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  animation: alertSlide 0.4s var(--ease-out);
}

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

.alert--error {
  background: rgba(193, 82, 75, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(193, 82, 75, 0.2);
}

.alert--success {
  background: rgba(74, 124, 89, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(74, 124, 89, 0.2);
}

.alert--warning {
  background: rgba(212, 168, 75, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.dashboard__header {
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.6s var(--ease-out) forwards;
}

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

.dashboard__greeting {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.dashboard__greeting span {
  color: var(--color-terracotta);
}

.dashboard__subtitle {
  color: var(--color-charcoal-light);
  font-size: 1.0625rem;
}

/* Stats cards */
.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-sand);
  animation: fadeUp 0.6s var(--ease-out) backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card__label {
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.stat-card--highlight {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-light));
  border: none;
}

.stat-card--highlight .stat-card__label,
.stat-card--highlight .stat-card__value {
  color: var(--color-white);
}

/* Bookings section */
.dashboard__section {
  margin-bottom: var(--space-2xl);
}

.dashboard__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dashboard__section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

/* =====================================================
   URGENT SECTION - Elevated Boutique Hotel Style
   Sophisticated notice that feels warm and inviting
   ===================================================== */

.dashboard__section--urgent {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 0;
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(201, 169, 110, 0.08),
    0 8px 32px rgba(201, 169, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: urgentFadeIn 0.7s var(--ease-out) backwards;
}

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

/* Elegant top accent bar - subtle gold gradient */
.dashboard__section--urgent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-gold) 0%,
    var(--color-warning) 50%,
    var(--color-terracotta) 100%);
  opacity: 0.9;
}

/* Header area with warm background */
.dashboard__section--urgent .dashboard__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg,
    rgba(201, 169, 110, 0.06) 0%,
    rgba(212, 168, 75, 0.04) 100%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.dashboard__section--urgent .dashboard__section-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Refined alert icon with subtle glow */
.dashboard__section--urgent .alert-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  background: linear-gradient(135deg,
    rgba(201, 169, 110, 0.15) 0%,
    rgba(212, 168, 75, 0.1) 100%);
  border-radius: var(--radius-md);
  color: var(--color-gold);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.15);
}

.dashboard__section--urgent .dashboard__section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

/* Elegant CTA button with warm gradient */
.dashboard__section--urgent .btn--primary {
  background: linear-gradient(135deg,
    var(--color-charcoal) 0%,
    #3a3a38 100%);
  color: var(--color-white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow:
    0 2px 8px rgba(42, 42, 40, 0.15),
    0 1px 2px rgba(42, 42, 40, 0.1);
  text-decoration: none;
}

.dashboard__section--urgent .btn--primary:hover {
  background: linear-gradient(135deg,
    var(--color-terracotta) 0%,
    var(--color-terracotta-dark) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(193, 123, 93, 0.25),
    0 2px 4px rgba(193, 123, 93, 0.15);
}

.dashboard__section--urgent .btn--primary svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.dashboard__section--urgent .btn--primary:hover svg {
  transform: translateX(3px);
}

/* Booking list container */
.dashboard__section--urgent .booking-list {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Booking cards */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.booking-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-sand);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  animation: fadeUp 0.6s var(--ease-out) backwards;
  text-decoration: none;
  color: inherit;
}

.booking-card:nth-child(1) { animation-delay: 0.1s; }
.booking-card:nth-child(2) { animation-delay: 0.15s; }
.booking-card:nth-child(3) { animation-delay: 0.2s; }
.booking-card:nth-child(4) { animation-delay: 0.25s; }
.booking-card:nth-child(5) { animation-delay: 0.3s; }

.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-terracotta);
}

.booking-card__date {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  min-width: 80px;
}

.booking-card__date-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
}

.booking-card__date-day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1;
  margin-top: var(--space-xs);
}

.booking-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.booking-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.booking-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
}

.booking-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.booking-card__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.booking-card__arrow {
  width: 32px;
  height: 32px;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-light);
  transition: all var(--duration-fast);
}

.booking-card:hover .booking-card__arrow {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateX(4px);
}

.booking-card__help-btn {
  width: 28px;
  height: 28px;
  background: rgba(193, 123, 93, 0.1);
  border: 1px solid rgba(193, 123, 93, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.booking-card__help-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
  transform: scale(1.1);
}

/* =====================================================
   PENDING PAYMENT CARD - Refined Urgency
   Elegant card design with warm accents
   ===================================================== */

.booking-card--pending {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(42, 42, 40, 0.04),
    0 4px 12px rgba(42, 42, 40, 0.06);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Warm left accent strip */
.booking-card--pending::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,
    var(--color-gold) 0%,
    var(--color-warning) 100%);
  border-radius: 4px 0 0 4px;
}

.booking-card--pending:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(42, 42, 40, 0.08),
    0 12px 32px rgba(201, 169, 110, 0.15);
  border-color: transparent;
}

.booking-card--pending:hover .booking-card__arrow {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateX(4px);
}

/* Date box styling for pending cards */
.booking-card--pending .booking-card__date {
  background: linear-gradient(135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(212, 168, 75, 0.05) 100%);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.booking-card--pending .booking-card__date-month {
  color: var(--color-gold);
}

/* =====================================================
   PAYMENT TIMER - Elegant Countdown
   Sophisticated timer that feels helpful, not threatening
   ===================================================== */

.booking-card__timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(212, 168, 75, 0.04) 100%);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  position: relative;
  overflow: hidden;
}

/* Subtle animated shimmer effect */
.booking-card__timer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 169, 110, 0.08) 50%,
    transparent 100%);
  animation: timerShimmer 3s ease-in-out infinite;
}

@keyframes timerShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.booking-card__timer .timer-icon {
  flex-shrink: 0;
  color: var(--color-gold);
  position: relative;
  z-index: 1;
  animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.booking-card__timer .timer-label {
  font-weight: 400;
  color: var(--color-charcoal-light);
  position: relative;
  z-index: 1;
}

.booking-card__timer .timer-value {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  background: var(--color-white);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

/* Warning badge styling for pending cards */
.booking-card--pending .badge--warning {
  background: linear-gradient(135deg,
    rgba(201, 169, 110, 0.12) 0%,
    rgba(212, 168, 75, 0.08) 100%);
  color: var(--color-charcoal);
  border: 1px solid rgba(201, 169, 110, 0.2);
  font-weight: 500;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-success {
  background: rgba(74, 124, 89, 0.1);
  color: var(--color-success);
}

.badge-warning {
  background: rgba(212, 168, 75, 0.1);
  color: var(--color-warning);
}

.badge-danger {
  background: rgba(193, 82, 75, 0.1);
  color: var(--color-error);
}

.badge-secondary {
  background: var(--color-sand);
  color: var(--color-charcoal-light);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-sand);
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--color-cream);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-charcoal-light);
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--color-charcoal-light);
}

/* =====================================================
   BOOKING DETAIL PAGE
   ===================================================== */

.booking-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.booking-detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-xl);
  transition: color var(--duration-fast);
}

.booking-detail__back:hover {
  color: var(--color-terracotta);
}

.booking-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.6s var(--ease-out);
}

.booking-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.booking-detail__confirm {
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
}

.booking-detail__confirm strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

/* Booking summary card */
.booking-summary {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.6s var(--ease-out) 0.1s backwards;
}

.booking-summary__dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-sand);
}

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

.booking-summary__date-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-sm);
}

.booking-summary__date-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.booking-summary__date-day {
  font-size: 0.875rem;
  color: var(--color-charcoal-light);
  margin-top: var(--space-xs);
}

.booking-summary__arrow {
  width: 48px;
  height: 48px;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
}

.booking-summary__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
}

.booking-summary__detail {
  text-align: center;
  padding: var(--space-md);
}

.booking-summary__detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-xs);
}

.booking-summary__detail-value {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

/* Booking sections */
.booking-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s var(--ease-out) backwards;
}

.booking-section:nth-child(1) { animation-delay: 0.15s; }
.booking-section:nth-child(2) { animation-delay: 0.2s; }
.booking-section:nth-child(3) { animation-delay: 0.25s; }

.booking-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-sand);
}

.booking-section__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
}

.booking-section__row:not(:last-child) {
  border-bottom: 1px solid var(--color-cream-dark);
}

.booking-section__label {
  color: var(--color-charcoal-light);
}

.booking-section__value {
  font-weight: 500;
  color: var(--color-charcoal);
}

.booking-section__total {
  font-size: 1.125rem;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--color-charcoal);
}

.booking-section__total .booking-section__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
}

/* =====================================================
   PROFILE PAGE
   ===================================================== */

.profile {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.profile__header {
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.6s var(--ease-out);
}

.profile__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.profile-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s var(--ease-out) backwards;
}

.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.15s; }
.profile-section:nth-child(3) { animation-delay: 0.2s; }

.profile-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.profile-form {
  display: grid;
  gap: var(--space-lg);
}

.profile-form--two-col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
  .profile-form--two-col {
    grid-template-columns: 1fr;
  }
}

.profile-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

/* =====================================================
   STEP-UP AUTHENTICATION
   ===================================================== */

.stepup-modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 40, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 1000;
  animation: modalFadeIn 0.3s var(--ease-out);
}

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

.stepup-modal__content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.4s var(--ease-out);
}

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

.stepup-modal__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.stepup-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--color-gold-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stepup-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.stepup-modal__subtitle {
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
}

/* Code input */
.code-input {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.code-input input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  transition: all var(--duration-fast);
}

.code-input input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background: var(--color-white);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .booking-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .booking-card__date {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: flex-start;
  }

  .booking-card__status {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .booking-summary__dates {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .booking-summary__arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .booking-detail__header {
    flex-direction: column;
  }
}

/* =====================================================
   404 PAGE
   ===================================================== */

.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.error-page__text {
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-xl);
}

/* =====================================================
   UTILITIES
   ===================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* =====================================================
   APP SHELL - Compact Sidebar Layout
   ===================================================== */

:root {
  --sidebar-width: 220px;
  --container-max: 1140px;
  --header-height: 56px;
}

/* App Shell */
.app-shell {
  min-height: 100vh;
  background: var(--color-cream);
}

.app-container {
  display: flex;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 100vh;
}

/* Compact Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-white);
  border-right: 1px solid var(--color-sand);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar__header {
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-cream-dark);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-charcoal);
}

.sidebar__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.sidebar__logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) 0;
}

.sidebar__footer {
  padding: var(--space-md);
  border-top: 1px solid var(--color-cream-dark);
  background: var(--color-cream);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

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

.sidebar__user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar__user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-logout {
  font-size: 0.75rem;
  color: var(--color-charcoal-light);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.sidebar__user-logout:hover {
  color: var(--color-terracotta);
}

/* Navigation Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin: 0 var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--color-charcoal-light);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-item:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
}

.nav-item.active {
  background: var(--color-cream);
  color: var(--color-terracotta);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--color-terracotta);
  border-radius: 0 2px 2px 0;
}

.nav-item__icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.nav-item.active .nav-item__icon,
.nav-item:hover .nav-item__icon {
  opacity: 1;
}

.nav-item__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Booking Nav Item */
.nav-item--booking {
  padding-left: var(--space-sm);
}

.nav-item__booking-date {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-terracotta);
  background: rgba(193, 123, 93, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-item--booking.active .nav-item__booking-date {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.nav-item__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: auto;
}

.nav-item__badge--success {
  background: var(--color-success);
  color: var(--color-white);
}

/* Urgent Nav Item (Action Required) */
.nav-item--urgent {
  /* Match base .nav-item margin for consistency */
  margin: 0 var(--space-sm);
  position: relative;
}

/* Left accent bar - only show when active */
.nav-item--urgent.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--color-warning);
  border-radius: 0 2px 2px 0;
}

.nav-item--urgent:hover {
  background: var(--color-cream);
}

/* When NOT active, use normal nav item colors */
.nav-item--urgent .nav-item__label {
  font-weight: 500;
  color: var(--color-charcoal);
}

.nav-item--urgent .nav-item__icon {
  color: var(--color-charcoal-light);
}

/* When ACTIVE, show urgent styling */
.nav-item--urgent.active {
  background: linear-gradient(135deg, var(--color-warning), var(--color-terracotta));
}

.nav-item--urgent.active .nav-item__label,
.nav-item--urgent.active .nav-item__icon {
  color: var(--color-white);
}

.nav-item--urgent .nav-item__badge {
  background: var(--color-warning);
  color: var(--color-charcoal);
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
}

.nav-item--urgent.active .nav-item__badge {
  background: var(--color-white);
  color: var(--color-warning);
}

/* Navigation Groups */
.nav-group {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
}

.nav-group__header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-charcoal-light);
  padding: var(--space-sm) var(--space-lg);
  opacity: 0.7;
}

/* Collapsible Navigation Menu */
.nav-collapsible {
  margin: 0;
}

.nav-item--parent {
  width: calc(100% - var(--space-md));
  border: none;
  background: transparent;
  cursor: pointer;
  justify-content: flex-start;
}

.nav-item--parent:focus {
  outline: none;
}

.nav-item--parent:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

.nav-item__arrow {
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.5;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
}

.nav-item--parent:hover .nav-item__arrow {
  opacity: 0.8;
}

.nav-collapsible.expanded .nav-item__arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
  opacity: 0;
}

.nav-collapsible.expanded .nav-submenu {
  max-height: 300px;
  opacity: 1;
}

.nav-submenu .nav-item--sub {
  padding-left: calc(var(--space-lg) + var(--space-md));
  font-size: 0.8125rem;
  margin: 2px var(--space-sm);
}

.nav-submenu .nav-item--sub::before {
  left: var(--space-sm);
}

/* Booking Container with Sub-navigation */
.nav-booking {
  position: relative;
}

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

.nav-booking--expanded > .nav-item--booking {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--color-cream);
}

/* Sub-navigation Items */
.nav-subitems {
  background: var(--color-cream);
  margin: 0 var(--space-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-xs) 0 var(--space-sm) 0;
  border-left: 2px solid var(--color-terracotta);
  margin-left: calc(var(--space-sm) + 2px);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px var(--space-md) 6px var(--space-lg);
  margin: 0 var(--space-xs);
  border-radius: var(--radius-sm);
  color: var(--color-charcoal-light);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-subitem:hover {
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.6);
}

.nav-subitem.active {
  color: var(--color-terracotta);
  background: rgba(255, 255, 255, 0.8);
}

.nav-subitem.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-terracotta);
  border-radius: var(--radius-full);
}

.nav-subitem svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.nav-subitem.active svg,
.nav-subitem:hover svg {
  opacity: 1;
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
  background: var(--color-cream);
  position: relative;
}

.content-wrapper {
  padding: var(--space-xl) var(--space-2xl);
  animation: contentFadeIn 0.25s var(--ease-out);
}

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

.content-wrapper.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-sand);
  z-index: 200;
  padding: 0 var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.mobile-header__toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.mobile-header__toggle:hover {
  background: var(--color-cream);
}

.mobile-header__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.mobile-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 40, 0.5);
  z-index: 95;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar-overlay.active {
  opacity: 1;
}

/* AJAX Loader */
.ajax-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.ajax-loader.active {
  opacity: 1;
}

.ajax-loader__spinner {
  height: 100%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold), var(--color-terracotta));
  background-size: 200% 100%;
  animation: ajaxProgress 1s linear infinite;
}

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

/* Body with sidebar adjustments */
body.has-sidebar {
  overflow-x: hidden;
}

/* =====================================================
   PAGE HEADER (Unified header for all sub-pages)
   ===================================================== */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-sand);
}

.page-header__content {
  flex: 1;
  min-width: 0;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.2;
}

.page-header__subtitle {
  font-size: 0.9375rem;
  color: var(--color-charcoal-light);
  margin: var(--space-xs) 0 0 0;
}

.page-header__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header__title {
    font-size: 1.5rem;
  }

  .page-header__actions {
    width: 100%;
  }

  .page-header__actions .btn {
    flex: 1;
  }
}

/* =====================================================
   BOOKING TABS (For booking detail page) - DEPRECATED
   Kept for backwards compatibility, now using sidebar nav
   ===================================================== */

.booking-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.booking-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--color-charcoal-light);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.booking-tab:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
}

.booking-tab.active {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.booking-tab svg {
  flex-shrink: 0;
}

/* =====================================================
   PAYMENT CONFIRMATION MODAL
   ===================================================== */

.payment-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--duration-fast) var(--ease-out);
}

.payment-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 40, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.payment-confirm-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 420px;
  width: calc(100% - var(--space-lg) * 2);
  animation: slideUp var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.payment-confirm-modal__header {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-light));
  padding: var(--space-lg);
  text-align: center;
}

.payment-confirm-modal__header h3 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.payment-confirm-modal__body {
  padding: var(--space-xl);
}

.payment-confirm-modal__invoice,
.payment-confirm-modal__amount,
.payment-confirm-modal__card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-sand);
}

.payment-confirm-modal__invoice span,
.payment-confirm-modal__amount span,
.payment-confirm-modal__card span {
  color: var(--color-charcoal-light);
  font-size: 0.9375rem;
}

.payment-confirm-modal__invoice strong,
.payment-confirm-modal__amount strong,
.payment-confirm-modal__card strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.payment-confirm-modal__amount strong {
  color: var(--color-forest);
  font-size: 1.25rem;
}

.payment-confirm-modal__card {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-confirm-modal__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-sand);
}

.payment-confirm-modal__actions .btn {
  flex: 1;
  justify-content: center;
}

.payment-confirm-modal__actions .btn--primary {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.payment-confirm-modal__actions .btn--primary svg {
  flex-shrink: 0;
}

.payment-confirm-modal__error {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(193, 82, 75, 0.1);
  border: 1px solid rgba(193, 82, 75, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: 0.875rem;
  text-align: center;
}

/* Spinner for loading state */
.payment-confirm-modal .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

/* Mobile adjustments for payment modal */
@media (max-width: 480px) {
  .payment-confirm-modal__content {
    max-width: 100%;
    margin: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .payment-confirm-modal__body {
    padding: var(--space-lg);
  }

  .payment-confirm-modal__actions {
    flex-direction: column;
  }
}

/* =====================================================
   RESPONSIVE: Tablet (1024px and below)
   ===================================================== */

@media (max-width: 1024px) {
  .app-container {
    max-width: 100%;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 300;
    box-shadow: none;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
    z-index: 290;
  }

  .sidebar-overlay.active {
    pointer-events: auto;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    padding-top: var(--header-height);
  }

  .content-wrapper {
    padding: var(--space-lg);
  }
}

/* =====================================================
   RESPONSIVE: Mobile (768px and below)
   ===================================================== */

@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  .content-wrapper {
    padding: var(--space-md);
  }

  .booking-tabs {
    padding: var(--space-sm);
    gap: var(--space-xs);
  }

  .booking-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
  }

  .booking-tab svg {
    display: none;
  }

  /* Adjust cards and form layouts */
  .card {
    padding: var(--space-md);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Dashboard grid adjustments */
  .dashboard-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   RESPONSIVE: Small Mobile (480px and below)
   ===================================================== */

@media (max-width: 480px) {
  .sidebar__logo-text {
    font-size: 1rem;
  }

  .nav-item {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }

  .nav-item__booking-date {
    font-size: 0.625rem;
  }

  .mobile-header__title {
    font-size: 1rem;
  }

  /* Stack form buttons */
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ========================================
   Profile Photo Upload
   ======================================== */

.profile-photo-upload {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .profile-photo-upload {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.profile-photo-preview {
    text-align: center;
}

.profile-photo-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d4b5a0;
    background: #f8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7d6b;
}

.profile-photo-placeholder svg {
    width: 60px;
    height: 60px;
}

.profile-photo-dropzone {
    border: 2px dashed #d4b5a0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ffffff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-dropzone:hover,
.profile-photo-dropzone.dragover {
    border-color: #C17B5D;
    background: #f8f5f0;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: #8b7d6b;
}

.dropzone-text {
    font-size: 1rem;
    color: #3d3d3d;
    margin: 0;
    font-weight: 500;
}

.dropzone-link {
    color: #C17B5D;
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-link:hover {
    color: #a86a4f;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: #8b7d6b;
    margin: 0;
}

.dropzone-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #d4b5a0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #C17B5D;
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    color: #3d3d3d;
    margin: 0;
    text-align: center;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.modal-content--large {
    max-width: 700px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #3d3d3d;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #8b7d6b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f8f5f0;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Crop Modal Specific */
.crop-container {
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    overflow: hidden;
    background: #f8f5f0;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   Re-booking Card (Cancelled Bookings)
   ===================================================== */

.rebook-card {
    background: linear-gradient(135deg, #fff5f3 0%, #ffffff 100%);
    border: 2px solid var(--color-error);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.rebook-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(193, 82, 75, 0.05) 0%, rgba(193, 82, 75, 0.02) 100%);
    border-bottom: 1px solid rgba(193, 82, 75, 0.15);
}

.rebook-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-error);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rebook-card__icon svg {
    stroke: currentColor;
}

.rebook-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 0.25rem 0;
}

.rebook-card__subtitle {
    font-size: 0.9375rem;
    color: var(--color-charcoal-light);
    margin: 0;
}

.rebook-card__body {
    padding: var(--space-xl);
}

.rebook-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal-light);
    margin: 0 0 var(--space-lg) 0;
}

.btn--rebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rebook-card__result {
    margin: var(--space-xl);
    margin-top: 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.rebook-card__result svg {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
}

.rebook-card__result p {
    margin: 0.25rem 0;
}

.rebook-card__result ul {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 0 0;
}

.rebook-card__result ul li {
    padding: 0.25rem 0;
}

.rebook-card__result--success {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1) 0%, rgba(74, 124, 89, 0.05) 100%);
    border: 1px solid rgba(74, 124, 89, 0.3);
    color: var(--color-success);
}

.rebook-card__result--success svg {
    stroke: var(--color-success);
}

.rebook-card__result--error {
    background: linear-gradient(135deg, rgba(193, 82, 75, 0.1) 0%, rgba(193, 82, 75, 0.05) 100%);
    border: 1px solid rgba(193, 82, 75, 0.3);
    color: var(--color-error);
}

.rebook-card__result--error svg {
    stroke: var(--color-error);
}

/* KEN | v126 - Payment Required Card (standby bookings) */
.payment-required-card {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 2px solid var(--color-terracotta);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.payment-required-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(186, 117, 88, 0.1) 0%, rgba(186, 117, 88, 0.05) 100%);
    border-bottom: 1px solid rgba(186, 117, 88, 0.2);
}

.payment-required-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-terracotta);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-required-card__icon svg {
    stroke: currentColor;
}

.payment-required-card__timer {
    flex: 1;
    text-align: right;
}

.payment-required-card__timer .timer-display {
    display: inline-block;
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono, 'SF Mono', Monaco, 'Courier New', monospace);
}

.payment-required-card__timer .timer-display__value {
    font-size: 1.75rem;
    font-weight: 600;
}

.payment-required-card__timer .timer-display--warning {
    background: var(--color-warning);
}

.payment-required-card__timer .timer-display--urgent {
    background: var(--color-error);
    animation: pulse-urgent 1s ease-in-out infinite;
}

.payment-required-card__timer .timer-display__label {
    font-size: 0.8125rem;
    color: var(--color-charcoal-light);
    margin: 0.5rem 0 0 0;
}

.payment-required-card__body {
    padding: var(--space-xl);
    text-align: center;
}

.payment-required-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 0.5rem 0;
}

.payment-required-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal-light);
    margin: 0 0 var(--space-lg) 0;
}

.payment-required-card__body .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

@media (max-width: 768px) {
    .rebook-card__header {
        padding: var(--space-lg);
    }

    .rebook-card__body {
        padding: var(--space-lg);
    }

    .rebook-card__result {
        margin: var(--space-lg);
        margin-top: 0;
    }

    /* KEN | v126 - Payment Required Card mobile */
    .payment-required-card__header {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .payment-required-card__timer {
        text-align: center;
    }

    .payment-required-card__body {
        padding: var(--space-lg);
    }
}
