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

:root {
  --bg-dark: #08090d;
  --bg-card: rgba(20, 24, 33, 0.65);
  --bg-card-hover: rgba(30, 36, 48, 0.8);
  --border-glow: rgba(255, 94, 98, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --accent-primary: #ff5e62;
  --accent-secondary: #ff9966;
  --accent-purple: #8a3ffc;
  --accent-green: #24b47e;
  --text-primary: #f5f6f9;
  --text-muted: #9fa6b2;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 94, 98, 0.25);
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Ambient glow backgrounds */
body::before, body::after {
  content: '';
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 80%);
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
}

header {
  padding: 1.5rem 3% 1rem;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.header-outer {
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 300;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}

.app-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2rem 3% 2rem 3%;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
  box-sizing: border-box;
}

/* Dashboard Panel (Left) */
.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Filter Styles */
.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 94, 98, 0.15);
}

.custom-select::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.custom-select:hover::after {
  color: var(--text-primary);
}

/* Price selection pills */
.price-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.price-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-muted);
  line-height: 1.25;
}

.price-lbl-sub {
  font-size: 0.72rem;
  font-weight: normal;
  opacity: 0.8;
  font-family: var(--font-body);
}

.price-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.price-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Match count & Quick Actions */
.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.match-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.match-count span {
  font-weight: 600;
  color: var(--accent-primary);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

/* Restaurant List Catalogue */
.restaurant-list-container {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0.3rem;
}

/* Custom Scrollbar for container */
.restaurant-list-container::-webkit-scrollbar {
  width: 6px;
}

.restaurant-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.restaurant-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.restaurant-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.restaurant-card {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.restaurant-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 94, 98, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-width: 0; /* allows text truncation */
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffb703;
  flex-shrink: 0;
}

.card-details-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.card-signature {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.price-tag {
  color: var(--accent-primary);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.1);
}

/* Decision Panel (Right) */
.decision-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: sticky;
  top: 2rem;
}

/* Wheel Container Styles */
.wheel-container-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Neon glow behind the wheel */
.wheel-glow-bg {
  position: absolute;
  width: 96%;
  height: 96%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}

.wheel-container-wrapper.spinning .wheel-glow-bg {
  opacity: 0.4;
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); filter: blur(30px); }
  100% { transform: scale(1.05); filter: blur(40px); }
}

.wheel-outer-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #11141a;
  border: 12px solid #1a1f29;
  box-shadow: var(--shadow-premium), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Center Pin/Button */
.wheel-center-pin {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #252a36 0%, #11141a 100%);
  border: 4px solid #ff5e62;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 94, 98, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-center-pin::after {
  content: 'SPIN';
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wheel-center-pin:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 94, 98, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.3);
  border-color: #ff9966;
}

.wheel-center-pin:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(255, 94, 98, 0.4);
}

/* Indicator Pointer */
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 40px;
  background: #ff5e62;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 11;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  border-radius: 2px 2px 0 0;
  transition: transform 0.1s ease;
  transform-origin: 50% 0;
}

.wheel-pointer.tick {
  transform: translateX(-50%) rotate(-15deg);
}

/* Quick Deciders Section */
.quick-decide-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow), 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 94, 98, 0.45), 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  border: 1px solid var(--border-light);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
}

.btn-tertiary:active {
  transform: translateY(1px);
}

/* Hide center pin and pointer indicator during slot machine shuffle */
#wheel-wrapper.shuffling-active .wheel-pointer {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateX(-50%) translateY(-20px) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#wheel-wrapper:not(.shuffling-active) .wheel-pointer {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#wheel-wrapper.shuffling-active .wheel-center-pin {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#wheel-wrapper:not(.shuffling-active) .wheel-center-pin {
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}

/* Slot Machine / Shuffle Animation Styles */
.shuffler-overlay {
  position: absolute;
  inset: 12px;
  background: #11141a;
  border-radius: 50%;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.shuffler-box {
  width: 85%;
  height: 120px;
  border: 3px solid #ffcc00;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0d0f14;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.shuffler-reel {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: transform 0.1s linear;
}

.shuffler-item {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800; /* Extra bold for lottery look */
  font-size: 2.4rem;
  text-align: center;
  padding: 0 1rem;
  color: #fffb15; /* Bright neon yellow/gold */
  text-shadow: 0 0 6px #fff, 0 0 12px #fffb15, 0 0 24px #ff9900, 0 0 35px #ff5e62;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: lottery-glow 1.2s ease-in-out infinite alternate;
}

/* Modal Popup Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

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

.modal-card {
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 94, 98, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  position: relative;
}

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

.modal-img-container {
  height: 220px;
  position: relative;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(21, 25, 34, 1) 100%);
}

.btn-close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(255, 94, 98, 0.8);
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem 2rem 2.5rem;
}

.modal-cuisine-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.modal-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.stat-item i {
  color: var(--accent-primary);
}

.stat-item.rating i {
  color: #ffb703;
}

.modal-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.info-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.info-row i {
  margin-top: 0.2rem;
  width: 16px;
  color: var(--accent-secondary);
  flex-shrink: 0;
  text-align: center;
}

.info-row .label {
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  font-weight: 500;
}

.info-row .value {
  color: var(--text-primary);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-modal-action {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-action.call {
  background: var(--accent-green);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(36, 180, 126, 0.25);
}

.btn-modal-action.call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 180, 126, 0.4);
}

.btn-modal-action.map {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-modal-action.map:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
}

/* Confetti styling */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confetti-canvas.active {
  opacity: 1;
}

/* Shake/Vibrate container simulation */
@keyframes shake-vibe {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, -1px) rotate(-0.5deg); }
  20% { transform: translate(-3px, 0px) rotate(0.5deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(0.5deg); }
  50% { transform: translate(-1px, 2px) rotate(-0.5deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  75% { transform: translate(2px, 1px) rotate(0.5deg); }
  90% { transform: translate(-1px, -1px) rotate(-0.5deg); }
}

.shake-active {
  animation: shake-vibe 0.15s infinite;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .app-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .decision-panel {
    position: static;
    order: -1; /* wheel on top for mobile */
  }
}

@media (max-width: 576px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1rem 1rem;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .app-container {
    padding: 1rem;
  }
  
  .price-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-body {
    padding: 1.2rem 1.2rem 2rem;
  }
  
  .modal-title {
    font-size: 1.6rem;
  }
  
  .modal-actions {
    grid-template-columns: 1fr;
  }
}

/* Custom Input Styling */
input[type="text"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 94, 98, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

/* My Saved Restaurants rows */
.custom-saved-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.custom-saved-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 94, 98, 0.2);
}

.custom-saved-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.custom-saved-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-saved-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-delete-custom {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 94, 98, 0.25);
  background: rgba(255, 94, 98, 0.08);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-delete-custom:hover {
  background: rgba(255, 94, 98, 0.25);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.btn-edit-custom {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(26, 153, 101, 0.25);
  background: rgba(26, 153, 101, 0.08);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-edit-custom:hover {
  background: rgba(26, 153, 101, 0.25);
  border-color: var(--accent-green);
  transform: scale(1.1);
}


/* Custom badge on restaurant cards */
.custom-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-green), #1a9965);
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Delete Confirmation Modal ── */
#delete-confirm-modal {
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.delete-confirm-box {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 94, 98, 0.25);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.delete-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 94, 98, 0.12);
  border: 1px solid rgba(255, 94, 98, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.delete-confirm-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.delete-confirm-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.delete-confirm-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.btn-confirm-cancel {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-confirm-delete {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #ff5e62, #cc3a3d);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
}

.btn-confirm-delete:hover {
  background: linear-gradient(135deg, #ff3a3e, #aa2225);
  transform: scale(1.03);
}

/* ── Edit Custom Restaurant Modal ── */
.edit-custom-box {
  width: 90%;
  max-width: 520px;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.22s ease;
}

.edit-custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.edit-custom-header .delete-confirm-title {
  margin-bottom: 0;
}

.btn-edit-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-edit-close:hover {
  background: rgba(255, 94, 98, 0.15);
  color: var(--accent-primary);
  border-color: rgba(255, 94, 98, 0.3);
}

.edit-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.edit-price-pills {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.edit-price-pills .price-pill {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
}

/* ── Google Sheets Sync Badge ── */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.sync-badge.syncing {
  background: rgba(138, 63, 252, 0.12);
  border-color: rgba(138, 63, 252, 0.3);
  color: #b57bff;
}

.sync-badge.syncing i {
  animation: spin-icon 1s linear infinite;
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.sync-badge.ok {
  background: rgba(36, 180, 126, 0.12);
  border-color: rgba(36, 180, 126, 0.3);
  color: var(--accent-green);
}

.sync-badge.ready {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  color: var(--text-muted);
}

.sync-badge.error {
  background: rgba(255, 94, 98, 0.12);
  border-color: rgba(255, 94, 98, 0.3);
  color: var(--accent-primary);
}

/* ── Lottery Glow Animations ── */
@keyframes lottery-glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 12px #fffb15, 0 0 25px #ff9900, 0 0 35px #ff5e62;
    transform: scale(0.97);
  }
  to {
    text-shadow: 0 0 8px #fff, 0 0 18px #fffb15, 0 0 35px #ff9900, 0 0 50px #ff5e62, 0 0 60px #ff3b30;
    transform: scale(1.03);
  }
}
