/* =============================================
   СТЕФАНИЯ — Mini App
   Light premium restaurant theme
   Colors from stephania.rest
   ============================================= */

:root {
  --bg: #faf8f5;
  --bg-warm: #f5f0ea;
  --bg-card: #ffffff;
  --bg-overlay: rgba(250, 248, 245, 0.92);
  --accent: #9e8e6c;
  --accent-dark: #7a6d52;
  --accent-light: #c4b69a;
  --accent-bg: rgba(158, 142, 108, 0.08);
  --accent-bg-hover: rgba(158, 142, 108, 0.14);
  --text: #2c2c2c;
  --text-secondary: #6b6b6b;
  --text-muted: #a0a0a0;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-height: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.hidden { display: none !important; }

/* =============================================
   Sketch Food Background — pencil-drawn style
   ============================================= */

.sketch-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sketch-item {
  position: absolute;
  will-change: transform;
}

.sketch-item svg {
  width: 100%;
  height: 100%;
  stroke: #9e8e6c;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   Splash Screen
   ============================================= */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: splashIn 0.8s ease forwards;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.splash-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  animation: splashSpin 8s linear infinite;
}

@keyframes splashSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splash-orbit-item {
  position: absolute;
  width: 36px;
  height: 36px;
  animation: splashItemPulse 2s ease-in-out infinite alternate;
}

.splash-orbit-item svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splash-orbit-item:nth-child(odd) {
  animation-delay: -0.6s;
}

@keyframes splashItemPulse {
  from { opacity: 0.4; transform: scale(0.85) rotate(0deg); }
  to { opacity: 1; transform: scale(1.1) rotate(-10deg); }
}

.splash-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  animation: splashTextPulse 1.6s ease-in-out infinite alternate;
}

@keyframes splashTextPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* =============================================
   Header
   ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: var(--header-height);
}

.back-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:active {
  background: var(--accent-bg);
  transform: scale(0.9);
}

.header-logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(59%) sepia(11%) saturate(940%) hue-rotate(7deg) brightness(92%) contrast(88%);
}

.header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  flex: 1;
  color: var(--text);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.cart-btn:active {
  background: var(--accent-bg);
}

.cart-btn svg {
  stroke: var(--accent-dark);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--safe-top) + 48px) 24px 48px;
  text-align: center;
  z-index: 1;
}

.hero-logo-img {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  object-fit: contain;
  display: block;
  animation: heroLogoIn 1s ease 0.3s both;
  filter: brightness(0) saturate(100%) invert(59%) sepia(11%) saturate(940%) hue-rotate(7deg) brightness(92%) contrast(88%);
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 12px;
  margin-bottom: 8px;
  animation: heroTextIn 0.8s ease 0.4s both;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 20px;
  animation: heroTextIn 0.8s ease 0.5s both;
}

.hero-address {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
  animation: heroTextIn 0.8s ease 0.6s both;
}

.hero-phone {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.2s;
  animation: heroTextIn 0.8s ease 0.65s both;
}

.hero-hours {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
  animation: heroTextIn 0.8s ease 0.7s both;
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--accent-light);
  margin: 28px auto 0;
  animation: heroTextIn 0.8s ease 0.75s both;
}

/* =============================================
   Action Cards
   ============================================= */

.actions {
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.5s ease both;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background 0.3s;
}

.action-card:active .action-icon {
  background: var(--accent-bg-hover);
}

.action-text {
  flex: 1;
  min-width: 0;
}

.action-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.action-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.action-arrow {
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.action-card:active .action-arrow {
  transform: translateX(3px);
}

/* =============================================
   Categories Bar
   ============================================= */

.categories-bar {
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top));
  z-index: 50;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.categories-bar::-webkit-scrollbar { display: none; }

.categories-bar .cat-inner {
  display: inline-flex;
  gap: 8px;
  padding: 0 20px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.cat-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(158, 142, 108, 0.3);
}

.cat-pill:not(.active):active {
  background: var(--accent-bg);
}

/* =============================================
   Menu List
   ============================================= */

.menu-list {
  padding: 20px 20px calc(20px + var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.menu-section {
  margin-bottom: 32px;
}

.menu-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 4px;
  color: var(--text);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.menu-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow);
}

.menu-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
  overflow: hidden;
}

.menu-card-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(250,248,245,0.4) 100%);
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.menu-card-body {
  padding: 14px;
}

.menu-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.menu-card-weight {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.menu-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.btn-add {
  width: 100%;
  height: 34px;
  border-radius: 17px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-add:active {
  background: var(--accent);
  color: white;
  transform: scale(0.96);
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px;
  border-radius: 17px;
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}

.qty-btn:active {
  background: var(--accent-bg);
}

.qty-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

/* =============================================
   Cart Screen
   ============================================= */

#cart-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

.cart-header-section {
  padding: calc(var(--header-height) + var(--safe-top) + 20px) 20px 8px;
  flex-shrink: 0;
}

.cart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 16px;
  overscroll-behavior: contain;
}


.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-emoji {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-item-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-item-qty-btn:active {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.cart-item-qty {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: var(--text-muted);
}

.cart-empty p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
}

.btn-back-to-menu {
  margin-top: 12px;
  padding: 14px 32px;
  border-radius: 28px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-back-to-menu:active {
  background: var(--accent);
  color: white;
}

.cart-footer {
  flex-shrink: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  padding-bottom: calc(14px + var(--safe-bottom));
}

.cart-order-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cart-field-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 80px;
  flex-shrink: 0;
}

.cart-field-wishes {
  flex: 1;
  width: auto;
}

.cart-field-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cart-field-input {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

.cart-field-input:focus {
  border-color: var(--accent);
}

.cart-field-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 11px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-total span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cart-total span:last-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.btn-order {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: var(--accent);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(158, 142, 108, 0.3);
}

.btn-order:active {
  transform: scale(0.98);
  background: var(--accent-dark);
}

/* =============================================
   Toast
   ============================================= */

.toast {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 12px 28px;
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =============================================
   Order Success Modal
   ============================================= */

.order-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.order-success-overlay.show { opacity: 1; }

.order-success-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.order-success-overlay.show .order-success-content {
  transform: scale(1) translateY(0);
}

.order-success-icon { font-size: 56px; margin-bottom: 20px; }

.order-success-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-success-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-success-close {
  padding: 14px 40px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.btn-success-close:active { transform: scale(0.96); }

/* =============================================
   Waiter Confirm Modal
   ============================================= */

.waiter-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.waiter-overlay.show { opacity: 1; }

.waiter-sheet {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px 24px;
  padding-bottom: calc(32px + var(--safe-bottom));
  width: 100%;
  max-width: 440px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.waiter-overlay.show .waiter-sheet {
  transform: translateY(0);
}

.waiter-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  margin: 0 auto 24px;
}

.waiter-sheet h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.waiter-sheet p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.waiter-btns {
  display: flex;
  gap: 12px;
}

.waiter-btn-confirm {
  flex: 1;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.waiter-btn-cancel {
  flex: 1;
  padding: 15px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.waiter-btn-confirm:active { transform: scale(0.97); }
.waiter-btn-cancel:active { background: var(--accent-bg); }

/* =============================================
   Responsive
   ============================================= */

@media (min-width: 420px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .actions { max-width: 500px; margin: 0 auto; }
}

/* =============================================
   Screen Transitions
   ============================================= */

.screen {
  animation: screenSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes screenSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 0; height: 0; }

/* =============================================
   Form Screens (Waiter + Reserve)
   ============================================= */

.form-screen {
  padding: calc(var(--header-height) + var(--safe-top) + 16px) 20px calc(20px + var(--safe-bottom));
  position: relative;
  z-index: 1;
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 142, 108, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239e8e6c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  resize: none;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Quick action buttons */

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-btn {
  padding: 10px 16px;
  border-radius: 28px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.quick-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(158, 142, 108, 0.25);
}

.quick-btn:not(.active):active {
  background: var(--accent-bg);
  border-color: var(--accent-light);
}

/* Form footer */

.form-footer {
  margin-top: 28px;
  padding-bottom: 20px;
}

.btn-form-submit {
  width: 100%;
  padding: 17px;
  border-radius: 16px;
  border: none;
  background: var(--accent);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(158, 142, 108, 0.3);
}

.btn-form-submit:active {
  transform: scale(0.98);
  background: var(--accent-dark);
}
