/* ===================================================
   FoodSphere — App Prototype Stylesheet
   Color Palette:
     Primary Orange: #FF5722
     Dark BG:        #0D1117
     Card BG:        #FFFFFF
     Gray BG:        #F7F7F7
     Text:           #1A1A1A
     Gold:           #FFB300
   =================================================== */

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

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

:root {
  --orange: #FF5722;
  --orange-light: #FF7043;
  --orange-dark: #E64A19;
  --gold: #FFB300;
  --dark: #0D1117;
  --dark2: #1A2332;
  --text: #1A1A1A;
  --text-gray: #7A7A7A;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: #0D1117;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   DESKTOP WRAPPER
   ============================================= */
.desktop-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D1117 0%, #1A2332 50%, #0D1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  position: relative;
}

.desktop-bg::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,87,34,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255,179,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* =============================================
   LEFT INFO PANEL
   ============================================= */
.app-info-left {
  max-width: 280px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-logo-big {
  font-size: 56px;
  filter: drop-shadow(0 0 20px rgba(255,87,34,0.5));
}

.brand-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF5722, #FFB300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.brand-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  line-height: 1.5;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255,87,34,0.15);
  border: 1px solid rgba(255,87,34,0.3);
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* =============================================
   RIGHT NAV PANEL
   ============================================= */
.app-info-right {
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-info-right h3 {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.screen-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-nav-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.screen-nav-btn:hover,
.screen-nav-btn.active {
  background: rgba(255,87,34,0.2);
  border-color: rgba(255,87,34,0.5);
  color: #FF5722;
}

.tech-stack-info {
  margin-top: 8px;
}

.tech-stack-info h4 {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stack-item {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =============================================
   PHONE FRAME
   ============================================= */
.phone-frame {
  width: 375px;
  height: 780px;
  background: #1A1A2E;
  border-radius: 50px;
  box-shadow:
    0 0 0 2px #2A2A3E,
    0 0 0 4px #1A1A2E,
    0 30px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0D0D1A;
  border-radius: 20px;
  z-index: 100;
  box-shadow: 0 0 0 2px #1A1A2E;
}

.phone-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 46px;
  overflow: hidden;
  background: var(--bg);
}

/* =============================================
   SCREENS
   ============================================= */
.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar { display: none; }

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* =============================================
   SCREEN 1 — SPLASH
   ============================================= */
.splash-bg {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0D1117 0%, #1A2332 60%, #0D0D1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.splash-particles {
  position: absolute;
  width: 100%; height: 100%;
}

.splash-particles span {
  position: absolute;
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.splash-particles span:nth-child(1) { width:6px;height:6px;background:rgba(255,87,34,0.4);top:20%;left:15%;animation-delay:0s; }
.splash-particles span:nth-child(2) { width:4px;height:4px;background:rgba(255,179,0,0.3);top:35%;right:20%;animation-delay:1s; }
.splash-particles span:nth-child(3) { width:8px;height:8px;background:rgba(255,87,34,0.2);top:65%;left:25%;animation-delay:2s; }
.splash-particles span:nth-child(4) { width:5px;height:5px;background:rgba(255,179,0,0.4);top:75%;right:30%;animation-delay:3s; }
.splash-particles span:nth-child(5) { width:3px;height:3px;background:rgba(255,87,34,0.5);top:50%;left:70%;animation-delay:1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.splash-content {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash-logo {
  position: relative;
  width: 100px; height: 100px;
}

.logo-ring {
  width: 100px; height: 100px;
  animation: pulse-ring 3s infinite ease-in-out;
}

.logo-ring svg { width: 100%; height: 100%; }

.logo-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,87,34,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 2s infinite;
}

@keyframes pulse-ring {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255,87,34,0.7)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255,87,34,1)); }
}

@keyframes glow-pulse {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.3); }
}

.splash-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.splash-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  line-height: 1.5;
}

.splash-loader {
  margin-top: 40px;
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF5722, #FFB300);
  border-radius: 2px;
  animation: load 2s ease forwards;
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* =============================================
   SCREEN 2 — ONBOARDING
   ============================================= */
.onboard-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 50px 24px 32px;
}

.onboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-x {
  background: var(--orange);
  color: white;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.brand-name-sm {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.skip-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.onboard-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.onboard-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.onboard-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide-visual {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Slide 1 Visual */
.slide-1-visual {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  width: 100%;
}

.food-tile {
  background: white;
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  font-size: 24px;
  transition: var(--transition);
  animation: tile-pop 0.5s ease both;
}

.food-tile:nth-child(1){animation-delay:0.1s}
.food-tile:nth-child(2){animation-delay:0.2s}
.food-tile:nth-child(3){animation-delay:0.3s}
.food-tile:nth-child(4){animation-delay:0.4s}
.food-tile:nth-child(5){animation-delay:0.5s}
.food-tile:nth-child(6){animation-delay:0.6s}

@keyframes tile-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.food-tile span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.slide1-star {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 24px;
}

/* Slide 2 Visual */
.slide-2-visual {
  background: linear-gradient(135deg, #E8F5E9, #F3E5F5);
}

.payment-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pay-phone {
  width: 140px;
  background: #1A1A2E;
  border-radius: 20px;
  padding: 16px 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.pay-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-row {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.pay-row.active-pay {
  background: var(--orange);
  color: white;
}

.pay-icon { font-size: 14px; }

.pay-badges {
  display: flex;
  gap: 8px;
}

.pay-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.pay-badge.cod { background: #FF5722; color: white; }
.pay-badge.card { background: #1A2332; color: white; }
.pay-badge.secure { background: #4CAF50; color: white; }

/* Slide 3 Visual */
.slide-3-visual {
  background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
}

.rewards-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}

.rewards-plate {
  font-size: 64px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
  z-index: 2;
}

.coin {
  position: absolute;
  font-size: 24px;
  animation: coin-fall 2s infinite ease-in-out;
}

.coin-1 { top: 20%; left: 20%; animation-delay: 0s; }
.coin-2 { top: 15%; right: 25%; animation-delay: 0.3s; }
.coin-3 { top: 30%; left: 35%; animation-delay: 0.6s; }
.coin-4 { top: 10%; left: 50%; animation-delay: 0.9s; }
.coin-5 { top: 25%; right: 15%; animation-delay: 1.2s; }

@keyframes coin-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(30px) rotate(180deg); opacity: 0; }
}

.rewards-label {
  position: absolute;
  bottom: 20px;
  background: rgba(255,179,0,0.2);
  border: 1px solid rgba(255,179,0,0.4);
  color: #E65100;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.slide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.slide-desc {
  font-size: 13px;
  color: var(--text-gray);
  text-align: center;
  line-height: 1.7;
  margin-top: 8px;
}

.onboard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.dots { display: flex; gap: 6px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: #DDD;
  transition: all 0.3s ease;
}
.dot.active {
  width: 24px;
  background: var(--orange);
}

.next-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,87,34,0.35);
  transition: var(--transition);
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,87,34,0.45);
}

/* =============================================
   SCREEN 3 — HOME
   ============================================= */
.home-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 80px;
}

.home-header {
  background: white;
  padding: 48px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-pick {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.loc-icon { font-size: 14px; color: var(--orange); }
.loc-text { font-size: 15px; font-weight: 600; color: var(--text); }
.loc-arrow { font-size: 12px; color: var(--text-gray); margin-top: 2px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
}

.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--orange);
  color: white;
  font-size: 8px;
  font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,87,34,0.3);
}

.search-bar {
  margin: 0 16px 16px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
  box-shadow: var(--card-shadow);
}

.search-icon { font-size: 16px; color: var(--text-gray); }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-gray);
  cursor: pointer;
}
.filter-btn {
  background: none; border: none;
  font-size: 16px; cursor: pointer;
}

/* Banner */
.banner-carousel {
  margin: 0 16px 16px;
}

.banner {
  background: linear-gradient(135deg, #FF5722, #FF7043);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(255,87,34,0.3);
}

.banner-badge {
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}

.banner-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 4px;
}

.banner-code {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

.banner-img {
  font-size: 48px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.bdot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: #DDD;
  transition: all 0.3s;
}

.bdot.active {
  width: 20px;
  background: var(--orange);
}

/* Categories */
.categories {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.cat-chip span {
  width: 52px; height: 52px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
  transition: var(--transition);
}

.cat-chip.active span {
  border-color: var(--orange);
  background: #FFF3F0;
}

.cat-chip p {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-gray);
}

.cat-chip.active p {
  color: var(--orange);
}

/* Section Header */
.section-header {
  padding: 0 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title { font-size: 16px; font-weight: 700; color: var(--text); }
.see-all { font-size: 13px; color: var(--orange); font-weight: 600; cursor: pointer; }

/* Restaurant Cards */
.restaurants-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rest-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: var(--transition);
}

.rest-card:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }

.rest-img {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
}

.rest-img-1 { background: linear-gradient(160deg, #3E1F00, #7B3A10, #FF5722); }
.rest-img-2 { background: linear-gradient(160deg, #1A0A00, #8B4513, #D2691E); }
.rest-img-3 { background: linear-gradient(160deg, #001529, #003366, #0055A4); }

.rest-heart {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.9);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rest-time-badge {
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  position: absolute;
  bottom: 12px; left: 12px;
}

.rest-info {
  padding: 12px 14px;
}

.rest-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.rest-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.verified {
  display: inline-flex;
  background: var(--orange);
  color: white;
  font-size: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.rest-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.rest-cuisine {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.rest-meta { display: flex; gap: 8px; }

.free-delivery {
  font-size: 11px;
  color: #2E7D32;
  font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 16px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.nav-icon { font-size: 20px; }

.nav-item span:last-child {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-gray);
}

.nav-item.active .nav-icon { filter: none; }
.nav-item.active span:last-child { color: var(--orange); font-weight: 700; }
.nav-item.active { background: rgba(255,87,34,0.05); }

/* =============================================
   SCREEN 4 — RESTAURANT DETAIL
   ============================================= */
.rest-detail-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 80px;
}

.rest-cover {
  position: relative;
  height: 220px;
}

.rest-cover-img {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1A0800, #5C1A00, #8B3100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.cover-emoji {
  font-size: 60px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  z-index: 1;
}

.cover-actions {
  position: absolute;
  top: 48px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 2;
}

.cover-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.cover-right-btns { display: flex; gap: 8px; }

.rest-detail-body {
  background: white;
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding: 20px 16px 0;
  min-height: 400px;
}

.rest-detail-header { margin-bottom: 16px; }

.rest-detail-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.rest-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.open-badge {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.rest-detail-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.rest-detail-rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.rest-detail-rating span { color: var(--text-gray); font-weight: 400; }

.rest-detail-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-chip {
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.menu-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #F0F0F0;
  margin: 0 -16px 16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.menu-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.menu-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #F8F8F8;
  cursor: pointer;
  transition: var(--transition);
}

.menu-item:hover { background: #FAFAFA; margin: 0 -16px; padding: 14px 16px; }

.menu-item-info { flex: 1; }
.menu-item-info h5 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.menu-item-info p { font-size: 11px; color: var(--text-gray); line-height: 1.4; margin-bottom: 6px; }
.menu-price { font-size: 14px; font-weight: 700; color: var(--orange); }

.menu-item-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.menu-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.menu-img-1 { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.menu-img-2 { background: linear-gradient(135deg, #FBE9E7, #FFCCBC); }
.menu-img-3 { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }

.add-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,87,34,0.4);
  transition: var(--transition);
}

.add-btn:hover { transform: scale(1.15); }

.sticky-cart {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255,87,34,0.4);
  transition: var(--transition);
}

.sticky-cart:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255,87,34,0.5); }

.cart-count {
  background: rgba(255,255,255,0.25);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* =============================================
   SCREEN 5 — CART
   ============================================= */
.cart-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 90px;
}

.cart-header {
  background: white;
  padding: 48px 16px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.back-arrow {
  background: var(--bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-title { font-size: 18px; font-weight: 700; color: var(--text); }
.cart-sub { font-size: 12px; color: var(--text-gray); }

.cart-items {
  background: white;
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F5F5F5;
}

.cart-item:last-of-type { border-bottom: none; }

.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h5 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cart-price { font-size: 13px; font-weight: 700; color: var(--orange); }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 20px;
  padding: 4px;
}

.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 1px solid #E0E0E0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qty-btn.qty-plus {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.qty-num { font-size: 13px; font-weight: 600; width: 16px; text-align: center; }

.add-more-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  padding: 12px 0 0;
  cursor: pointer;
}

.delivery-address-card {
  background: white;
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--card-shadow);
}

.address-icon { font-size: 20px; color: var(--orange); flex-shrink: 0; }
.address-content { flex: 1; }
.address-label { font-size: 10px; font-weight: 700; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; }
.address-content p { font-size: 13px; color: var(--text); font-weight: 500; margin-top: 2px; }
.change-btn { background: none; border: none; color: var(--orange); font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Poppins', sans-serif; }

.loyalty-banner {
  background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
  border: 1px solid rgba(255,179,0,0.3);
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loyalty-icon { font-size: 22px; flex-shrink: 0; }
.loyalty-banner p { flex: 1; font-size: 12px; color: var(--text); }
.loyalty-banner strong { color: #E65100; }

.toggle-switch {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: #E0E0E0;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch.active {
  background: var(--orange);
}

.toggle-switch.active::after {
  left: 21px;
}

.order-summary {
  background: white;
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  padding: 5px 0;
}

.summary-row.discount span:last-child { color: #2E7D32; font-weight: 600; }
.summary-row.total { font-size: 15px; font-weight: 700; }
.summary-divider { height: 1px; background: #F0F0F0; margin: 8px 0; }

.payment-select {
  background: white;
  margin: 0 16px;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #DDD;
  transition: var(--transition);
}

.radio-dot.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px white;
}

.place-order-btn {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 18px 24px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255,87,34,0.4);
  transition: var(--transition);
}

.place-order-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,87,34,0.5); }

/* =============================================
   SCREEN 6 — TRACKING
   ============================================= */
.tracking-wrap {
  background: var(--bg);
  min-height: 100%;
}

.tracking-header {
  padding: 48px 16px 16px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracking-header h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.order-id { color: var(--orange); }

.map-view {
  height: 240px;
  background: white;
  position: relative;
  overflow: hidden;
}

.map-bg {
  width: 100%; height: 100%;
  background: #F0EDE8;
  position: relative;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Map roads */
.map-bg::before {
  content: '';
  position: absolute;
  top: 40%; left: 0; right: 0;
  height: 24px;
  background: white;
  border-top: 1px solid #E0D8CF;
  border-bottom: 1px solid #E0D8CF;
}

.map-bg::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 35%;
  width: 24px;
  background: white;
  border-left: 1px solid #E0D8CF;
  border-right: 1px solid #E0D8CF;
}

.map-marker {
  position: absolute;
  font-size: 24px;
  z-index: 5;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
}

.restaurant-marker { bottom: 25%; left: 28%; }
.rider-marker { top: 38%; left: 50%; animation: rider-move 3s infinite ease-in-out; }
.home-marker { top: 12%; right: 20%; }

@keyframes rider-move {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(10px,-8px); }
}

.map-route {
  position: absolute;
  bottom: 32%;
  left: 35%;
  width: 180px;
  height: 90px;
  border: 2.5px dashed var(--orange);
  border-radius: 0 60px 0 0;
  border-left: none;
  border-bottom: none;
  z-index: 3;
}

.eta-bubble {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  z-index: 10;
  white-space: nowrap;
}

.tracking-card {
  background: white;
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding: 20px 16px;
  min-height: 360px;
  position: relative;
  z-index: 10;
}

.on-way-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.arriving-text {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.progress-track {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0;
}

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #DDD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #DDD;
  background: white;
  flex-shrink: 0;
}

.step-circle.done {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

.step-circle.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 0 0 4px rgba(255,87,34,0.2);
  animation: pulse-step 1.5s infinite;
}

@keyframes pulse-step {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,87,34,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255,87,34,0.1); }
}

.progress-step span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-gray);
  white-space: nowrap;
}

.progress-step.done span { color: #4CAF50; }
.progress-step.active span { color: var(--orange); }

.progress-line {
  flex: 1;
  height: 2px;
  background: #E0E0E0;
  margin-bottom: 15px;
}

.progress-line.done { background: #4CAF50; }
.progress-line.active {
  background: linear-gradient(90deg, #4CAF50, var(--orange));
}

.rider-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rider-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A2332, #2A3A52);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rider-info { flex: 1; }
.rider-info h5 { font-size: 14px; font-weight: 700; color: var(--text); }
.rider-info span { font-size: 11px; color: var(--text-gray); }

.rider-actions { display: flex; gap: 8px; }

.rider-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E0E0E0;
  background: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-summary-mini {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

/* =============================================
   SCREEN 7 — REWARDS
   ============================================= */
.rewards-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 80px;
}

.rewards-header {
  background: white;
  padding: 48px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rewards-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.rewards-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px;
}

.crown-icon { font-size: 24px; }
.rewards-title-row h4 { font-size: 18px; font-weight: 700; color: var(--text); }

.points-card {
  background: linear-gradient(135deg, #F57F17, #FFB300, #FFCA28);
  margin: 0 16px 16px;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(255,179,0,0.35);
}

.tier-badge {
  background: rgba(255,255,255,0.3);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.points-big {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.points-value {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.tier-progress-wrap {}
.tier-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 6px;
}

.tier-bar {
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tier-fill {
  height: 100%;
  width: 60%;
  background: white;
  border-radius: 3px;
}

.tier-note {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.earn-section {
  background: white;
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.earn-section h5 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.earn-rule { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 14px; }

.earn-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.earn-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.earn-icon {
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.earn-step span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-gray);
}

.earn-arrow { font-size: 16px; color: var(--text-gray); margin-bottom: 16px; }

.rewards-history {
  background: white;
  margin: 0 16px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.rewards-history h5 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #F5F5F5;
}

.history-item:last-child { border-bottom: none; }

.hist-rest { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.hist-pts { font-size: 13px; font-weight: 700; }
.hist-pts.earned { color: #2E7D32; }
.hist-pts.redeemed { color: var(--orange); }
.hist-time { font-size: 11px; color: var(--text-gray); width: 60px; text-align: right; }

/* =============================================
   SCREEN 8 — ORDERS
   ============================================= */
.orders-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 80px;
}

.orders-header {
  background: white;
  padding: 48px 16px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.orders-header h3 { font-size: 20px; font-weight: 700; color: var(--text); }

.order-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid #F0F0F0;
}

.order-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.order-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.order-card {
  background: white;
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.order-status-badge.live {
  background: #FFF3E0;
  color: var(--orange);
}

.order-status-badge.done-badge {
  background: #E8F5E9;
  color: #2E7D32;
}

.order-num { font-size: 12px; color: var(--text-gray); font-weight: 600; }

.order-card-body { margin-bottom: 12px; }

.order-rest-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.order-rest-emoji {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.order-rest-info h5 { font-size: 14px; font-weight: 700; color: var(--text); }
.order-rest-info p { font-size: 12px; color: var(--text-gray); }

.order-track-row {
  display: flex;
  align-items: center;
}

.mini-track {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #DDD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #DDD;
  flex-shrink: 0;
}

.mini-track.done {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

.mini-track.active-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.mini-line {
  flex: 1;
  height: 2px;
  background: #E0E0E0;
}

.mini-line.done { background: #4CAF50; }
.mini-line.active { background: linear-gradient(90deg, #4CAF50, var(--orange)); }

.track-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.track-labels span {
  font-size: 8px;
  color: var(--text-gray);
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F5F5F5;
}

.order-card-footer > span { font-size: 12px; color: var(--text-gray); font-weight: 600; }

.track-btn {
  background: var(--orange);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.reorder-btn {
  background: none;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.past-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 16px;
}

/* =============================================
   SCREEN 9 — PROFILE
   ============================================= */
.profile-wrap {
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 80px;
}

.profile-header {
  background: white;
  padding: 48px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.profile-hero {
  background: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #F5F5F5;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5722, #FF7043);
  color: white;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 4px rgba(255,87,34,0.15);
  margin-bottom: 4px;
}

.profile-name { font-size: 18px; font-weight: 700; color: var(--text); }
.profile-email { font-size: 13px; color: var(--text-gray); }

.edit-profile-btn {
  background: none;
  border: 1.5px solid #DDD;
  color: var(--text);
  padding: 8px 24px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  gap: 1px;
  background: #F0F0F0;
  margin: 12px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.stat-card {
  flex: 1;
  background: white;
  padding: 16px 8px;
  text-align: center;
}

.stat-card.gold { background: #FFFDE7; }

.stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 10px;
  color: var(--text-gray);
  font-weight: 500;
}

.profile-menu {
  background: white;
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #F8F8F8;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.profile-menu-item:hover { background: #FAFAFA; }
.profile-menu-item:last-child { border-bottom: none; }

.profile-menu-item span:first-child { font-size: 18px; }
.profile-menu-item span:nth-child(2) { flex: 1; }

.arrow { color: var(--text-gray); font-size: 18px; font-weight: 300; }

.profile-divider { height: 8px; background: var(--bg); }

.profile-menu-item.logout { color: #F44336; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .desktop-bg {
    flex-direction: column;
    padding: 20px 16px;
    gap: 24px;
  }
  .app-info-left { max-width: 100%; flex-direction: row; flex-wrap: wrap; }
  .app-info-right { flex-direction: row; flex-wrap: wrap; max-width: 100%; gap: 8px; }
  .screen-nav-list { flex-direction: row; flex-wrap: wrap; }
  .tech-stack-info { display: none; }
}

@media (max-width: 600px) {
  .app-info-left, .app-info-right {
    display: none !important;
  }
  .desktop-bg {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }
  .phone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
  }
  .phone-notch {
    display: none !important;
  }
  .phone-screen {
    border-radius: 0 !important;
  }
}

/* ===== CHECKOUT SCREEN ===== */
.checkout-wrap {
  padding: 0 0 16px;
  overflow-y: auto;
  height: 100%;
  padding-bottom: 100px;
}
.checkout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 48px 16px 16px;
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #F5F5F5;
  z-index: 10;
}
.checkout-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.checkout-step {
  font-size: 11px;
  color: var(--orange);
  background: rgba(255, 87, 34, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.checkout-section {
  margin: 16px 16px 0;
}
.checkout-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
/* Address Card */
.checkout-address-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.checkout-address-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkout-address-info {
  flex: 1;
}
.checkout-address-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.checkout-address-text {
  font-size: 13px;
  color: var(--text);
  margin: 3px 0 2px;
  font-weight: 500;
}
.checkout-address-sub {
  font-size: 11px;
  color: var(--text-gray);
}
.checkout-change-btn {
  background: rgba(255, 87, 34, 0.1);
  border: none;
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
/* Delivery Time Options */
.checkout-time-options {
  display: flex;
  gap: 10px;
}
.checkout-time-card {
  flex: 1;
  background: white;
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
}
.checkout-time-card.selected {
  border-color: var(--orange);
  background: #FFF3F0;
}
.checkout-time-icon {
  font-size: 22px;
  margin-bottom: 8px;
}
.checkout-time-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-time-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.checkout-time-eta {
  font-size: 11px;
  color: var(--text-gray);
}
.checkout-time-price {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2E7D32;
  margin-top: 6px;
}
.checkout-time-card.selected .checkout-time-price {
  color: var(--orange);
}
.checkout-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #E0E0E0;
  transition: var(--transition);
}
.checkout-radio.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px white;
}
/* Order Summary Card */
.checkout-order-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.checkout-rest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F5F5F5;
}
.checkout-rest-emoji {
  font-size: 20px;
}
.checkout-rest-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.checkout-rest-badge {
  font-size: 11px;
  color: white;
  background: #2E7D32;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-item-qty {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  min-width: 24px;
}
.checkout-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.checkout-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.checkout-edit-link {
  font-size: 12px;
  color: var(--orange);
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #F5F5F5;
}
/* Promo Code */
.checkout-promo-row {
  display: flex;
  gap: 10px;
}
.checkout-promo-input {
  flex: 1;
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.3s;
  box-shadow: var(--card-shadow);
}
.checkout-promo-input:focus {
  border-color: var(--orange);
}
.checkout-promo-input::placeholder {
  color: var(--text-gray);
}
.checkout-promo-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,87,34,0.2);
}
/* Payment Options */
.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
}
.checkout-pay-card.selected {
  border-color: var(--orange);
  background: #FFF3F0;
}
.checkout-pay-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkout-pay-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-pay-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.checkout-pay-desc {
  font-size: 11px;
  color: var(--text-gray);
}
/* Bill Summary */
.checkout-bill-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.checkout-bill-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
}
.checkout-bill-row.discount {
  color: #2E7D32;
  font-weight: 600;
}
.checkout-bill-divider {
  height: 1px;
  background: #F0F0F0;
  margin: 4px 0;
}
.checkout-bill-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  padding-top: 10px;
}
/* Place Order Button */
.checkout-place-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 18px 24px;
  border-radius: 16px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(255,87,34,0.4);
  transition: var(--transition);
}
.checkout-place-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255,87,34,0.5);
}
.checkout-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-btn-icon {
  font-size: 20px;
}
.checkout-btn-text {
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.checkout-btn-price {
  font-size: 16px;
  font-weight: 800;
  color: white;
  background: rgba(0,0,0,0.15);
  padding: 6px 14px;
  border-radius: 10px;
}
