
  :root {
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #fff;
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --secondary-color: #e0e0e0;
    --secondary-hover: #bdbdbd;
    --border-color: #ddd;
    --error-color: #d32f2f;
    --success-color: #388e3c;

    /* Typographic Design Tokens */
    --font-2xs: 0.72rem;
    --font-xs:  0.78rem;
    --font-sm:  0.85rem;
    --font-base: 0.95rem;
    --font-md:  1.10rem;
    --font-lg:  1.30rem;
    --font-xl:  1.60rem;
    --font-2xl: 2.20rem;
  }

  /* Night Mode Overrides */
  [data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --primary-color: #4caf50;
    --primary-hover: #388e3c;
    --secondary-color: #333;
    --secondary-hover: #444;
    --border-color: #444;
  }

  * { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
  
  body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }

  .navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo { font-size: 1.2rem; font-weight: bold; cursor: pointer; }
  
  .nav-links { display: flex; gap: 10px; align-items: center; }

  .container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .page { display: none; }
  .page.active { display: block; animation: fadeIn 0.3s ease-in; }

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

  .hidden { display: none !important; }

  /* Buttons */
  button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
  }
  .btn-primary { background-color: var(--primary-color); color: white; }
  .btn-primary:hover { background-color: var(--primary-hover); }
  .btn-secondary { background-color: var(--secondary-color); color: var(--text-color); }
  .btn-secondary:hover { background-color: var(--secondary-hover); }
  .btn-large { padding: 1rem 2rem; font-size: 1.2rem; }
  .btn-block { width: 100%; display: block; margin-top: 1rem; }
  .btn-back { background: none; color: var(--text-color); padding: 0.5rem 0; margin-bottom: 1rem; font-weight: normal; text-decoration: underline; }
  .btn-icon { background: none; font-size: 1.2rem; padding: 0.5rem; }

  /* Cards */
  .card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  /* Grid Layouts */
  .facilities-grid, .slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  /* Slots */
  .slot-card {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    background-color: var(--card-bg);
    cursor: pointer;
  }
  .slot-card.available:hover { border-color: var(--primary-color); }
  .slot-card.selected { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
  .slot-card.booked { opacity: 0.5; cursor: not-allowed; background-color: var(--secondary-color); color: var(--text-color); }

  /* Forms */
  input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], textarea, .form-control {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
  }

  .qr-placeholder {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    border-radius: 8px;
  }

  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323232;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
  }

  /* Modals */
  .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
  }
  .modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 90%; max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: var(--text-color);
  }
  .modal-actions {
    display: flex; justify-content: flex-end; gap: 10px; margin-top: 1.5rem;
  }

  /* My Bookings Subtabs */
  .my-bookings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 2px 14px 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .my-bookings-tabs::-webkit-scrollbar {
    display: none;
  }
  .my-booking-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--paddle-text-muted, #94a3b8);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .my-booking-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }
  .my-booking-tab-btn.active {
    background: var(--paddle-accent, #c6e014) !important;
    color: #0b202d !important;
    border-color: var(--paddle-accent, #c6e014) !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(198, 224, 20, 0.25);
  }
  .my-booking-tab-btn.active .tab-badge {
    background: #0b202d;
    color: var(--paddle-accent, #c6e014);
  }
  .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }
  .tab-badge.badge-warning {
    background: #f59e0b;
    color: #000000;
  }
  .tab-badge.badge-info {
    background: #3b82f6;
    color: #ffffff;
  }
  .tab-badge.badge-success {
    background: #10b981;
    color: #ffffff;
  }
  .tab-badge.badge-danger {
    background: #ef4444;
    color: #ffffff;
  }

  /* Admin Hero & Stat Cards */
  .hero-stat-card {
    background: var(--card-bg);
    border: 1.5px solid var(--primary-color) !important;
    border-radius: 16px !important;
    padding: 1.5rem 1.8rem !important;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .stat-card-interactive {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .stat-card-interactive:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-color: var(--primary-color) !important;
  }

  /* Airbnb Calendar Modal */
  .airbnb-modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px !important;
    width: 95%;
    max-width: 680px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
  }
  .airbnb-cal-nav-btn {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  .airbnb-cal-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
  }
  .airbnb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 12px;
  }
  .airbnb-cal-day-name {
    text-align: center;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--paddle-text-muted, #718096);
    padding: 8px 0;
    text-transform: uppercase;
  }
  .airbnb-cal-day {
    aspect-ratio: 1 / 1;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    user-select: none;
    background: transparent;
  }
  .airbnb-cal-day:hover:not(.empty) {
    background: rgba(128, 128, 128, 0.15);
    border-color: var(--border-color);
  }
  .airbnb-cal-day.empty {
    cursor: default;
    background: transparent !important;
  }
  .airbnb-cal-day.today {
    border: 2px solid #3b82f6 !important;
  }
  .airbnb-cal-day.has-active {
    background: rgba(46, 125, 50, 0.18) !important;
    border: 1.5px solid var(--primary-color) !important;
    font-weight: 700;
  }
  .airbnb-cal-day.has-past {
    background: rgba(140, 150, 160, 0.12) !important;
    opacity: 0.75;
  }
  .airbnb-cal-day.has-pending {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1.5px solid #f59e0b !important;
  }
  .airbnb-cal-day.selected {
    box-shadow: 0 0 0 3px var(--primary-color) !important;
    font-weight: 800;
  }
  .airbnb-cal-day-num {
    font-size: 0.95rem;
    line-height: 1;
  }
  .airbnb-cal-badges {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    align-items: center;
    justify-content: center;
  }
  .airbnb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }
  .airbnb-dot-active { background-color: var(--primary-color); }
  .airbnb-dot-past { background-color: #94a3b8; }
  .airbnb-dot-pending { background-color: #f59e0b; }
  
  .airbnb-booking-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  .btn-whatsapp-pill {
    background: #25D366;
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
  }
  .btn-whatsapp-pill:hover {
    opacity: 0.9;
  }

