/**
 * Chula's Restaurant Web App Styles
 * Matching iOS App Design Exactly
 */

/* ==========================================================================
   CUSTOM FONT - Atrament Bold
   ========================================================================== */

@font-face {
  font-family: 'Atrament';
  src: url('/fonts/atrament-bold.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES - Exact Colors from Swift ColorScheme.swift
   ========================================================================== */

:root {
  /* Primary Brand Colors (from Chula's Style Guide) */
  --color-chulas-red: rgb(240, 89, 96);        /* #F05960 */
  --color-chulas-purple: rgb(112, 96, 169);    /* #7060A9 */
  --color-chulas-lime: rgb(214, 222, 35);      /* #D6DE23 */
  --color-chulas-orange: rgb(248, 160, 84);    /* #F8A054 */
  --color-chulas-tan: rgb(255, 223, 138);      /* #FFDF8A */
  --color-chulas-teal: rgb(0, 177, 154);       /* #00B19A */
  --color-chulas-black: rgb(35, 31, 32);       /* #231F20 */
  --color-chulas-white: #FFFFFF;

  /* Background Colors */
  --color-background: rgb(35, 31, 32);
  --color-secondary-background: rgb(45, 41, 42);
  --color-tertiary-background: rgb(55, 51, 52);

  /* Card & Input Backgrounds */
  --color-card-background: rgb(50, 46, 47);
  --color-input-background: rgb(60, 56, 57);

  /* Text Colors */
  --color-text: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);

  /* Shadow */
  --shadow-color: rgba(0, 0, 0, 0.4);

  /* Layout Constants (from HomeLayout enum) */
  --horizontal-margin: 16px;
  --section-spacing: 20px;
  --card-padding: 16px;
  --card-radius: 14px;
  --card-spacing: 12px;
  --banner-height: 132px;
  --logo-height: 120px;
  --tab-bar-height: 80px;

  /* Font Family */
  --font-family: 'Atrament', sans-serif;

  /* Safe Area */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Ensure all elements use Atrament font */
*,
*::before,
*::after {
  font-family: 'Atrament', sans-serif !important;
}

/* Placeholders */
::placeholder {
  font-family: 'Atrament', sans-serif !important;
}

::-webkit-input-placeholder {
  font-family: 'Atrament', sans-serif !important;
}

::-moz-placeholder {
  font-family: 'Atrament', sans-serif !important;
}

:-ms-input-placeholder {
  font-family: 'Atrament', sans-serif !important;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* ==========================================================================
   APP LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Main content area with textured background */
.main-content-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--banner-height) + 60px);
}

/* Textured Background Layer */
.textured-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.textured-background .texture-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.textured-background .watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.25;
  pointer-events: none;
}

/* Main Content */
#main-content {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--tab-bar-height);
}

/* ==========================================================================
   LOADING SCREEN (matches Swift LoadingScreen)
   ========================================================================== */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-screen .loading-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.loading-screen .loading-background .texture-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-screen .loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loading-screen .loading-logo {
  width: 200px;
  height: auto;
  animation: loadingPulse 1s ease-in-out infinite alternate;
}

.loading-screen .loading-text {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  margin-top: 15px;
}

@keyframes loadingPulse {
  from {
    opacity: 0.6;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   SPINNER
   ========================================================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-chulas-lime);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

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

/* ==========================================================================
   ROLLING ANNOUNCEMENT BANNER (matches Swift RollingAnnouncementBanner)
   ========================================================================== */

.announcement-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-height);
  overflow: hidden;
  z-index: 5;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.announcement-banner.lime {
  background-color: var(--color-chulas-lime);
}

.announcement-banner.orange {
  background-color: var(--color-chulas-orange);
}

.announcement-banner.purple {
  background-color: var(--color-chulas-purple);
}

.announcement-banner.purple .banner-text {
  color: rgba(255, 255, 255, 0.9);
}

.announcement-banner.red {
  background-color: var(--color-chulas-red);
}

.announcement-banner.red .banner-text {
  color: rgba(255, 255, 255, 0.9);
}

.announcement-banner.teal {
  background-color: var(--color-chulas-teal);
}

.announcement-banner.teal .banner-text {
  color: rgba(255, 255, 255, 0.9);
}

.announcement-banner .banner-text-container {
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.announcement-banner .banner-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-chulas-black);
  white-space: nowrap;
  animation: scrollText 16s linear 0.3s infinite;
  transform: translateZ(0);
  transition: opacity 0.3s ease;
}

@keyframes scrollText {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   HEADER LOGO (overlaps banner by 25%)
   ========================================================================== */

.header-logo {
  position: absolute;
  top: 66px;
  left: 16px;
  z-index: 10;
  height: var(--logo-height);
  width: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Menu button in top right */
.header-menu-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-menu-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-chulas-black);
}

.header-menu-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   CUSTOM TAB BAR (matches Swift CustomTabBar)
   ========================================================================== */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-chulas-black);
  z-index: 100;
}

.tab-bar-border {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
}

.tab-bar-items {
  display: flex;
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.tab-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.15s ease;
}

.tab-bar-item:active {
  transform: scale(0.95);
}

.tab-bar-item .tab-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-bar-item .tab-icon svg {
  width: 100%;
  height: 100%;
}

.tab-bar-item .tab-label {
  font-size: 10px;
  font-family: 'Atrament', sans-serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Tab colors when inactive - gray for dark background */
.tab-bar-item {
  color: rgba(142, 142, 147, 1);
}

/* Tab colors when active (per-tab accent colors from Swift) */
.tab-bar-item.active[data-tab="home"] {
  color: var(--color-chulas-lime);
}

.tab-bar-item.active[data-tab="menu"] {
  color: var(--color-chulas-orange);
}

.tab-bar-item.active[data-tab="rewards"] {
  color: var(--color-chulas-purple);
}

.tab-bar-item.active[data-tab="valet"] {
  color: var(--color-chulas-red);
}

.tab-bar-item.active[data-tab="events"] {
  color: var(--color-chulas-teal);
}

/* ==========================================================================
   GLOBAL MOBILE ENHANCEMENTS
   ========================================================================== */

/* Smooth scrolling for the entire app */
html {
  scroll-behavior: smooth;
}

/* Enable momentum scrolling on iOS */
* {
  -webkit-overflow-scrolling: touch;
}

/* Disable text selection for a more app-like feel */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection in inputs and content areas */
input,
textarea,
.auth-form,
.detail-section p,
.form-control {
  -webkit-user-select: text;
  user-select: text;
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

/* Slide in from right (for detail views) */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide out to right (for going back) */
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Slide in from left (for going back to list) */
@keyframes slideInLeft {
  from {
    transform: translateX(-30%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Fade out */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Main content - no animation to prevent double-fade flicker */
#main-content {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Smooth transitions for all pages - reduced duration to prevent flicker */
.page-home,
.page-menu,
.page-rewards,
.page-valet,
.page-events,
.page-auth {
  animation: fadeIn 0.15s ease-out;
  transform: translateZ(0);
  will-change: opacity;
}

/* ==========================================================================
   MENU DETAIL VIEW
   ========================================================================== */

.page-menu-detail {
  min-height: 100%;
  background: var(--color-chulas-black);
  animation: slideInRight 0.3s ease-out;
}

.detail-header {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-chulas-black);
}

.detail-header h1 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.back-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-chulas-lime);
  font-size: 17px;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.back-button:active {
  opacity: 0.6;
  transform: translateY(-50%) scale(0.95);
}

.back-button svg {
  width: 20px;
  height: 20px;
}

.detail-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('/images/textured_background.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/ChulaFullTextLogo-Primary-W&O.png');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.detail-image {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.detail-image-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.detail-item-name {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  flex: 1;
}

.detail-item-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-chulas-lime);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.detail-content {
  padding: 24px var(--horizontal-margin);
  padding-bottom: 100px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 12px;
}

.detail-section p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.dietary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dietary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  background: var(--color-chulas-orange);
  color: var(--color-text);
}

.dietary-badge.v,
.dietary-badge.vg,
.dietary-badge.gf,
.dietary-badge.df {
  background: var(--color-chulas-orange);
}

.btn-add-order {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: var(--color-chulas-lime);
  color: var(--color-chulas-black);
  cursor: pointer;
  margin-top: 20px;
}

.btn-add-order:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CARDS (matches Swift cardBackground)
   ========================================================================== */

.card {
  background: var(--color-card-background);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: var(--color-chulas-lime);
  color: var(--color-chulas-black);
}

.btn-red {
  background: linear-gradient(135deg, var(--color-chulas-red), rgba(240, 89, 96, 0.85));
  color: var(--color-text);
  box-shadow: 0 4px 8px rgba(240, 89, 96, 0.4);
}

.btn-secondary {
  background: var(--color-input-background);
  color: var(--color-text);
}

.btn-small {
  padding: 8px 16px;
  font-size: 15px;
}

.btn-large {
  padding: 16px 24px;
  font-size: 17px;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */

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

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-input-background);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 17px;
  color: var(--color-text);
  outline: none;
}

.form-control::placeholder {
  color: var(--color-text-tertiary);
}

.form-control:focus {
  box-shadow: 0 0 0 2px var(--color-chulas-lime);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   SECTION HEADER (matches Swift SectionHeaderView)
   ========================================================================== */

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

.section-header h2 {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text);
}

.section-header .view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-chulas-lime);
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   HOME PAGE
   ========================================================================== */

.page-home {
  min-height: 100%;
}

/* Logo spacer (for logo overhang) */
.logo-spacer {
  height: 50px;
}

/* Sign In Banner (matches Swift HomeSignInBanner) */
.sign-in-banner {
  margin: 0 var(--horizontal-margin);
  margin-bottom: var(--section-spacing);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(214, 222, 35, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sign-in-banner:active {
  transform: scale(0.97);
}

.sign-in-banner .accent-bar {
  height: 4px;
  background: linear-gradient(to right, var(--color-chulas-lime), rgba(214, 222, 35, 0.8));
}

.sign-in-banner .banner-content {
  background: var(--color-card-background);
  padding: 20px;
}

.sign-in-banner .banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sign-in-banner .icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(214, 222, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-in-banner .icon-circle .icon {
  font-size: 28px;
  color: var(--color-chulas-lime);
  animation: iconPulse 1.5s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.sign-in-banner .banner-text h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 2px;
}

.sign-in-banner .banner-text p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.sign-in-banner .chevron {
  margin-left: auto;
  font-size: 16px;
  color: var(--color-chulas-lime);
}

.sign-in-banner .benefits-row {
  display: flex;
  gap: 20px;
}

.sign-in-banner .benefit-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.sign-in-banner .benefit-pill .icon {
  font-size: 12px;
  color: var(--color-chulas-lime);
}

.sign-in-banner .benefit-pill span {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* Today's Specials Card (matches Swift HomeSpecialsCard) */
.specials-card {
  margin: 0 var(--horizontal-margin);
  margin-bottom: var(--section-spacing);
  padding: var(--card-padding);
  background: var(--color-card-background);
  border-radius: var(--card-radius);
}

.specials-scroll {
  display: flex;
  gap: var(--card-spacing);
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.specials-scroll::-webkit-scrollbar {
  display: none;
}

/* Special Card (matches Swift SpecialCard) */
.special-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  min-height: 100px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.special-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.special-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.special-card .special-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 50px;
  opacity: 0.35;
}

.special-card .special-image {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

/* Reserve Table Button (matches Swift ReserveTableButton) */
.reserve-table-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 var(--horizontal-margin);
  margin-bottom: var(--section-spacing);
  padding: 16px 20px;
  background: linear-gradient(to right, var(--color-chulas-red), rgba(240, 89, 96, 0.85));
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(240, 89, 96, 0.4);
  transition: transform 0.15s ease;
  width: calc(100% - 32px);
}

.reserve-table-btn:active {
  transform: scale(0.97);
}

.reserve-table-btn .btn-icon {
  font-size: 20px;
  color: var(--color-text);
}

.reserve-table-btn .btn-text {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
}

.reserve-table-btn .btn-chevron {
  margin-left: auto;
  font-size: 14px;
  color: var(--color-text);
}

/* What's Happening Section */
.events-section {
  padding: 0 var(--horizontal-margin);
  padding-bottom: var(--section-spacing);
}

.events-section .section-header {
  margin-bottom: var(--card-spacing);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-spacing);
}

/* Featured Event Card (matches Swift FeaturedEventCard) */
.featured-event-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-color);
}

.featured-event-card .event-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.featured-event-card .event-content {
  padding: 16px;
}

.featured-event-card .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--color-chulas-lime);
  margin-bottom: 8px;
}

.featured-event-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.featured-event-card .event-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-event-card .event-datetime {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Regular Event Card (matches Swift WhatsHappeningEventCard) */
.event-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.event-card .event-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.event-card .event-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.event-card .event-info {
  flex: 1;
  min-width: 0;
}

.event-card .event-info h4 {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.event-card .event-info .event-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.event-card .event-info .event-datetime {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.event-card .chevron {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

/* ==========================================================================
   MENU PAGE
   ========================================================================== */

.page-menu {
  min-height: 100%;
}

/* Category Tabs (matches Swift CategoryTab) */
.category-tabs {
  display: flex;
  gap: 15px;
  padding: 12px 20px;
  background: var(--color-secondary-background);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 10px 20px;
  border-radius: 20px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: bold;
  color: #8E8E93;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease, transform 0.15s ease;
}

.category-tab:active {
  transform: scale(0.95);
}

.category-tab.active {
  background: var(--color-chulas-orange);
  color: var(--color-text);
}

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 20px;
}

/* Menu Item Card (matches Swift MenuItemAPICard) */
.menu-item-card {
  background: var(--color-card-background);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 5px var(--shadow-color);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.menu-item-card:active {
  transform: scale(0.97);
}

.menu-item-card .item-image {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(128, 128, 128, 0.2);
  margin-bottom: 8px;
}

.menu-item-card .item-name {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.3;
  height: 44px;
  overflow: hidden;
  margin-bottom: 8px;
}

.menu-item-card .dietary-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 20px;
}

.dietary-tag {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: bold;
  color: var(--color-text);
}

.dietary-tag.v { background: #22C55E; }
.dietary-tag.gf { background: #3B82F6; }
.dietary-tag.vg { background: #A855F7; }
.dietary-tag.df { background: var(--color-chulas-orange); }

.menu-item-card .item-price {
  font-size: 15px;
  color: var(--color-chulas-lime);
}

/* ==========================================================================
   REWARDS PAGE
   ========================================================================== */

.page-rewards {
  min-height: 100%;
}

/* Rewards Sign-In View */
.rewards-signin-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--horizontal-margin);
  text-align: center;
}

.rewards-signin-view .gift-icon {
  width: 120px;
  height: 120px;
  color: var(--color-chulas-purple);
  margin-bottom: 30px;
}

.rewards-signin-view .gift-icon svg {
  width: 100%;
  height: 100%;
}

.rewards-signin-view .signin-heading {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 12px;
}

.rewards-signin-view .signin-subheading {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.4;
}

.rewards-include-card {
  width: 100%;
  background: rgba(60, 56, 57, 0.8);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.rewards-include-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 20px;
}

.rewards-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-item .benefit-icon {
  font-size: 24px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item .benefit-text {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
}

.btn-signin-rewards {
  width: 100%;
  max-width: 500px;
  padding: 18px 32px;
  background: var(--color-chulas-purple);
  color: var(--color-text);
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-signin-rewards:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Rewards Coming Soon View */
.rewards-coming-soon-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--horizontal-margin);
  text-align: center;
  min-height: 100vh;
  padding-bottom: 120px;
}

.rewards-coming-soon-view .coming-soon-icon {
  width: 120px;
  height: 120px;
  color: var(--color-chulas-lime);
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

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

.rewards-coming-soon-view .coming-soon-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(214, 222, 35, 0.3));
}

.rewards-coming-soon-view .coming-soon-heading {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 12px;
}

.rewards-coming-soon-view .coming-soon-subheading {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 400px;
}

.coming-soon-features-card {
  width: 100%;
  background: rgba(60, 56, 57, 0.8);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.coming-soon-features-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: center;
}

.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  background: rgba(70, 66, 67, 0.5);
  border-radius: 12px;
}

.feature-item .feature-icon {
  font-size: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .feature-text {
  flex: 1;
}

.feature-item .feature-text strong {
  display: block;
  font-size: 16px;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item .feature-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.coming-soon-footer {
  margin-top: 20px;
}

.coming-soon-footer p {
  font-size: 16px;
  color: var(--color-chulas-lime);
  font-weight: 600;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.rewards-header,
.rewards-tabs,
.rewards-content {
  padding-left: var(--horizontal-margin);
  padding-right: var(--horizontal-margin);
}

/* Rewards Tabs */
.rewards-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.rewards-tab {
  flex: 1;
  padding: 12px;
  background: var(--color-card-background);
  border: none;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rewards-tab.active {
  background: var(--color-chulas-purple);
  color: var(--color-text);
}

/* Points Balance Card */
.points-balance-card {
  background: linear-gradient(135deg, var(--color-chulas-purple), rgba(112, 96, 169, 0.8));
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.points-balance-card .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  opacity: 0.1;
}

.points-balance-card .points-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.points-balance-card .points-value {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-text);
}

.points-balance-card .points-suffix {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* Reward Item */
.reward-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: var(--color-card-background);
  border-radius: 12px;
  margin-bottom: 12px;
}

.reward-item .reward-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.reward-item .reward-info {
  flex: 1;
}

.reward-item .reward-info h4 {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 4px;
}

.reward-item .reward-info p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.reward-item .reward-action {
  padding: 8px 16px;
  background: var(--color-chulas-lime);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: bold;
  color: var(--color-chulas-black);
  cursor: pointer;
}

/* ==========================================================================
   VALET PAGE
   ========================================================================== */

.page-valet {
  min-height: 100%;
}

.valet-header,
.valet-content {
  padding-left: var(--horizontal-margin);
  padding-right: var(--horizontal-margin);
}

.valet-header {
  text-align: center;
  margin-bottom: 30px;
}

.valet-header h1 {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.valet-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

.valet-code-display {
  background: var(--color-card-background);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 24px;
}

.valet-code-display .code-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.valet-code-display .code-value {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-chulas-lime);
  letter-spacing: 8px;
}

.valet-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-card-background);
  border-radius: 12px;
  margin-bottom: 16px;
}

.valet-status .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.valet-status .status-indicator.claimed { background: var(--color-chulas-lime); }
.valet-status .status-indicator.requested {
  background: var(--color-chulas-orange);
  animation: pulse 1.5s infinite;
}
.valet-status .status-indicator.ready { background: var(--color-chulas-teal); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.valet-status .status-text {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
}

/* Valet Not Available View */
.valet-not-available {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--horizontal-margin);
  text-align: center;
}

.valet-unavailable-icon {
  width: 100px;
  height: 100px;
  background: rgba(240, 89, 96, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-chulas-red);
  margin-bottom: 30px;
}

.valet-unavailable-icon svg {
  width: 60px;
  height: 60px;
}

.valet-not-available .valet-heading {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 12px;
}

.valet-not-available .valet-subheading {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.4;
}

.valet-info-card {
  width: 100%;
  background: rgba(60, 56, 57, 0.8);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
}

.info-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  padding-bottom: 24px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(240, 89, 96, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-chulas-red);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text {
  flex: 1;
  text-align: left;
}

.info-label {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.btn-navigate-valet {
  width: 100%;
  max-width: 500px;
  padding: 18px 32px;
  background: var(--color-chulas-red);
  color: var(--color-text);
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-navigate-valet:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* ==========================================================================
   EVENTS PAGE
   ========================================================================== */

.page-events {
  min-height: 100%;
  padding-bottom: 20px;
}

/* Action Buttons */
.events-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px var(--horizontal-margin);
  padding-top: 0;
}

.btn-events-action {
  padding: 14px 20px;
  background: rgba(60, 56, 57, 0.8);
  color: var(--color-text-secondary);
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-events-action.active {
  background: rgba(80, 76, 77, 1);
  color: var(--color-text);
}

.btn-events-action:active {
  transform: scale(0.98);
}

/* Section Headings */
.section-heading {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-text);
  padding: 0 var(--horizontal-margin);
  margin-bottom: 16px;
}

.events-calendar-section {
  margin-bottom: 30px;
}

.events-list-section {
  padding-bottom: 20px;
}

/* Week Calendar */
.week-calendar {
  background: rgba(60, 56, 57, 0.8);
  border-radius: 16px;
  padding: 20px;
  margin: 0 var(--horizontal-margin);
  margin-bottom: 20px;
}

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

.week-range {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.week-nav-btn {
  background: none;
  border: none;
  color: var(--color-text);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.week-nav-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.week-nav-btn svg {
  width: 24px;
  height: 24px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  position: relative;
}

.day-name {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.day-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.week-day.today .day-number {
  background: var(--color-chulas-teal);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-indicator {
  width: 6px;
  height: 6px;
  background: var(--color-chulas-orange);
  border-radius: 50%;
  margin-top: 4px;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--horizontal-margin);
}

/* Event Card iOS Style */
.event-card-ios {
  position: relative;
  background: rgba(60, 56, 57, 0.8);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 16px;
  padding-left: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-card-ios:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.event-card-accent {
  width: 4px;
  background: var(--color-chulas-orange);
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 0 2px 2px 0;
}

.event-card-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.event-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text);
  margin: 0;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.event-card-chevron {
  width: 24px;
  height: 24px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

/* RSVP Status */
.rsvp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(214, 222, 35, 0.2);
  border-radius: 8px;
  margin-top: 12px;
}

.rsvp-status.confirmed {
  color: var(--color-chulas-lime);
}

/* My Requests View */
.my-requests-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 100px;
}

.my-requests-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px var(--horizontal-margin);
  position: sticky;
  top: 0;
  background: var(--color-background);
  z-index: 10;
}

.btn-back {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: -8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn-back:active {
  background: rgba(255, 255, 255, 0.1);
}

.event-requests-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--horizontal-margin);
}

.event-request-card {
  background: rgba(60, 56, 57, 0.8);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.request-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: white;
  letter-spacing: 0.5px;
}

.request-type-badge.badge-purple {
  background: var(--color-chulas-purple);
}

.request-type-badge.badge-teal {
  background: var(--color-chulas-teal);
}

.request-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.request-event-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.request-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.request-meta-item .meta-icon {
  width: 14px;
  height: 14px;
  color: var(--color-text-secondary);
}

.request-description {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.request-admin-notes {
  margin-top: 8px;
  padding: 12px;
  background: rgba(70, 66, 67, 0.8);
  border-radius: 8px;
}

.request-admin-notes h4 {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.request-admin-notes p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   AUTH PAGE
   ========================================================================== */

/* Auth Modal Overlay */
.page-auth {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg,
      rgba(214, 222, 35, 0.3) 0%,
      rgba(240, 89, 96, 0.3) 100%
    ),
    var(--color-chulas-black);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px var(--horizontal-margin);
  padding-top: 80px;
  padding-bottom: 40px;
}

.auth-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.auth-close-btn svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-modal-content {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo-container {
  margin-bottom: 40px;
  text-align: center;
}

.auth-logo-container .auth-logo {
  width: 120px;
  height: auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.auth-header h1 {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
}

.auth-form {
  width: 100%;
}

.auth-form .form-group {
  margin-bottom: 20px;
  width: 100%;
}

.auth-form .form-group label {
  display: block;
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-align: left;
}

.auth-input {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: rgba(50, 46, 47, 0.8);
  color: var(--color-text);
  text-align: left;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.code-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 24px;
  font-weight: bold;
}

.form-helper-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* SMS Disclosure Styles */
.sms-disclosure {
  margin: 16px 0;
  padding: 0;
  width: 100%;
}

.disclosure-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 6px;
}

.disclosure-text.strong {
  font-weight: 600;
}

.disclosure-text a {
  color: var(--color-chulas-lime);
  text-decoration: none;
}

.disclosure-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
}

.disclosure-links a {
  color: var(--color-chulas-lime);
  text-decoration: none;
}

.disclosure-links span {
  color: var(--color-text-secondary);
}

/* Terms Checkbox */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
}

.terms-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-checkbox label {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.terms-checkbox label a {
  color: var(--color-chulas-lime);
  text-decoration: none;
}

/* Auth Buttons */
.btn-auth {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.5);
  color: var(--color-text);
  cursor: pointer;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.btn-auth.active {
  background: var(--color-chulas-lime);
  color: var(--color-chulas-black);
}

.btn-auth:not(:disabled):hover {
  background: rgba(128, 128, 128, 0.6);
}

.btn-auth.active:not(:disabled):hover {
  background: var(--color-chulas-lime);
  opacity: 0.9;
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-auth .btn-icon {
  width: 20px;
  height: 20px;
}

.btn-link-auth {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.phone-input-container {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--color-text);
  font-weight: bold;
}

.phone-input {
  padding-left: 50px;
}

.code-input-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.code-digit {
  width: 50px;
  height: 60px;
  background: var(--color-input-background);
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: bold;
  color: var(--color-text);
  text-align: center;
  outline: none;
}

.code-digit:focus {
  border-color: var(--color-chulas-lime);
}

/* ==========================================================================
   RESERVATION PAGE
   ========================================================================== */

.page-reservation {
  min-height: 100%;
  padding: 20px var(--horizontal-margin);
}

.reservation-header {
  margin-bottom: 24px;
}

.reservation-header .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-chulas-lime);
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 16px;
}

.reservation-header h1 {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.reservation-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

.reservation-section {
  margin-bottom: 24px;
}

.reservation-section h2 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 12px;
}

/* Party Size Selector */
.party-size-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.party-size-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: var(--color-card-background);
  border: none;
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.party-size-btn.active {
  background: var(--color-chulas-lime);
  color: var(--color-chulas-black);
}

/* Time Slots Grid */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.time-slot-btn {
  padding: 12px;
  background: var(--color-card-background);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot-btn.active {
  background: var(--color-chulas-lime);
  color: var(--color-chulas-black);
}

/* Date Picker */
.date-picker {
  width: 100%;
  padding: 16px;
  background: var(--color-input-background);
  border: none;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 17px;
  color: var(--color-text);
  color-scheme: dark;
}

/* Confirmation Modal */
.confirmation-header {
  text-align: center;
}

.confirmation-icon {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--color-chulas-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--color-chulas-black);
  margin: 0 auto 16px;
}

.confirmation-code {
  font-size: 17px;
  color: var(--color-text);
  text-align: center;
  padding: 16px;
  background: var(--color-card-background);
  border-radius: 12px;
  margin-bottom: 20px;
}

.confirmation-details {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.detail-value {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text);
}

.confirmation-message {
  text-align: center;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--color-background);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
}

.btn-close {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--color-card-background);
  border: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  padding-top: 0;
}

.modal-actions .btn {
  flex: 1;
}

/* Loading Modal */
.loading-modal {
  text-align: center;
  padding: 40px 20px;
}

.loading-modal .spinner {
  margin: 0 auto 20px;
}

.loading-modal p {
  font-size: 17px;
  color: var(--color-text);
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

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

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.loading-container p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

.loading-container-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 12px;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none !important; }

/* ==========================================================================
   REQUEST EVENT FORM STYLES
   ========================================================================== */

.request-event-form {
  padding: 20px var(--horizontal-margin);
  padding-bottom: 120px;
  max-width: 600px;
  margin: 0 auto;
}

.request-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.request-form-header h2 {
  font-family: 'Atrament', sans-serif;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #FFFFFF;
}

.btn-my-requests {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--color-chulas-lime);
  font-family: 'Atrament', sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-my-requests:hover {
  background: rgba(214, 222, 35, 0.1);
}

.form-section {
  background: rgba(60, 56, 57, 0.8);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: 'Atrament', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 8px;
  margin-top: 12px;
}

.form-label:first-child {
  margin-top: 0;
}

.form-help-text {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  line-height: 1.4;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(45, 41, 42, 0.9);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 16px;
  font-family: 'Atrament', sans-serif;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-chulas-lime);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-section-title {
  font-family: 'Atrament', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #FFFFFF;
  margin: 0 0 16px 0;
}

.segmented-control {
  display: flex;
  gap: 0;
  background: rgba(45, 41, 42, 0.9);
  border-radius: 10px;
  padding: 2px;
}

.segmented-option {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: 'Atrament', sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.segmented-option.active {
  background: var(--color-chulas-teal);
  color: #FFFFFF;
}

.form-checkbox {
  margin: 12px 0;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-chulas-lime);
}

.btn-submit-request {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--color-chulas-teal);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-family: 'Atrament', sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s;
}

.btn-submit-request:active {
  opacity: 0.8;
}

.btn-submit-request.disabled {
  background: rgba(128, 128, 128, 0.5);
  cursor: not-allowed;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Room Info Cards */

.room-info-section {
  margin-top: 16px;
}

.room-section-title {
  font-size: 13px;
  color: #999;
  margin: 16px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.room-info-card {
  background: rgba(45, 41, 42, 0.9);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.room-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
}

.room-name {
  font-family: 'Atrament', sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.room-capacity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.room-subtitle {
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin: 0 0 12px 0;
}

.room-description {
  font-size: 14px;
  color: #CCCCCC;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.room-ideal-for {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #999;
  padding-top: 8px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.room-ideal-for svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   EVENT DETAIL VIEW
   ========================================================================== */

/* Event Detail Modal Overlay */
.event-detail-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease-out;
}

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

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.event-detail-content {
  width: 100%;
  max-height: 90vh;
  background: var(--color-background);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--horizontal-margin);
  padding-top: 60px;
  padding-bottom: 120px;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.event-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.event-detail-close:active {
  background: rgba(128, 128, 128, 0.5);
}

.event-detail-close svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.event-detail-image {
  margin-bottom: 20px;
  margin-top: 10px;
}

.event-detail-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
}

.event-detail-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  margin: 0 0 16px 0;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.event-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CCCCCC;
  font-size: 14px;
}

.event-detail-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-chulas-teal);
  flex-shrink: 0;
}

.event-detail-description {
  font-size: 15px;
  line-height: 1.6;
  color: #CCCCCC;
  margin: 0 0 24px 0;
}

.event-detail-rsvp {
  background: rgba(60, 56, 57, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.event-detail-rsvp-title {
  font-size: 18px;
  font-weight: bold;
  color: #FFFFFF;
  margin: 0 0 16px 0;
}

.event-detail-rsvp-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 177, 154, 0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.event-detail-rsvp-status svg.rsvp-check {
  width: 24px;
  height: 24px;
  color: var(--color-chulas-teal);
  flex-shrink: 0;
}

.event-detail-rsvp-status span {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-chulas-teal);
}

.btn-rsvp {
  width: 100%;
  padding: 16px;
  background: var(--color-chulas-teal);
  color: #FFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-rsvp:active {
  opacity: 0.8;
}

.btn-cancel-rsvp {
  width: 100%;
  padding: 16px;
  background: var(--color-chulas-red);
  color: #FFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cancel-rsvp:active {
  opacity: 0.8;
}

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

@media (max-width: 380px) {
  .menu-items-grid {
    grid-template-columns: 1fr;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .code-digit {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .menu-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .time-slots-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
