/* ============================================================
   Vibrant gradient PWA styling.
   THEME-AGNOSTIC: colors come from /themes/<name>.css which must be
   loaded BEFORE this file. See <link> tags in index.html / admin.html.
   ============================================================ */
:root {
  /* Layout & inks (theme-independent) */
  --ink-0: #ffffff;
  --ink-1: rgba(255, 255, 255, 0.88);
  --ink-2: rgba(255, 255, 255, 0.65);
  --ink-3: rgba(255, 255, 255, 0.4);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover: rgba(255, 255, 255, 0.10);
  --accent-green:  #34d399;
  --accent-red:    #f87171;
  --accent-yellow: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;

  /* Legacy aliases — kept so older CSS rules keep working when a theme is active. */
  --brand-crimson: var(--brand-primary);
  --brand-scarlet: var(--brand-secondary);
  --brand-coral:   var(--brand-accent);
  --brand-maroon:  var(--brand-deep);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  color: var(--ink-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%,  var(--bg-radial-1), transparent 60%),
    radial-gradient(ellipse 70% 55% at 90% 25%, var(--bg-radial-2), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, var(--bg-radial-3), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--brand-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ------------ Layout ------------ */
.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 120px;
  min-height: 100vh;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.6);
  margin: 0 -16px 0;
  padding-left: 20px;
  padding-right: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-dot {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #f87171, #991b1b 80%);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 18px;
  overflow: hidden;
}
.brand-dot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.brand-text {
  background: linear-gradient(135deg, #fca5a5, #ef4444 60%, #b91c1c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.02em;
}
.brand-wordmark {
  height: 30px;
  max-width: 180px;
  width: 140px;
  display: block;
  background-color: var(--brand-primary);
  -webkit-mask-image: url('../icons/scava-wordmark-clean.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-image: url('../icons/scava-wordmark-clean.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
  content: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=');
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.admin-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: var(--brand-coral);
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 2px;
}

/* ------------ Coming Soon banner ------------ */
.coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(92, 15, 26, 0.55));
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 8px 20px rgba(120, 10, 20, 0.3), inset 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.coming-soon-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  animation: cs-shimmer 3.5s infinite;
  pointer-events: none;
}
@keyframes cs-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.cs-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: cs-pulse-glow 2s infinite;
  flex-shrink: 0;
}
@keyframes cs-pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.cs-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.cs-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.cs-text span {
  font-size: 12px;
  color: var(--ink-2);
}

.iconbtn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  transition: transform 0.15s, background 0.15s;
}
.iconbtn:hover { background: var(--card-hover); }
.iconbtn:active { transform: scale(0.95); }

/* ------------ Hero ------------ */
.hero {
  margin: 8px 0 20px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--gradient-main);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.2), transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  line-height: 1.2;
}
.hero p { font-size: 14px; opacity: 0.9; margin-top: 4px; position: relative; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  backdrop-filter: blur(8px);
}
.hero .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}
.hero-logo {
  position: absolute;
  right: -30px; top: -10px;
  width: 340px; height: 190px;
  opacity: 0.14;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

/* ------------ Section ------------ */
.section { margin: 20px 0; }
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .hint { color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ------------ Date chips ------------ */
.date-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.date-chips::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  text-align: center;
  transition: all 0.2s;
  scroll-snap-align: start;
}
.date-chip .dow { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.date-chip .dom { font-size: 20px; font-weight: 800; margin-top: 2px; }
.date-chip .mon { font-size: 10px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.date-chip.active {
  background: var(--gradient-button);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}
.date-chip.active .dow, .date-chip.active .mon { color: rgba(255,255,255,0.9); }

/* ------------ Court tabs ------------ */
.court-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.court-tab {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  text-align: left;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.court-tab .label { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.court-tab .name { font-size: 18px; font-weight: 800; margin-top: 2px; }
.court-tab .meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.court-tab.active {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.court-tab[data-court="court-1"].active { background: var(--gradient-court1); }
.court-tab[data-court="court-2"].active { background: var(--gradient-court2); }
.court-tab[data-court="court-3"].active { background: var(--gradient-court3); }
.court-tab.active .label, .court-tab.active .meta { color: rgba(255,255,255,0.9); }

/* ------------ Slot grid ------------ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot {
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: all 0.15s;
  position: relative;
}
.slot:hover:not(:disabled):not(.selected) { background: var(--card-hover); transform: translateY(-1px); }
.slot .price { display: block; font-size: 10px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.slot.peak::after {
  content: '★';
  position: absolute;
  top: 4px; right: 6px;
  font-size: 9px;
  color: var(--accent-yellow);
}
.slot.selected {
  background: var(--gradient-button);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}
.slot.selected .price { color: rgba(255,255,255,0.9); }
.slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.slot.past { opacity: 0.25; cursor: not-allowed; }

/* ------------ Summary bar ------------ */
.summary {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 5, 36, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.summary.visible { transform: translateY(0); }
.summary-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.summary-info .count { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-info .total { font-size: 22px; font-weight: 800; margin-top: 2px; }

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.40);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(220, 38, 38, 0.55); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: var(--card); box-shadow: none; border: 1px solid var(--card-border); }
.btn-ghost:hover { background: var(--card-hover); box-shadow: none; }
.btn-full { width: 100%; padding: 14px 20px; font-size: 15px; }

/* ------------ Modal ------------ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-backdrop.visible { display: flex; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-1);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }

.modal-handle {
  width: 40px; height: 4px;
  background: var(--ink-3);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal .sub { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--ink-0);
  font-size: 15px;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--brand-scarlet); }
.form-group .error { color: var(--accent-red); font-size: 12px; margin-top: 4px; display: none; }
.form-group.invalid .error { display: block; }
.form-group.invalid input { border-color: var(--accent-red); }

/* ------------ Booking receipt ------------ */
.receipt {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px dashed var(--card-border);
  margin-bottom: 16px;
}
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.receipt-row + .receipt-row { border-top: 1px solid var(--card-border); }
.receipt-row .label { color: var(--ink-2); font-size: 12px; }
.receipt-row .val { font-weight: 600; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 4px; margin-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 18px; font-weight: 800;
}
.receipt-total .val { background: var(--gradient-button); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------ Toast ------------ */
.toast {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: var(--bg-1);
  border: 1px solid var(--card-border);
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  max-width: 90vw;
}
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent-green); }
.toast.error { border-color: var(--accent-red); }
.toast .icon { margin-right: 8px; }

/* ------------ My bookings ------------ */
.booking-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.booking-card .info { flex: 1; min-width: 0; }
.booking-card .info .court { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.booking-card .info .time { font-size: 16px; font-weight: 700; margin-top: 2px; }
.booking-card .info .date { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.booking-card .price { font-weight: 800; color: var(--accent-green); font-size: 16px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-2);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ------------ Admin ------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.stat-card .label { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.stat-card .value.green { color: var(--accent-green); }
.stat-card .value.gradient { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.admin-booking {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.admin-booking .col { display: flex; flex-direction: column; gap: 2px; }
.admin-booking .name { font-weight: 700; font-size: 14px; }
.admin-booking .phone { font-size: 12px; color: var(--ink-2); }
.admin-booking .time { font-size: 12px; color: var(--ink-2); }
.admin-booking .badge-court {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-booking .badge-court[data-court="court-1"] { background: rgba(153, 27, 27, 0.35); color: #fecaca; }
.admin-booking .badge-court[data-court="court-2"] { background: rgba(239, 68, 68, 0.28); color: #fecaca; }
.admin-booking .badge-court[data-court="court-3"] { background: rgba(61, 90, 16, 0.45); color: #dcf55d; }
.btn-danger {
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(248, 113, 113, 0.2);
  color: var(--accent-red);
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: none;
  font-weight: 600;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.3); transform: none; box-shadow: none; }

.status-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}
.status-tag.confirmed { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.status-tag.pending { background: rgba(234, 179, 8, 0.2); color: #fde047; }

/* ------------ Skeleton / loader ------------ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ------------ Install banner ------------ */
.install-banner {
  position: fixed;
  bottom: 90px; left: 16px; right: 16px;
  max-width: 488px;
  margin: 0 auto;
  padding: 12px 14px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 25;
  animation: slideUp 0.3s ease;
}
.install-banner.visible { display: flex; }
.install-banner .text { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.3; }
.install-banner .close {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(0,0,0,0.25);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
}
.install-banner button.install-btn {
  padding: 8px 14px;
  background: #fff;
  color: #b91c1c;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* ------------ Utility ------------ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 8px; }
.muted { color: var(--ink-2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* Smaller screens */
@media (max-width: 360px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 22px; }
}

/* ------------ Cafe Menu Modal (customer) ------------ */
.menu-modal .modal {
  max-height: 92vh;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.menu-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.menu-modal .modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.menu-modal .modal-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
  color: var(--ink-2);
  transition: background 0.15s;
}
.menu-modal .modal-close:hover { background: var(--card-hover); }
.menu-modal .menu-image {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  max-height: 72vh;
  background: var(--card);
}
.menu-modal .menu-placeholder {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-2);
}
.menu-modal .menu-placeholder .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.menu-modal .menu-placeholder .title { font-weight: 700; margin-bottom: 4px; }
.menu-modal .menu-updated {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 8px;
}

/* ------------ Admin Cafe Menu Card ------------ */
.admin-menu-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.admin-menu-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  margin-bottom: 12px;
}
.admin-menu-actions {
  display: flex;
  gap: 8px;
}
.admin-menu-actions .btn { flex: 1; font-size: 13px; padding: 10px 14px; }
.admin-menu-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-3);
  font-size: 13px;
}
.admin-menu-empty .icon { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }
.upload-progress {
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  margin: 10px 0;
  overflow: hidden;
}
.upload-progress .bar {
  height: 100%;
  background: var(--gradient-button);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-indeterminate 1.2s infinite ease-in-out;
}
@keyframes progress-indeterminate {
  0%   { width: 10%; margin-left: 0; }
  50%  { width: 40%; margin-left: 30%; }
  100% { width: 10%; margin-left: 90%; }
}
