/* ==========================================================================
   Platoo.it - Design System & Modern Responsive Styles (With Official Wooden Logo Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Brand Colors Extracted from Official Platoo Logo (Warm Teak Wood & Ceramic White) */
  --primary-orange: #C4823F;
  --primary-orange-hover: #92400E;
  --primary-orange-light: #FFF8ED;
  --primary-orange-glow: rgba(196, 130, 63, 0.25);
  
  --brand-wood: #C4823F;
  --brand-wood-dark: #78350F;
  --brand-wood-light: #FEF3C7;

  /* Status Colors */
  --urgency-green-bg: #E6F9F0;
  --urgency-green-text: #058A4D;
  --urgency-green-border: #BCECD6;
  
  --gold-banner-bg: #D97706;
  --gold-banner-light: #FFFBEB;
  --gold-banner-text: #78350F;

  --success-green: #10B981;
  --warning-amber: #F59E0B;
  --danger-red: #EF4444;

  /* Neutral Light Theme */
  --bg-main: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-secondary: #F7F4EE;
  --border-color: #E6E1D6;
  --border-focus: #C4823F;
  
  --text-main: #2C221E;
  --text-muted: #6E6359;
  --text-light: #A3978B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(44, 34, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 34, 30, 0.08);
  --shadow-lg: 0 12px 28px rgba(44, 34, 30, 0.12);
  --shadow-orange: 0 8px 20px rgba(196, 130, 63, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s ease;
}

[data-theme="dark"] {
  --bg-main: #140E0A;
  --bg-card: #1E1610;
  --bg-secondary: #2A1F18;
  --border-color: #3D2D23;
  
  --text-main: #F7E8D5;
  --text-muted: #C4B4A5;
  --text-light: #8C7B6C;

  --urgency-green-bg: #064E3B;
  --urgency-green-text: #34D399;
  --urgency-green-border: #047857;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary-orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Header & Prominent Logo Styling (USER REQUEST: ENLARGED LOGO WITHOUT BADGE)
   ========================================================================== */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0.5rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 68px; /* ENLARGED LOGO (USER REQUEST) */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(44,34,30,0.12));
  transition: transform 0.2s ease;
}

.brand-logo img:hover {
  transform: scale(1.03);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* View Mode Switcher */
.mode-toggle-group {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.mode-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

/* ==========================================================================
   Hero Search Section
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, rgba(20, 14, 10, 0.92) 0%, rgba(44, 34, 30, 0.88) 100%), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #FFFFFF;
  padding: 3.5rem 0 4.5rem 0;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #E6E1D6;
  margin-bottom: 2rem;
}

.search-box-card {
  background: var(--bg-card);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 0.5rem;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.search-field {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.search-field:focus-within {
  border-color: var(--primary-orange);
  background: var(--bg-card);
}

.search-field svg {
  color: var(--primary-orange);
  flex-shrink: 0;
}

.search-field input, .search-field select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-weight: 500;
}

.btn-search {
  background: var(--primary-orange);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.btn-search:hover {
  background: var(--primary-orange-hover);
  box-shadow: var(--shadow-orange);
}

/* Quick Filter Badges */
.filter-pills-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

/* ==========================================================================
   Restaurant Grid Catalog
   ========================================================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.restaurant-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-orange);
}

.card-img-wrapper {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  width: 100%;
}

.feature-tag-pill {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #E2E8F0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-orange);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.points-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(44, 34, 30, 0.85);
  backdrop-filter: blur(4px);
  color: #FFD700;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.rating-badge {
  background: var(--urgency-green-bg);
  color: var(--urgency-green-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-slots-preview {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-pill-sm {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Restaurant Detail View & Sticky Reservation Widget
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.75rem;
  margin: 1.5rem 0 3rem 0;
  width: 100%;
  box-sizing: border-box;
}

.detail-main {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.detail-sidebar {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.restaurant-hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  width: 100%;
}

.gallery-main img, .gallery-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-sub {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.menu-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}
.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
}
.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.menu-item-price {
  font-weight: 700;
  color: var(--primary-orange);
  flex-shrink: 0;
}

/* QUANDOO-STYLE STICKY RESERVATION WIDGET */
.quandoo-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible; /* must NOT clip the calendar popover, which intentionally overflows the card */
}

.widget-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.widget-control-row:hover {
  border-color: var(--primary-orange);
}

.widget-control-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--primary-orange);
  font-size: 1rem;
}

.widget-control-left svg {
  color: var(--text-muted);
}

.widget-chevron {
  color: var(--text-muted);
}

.widget-select-hidden {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Visual month calendar popover for date selection */
.widget-calendar-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.9rem;
  cursor: default;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  text-transform: capitalize;
}

.calendar-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calendar-nav-btn:hover:not(:disabled) {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

.calendar-nav-btn:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.calendar-weekdays {
  margin-bottom: 0.35rem;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 0.2rem 0;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-day:hover:not(:disabled):not(.selected) {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

.calendar-day.empty {
  cursor: default;
  visibility: hidden;
}

.calendar-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px var(--primary-orange);
  color: var(--primary-orange);
}

.calendar-day.selected {
  background: var(--primary-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange);
}

.calendar-day:disabled {
  color: var(--text-light);
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.time-slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.time-slots-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Time Slots Grid */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.time-slot-btn {
  padding: 0.65rem 0.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-slot-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.time-slot-btn.active {
  background: var(--primary-orange);
  color: #FFFFFF;
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-orange);
}

.time-slot-btn.disabled {
  background: var(--bg-secondary);
  color: var(--text-light);
  border-color: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
}

/* Primary Action CTA Button */
.btn-primary-booking {
  width: 100%;
  background: var(--primary-orange);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  transition: var(--transition-normal);
  text-align: center;
  box-sizing: border-box;
  line-height: 1.3;
  word-break: break-word;
}

.btn-primary-booking:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
}

.widget-footer-note {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ==========================================================================
   CHECKOUT PAGE VIEW
   ========================================================================== */
.checkout-wrapper {
  max-width: 680px;
  margin: 2rem auto 4rem auto;
  width: 100%;
  box-sizing: border-box;
}

.checkout-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.urgency-banner {
  background: var(--urgency-green-bg);
  border: 1px solid var(--urgency-green-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--urgency-green-text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.urgency-banner-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.urgency-timer-digit {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.checkout-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.summary-card-header {
  padding: 1.15rem 1.25rem 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-restaurant-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-modify-link {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
}

.summary-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  width: 100%;
  box-sizing: border-box;
}

.summary-detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  border-right: 1px solid var(--border-color);
}

.summary-detail-item:last-child {
  border-right: none;
}

.checkout-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.form-section-subtitle {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text-main);
}

.form-group-floating {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-input-line {
  width: 100%;
  border: none;
  border-bottom: 1px solid #CBD5E1;
  padding: 0.6rem 0;
  background: transparent;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-input-line:focus {
  border-bottom-color: var(--primary-orange);
}

.form-label-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-label-placeholder span.asterisk {
  color: var(--primary-orange);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.phone-input-group {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.country-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
  flex-shrink: 0;
}

.country-flag {
  font-size: 1.2rem;
}

.btn-confirm-checkout {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--primary-orange);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  transition: var(--transition-normal);
  box-sizing: border-box;
}

.btn-confirm-checkout:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONFIRMATION PAGE VIEW
   ========================================================================== */
.confirmation-wrapper {
  max-width: 720px;
  margin: 2rem auto 4rem auto;
  width: 100%;
  box-sizing: border-box;
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.gold-confirmation-banner {
  background: var(--gold-banner-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.gold-banner-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.gold-banner-subtext {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  line-height: 1.5;
}

.btn-gold-banner-action {
  background: var(--gold-banner-light);
  color: var(--gold-banner-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

/* ==========================================================================
   MODIFY RESERVATION PAGE VIEW
   ========================================================================== */
.modify-wrapper {
  max-width: 580px;
  margin: 2rem auto 4rem auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.modify-user-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.modify-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.modify-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.modify-card-rest-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.btn-cancel-reservation-link {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--gold-banner-bg);
  font-weight: 700;
  font-size: 1rem;
  margin: 1.5rem 0 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-update-reservation {
  width: 100%;
  background: #FF5A5F;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  transition: var(--transition-normal);
  box-sizing: border-box;
}

/* ==========================================================================
   CONFIRMATION MODAL & QR TICKET
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 34, 30, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.ticket-modal-card {
  background: var(--bg-card);
  width: 90%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.modal-overlay.active .ticket-modal-card {
  transform: scale(1);
}

.success-icon-badge {
  width: 56px;
  height: 56px;
  background: var(--urgency-green-bg);
  color: var(--urgency-green-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
}

.qr-code-box {
  background: #FFFFFF;
  border: 2px dashed var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 1rem 0;
}

.qr-code-box img {
  width: 130px;
  height: 130px;
  display: block;
}

.btn-secondary {
  width: 100%;
  padding: 0.85rem;
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

/* Utilities */
.hidden { display: none !important; }

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-main);
  color: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 90vw;
  box-sizing: border-box;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ADVANCED RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
  .detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .detail-sidebar {
    order: -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .detail-main {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .quandoo-widget-card {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem;
  }

  .restaurant-hero-gallery {
    grid-template-columns: 1fr;
    height: 240px;
  }

  .gallery-sub {
    display: none;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.85rem !important;
    box-sizing: border-box;
  }

  .site-header {
    padding: 0.35rem 0;
  }

  .header-content {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    gap: 0.65rem !important;
    min-height: 64px;
    height: auto;
  }

  .brand-logo {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .brand-logo img, .header-logo-img {
    height: 76px !important;
    max-height: 80px !important;
    margin: 0 auto !important;
  }

  .nav-actions {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    margin: 0 auto !important;
  }

  .mode-toggle-group {
    padding: 2px;
  }

  .mode-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .hero-banner {
    padding: 2.25rem 0 2.75rem 0;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .search-box-card {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
    width: 100%;
  }

  .search-field {
    width: 100%;
    flex: 1 1 auto;
    padding: 0.65rem;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }

  .restaurant-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .card-img-wrapper {
    height: 175px;
  }

  .checkout-wrapper, .confirmation-wrapper, .modify-wrapper {
    margin: 1rem auto 3rem auto;
    padding: 0;
    width: 100%;
  }

  .checkout-title, .confirmation-title, .modify-user-title {
    font-size: 1.35rem;
  }

  .summary-details-row {
    grid-template-columns: 1fr !important;
    gap: 0.4rem;
    padding: 0.85rem;
  }

  .summary-detail-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
    justify-content: flex-start;
  }

  .summary-detail-item:last-child {
    border-bottom: none;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .checkout-form-card, .modify-card {
    padding: 1.25rem 1rem;
  }

  .urgency-banner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 0.75rem;
  }

  .urgency-banner-left {
    flex-direction: column;
    gap: 0.2rem;
  }

  .gold-confirmation-banner {
    padding: 1.25rem 1rem;
  }

  .gold-banner-heading {
    font-size: 1.4rem;
  }

  .stats-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .floor-plan-card {
    padding: 1rem;
  }

  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    white-space: nowrap;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.45rem;
  }

  .brand-logo img {
    height: 44px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem;
  }

  .time-slot-btn {
    padding: 0.55rem 0.2rem;
    font-size: 0.82rem;
  }

  .btn-primary-booking, .btn-confirm-checkout, .btn-update-reservation {
    font-size: 0.98rem;
    padding: 0.9rem;
  }
}

/* Print styles: confirmation page only, no nav/buttons */
@media print {
  .site-header,
  .confirmation-actions-row,
  #btn-widget-primary-cta,
  .btn-gold-banner-action,
  .btn-cancel-reservation-link,
  .btn-update-reservation {
    display: none !important;
  }

  #view-confirmation .confirmation-wrapper {
    margin: 0 auto;
  }
}

/* Dashboard Sub-navigation Tabs */
.dash-tabs-bar {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.dash-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.dash-tab-btn:hover {
  color: var(--primary-orange);
  background: var(--primary-orange-light);
}
.dash-tab-btn.active {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
  background: var(--bg-card);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}
.dash-tab-content.hidden {
  display: none !important;
}

/* Enhanced Merchant Bookings Table Styling */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: left;
}

.data-table thead th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.data-table tbody tr:nth-child(even) {
  background-color: #FAFAFB;
}

.data-table tbody tr:hover {
  background-color: #FFF7ED !important;
}

.data-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

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

/* Badge and Button Enhancements inside Table */
.table-code-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  background: #F1F5F9;
  color: #334155;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  display: inline-block;
  letter-spacing: 0.5px;
}

.table-status-select {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.table-status-select.status-confirmed {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.table-status-select.status-pending {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.table-status-select.status-cancelled {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.table-status-select.status-modified {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
}

.action-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.action-btn-wa {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}
.action-btn-wa:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.action-btn-email {
  background: #E11D48;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}
.action-btn-email:hover {
  background: #BE123C;
  transform: translateY(-1px);
}

.action-btn-sms {
  background: #0284C7;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}
.action-btn-sms:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

.action-btn-cancel {
  background: #FEF2F2;
  color: #991B1B !important;
  border: 1px solid #FECACA;
}
.action-btn-cancel:hover {
  background: #FEE2E2;
  color: #7F1D1D !important;
}

.btn-preset-note {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.btn-preset-note:hover, .btn-preset-note.selected {
  background: var(--primary-orange-light);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

/* Mobile Optimization for Merchant Dashboard */
@media (max-width: 768px) {
  #view-dashboard .container {
    padding: 0 0.5rem;
  }

  .dashboard-header {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .dashboard-header h1 {
    font-size: 1.4rem !important;
  }

  /* Dashboard Mobile Navigation Tabs Grid (3x2) */
  .dash-tabs-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    border-bottom: none !important;
    margin-bottom: 1.25rem !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .dash-tab-btn {
    padding: 0.65rem 0.35rem !important;
    font-size: 0.78rem !important;
    text-align: center !important;
    justify-content: center !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  }

  .dash-tab-btn.active {
    border-color: var(--primary-orange) !important;
    background: var(--primary-orange) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(255, 90, 54, 0.25) !important;
  }

  /* Stats Cards Grid: 2 columns on mobile */
  #dash-section-bookings > div:first-child {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  #dash-section-bookings > div:first-child > div {
    padding: 0.85rem !important;
  }

  #dash-section-bookings > div:first-child div[id^="dash-stat-"] {
    font-size: 1.6rem !important;
  }

  /* Filter bar inputs */
  #dash-booking-date-input,
  #dash-booking-status-select,
  #dash-booking-search-input {
    width: 100% !important;
    font-size: 0.95rem !important; /* >= 16px to prevent iOS auto-zoom */
    min-height: 44px;
  }

  /* Mobile Card Transformation for Bookings Table */
  .data-table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .data-table thead {
    display: none !important; /* Hide traditional column headers on mobile */
  }

  .data-table tbody tr {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 0.9rem !important;
    padding: 1rem !important;
    box-shadow: var(--shadow-sm) !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: 
      "code status"
      "client client"
      "datetime guests"
      "actions actions" !important;
    gap: 0.65rem 0.5rem !important;
    align-items: center !important;
  }

  .data-table tbody tr td:nth-child(1) { grid-area: code; }
  .data-table tbody tr td:nth-child(2) { 
    grid-area: client; 
    border-top: 1px dashed var(--border-color) !important; 
    border-bottom: 1px dashed var(--border-color) !important; 
    padding: 0.5rem 0 !important; 
    margin: 0.1rem 0 !important;
  }
  .data-table tbody tr td:nth-child(3) { grid-area: guests; text-align: right; }
  .data-table tbody tr td:nth-child(4) { grid-area: datetime; }
  .data-table tbody tr td:nth-child(5) { grid-area: status; text-align: right; }
  .data-table tbody tr td:nth-child(6) { grid-area: actions; margin-top: 0.25rem; }

  .data-table tbody td {
    padding: 0 !important;
    border: none !important;
  }

  .data-table tbody td .table-status-select {
    width: auto !important;
    font-size: 0.8rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  .data-table tbody td div[style*="display:flex"] {
    display: flex !important;
    width: 100% !important;
    gap: 0.4rem !important;
  }

  .data-table tbody td .action-btn-pill {
    flex: 1 1 0px !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    min-height: 38px !important;
    text-align: center !important;
  }
}
