/* 
  Lumina Resort - Premium Styling System
  Designed with absolute luxury: Dark glassmorphism, golden gradients, and premium typography.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  /* Color System */
  --bg-primary: #070a13;
  --bg-secondary: #0c1222;
  --bg-glass: rgba(15, 22, 42, 0.65);
  --bg-glass-heavy: rgba(10, 15, 30, 0.9);
  --border-glass: rgba(212, 175, 55, 0.15);
  --border-glass-hover: rgba(212, 175, 55, 0.4);
  
  --bg-header: rgba(7, 10, 19, 0.85);
  --border-header: rgba(255, 255, 255, 0.05);
  
  --gold-primary: #d4af37;
  --gold-hover: #f3e5ab;
  --gold-dark: #aa8410;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8410 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  --font-prompt: 'Prompt', 'Inter', sans-serif;
  
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 10px;
  
  --transition-smooth: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exquisite Light Theme Overrides */
body.light-theme {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);
  --border-glass: rgba(212, 175, 55, 0.2);
  --border-glass-hover: rgba(212, 175, 55, 0.5);
  
  --bg-header: rgba(255, 255, 255, 0.85);
  --border-header: rgba(0, 0, 0, 0.06);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.01);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-secondary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased; /* Stripe subpixel antialiasing smoothing */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* GPU Hardware-Accelerated Fixed Background for buttery-smooth stutter-free scrolling */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  transform: translate3d(0, 0, 0); /* Force GPU Layer */
  will-change: transform;
}

/* Tablet/touch scrolling optimization.
   Touch devices repaint fixed glass layers aggressively, so use simpler surfaces there. */
@media (hover: none), (pointer: coarse), (max-width: 1180px) {
  html {
    scroll-behavior: auto;
  }

  body {
    overscroll-behavior-y: auto;
  }

  body::before {
    position: absolute;
    height: 100%;
    min-height: 100vh;
    transform: none;
    will-change: auto;
  }

  .btn-action, .btn-add-room, .pagination-btn, .glass-panel,
  .table-container tr, .modal-container, .badge-status,
  #customer-view, #my-bookings-view, #admin-view, #room-detail-view {
    transform: none;
    backface-visibility: visible;
    perspective: none;
    will-change: auto;
  }

  .glass-panel,
  header,
  .modal-overlay,
  .mobile-bottom-nav,
  .mobile-sidebar,
  .mobile-sidebar-overlay,
  .room-slide-arrow,
  .lumina-toast {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .glass-panel {
    background: rgba(10, 15, 30, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  }

  header,
  .mobile-bottom-nav,
  .mobile-sidebar {
    background: rgba(7, 10, 19, 0.96);
  }

  .room-image,
  .room-card:hover .room-image,
  .btn-book,
  .btn-search,
  .btn-admin-toggle,
  .btn-add-room,
  .btn-action,
  .mobile-nav-icon {
    transform: none !important;
    filter: none !important;
  }

  .room-image,
  .glass-panel,
  .btn-book,
  .btn-search,
  .btn-admin-toggle,
  .btn-add-room,
  .btn-action,
  .filter-select,
  .search-input,
  .form-input {
    transition-duration: 0.12s !important;
  }

  #customer-view, #my-bookings-view, #admin-view, #room-detail-view,
  .hero-content,
  .modal-container {
    animation: none !important;
  }
}

/* Stripe-Grade GPU hardware compositing layer overrides for ultra-smooth UI transitions */
.btn-action, .btn-add-room, .pagination-btn, .glass-panel, .table-container tr, .modal-container, .badge-status {
  transform: translateZ(0); /* Promotes elements to dedicated GPU graphics layer */
  backface-visibility: hidden;
  perspective: 1000px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Smooth Scroll & Scrollbar Customization */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px; /* Horizontal scrollbars */
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
  transition: background var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-hover);
}

/* Utility Classes */
.text-gold {
  color: var(--gold-primary);
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8410 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-header);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.logo span {
  font-size: 2.2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.btn-admin-toggle {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-admin-toggle:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: var(--gold-glow);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(7, 10, 19, 0.4), rgba(7, 10, 19, 0.9)), 
              url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Search Bar Panel */
.search-container {
  max-width: 1100px;
  margin: -4rem auto 4rem auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  font-weight: 600;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.btn-search {
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

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

/* Main Booking View */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
}

.filter-controls {
  display: flex;
  gap: 1rem;
}

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-select:focus {
  border-color: var(--gold-primary);
}

/* Room Grid & Cards */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.room-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-image {
  transform: scale(1.1);
}

.room-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.room-price-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(7, 10, 19, 0.9), transparent);
  padding: 1rem 1.5rem;
  width: 100%;
}

.room-price {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-primary);
}

.room-price span {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-weight: 400;
}

.room-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-type {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.room-features {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.room-feature {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.room-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-book {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.room-card:hover .btn-book {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-glass-hover);
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.6rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 2rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Booking Form */
.booking-summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  font-weight: 500;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.06);
}

select option {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.btn-submit-booking {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}

/* Stripe Checkout Screen Mockup */
.stripe-modal-container {
  position: relative; /* Anchor for absolute processing overlay */
  width: 100%;
  max-width: 850px;
  background: #f8f9fa; /* Light mode theme matching authentic Stripe Checkout */
  color: #30313d;
  border-radius: 12px;
  max-height: 92vh; /* Limit height on all screen types */
  overflow-y: auto; /* Enable scrolling for overflow content */
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 768px) {
  .stripe-modal-container {
    grid-template-columns: 1fr !important;
  }
  .stripe-sidebar {
    padding: 1.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid #e6e8eb !important;
  }
  .stripe-main {
    padding: 1.75rem !important;
  }
}

/* Height-based media query for smaller screens (e.g., 14-inch laptops or small heights) */
@media (max-height: 800px) {
  .stripe-sidebar {
    padding: 2rem 2.25rem !important;
  }
  .stripe-main {
    padding: 2rem 2.25rem !important;
  }
  .stripe-brand {
    margin-bottom: 1.25rem !important;
  }
  .stripe-price-display {
    font-size: 2rem !important;
  }
  .stripe-header-form {
    margin-bottom: 1rem !important;
  }
  .stripe-form-group {
    margin-bottom: 1rem !important;
  }
  .stripe-btn-pay {
    margin-top: 1.25rem !important;
    padding: 0.8rem !important;
  }
  .stripe-footer {
    margin-top: 1.25rem !important;
  }
  .stripe-method-selector {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  .stripe-method-tab {
    padding: 0.5rem !important;
  }
  .stripe-qr-wrapper {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  #stripe-promptpay-qr-img {
    width: 140px !important;
    height: 140px !important;
  }
}

@media (max-height: 680px) {
  .stripe-sidebar {
    padding: 1.5rem 1.75rem !important;
  }
  .stripe-main {
    padding: 1.5rem 1.75rem !important;
  }
  .stripe-brand {
    margin-bottom: 0.75rem !important;
  }
  .stripe-price-display {
    font-size: 1.75rem !important;
  }
  .stripe-item-name {
    margin-bottom: 0.25rem !important;
  }
  .stripe-header-form {
    margin-bottom: 0.75rem !important;
  }
  .stripe-form-group {
    margin-bottom: 0.75rem !important;
  }
  .stripe-btn-pay {
    margin-top: 0.75rem !important;
    padding: 0.75rem !important;
  }
  .stripe-footer {
    margin-top: 1rem !important;
  }
  .stripe-method-selector {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
  }
  .stripe-method-tab {
    padding: 0.4rem !important;
    font-size: 0.85rem !important;
  }
  .stripe-qr-wrapper {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  #stripe-promptpay-qr-img {
    width: 120px !important;
    height: 120px !important;
  }
}


@media (max-width: 480px) {
  .stripe-sidebar {
    padding: 1.25rem !important;
  }
  .stripe-main {
    padding: 1.25rem !important;
  }
  .stripe-method-selector {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  .stripe-price-display {
    font-size: 2rem !important;
  }
  .stripe-brand {
    margin-bottom: 1rem !important;
  }
  .stripe-field {
    padding: 0.65rem !important;
    font-size: 0.9rem !important;
  }
  .stripe-btn-pay {
    padding: 0.8rem !important;
    font-size: 0.95rem !important;
    margin-top: 1rem !important;
  }
}

.stripe-sidebar {
  background: #ffffff;
  padding: 3rem;
  border-right: 1px solid #e6e8eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stripe-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4f566b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.stripe-amount-due {
  color: #a3acbf;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.stripe-price-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0.5rem 0;
}

.stripe-item-name {
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 0.5rem;
}

.stripe-item-desc {
  font-size: 0.85rem;
  color: #4f566b;
  line-height: 1.5;
}

.stripe-main {
  background: #f8f9fa;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stripe-header-form {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 1.5rem;
}

.stripe-form-group {
  margin-bottom: 1.25rem;
}

.stripe-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4f566b;
  margin-bottom: 0.4rem;
}

.stripe-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e6e8eb;
  background: #ffffff;
  border-radius: 5px;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 1px 1px rgba(0,0,0,0.03), 0 3px 6px rgba(0,0,0,0.02);
  transition: border-color 0.15s ease;
  color: #30313d;
}

.stripe-field:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.stripe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stripe-btn-pay {
  width: 100%;
  padding: 0.9rem;
  background: #635bff;
  color: #ffffff !important;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 4px 12px rgba(99,91,255,0.3);
  transition: all 0.2s ease;
}

.stripe-btn-pay:hover {
  background: #0a2540;
  transform: translateY(-1px);
}

.stripe-btn-cancel {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: #4f566b !important;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
  text-align: center;
}

.stripe-btn-cancel:hover {
  background: #f8f9fa;
  border-color: #a3acbf;
  color: #0a2540 !important;
}

.stripe-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #a3acbf;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Stripe Checkout Screen Processing Overlay */
.stripe-processing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
  display: none;
}

.stripe-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 91, 255, 0.1);
  border-left-color: #635bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.stripe-success-checkmark {
  width: 80px;
  height: 80px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Success landing screen in dashboard */
.success-screen {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.success-screen h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.success-screen p {
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 2.5rem auto;
}

.btn-success-action {
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Admin Dashboard Section Styles */
.admin-container {
  display: none; /* Toggled via JS */
  animation: fadeIn 0.6s ease;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.admin-tab.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Admin Stats Panel */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.stat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Admin Panels (Tables & Forms) */
.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.panel-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-add-room {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

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

/* Premium Tables & Smooth UX Scrollbar */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Buttery-smooth kinetic momentum scroll on iOS/mobile devices */
}

/* GPU Render Optimization for Tablets and Computers (Bypasses heavy backdrop-filter calculations) */
@media (min-width: 768px) {
  .table-container.glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-secondary) !important; /* Premium opaque background */
    contain: paint; /* CSS Paint Containment isolates rendering boundaries */
  }
}


/* Custom interactive premium scrollbar for table container */
.table-container::-webkit-scrollbar {
  height: 7px; /* Elegant slim horizontal scrollbar height */
  width: 7px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2); /* Translucent gold subtle indicator */
  border-radius: var(--radius-sm);
  transition: background var(--transition-smooth);
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.85); /* Highly visible gold on hover/interaction */
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 1250px; /* Enforces horizontal scrollbar on smaller viewports */
}

.table-container th, .table-container td {
  padding: 0.75rem 1rem;
  font-family: var(--font-prompt) !important;
  white-space: nowrap !important; /* Force everything on a single line */
  vertical-align: middle;
}

.table-container th {
  background: var(--bg-secondary);
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.table-container tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.table-container tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-container td {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.td-secondary {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
}

.badge-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.badge-status.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-status.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-status.maintenance {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-action:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-action.bg-gold-gradient {
  background: var(--gold-gradient) !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-action.bg-gold-gradient:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  filter: brightness(1.15) !important;
  color: #000000 !important;
}

.btn-action.btn-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

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

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

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes scaleBounce {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .nav-menu {
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .search-container {
    margin-top: -2rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filter-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* Room Amenity Tags (VikBooking Pro upgrades) */
.room-amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 25px;
}

.amenity-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  filter: grayscale(100%);
  transition: all 0.2s ease;
}

.amenity-tag:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

body.light-theme .amenity-tag {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.light-theme .amenity-tag:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #334155;
}

/* ================= Real-Time Availability Alerts ================= */
.availability-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.availability-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.availability-alert.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ff6b6b;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

/* Blocked Dates List styling */
.blocked-date-item {
  animation: fadeIn 0.3s ease;
}

.blocked-date-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ================= Resort Scheduler Timeline Calendar CSS ================= */
.scheduler-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.scheduler-table th, .scheduler-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  white-space: nowrap;
}

.scheduler-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
}

.scheduler-table th.scheduler-room-col-header,
.scheduler-table td.scheduler-room-col {
  text-align: left;
  padding-left: 1.25rem;
  position: sticky;
  left: 0;
  background: #0f1424; /* Solid backing to prevent horizontal overlap during scrolling */
  z-index: 5;
  width: 180px;
  min-width: 180px;
  max-width: 220px;
  border-right: 2px solid var(--border-glass-hover);
  color: var(--gold-primary);
  font-weight: 500;
}

.scheduler-day-header {
  min-width: 35px;
  width: 35px;
}

.scheduler-day-header.weekend {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-primary);
}

.scheduler-cell-empty {
  opacity: 0.3;
}

.scheduler-cell-booked {
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--gold-glow);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.scheduler-cell-booked:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  z-index: 9999 !important;
}



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

.lumina-toast.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* ================= Mini Monthly Calendar Grid inside Booking Modal ================= */
.mini-calendar-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.mini-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.mini-calendar-title {
  font-weight: 600;
  color: var(--gold-primary);
}

.mini-calendar-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.mini-calendar-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.mini-calendar-day-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0;
  text-transform: uppercase;
}

.mini-calendar-cell {
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.mini-calendar-cell.empty {
  opacity: 0.1;
}

.mini-calendar-cell.available {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
}

.mini-calendar-cell.available:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.mini-calendar-cell.booked {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: bold;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
}

.mini-calendar-cell.past {
  color: var(--text-muted);
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.mini-calendar-cell.selected-checkin {
  background: var(--gold-gradient) !important;
  color: var(--bg-primary) !important;
  font-weight: bold;
  border-radius: 4px 0 0 4px !important;
  box-shadow: var(--gold-glow);
}

.mini-calendar-cell.selected-checkout {
  background: var(--gold-gradient) !important;
  color: var(--bg-primary) !important;
  font-weight: bold;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: var(--gold-glow);
}

.mini-calendar-cell.selected-checkin.selected-checkout {
  border-radius: 4px !important;
}

.mini-calendar-cell.selected-range {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--gold-primary) !important;
  border-radius: 0 !important;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.mini-calendar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  justify-content: center;
}

.mini-calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ================= Premium Theme Switcher & Light Theme Refinements ================= */

.btn-theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.btn-theme-toggle:hover {
  border-color: var(--border-glass-hover);
  color: var(--gold-hover);
  transform: rotate(20deg) scale(1.05);
  box-shadow: var(--gold-glow);
}

.premium-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

/* Specific Light Theme Elements Overrides */

body.light-theme {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
}

body.light-theme .premium-form-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .form-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .form-input:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
}

body.light-theme .scheduler-table th.scheduler-room-col-header,
body.light-theme .scheduler-table td.scheduler-room-col {
  background: #ffffff;
}

body.light-theme .mini-calendar-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .mini-calendar-cell.available {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

body.light-theme .mini-calendar-cell.available:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

body.light-theme .mini-calendar-cell.past {
  color: var(--text-muted);
  opacity: 0.35;
  background: transparent;
  border-color: transparent;
}

body.light-theme .booking-summary-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.light-theme .table-container {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme th {
  background: #f1f5f9;
}

body.light-theme tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Ensure smooth scrolling and transitions */
html {
  scroll-behavior: smooth;
}

/* --- EXTRA FLUID TRANSITIONS FOR THEME CHANGE --- */
body, header, .glass-panel, .form-input, .search-input, .filter-select, 
th, td, tr, .stat-card, .table-container, .mini-calendar-container, 
.premium-form-card, .booking-summary-card, .scheduler-room-col, 
.scheduler-room-col-header, .btn-theme-toggle, .btn-admin-toggle, 
.btn-book, .btn-search, .logo, .nav-link {
  transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (hover: none), (pointer: coarse), (max-width: 1180px) {
  body, header, .glass-panel, .form-input, .search-input, .filter-select,
  th, td, tr, .stat-card, .table-container, .mini-calendar-container,
  .premium-form-card, .booking-summary-card, .scheduler-room-col,
  .scheduler-room-col-header, .btn-theme-toggle, .btn-admin-toggle,
  .btn-book, .btn-search, .logo, .nav-link {
    transition-property: background, background-color, color, border-color, opacity;
    transition-duration: 0.12s;
    transition-timing-function: ease-out;
  }
}

/* --- MOBILE RESPONSIVENESS AND FLUIDITY POLISHING --- */
@media (max-width: 576px) {
  .hero {
    height: auto;
    padding: 6rem 1rem 4rem 1rem;
    min-height: 380px;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
  }
  .search-container {
    margin: -1.5rem 1rem 2.5rem 1rem !important;
    padding: 1.5rem !important;
  }
  .search-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .main-content {
    padding: 0 1rem 4rem 1rem !important;
  }
  .section-title h2 {
    font-size: 1.8rem !important;
  }
  .room-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .room-card {
    border-radius: var(--radius-md) !important;
  }
  .room-image-wrapper {
    height: 200px !important;
  }
  .modal-overlay {
    padding: 0.25rem !important;
  }
  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    max-height: 98vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .modal-header {
    padding: 0.75rem 1rem !important;
  }
  .modal-title {
    font-size: 1.15rem !important;
  }
  .modal-body {
    padding: 1rem !important;
  }
  .form-group {
    margin-bottom: 0.75rem !important;
  }
  .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  .form-input {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    height: auto !important;
  }
  .booking-summary-card {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  .summary-row {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  .summary-row.total {
    font-size: 1rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
  .mini-calendar-container {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }
  .mini-calendar-cell {
    font-size: 0.7rem !important;
    height: 28px !important;
    line-height: 28px !important;
  }
  .admin-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
  }
  .admin-tabs {
    flex-direction: column !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.5rem !important;
  }
  .admin-tab {
    text-align: center !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  .panel-header-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .btn-add-room {
    justify-content: center !important;
  }
  th, td {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
  .admin-header h2 {
    font-size: 1.8rem !important;
    text-align: center;
  }
  .panel-header-actions h3 {
    font-size: 1.3rem !important;
    text-align: center;
  }
  .calendar-controls {
    justify-content: center;
    width: 100%;
    gap: 0.5rem !important;
  }
  .form-row-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Scrollbar Customization for Light Mode */
body.light-theme::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.light-theme::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border: 2px solid #f1f5f9;
}

/* ================= PREMIUM USER AUTHENTICATION & MEMBER DROPDOWN STYLES ================= */

.nav-profile-dropdown {
  position: relative;
  list-style: none;
}

.btn-profile-dropdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-profile-dropdown:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.dropdown-arrow {
  font-size: 0.6rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 130%;
  width: 250px;
  background: var(--bg-glass-heavy) !important;
  border: 1px solid var(--border-glass-hover) !important;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-premium), var(--gold-glow);
  z-index: 1000;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-dropdown-content.active {
  display: block;
  transform: translateY(0);
  animation: slideUpFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
}

.dropdown-user-info strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.dropdown-user-info span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.badge-role {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-role.admin {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-role.member {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.dropdown-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0;
}

.dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding-left: 1rem;
}

.dropdown-item.logout-item {
  color: var(--danger);
}

.dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

/* Modal Inputs Styling Adjustments */
.modal-overlay select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23d4af37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10 center;
  background-size: 20px;
  padding-right: 2.5rem;
}

/* Light Theme overrides for Auth dropdown elements */
body.light-theme .btn-profile-dropdown {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

body.light-theme .btn-profile-dropdown:hover {
  background: rgba(212, 175, 55, 0.08);
}

body.light-theme .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.05);
}

body.light-theme .dropdown-divider {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* My Reservations Navigation Icon & Notification Badge Styles */
.nav-link {
  position: relative;
}
.nav-icon {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
  display: inline-block;
  cursor: pointer;
}
.nav-link:hover .nav-icon {
  transform: scale(1.1);
}
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: var(--danger, #ef4444);
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  border: 1.5px solid var(--bg-primary);
  animation: pulse-badge 1.5s infinite alternate;
}

@keyframes pulse-badge {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #ef4444;
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 10px #ef4444;
  }
}

/* Premium Glassmorphic Pagination Buttons */
.pagination-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-prompt) !important;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--gold-gradient) !important;
  color: #0b0f1e !important;
  border-color: var(--gold-primary) !important;
  font-weight: 600;
  box-shadow: var(--gold-glow);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Expand admin dashboard view to full width on wide displays */
@media (min-width: 1400px) {
  #admin-view.main-content {
    max-width: 96% !important;
  }
}

/* WebApp-Grade Instant View/Page Switcher Transitions */
#customer-view, #my-bookings-view, #admin-view, #room-detail-view {
  animation: webapp-view-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes webapp-view-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Bypass 300ms mobile/tablet click delay & remove ugly browser tap highlight boxes */
a, button, select, input, textarea, [onclick], .admin-tabs span, .pagination-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent accidental text highlight selection during rapid tap/click cycles */
.nav-link, .admin-tabs span, button, .pagination-btn, .btn-action, .btn-dropdown-admin {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ================= MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-header);
  display: none; /* Hidden by default on desktop/tablet */
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-nav-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.mobile-nav-item:active .mobile-nav-icon {
  transform: scale(0.85);
}

.mobile-nav-item.active {
  color: var(--gold-primary);
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.mobile-nav-item.active .mobile-nav-label {
  font-weight: 600;
}

/* Red Dot Pulse Badge for Mobile Bookings */
.mobile-nav-item .nav-badge {
  position: absolute;
  top: -1px;
  right: -5px;
  width: 8px;
  height: 8px;
  background-color: var(--danger, #ef4444);
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  border: 1.5px solid var(--bg-header);
  animation: pulse-badge 1.5s infinite alternate;
}

/* ================= HAMBURGER MENU & MOBILE SIDEBAR ================= */
.btn-hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  outline: none;
}

.btn-hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Sidebar Drawer Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Sidebar Drawer */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -290px;
  width: 290px;
  height: 100vh;
  background: var(--bg-header);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-header);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-header);
  padding-bottom: 1rem;
}

.mobile-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
  transition: color 0.2s;
}

.mobile-sidebar-close:hover {
  color: var(--gold-primary);
}

.mobile-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.mobile-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.mobile-sidebar-link:hover,
.mobile-sidebar-link:active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-primary);
}

.mobile-sidebar-link.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  font-weight: 600;
  border-left: 3px solid var(--gold-primary);
  border-radius: 4px 8px 8px 4px;
  padding-left: calc(1rem - 3px);
}

.mobile-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-header);
  padding-top: 1.5rem;
}

/* Mobile Overrides (Portrait Viewports) */
@media (max-width: 576px) {
  /* Show Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Add body padding-bottom to prevent content overlapping */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  /* Condense Top Header to a Single Slim Line */
  header {
    height: auto !important;
  }
  
  .nav-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.6rem 1rem !important;
    gap: 0 !important;
    text-align: left !important;
  }
  
  nav {
    margin-left: auto;
    margin-right: 1.25rem;
  }
  
  .btn-hamburger {
    display: flex !important;
  }
  
  .logo {
    font-size: 1.35rem !important;
  }
  
  .logo span {
    font-size: 1.5rem !important;
  }
  
  /* Hide standard header navigation elements */
  #nav-home,
  #nav-bookings,
  #nav-auth-loggedout,
  #nav-auth-loggedin {
    display: none !important;
  }
  
  .nav-menu {
    gap: 0 !important;
    width: auto !important;
    flex-wrap: nowrap !important;
  }
  
  .nav-menu > li {
    display: flex;
    align-items: center;
  }
  
  /* Shrink hero margins and sizes slightly */
  .hero-title {
    font-size: 2.1rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.8rem !important;
  }
  
  .search-container {
    margin-top: -1rem !important;
  }
}
