/* ==========================================================================
   L'Élite — Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #080809;
  --bg-secondary: #111113;
  --bg-tertiary: #19191d;
  
  --accent-gold: #c5a059;
  --accent-gold-bright: #e5c07b;
  --accent-gold-dark: #8a6d35;
  --accent-gold-rgb: 197, 160, 89;
  
  --text-primary: #f5f2eb;
  --text-secondary: #9c9a96;
  --text-muted: #61605e;
  
  --border-gold: rgba(197, 160, 89, 0.2);
  --border-gold-focus: rgba(197, 160, 89, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.03);
  
  --glass-bg: rgba(17, 17, 19, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.6);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
  line-height: 1.6;
}

/* Ambient Glow Effects */
.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.glow-1 {
  top: -20%;
  left: -10%;
}

.glow-2 {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography & Links */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-gold-bright);
}

/* Utility Components */
.gold-text {
  color: var(--accent-gold);
}

.hidden {
  display: none !important;
}

.hidden-view {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #0c0b09;
}
.btn-gold:hover {
  background-color: var(--accent-gold-bright);
  transform: translateY(-2px);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-gold);
}
.btn-secondary:hover {
  background-color: rgba(197, 160, 89, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-muted);
}
.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 18px 36px;
  font-size: 15px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}
.btn-text:hover {
  color: var(--accent-gold);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: 4px;
}
.btn-glow:hover::after {
  opacity: 1;
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 15px;
}
.input-row .input-group {
  flex: 1;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--border-gold);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: var(--transition-smooth);
}

input:focus, textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--accent-gold-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 14px;
  color: var(--text-primary);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}
.toast.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ==================== VIEW 1: LOGIN ==================== */
#view-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-monogram {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--accent-gold);
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(0,0,0,0) 80%);
  margin-bottom: 10px;
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.2);
}

.logo-text {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-subtext {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.login-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 40px 35px;
  box-shadow: 0 20px 50px var(--glass-shadow);
  backdrop-filter: blur(12px);
}

.card-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.icon-arrow {
  transition: transform 0.3s ease;
}
.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.login-footer {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ==================== MAIN CONTAINER ==================== */
#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  height: 80px;
  background-color: rgba(8, 8, 9, 0.85);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-monogram-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-badge {
  font-size: 8px;
  letter-spacing: 0.15em;
  background-color: var(--border-gold);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 5px;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
  color: var(--accent-gold);
  background-color: rgba(197, 160, 89, 0.08);
  font-weight: 500;
  box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.cart-btn:hover {
  background-color: rgba(197, 160, 89, 0.08);
  border-color: var(--accent-gold-bright);
}

.cart-count {
  background-color: var(--accent-gold);
  color: #0c0b09;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total-header {
  color: var(--accent-gold);
  font-weight: 600;
}

.logout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.logout-btn:hover {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
  background-color: rgba(244, 63, 94, 0.05);
}

/* ==================== VIEW 2: MENU ==================== */
.hero-section {
  padding: 60px 40px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
}

.menu-section {
  padding: 20px 40px 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.menu-category-group {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.category-title {
  font-size: 26px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}
.category-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(8, 8, 9, 0.75);
  backdrop-filter: blur(5px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.product-title {
  font-size: 18px;
  font-family: var(--font-serif);
}

.product-price {
  font-size: 18px;
  color: var(--accent-gold);
  font-weight: 600;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

/* ==================== VIEW 3: CHECKOUT ==================== */
.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  width: 100%;
}

.checkout-back {
  margin-bottom: 25px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.checkout-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.checkout-card-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Interactive Card Mockup */
.credit-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 350px;
  height: 200px;
  margin: 0 auto 30px auto;
}

.credit-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.credit-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #1f1d1a 0%, #0d0b0a 100%);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.card-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.15) 0%, transparent 60%);
  border-radius: 12px;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #dfc48c 0%, #aa843f 100%);
  border-radius: 6px;
  position: relative;
}

.card-number-display {
  font-family: monospace;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 20px 0;
  word-spacing: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
}

.card-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

#card-holder-display-name,
#card-expiry-display-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.card-back {
  transform: rotateY(180deg);
  padding: 24px 0;
  justify-content: space-between;
}

.card-magnetic-strip {
  height: 40px;
  background-color: #000;
  width: 100%;
}

.card-signature-area {
  margin: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-signature {
  background-color: rgba(255, 255, 255, 0.8);
  height: 35px;
  width: 100%;
  border-radius: 4px;
  color: #000;
  font-family: 'Playfair Display', cursive;
  font-style: italic;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 14px;
}

.card-cvv-display {
  text-align: right;
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-gold);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#btn-autofill-card {
  margin-top: 10px;
  font-size: 12px;
  padding: 10px;
}

/* Checkout Sidebar & Summary */
.summary-card {
  position: sticky;
  top: 100px;
}

.checkout-items-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 15px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
}

.checkout-item-qty {
  font-size: 11px;
  color: var(--accent-gold);
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-divider {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 5px 0;
}

.total-line {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== VIEW 4: DELIVERY ==================== */
.delivery-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  width: 100%;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.delivery-main-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.delivery-status-header {
  margin-bottom: 25px;
  text-align: left;
}

.status-badge {
  font-size: 9px;
  background-color: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 10px;
}

.pulse-gold {
  animation: gold-pulse 2s infinite;
}

@keyframes gold-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

.status-message {
  font-size: 15px;
  color: var(--accent-gold);
  margin-top: 5px;
  font-style: italic;
}

.map-wrapper {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 25px;
}

#delivery-map {
  display: block;
  width: 100%;
  height: auto;
  background-color: #0b0b0d;
}

.map-overlay-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  background-color: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 12px 20px;
}

.info-block {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.info-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-gold-bright);
}

/* Progress bar */
.progress-bar-container {
  height: 4px;
  background-color: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-bright) 100%);
  box-shadow: 0 0 10px var(--accent-gold);
  transition: width 0.3s ease;
}

.delivery-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 2px solid rgba(255,255,255,0.08);
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition-smooth);
}

.step-indicator.completed .step-dot {
  background-color: var(--accent-gold);
  border-color: var(--bg-secondary);
  box-shadow: 0 0 8px var(--accent-gold);
}

.step-indicator.completed .step-text {
  color: var(--accent-gold);
  font-weight: 500;
}

.step-indicator.active .step-dot {
  background-color: var(--text-primary);
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.step-indicator.active .step-text {
  color: var(--text-primary);
  font-weight: 500;
}

.delivery-side-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.courier-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 15px;
}

.courier-avatar {
  font-size: 32px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.1);
}

.courier-meta h3 {
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.courier-rating {
  font-size: 11px;
  color: var(--text-secondary);
}

.delivery-address-summary h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.delivery-address-summary p {
  font-size: 13px;
  color: var(--text-secondary);
}

.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== CART DRAWER ==================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h2 {
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}
.close-btn:hover {
  color: var(--accent-gold);
}

.cart-items-container {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-message {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--accent-gold);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 4px 8px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  color: var(--accent-gold);
}

.qty-val {
  font-size: 12px;
  min-width: 14px;
  text-align: center;
}

.cart-drawer-footer {
  padding: 30px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background-color: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.grand-total {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 10px;
  margin-top: 5px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== THE FINAL DIALOG ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background-color: #121010;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-top: 4px solid #ef4444;
  border-radius: 8px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.1);
  overflow: hidden;
  animation: modal-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 30px 30px 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-error-icon {
  font-size: 32px;
  animation: shake 1s ease-in-out infinite alternate;
}

@keyframes shake {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.modal-header h2 {
  font-size: 24px;
  color: #ef4444;
  font-family: var(--font-serif);
}

.modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-alert-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 10px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 4px;
}

.failure-reason-box {
  background-color: #191616;
  border: 1px solid rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent-gold);
  padding: 20px;
  border-radius: 4px;
}

.failure-reason-box h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.failure-reason-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-compensation-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.modal-footer {
  padding: 24px 30px 30px 30px;
  background-color: #0b0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Product Detail Modal */
.product-modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(197, 160, 89, 0.1);
  overflow: hidden;
  position: relative;
  animation: modal-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: var(--text-secondary);
  z-index: 10;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.product-detail-left {
  position: relative;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 480px;
}

.product-detail-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.product-detail-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.product-detail-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

.product-detail-price-text {
  font-size: 24px;
  color: var(--accent-gold);
  font-weight: 600;
  font-family: var(--font-serif);
}

.product-detail-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.product-specs-box {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .checkout-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }
  .app-header {
    padding: 0 15px;
    height: 70px;
  }
  .header-logo-text {
    display: none;
  }
  .header-nav {
    display: flex;
    gap: 2px;
  }
  .nav-link {
    font-size: 11px;
    padding: 6px 10px;
  }
  .cart-btn {
    padding: 8px 12px;
    font-size: 11px;
    gap: 6px;
  }
  .cart-total-header {
    display: none;
  }
  .hero-section h1 {
    font-size: 32px;
  }
  .menu-section {
    padding: 20px 20px 80px 20px;
  }
  
  /* Modal responsive stack */
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-left img {
    min-height: 250px;
    max-height: 300px;
  }
  .product-detail-right {
    padding: 24px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    gap: 15px;
  }
  .product-detail-header h2 {
    font-size: 22px;
  }
}

/* Compact Mobile adjustments */
@media (max-width: 600px) {
  .app-header {
    padding: 0 8px;
    height: 60px;
  }
  .logo-monogram-small {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .header-nav {
    gap: 1px;
  }
  .nav-link {
    font-size: 10px;
    padding: 4px 6px;
  }
  .cart-btn {
    padding: 6px 8px;
    font-size: 10px;
    gap: 4px;
  }
  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .logout-btn {
    width: 30px;
    height: 30px;
  }
  .logout-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Make cart drawer full screen on small screens */
  .cart-drawer {
    max-width: 100%;
    right: -100%;
  }
  .cart-drawer.open {
    right: 0;
  }
}

/* Geolocation input button action styling */
.input-wrapper-with-action {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper-with-action input {
  padding-right: 50px !important;
}

.btn-input-action {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  z-index: 5;
}

.btn-input-action:hover {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold-bright);
  transform: scale(1.08);
}

.btn-input-action:active {
  transform: scale(0.95);
}

.btn-input-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Spinner for the locate button */
.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(197, 160, 89, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin-action 0.8s linear infinite;
}

@keyframes spin-action {
  to { transform: rotate(360deg); }
}
