/* 
  Student Crousty - CSS Stylesheet
  Design: Pastel Dark Aesthetic (Noir, Rose Pastel, Violet)
*/

:root {
  --bg-dark: #070509;
  --bg-panel: rgba(18, 11, 24, 0.78);
  --bg-header: rgba(7, 5, 9, 0.85);
  
  --primary-pink: #ff5e97;
  --primary-pink-hover: #ff2a75;
  --primary-pink-muted: rgba(255, 94, 151, 0.15);
  
  --secondary-violet: #ff6b00; /* Sunset Orange */
  --secondary-violet-hover: #e05e00;
  --secondary-violet-muted: rgba(255, 107, 0, 0.15);
  
  --text-white: #ffffff;
  --text-muted: #cbbccf;
  --text-dark: #070509;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-pink-glow: rgba(255, 94, 151, 0.4);
  --border-violet-glow: rgba(255, 107, 0, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Accounts for fixed header of 70px + offset */
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-white);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px; /* offset for fixed header */
  padding-bottom: 90px; /* offset for sticky checkout bar */
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.pink-text {
  color: var(--primary-pink);
  text-shadow: 0 0 15px rgba(255, 117, 151, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-violet) 100%);
  color: var(--text-white);
  box-shadow: 0 8px 24px rgba(255, 117, 151, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 117, 151, 0.4);
}

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

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.btn-sms {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.btn-sms:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-header);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
}

.header-container {
  max-width: 600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 48px;
}

.brand-logo {
  height: 38px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 94, 151, 0.45));
  transition: transform 0.2s ease;
}

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

.neon-open-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(57, 255, 20, 0.03);
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.25), inset 0 0 4px rgba(57, 255, 20, 0.15);
  animation: neon-sign-glow 2.5s infinite alternate;
}

.neon-dot {
  width: 6px;
  height: 6px;
  background-color: #39ff14;
  border-radius: 50%;
  box-shadow: 0 0 8px #39ff14;
  animation: neon-dot-flicker 4s infinite;
}

.neon-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #39ff14;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.5);
  letter-spacing: 0.1em;
  animation: neon-text-flicker 4s infinite;
}

@keyframes neon-sign-glow {
  0% {
    border-color: rgba(57, 255, 20, 0.25);
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.15), inset 0 0 2px rgba(57, 255, 20, 0.05);
  }
  100% {
    border-color: rgba(57, 255, 20, 0.55);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.4), inset 0 0 6px rgba(57, 255, 20, 0.25);
  }
}

@keyframes neon-dot-flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.8; }
  43% { opacity: 1; }
  45% { opacity: 0.3; }
  46% { opacity: 1; }
}

@keyframes neon-text-flicker {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.5);
  }
  41% { opacity: 1; }
  42% {
    opacity: 0.85;
    text-shadow: 0 0 3px rgba(57, 255, 20, 0.5);
  }
  43% { opacity: 1; }
  45% {
    opacity: 0.4;
    text-shadow: none;
  }
  46% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.5);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 60px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.35;
}

.pink-glow {
  top: 10%;
  left: -50px;
  background-color: var(--primary-pink);
}

.violet-glow {
  bottom: 20%;
  right: -50px;
  background-color: var(--secondary-violet);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 2px -1px 0px #000, -1px 2px 0px #000;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.badge-pill {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.crous-badge {
  border-color: var(--border-violet-glow);
  color: var(--secondary-violet);
}

.badge-accent {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.price-badge {
  border-color: var(--border-pink-glow);
}

.price-badge .badge-value {
  color: var(--primary-pink);
  font-size: 1.1rem;
  font-weight: 800;
}

.drink-badge .badge-value {
  color: var(--secondary-violet);
  font-size: 1.1rem;
  font-weight: 800;
}

/* Marketing Offer Neon Card */
.marketing-offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 13, 28, 0.75);
  border: 2px solid rgba(255, 94, 151, 0.7);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin: 10px auto 30px auto;
  max-width: 290px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 94, 151, 0.4), inset 0 0 10px rgba(255, 94, 151, 0.2);
  animation: neon-card-pulse 2s infinite alternate ease-in-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offer-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-violet);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.offer-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-pink);
  line-height: 1.1;
  text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
  animation: price-billboard-flicker 5s infinite;
}

@keyframes neon-card-pulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 94, 151, 0.45), inset 0 0 8px rgba(255, 94, 151, 0.25);
    border-color: rgba(255, 94, 151, 0.75);
  }
  100% {
    box-shadow: 0 0 24px rgba(255, 94, 151, 0.85), inset 0 0 16px rgba(255, 94, 151, 0.45);
    border-color: rgba(255, 94, 151, 1);
  }
}

@keyframes price-billboard-flicker {
  0%, 100% {
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
    opacity: 1;
  }
  45% {
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
    opacity: 1;
  }
  46% {
    text-shadow: 0 0 4px var(--primary-pink), 0 0 8px rgba(255, 94, 151, 0.3);
    opacity: 0.85;
  }
  47% {
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
    opacity: 1;
  }
  49% {
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
    opacity: 1;
  }
  50% {
    text-shadow: none;
    opacity: 0.65;
  }
  51% {
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px rgba(255, 94, 151, 0.6), 0 0 30px rgba(255, 94, 151, 0.4);
    opacity: 1;
  }
}


.hero-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 30px;
}

.image-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 117, 151, 0.4) 0%, rgba(157, 78, 221, 0) 70%);
  filter: blur(10px);
  z-index: 1;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 35px;
  max-width: 450px;
  line-height: 1.5;
}

.btn-hero {
  max-width: 280px;
}

.arrow-icon {
  transition: transform var(--transition-fast);
}

.btn-hero:hover .arrow-icon {
  transform: translateX(4px);
}

/* Order Form Section */
.order-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px 16px;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.section-header {
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step Card Base */
.step-card {
  position: relative;
  z-index: 1;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.step-card.active {
  z-index: 10;
  border-color: var(--border-pink-glow);
  box-shadow: 0 12px 30px rgba(255, 117, 151, 0.08), 0 10px 25px rgba(0,0,0,0.25);
}

.step-card.filled {
  border-color: var(--border-violet-glow);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-violet) 100%);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 117, 151, 0.3);
}

.step-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.step-title-group p {
  font-size: 0.8rem;
  margin-top: 2px;
}

.step-body {
  position: relative;
}

/* Step 1: Custom Dropdown Select */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-select-trigger:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-select-trigger.open {
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 117, 151, 0.2);
}

.trigger-text {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.custom-select-trigger.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary-pink);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #120e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  z-index: 50;
  display: none;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  max-height: 280px;
  overflow: hidden;
  flex-direction: column;
}

.custom-select-dropdown.show {
  display: flex;
  animation: dropdownFadeIn 0.2s ease-out;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

#residence-search {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

#residence-search::placeholder {
  color: rgba(255,255,255,0.3);
}

.residences-list {
  list-style: none;
  overflow-y: auto;
  max-height: 200px;
  padding: 8px 0;
}

/* Custom scrollbar for dropdown */
.residences-list::-webkit-scrollbar {
  width: 6px;
}
.residences-list::-webkit-scrollbar-track {
  background: transparent;
}
.residences-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.residences-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.residences-list li {
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.residences-list li:hover {
  background-color: rgba(255, 117, 151, 0.08);
  color: var(--primary-pink);
}

.residences-list li.selected {
  background: rgba(255, 117, 151, 0.12);
  color: var(--primary-pink);
  font-weight: 700;
}

.residences-list li.no-results {
  text-align: center;
  padding: 20px;
  font-style: italic;
  pointer-events: none;
}

/* Step 2: Crousty Stepper & Info */
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-pink);
}

.product-price .unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stepper Component */
.stepper {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 12px;
}

.step-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

.step-btn:active {
  transform: scale(0.9);
}

.step-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.step-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
  user-select: none;
}

/* Step 3: Drinks grid selection */
.drinks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.drink-item-card {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition-normal);
  gap: 16px;
}

.drink-item-card.active {
  border-color: var(--border-violet-glow);
  background-color: rgba(157, 78, 221, 0.04);
}

.drink-visual {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
}

.drink-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
  opacity: 0.4;
}

.red-theme::after { background-color: #ff3333; }
.orange-theme::after { background-color: #ffaa00; }
.yellow-theme::after { background-color: #ffff00; }
.gold-theme::after { background-color: #ff8800; }
.blue-theme::after { background-color: #33aaff; }

.drink-details {
  flex: 1;
}

.drink-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.drink-price {
  font-size: 0.85rem;
  color: var(--secondary-violet);
  font-weight: 700;
}

.drink-stepper-wrapper {
  flex-shrink: 0;
}

.mini-stepper {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px;
  padding: 3px;
  gap: 8px;
}

.mini-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  transition: var(--transition-fast);
}

.mini-step-btn:hover {
  background-color: rgba(255,255,255,0.15);
}

.mini-step-btn:active {
  transform: scale(0.85);
}

.mini-step-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

/* Step 4: Coordinates input group */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.input-group input {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.input-group input:focus {
  border-color: var(--primary-pink);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 117, 151, 0.15);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-prefix {
  position: absolute;
  left: 18px;
  font-size: 1rem;
}

.input-with-icon input {
  padding-left: 48px;
}

/* Validation Cues */
.input-group.invalid input {
  border-color: rgba(255, 82, 82, 0.6);
  background-color: rgba(255, 82, 82, 0.03);
}

.input-group.valid input {
  border-color: rgba(37, 211, 102, 0.6);
  background-color: rgba(37, 211, 102, 0.02);
}

.error-feedback {
  color: #ff5252;
  font-size: 0.75rem;
  font-weight: 600;
  display: none;
  animation: slideDown 0.2s ease-out;
  margin-top: 2px;
}

.input-group.invalid .error-feedback,
#step-residence-card.invalid .error-feedback {
  display: block;
}

/* Sticky Bottom Checkout Bar */
.sticky-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: rgba(10, 8, 13, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-glass);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: transform var(--transition-normal);
}

.sticky-checkout-bar.hide {
  transform: translateY(100%);
}

.bar-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.price-display {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-pink);
  text-shadow: 0 0 10px rgba(255, 117, 151, 0.2);
}

.btn-checkout {
  flex: 1;
  max-width: 240px;
}

/* Success Validation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 3, 8, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}

.modal-card {
  position: relative;
  background-color: #120e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  z-index: 1002;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-success-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  margin-bottom: 25px;
  max-width: 320px;
}

/* Receipt Ticket UI */
.receipt-card {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
  font-family: monospace;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.receipt-brand {
  font-weight: 700;
  color: var(--primary-pink);
}

.receipt-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin: 12px 0;
}

.receipt-items {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-items li {
  display: flex;
  justify-content: space-between;
}

.receipt-delivery-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.receipt-total-value {
  font-size: 1.15rem;
  color: var(--primary-pink);
}

.payment-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pay-badge {
  font-size: 0.7rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 15px;
}

.modal-footer-note {
  font-size: 0.75rem;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet & Desktop Layout overrides */
@media (min-width: 600px) {
  body {
    padding-top: 80px;
    padding-bottom: 40px; /* no need for bottom offset if bar isn't sticky, but we can make it inline */
    background: radial-gradient(circle at top, #191224 0%, var(--bg-dark) 80%);
  }
  
  .hero-section {
    padding: 60px 40px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-image-wrapper {
    width: 320px;
    height: 320px;
  }
  
  .order-section {
    padding: 30px 20px 80px 20px;
  }
  
  .drinks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .full-width {
    grid-column: span 2;
  }
  
  /* Desktop footer can be larger */
  .main-footer-bottom {
    margin-top: 40px;
    border-top: 1px solid var(--border-glass);
    padding: 30px 20px;
    text-align: center;
  }
  
  .footer-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .sticky-checkout-bar {
    position: static;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 30px auto 0 auto;
    height: auto;
    padding: 24px;
    backdrop-filter: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
  
  .bar-container {
    padding: 0;
  }
  
  .price-amount {
    font-size: 1.8rem;
  }
}

/* Minimalist mobile improvements for screen-height constraints */
@media (max-height: 600px) {
  .hero-image-wrapper {
    width: 180px;
    height: 180px;
  }
}

/* Ensure logo does not cut off on narrow viewports */
@media (max-width: 375px) {
  .header-container {
    padding: 0 12px;
  }
  .brand-logo {
    height: 30px;
    max-height: 32px;
  }
  .neon-open-badge {
    padding: 4px 8px;
    gap: 4px;
  }
  .neon-text {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }
}

