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

body {
  font-family: Arial, sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4500, #ff6a00, #ff8c00, #ff3300, #ff6f3c);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,100,0,0.6), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: blobMove1 10s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,30,0,0.5), transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: blobMove2 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blobMove1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(100px,80px) scale(1.2); }
}
@keyframes blobMove2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-80px,-60px) scale(1.15); }
}

/* ════════════════════════════════
   DESKTOP LAYOUT  (> 900px)
════════════════════════════════ */

/* ── TOP BAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.topbar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 0 2px rgba(255,120,0,0.35), 0 2px 10px rgba(0,0,0,0.3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── ICON BUTTON ── */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  color: #fff;
}
.icon-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.icon-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.icon-btn:active { transform: scale(0.95); }

/* ── HOME CONTENT ── */
.home-content {
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  z-index: 2;
  overflow: hidden;
}

/* ── Hero image — advanced circular floating design ── */
.hero-image-wrap {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fadeSlideUp 0.7s ease 0.2s both;
  /* size of the whole widget */
  width:  clamp(260px, 34vw, 480px);
  height: clamp(260px, 34vw, 480px);
}

/* Outer glow blob behind everything */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,100,0,0.45) 0%, rgba(255,40,0,0.2) 50%, transparent 75%);
  filter: blur(28px);
  animation: pulseGlow 3s ease-in-out infinite alternate;
  z-index: 0;
}

/* Soft inner ambient ring */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,80,0,0.18) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

/* ── Orbit rings ── */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero-ring-1 {
  width: 92%; height: 92%;
  border-color: rgba(255,160,60,0.35);
  animation: spinRing 18s linear infinite;
}
.hero-ring-2 {
  width: 110%; height: 110%;
  border-color: rgba(255,255,255,0.12);
  border-style: dashed;
  animation: spinRing 28s linear infinite reverse;
}
.hero-ring-3 {
  width: 126%; height: 126%;
  border-color: rgba(255,80,0,0.15);
  animation: spinRing 40s linear infinite;
}

/* ── Orbit dots on ring-1 ── */
.hero-orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,160,80,0.9);
  top: 50%; left: 50%;
  transform-origin: 0 0;
  z-index: 2;
}
.hero-orbit-dot:nth-child(1) { animation: orbitDot1 18s linear infinite; }
.hero-orbit-dot:nth-child(2) { animation: orbitDot2 18s linear infinite; width:5px; height:5px; box-shadow: 0 0 6px 1px rgba(255,200,80,0.8); }
.hero-orbit-dot:nth-child(3) { animation: orbitDot3 18s linear infinite; width:6px; height:6px; box-shadow: 0 0 7px 2px rgba(255,100,0,0.9); }

/* ── Circle photo frame ── */
.hero-circle {
  position: relative;
  z-index: 3;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  overflow: hidden;
  /* Multi-layer border */
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.55),
    0 0 0 8px rgba(255,120,0,0.35),
    0 0 0 12px rgba(255,255,255,0.1),
    0 12px 50px rgba(200,50,0,0.5),
    inset 0 -8px 24px rgba(0,0,0,0.25);
  animation: heroFloat 4s ease-in-out infinite alternate;
  background: linear-gradient(145deg, rgba(255,80,0,0.3), rgba(120,10,0,0.5));
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  filter: brightness(1.08) contrast(1.04);
}

/* ── Shimmer arc on top of circle ── */
.hero-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,0.22) 40deg,
    rgba(255,255,255,0) 80deg
  );
  animation: shimmerSpin 5s linear infinite;
  z-index: 4;
  pointer-events: none;
}

/* ── Floating badge chips ── */
.hero-badge {
  position: absolute;
  z-index: 5;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  letter-spacing: 0.2px;
}
.hero-badge svg { width: 14px; height: 14px; stroke: #fff; fill: none; flex-shrink: 0; }
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7fff6e;
  box-shadow: 0 0 6px #7fff6e;
  flex-shrink: 0;
}

/* badge positions & individual floats */
.hero-badge-1 {
  top: 10%; left: -12%;
  animation: badgeFloat1 3.5s ease-in-out infinite alternate;
}
.hero-badge-2 {
  bottom: 12%; right: -10%;
  animation: badgeFloat2 4s ease-in-out infinite alternate;
}
.hero-badge-3 {
  bottom: 28%; left: -16%;
  animation: badgeFloat3 3s ease-in-out infinite alternate;
}

/* ── Keyframes ── */
@keyframes heroFloat {
  0%   { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-16px) scale(1.02); }
}
@keyframes pulseGlow {
  0%   { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1;   transform: scale(1.08); }
}
@keyframes spinRing {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes shimmerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbitDot1 {
  from { transform: translate(-50%,-50%) rotate(0deg)   translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
}
@keyframes orbitDot2 {
  from { transform: translate(-50%,-50%) rotate(120deg)  translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
  to   { transform: translate(-50%,-50%) rotate(480deg)  translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
}
@keyframes orbitDot3 {
  from { transform: translate(-50%,-50%) rotate(240deg)  translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
  to   { transform: translate(-50%,-50%) rotate(600deg)  translateX(calc(clamp(260px,34vw,480px) * 0.46)) scale(1); }
}
@keyframes badgeFloat1 {
  0%   { transform: translateY(0px)  rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes badgeFloat2 {
  0%   { transform: translateY(0px)  rotate(1deg); }
  100% { transform: translateY(-12px) rotate(-2deg); }
}
@keyframes badgeFloat3 {
  0%   { transform: translateY(0px)  rotate(2deg); }
  100% { transform: translateY(-8px)  rotate(-1deg); }
}

.hero-text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.2);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  font-weight: 400;
}
.hero-sub strong { color: #fff; font-weight: 800; }
.hero-sub em { font-style: normal; color: #ffe066; font-weight: 700; }
.hero-title-highlight {
  background: linear-gradient(90deg, #ffe066, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-highlight-text {
  background: linear-gradient(90deg, #ffe066, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ── PROFILE DROPDOWN (desktop) ── */
.profile-dropdown {
  position: fixed;
  top: 64px;
  right: 16px;
  width: 240px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 18px 16px 16px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(180,40,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.profile-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.profile-dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar svg { width: 26px; height: 26px; stroke: #fff; }

.profile-greeting { font-size: 15px; font-weight: 700; color: #fff; }
.profile-sub { font-size: 11px; color: rgba(255,255,255,0.75); text-align: center; line-height: 1.4; }

.profile-dropdown-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── AUTH BUTTONS (dropdown) ── */
.auth-btn {
  width: 100%;
  height: 44px;           /* Flipkart standard touch target */
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.auth-btn:active { transform: scale(0.97); }

.login-btn  { background: #fff; color: #d43500; box-shadow: 0 4px 16px rgba(255,255,255,0.3); }
.login-btn svg { stroke: #d43500; }
.signup-btn { background: linear-gradient(135deg,#ff5f00,#ff2200); color: #fff; box-shadow: 0 4px 18px rgba(255,60,0,0.5); border: 1px solid rgba(255,255,255,0.2); }
.signup-btn svg { stroke: #fff; }

/* ── BACKDROP ── */
.dropdown-backdrop { position: fixed; inset: 0; z-index: 150; display: none; }
.dropdown-backdrop.open { display: block; }

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ════════════════════════════════
   DASHBOARD — logged-in view
════════════════════════════════ */
.dashboard {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
  z-index: 2;
  gap: 18px;
  flex-direction: column;
  scrollbar-width: none;
}
.dashboard::-webkit-scrollbar { display: none; }
.dashboard.active { display: flex; }

/* ── Greeting banner ── */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 20px 20px;
  box-shadow: 0 4px 24px rgba(180,40,0,0.15);
  animation: fadeSlideUp 0.4s ease both;
}
.dash-greeting-left { display: flex; flex-direction: column; gap: 2px; }
.dash-hello { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.dash-name  { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.dash-status-text { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.dash-online { color: #7fff6e; font-weight: 700; }

.dash-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5f00, #ff2200);
  border: 2.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,60,0,0.4);
}
.dash-avatar svg { width: 28px; height: 28px; stroke: #fff; }

/* ── Stats row ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  animation: fadeSlideUp 0.45s ease 0.05s both;
}
.dash-stat-card {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  box-shadow: 0 2px 12px rgba(180,40,0,0.1);
  text-align: center;
}
.dash-stat-value { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.dash-stat-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Quick actions ── */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  animation: fadeSlideUp 0.5s ease 0.1s both;
}
.dash-action-btn {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 14px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.dash-action-btn:hover  { background: rgba(255,255,255,0.22); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180,40,0,0.15); }
.dash-action-btn:active { transform: scale(0.95); }

.dash-action-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5f00, #ff2200);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(255,60,0,0.4);
}
.dash-action-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.dash-action-btn span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9); text-align: center; letter-spacing: 0.2px; }

/* ── Orders section ── */
.dash-section {
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeSlideUp 0.55s ease 0.15s both;
}
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
}
.dash-section-title { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.2px; }

.dash-refresh-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.dash-refresh-btn svg { width: 14px; height: 14px; stroke: #fff; }
.dash-refresh-btn:hover { background: rgba(255,255,255,0.25); }
.dash-refresh-btn:active { transform: scale(0.96); }

.dash-orders-empty {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
}
.dash-orders-empty svg { width: 40px; height: 40px; stroke: rgba(255,255,255,0.35); }
.dash-orders-empty p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── Topbar logged-in ── */
.topbar-logo-dash { font-size: 18px; }

/* ── Animations ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════
   MY ACCOUNT MODAL
════════════════════════════════ */
.account-modal-overlay {
  align-items: center;
  padding: 16px;
}

.account-modal-card {
  max-width: 720px;
  width: 100%;
  padding: 28px 32px 24px;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tab bar */
.account-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.account-tab {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.2px;
}
.account-tab.active {
  background: linear-gradient(135deg,#ff5f00,#ff2200);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,60,0,0.4);
}

/* KYC status bar */
.kyc-status-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.kyc-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.kyc-dot.pending  { background: #ffbb00; box-shadow: 0 0 6px #ffbb00; }
.kyc-dot.verified { background: #00e676; box-shadow: 0 0 6px #00e676; }
.kyc-dot.rejected { background: #ff4444; box-shadow: 0 0 6px #ff4444; }

/* Tab panels */
.account-tab-panel { display: none; }
.account-tab-panel.active { display: block; }

.acct-section-title {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* 2-column grid */
.acct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.acct-full { grid-column: 1 / -1; }

/* select inside input-wrap */
.select-wrap select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0 10px 0 8px;
  font-size: 15px;
  color: #fff;
  font-family: Arial, sans-serif;
  height: 100%;
  cursor: pointer;
  -webkit-appearance: none;
}
.select-wrap select option { background: #2a1500; color: #fff; }

/* KYC note */
.kyc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,200,0,0.1);
  border: 1px solid rgba(255,200,0,0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,220,100,0.9);
  line-height: 1.5;
  margin-top: 10px;
}
.kyc-note svg { width: 16px; height: 16px; stroke: rgba(255,200,0,0.8); flex-shrink: 0; margin-top: 1px; }

/* Success message */
.account-success {
  font-size: 12px;
  color: #7fff6e;
  min-height: 16px;
  font-weight: 700;
  text-align: center;
}

/* Footer */
.account-form-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Mobile account modal */
@media (max-width: 900px) {
  .account-modal-overlay {
    align-items: flex-end;
    padding: 0;
    padding-bottom: 60px;
  }
  .account-modal-card {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px 16px;
    max-height: calc(100vh - 100px);
  }
  .account-modal-card::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 16px;
  }
  .account-tab { font-size: 11px; height: 32px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-full { grid-column: 1; }
}

@media (min-width: 480px) and (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr 1fr; }
  .acct-full { grid-column: 1 / -1; }
  .account-modal-overlay { align-items: center; padding: 16px; padding-bottom: calc(58px + 16px); }
  .account-modal-card { max-width: 600px; border-radius: 20px; max-height: calc(100vh - 110px); }
  .account-modal-card::before { display: none; }
}

@media (max-width: 380px) {
  .account-modal-card { max-height: calc(100vh - 104px); }
  .account-tab { font-size: 10px; }
}

/* ════════════════════════════════
   LOGGED-IN PROFILE PANEL
════════════════════════════════ */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(80, 10, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.panel-overlay.open { opacity: 1; pointer-events: all; }

.user-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: rgba(255, 80, 0, 0.12);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 310;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(120, 20, 0, 0.3);
}
.user-panel.open { transform: translateX(0); }

/* Header */
.user-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  background: linear-gradient(135deg, rgba(255,80,0,0.35), rgba(255,30,0,0.2));
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.user-panel-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5f00, #ff2200);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 14px rgba(255,60,0,0.4);
}
.user-panel-avatar svg { width: 26px; height: 26px; stroke: #fff; }

.user-panel-info { flex: 1; min-width: 0; }
.user-panel-name  { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-panel-email { font-size: 11px; color: rgba(255,255,255,0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.user-panel-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.user-panel-close svg { width: 16px; height: 16px; stroke: #fff; }
.user-panel-close:hover { background: rgba(255,255,255,0.28); }

/* Menu scroll area */
.user-panel-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
}
.user-panel-menu::-webkit-scrollbar { display: none; }

/* Section labels */
.panel-section-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 6px 4px;
}

/* Menu items */
.panel-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background 0.18s, transform 0.13s;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.panel-menu-item:hover  { background: rgba(255,255,255,0.15); }
.panel-menu-item:active { transform: scale(0.97); }

.panel-menu-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.panel-menu-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }

.panel-menu-item span {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.1px;
}

.panel-chevron { width: 16px; height: 16px; stroke: rgba(255,255,255,0.35); flex-shrink: 0; }

/* Logout item */
.panel-logout-item { margin-top: 8px; }
.panel-logout-item span { color: rgba(255,180,160,0.9); }

/* Mobile panel adjusts above bottom nav */
@media (max-width: 900px) {
  .user-panel {
    top: 56px;
    bottom: 58px;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    transform: translateX(100%);
  }
  .user-panel-header { padding: 16px 14px 14px; }
  .user-panel-avatar { width: 46px; height: 46px; }
  .user-panel-avatar svg { width: 22px; height: 22px; }
  .user-panel-name  { font-size: 15px; }
  .panel-menu-item  { padding: 10px 8px; }
  .panel-menu-icon  { width: 36px; height: 36px; border-radius: 9px; }
  .panel-menu-icon svg { width: 18px; height: 18px; }
  .panel-menu-item span { font-size: 14px; }
}

@media (max-width: 380px) {
  .user-panel { top: 52px; bottom: 56px; }
  .panel-menu-item span { font-size: 13px; }
}

/* ════════════════════════════════
   AUTH MODALS  (desktop default)
════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(120,20,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-card {
  position: relative;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 48px rgba(160,30,0,0.3);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-card::-webkit-scrollbar { display: none; }
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;    /* Flipkart close btn size */
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.modal-close svg { width: 18px; height: 18px; stroke: #fff; }
.modal-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

.modal-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  margin-bottom: 24px;
}

.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ff5f00,#ff2200);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255,60,0,0.5);
  margin-bottom: 6px;
}
.modal-icon svg { width: 26px; height: 26px; stroke: #fff; }

.modal-title { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.modal-sub   { font-size: 13px; color: rgba(255,255,255,0.7); }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  height: 48px;             /* Flipkart/Blinkit input height */
}
.input-wrap:focus-within { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.18); }
.input-wrap > svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.5); flex-shrink: 0; margin-left: 14px; }

.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0 10px 0 8px;
  font-size: 15px;
  color: #fff;
  font-family: Arial, sans-serif;
  height: 100%;
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.4); }

.eye-btn {
  background: none; border: none; cursor: pointer;
  padding: 0 12px;
  display: flex; align-items: center; flex-shrink: 0;
  height: 100%;
}
.eye-btn svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.5); transition: stroke 0.2s; }
.eye-btn:hover svg { stroke: #fff; }

.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-label input:checked + .checkbox-custom { background: linear-gradient(135deg,#ff5f00,#ff2200); border-color: transparent; }
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px; height: 10px;
  border: 2.5px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
  display: block;
}
.checkbox-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.terms-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.form-error { font-size: 12px; color: #ffcca0; min-height: 16px; font-weight: 600; }

/* Submit button — Flipkart style: full width, 48px tall */
.form-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #d43500;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
  transition: transform 0.15s, filter 0.2s;
  margin-top: 4px;
}
.form-submit-btn.signup-submit { background: linear-gradient(135deg,#ff5f00,#ff2200); color: #fff; box-shadow: 0 4px 20px rgba(255,60,0,0.5); }
.form-submit-btn:hover  { filter: brightness(1.07); transform: translateY(-1px); }
.form-submit-btn:active { transform: scale(0.98); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-switch { font-size: 13px; color: rgba(255,255,255,0.65); text-align: center; }
.modal-switch span { color: #fff; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ════════════════════════════════
   BOTTOM NAV — hidden desktop
════════════════════════════════ */
.bottom-nav { display: none; }

/* ════════════════════════════════════════════════════
   MOBILE  ≤ 900px  — Flipkart / Blinkit sizing
   ─────────────────────────────────────────────────
   Topbar        : 56px  (Flipkart exact)
   Bottom nav    : 58px  (Blinkit exact) + safe-area
   Touch targets : 48px  minimum (Material / Blinkit)
   Input height  : 48px
   Icon size     : 24px
   Nav icon      : 24px, label 10px
   Font body     : 14px
   Font heading  : 24–28px
   Border radius : 8–12px (Flipkart), 16px (Blinkit sheet)
════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Topbar: 56px, 16px horizontal padding (Flipkart) ── */
  .topbar { height: 56px; padding: 0 16px; }
  .topbar-logo { font-size: 16px; gap: 8px; }
  .topbar-logo-img { width: 30px; height: 30px; }
  .topbar .topbar-right .profile-btn { display: none; }

  /* ── Icon buttons: 40px diameter, 24px icon ── */
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 24px; height: 24px; }

  /* ── Hero: fills between topbar & bottom nav ── */
  .home-content {
    top: 56px;
    bottom: 58px;
    padding: 28px 16px 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
  }
  .hero-text { max-width: 100%; gap: 16px; text-align: center; }
  .hero-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.2px; }
  .hero-sub   { font-size: 14px; line-height: 1.6; }
  .hero-tagline { font-size: 11px; letter-spacing: 0.6px; }
  .hero-image-wrap { display: none; }

  /* ── Dashboard mobile ── */
  .dashboard {
    top: 56px;
    bottom: 58px;
    padding: 14px 14px 14px;
    gap: 14px;
  }
  .dash-greeting { padding: 16px 14px; border-radius: 16px; }
  .dash-name  { font-size: 20px; }
  .dash-avatar { width: 48px; height: 48px; }
  .dash-avatar svg { width: 24px; height: 24px; }

  .dash-stats { gap: 8px; }
  .dash-stat-card { padding: 12px 8px; border-radius: 12px; }
  .dash-stat-value { font-size: 18px; }
  .dash-stat-label { font-size: 9px; }

  .dash-actions { gap: 8px; grid-template-columns: repeat(3, 1fr); }
  .dash-action-btn { padding: 12px 6px; border-radius: 14px; gap: 6px; }
  .dash-action-icon { width: 40px; height: 40px; border-radius: 10px; }
  .dash-action-icon svg { width: 20px; height: 20px; }
  .dash-action-btn span { font-size: 10px; }

  .dash-section-title { font-size: 14px; }
  .dash-refresh-btn { font-size: 11px; padding: 5px 12px; }

  /* ── Bottom Nav: 58px, Blinkit-style ── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.22);
    z-index: 100;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 16px rgba(160,30,0,0.18);
  }

  /* Each nav item: full height, min 48px touch target */
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    min-height: 48px;
    padding: 6px 0;
    border-radius: 0;
    transition: background 0.18s;
    color: rgba(255,255,255,0.65);
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item svg {
    width: 24px; height: 24px;   /* Blinkit/Flipkart nav icon size */
    stroke: rgba(255,255,255,0.65);
    fill: none;
    transition: stroke 0.18s;
  }
  .bottom-nav-item span {
    font-size: 10px;              /* Flipkart label size */
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.18s;
  }
  .bottom-nav-item.active svg, .bottom-nav-item:hover svg { stroke: #fff; }
  .bottom-nav-item.active span, .bottom-nav-item:hover span { color: #fff; }
  .bottom-nav-item.active { background: rgba(255,255,255,0.12); }
  .bottom-nav-item:active { background: rgba(255,255,255,0.08); }

  /* ── Profile dropdown: slides up above bottom nav ── */
  .profile-dropdown {
    top: auto;
    bottom: 66px;
    right: 12px; left: 12px;
    width: auto;
    border-radius: 16px;
    transform: translateY(10px) scale(0.97);
    padding: 16px 14px 14px;
  }
  .profile-dropdown.open { transform: translateY(0) scale(1); }

  /* Dropdown auth buttons: 48px touch target, Flipkart radius */
  .auth-btn { height: 48px; font-size: 14px; border-radius: 8px; }

  /* ── Modals: Blinkit-style bottom sheet ── */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;      /* Blinkit sheet top radius */
    padding: 24px 16px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 56px);    /* leaves topbar visible */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1); /* Blinkit spring */
  }
  .modal-overlay.open .modal-card { transform: translateY(0); }

  /* Drag handle like Blinkit/Swiggy sheets */
  .modal-card::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    margin: 0 auto 20px;
  }

  .modal-close { width: 36px; height: 36px; top: 16px; right: 16px; }
  .modal-close svg { width: 18px; height: 18px; }

  .modal-icon  { width: 48px; height: 48px; }
  .modal-icon svg { width: 22px; height: 22px; }
  .modal-title { font-size: 20px; }
  .modal-sub   { font-size: 12px; }
  .modal-header { gap: 4px; margin-bottom: 20px; }

  .modal-form { gap: 12px; }

  /* 48px input height, 16px font (prevents iOS zoom) */
  .input-wrap { height: 48px; border-radius: 10px; }
  .input-wrap input { font-size: 16px; }
  .input-group label { font-size: 11px; }

  /* 48px submit button */
  .form-submit-btn { height: 48px; font-size: 15px; border-radius: 8px; }

  .checkbox-text { font-size: 13px; }
  .modal-switch  { font-size: 13px; }
}

/* ── 480px – 900px: phablets / small tablets ── */
@media (min-width: 480px) and (max-width: 900px) {
  .hero-title { font-size: 30px; }
  .home-content { padding: 28px 24px 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-text { text-align: left; max-width: 55%; }
  .hero-image-wrap {
    display: flex;
    width:  clamp(180px, 38vw, 260px);
    height: clamp(180px, 38vw, 260px);
  }

  /* Sheet becomes centered card on wider mobile */
  .modal-overlay { align-items: center; padding: 16px 24px; padding-bottom: calc(58px + 16px); }
  .modal-card {
    max-width: 440px;
    border-radius: 20px;
    max-height: calc(100vh - 130px);
    transform: translateY(20px) scale(0.97);
    padding-bottom: 28px;
  }
  .modal-card::before { display: none; }
  .modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

  /* Dropdown auth buttons side by side */
  .profile-dropdown-actions { flex-direction: row; }
}

/* ── ≤ 380px: compact phones ── */
@media (max-width: 380px) {
  .topbar { height: 52px; padding: 0 12px; }
  .topbar-logo { font-size: 14px; gap: 6px; }
  .topbar-logo-img { width: 26px; height: 26px; }

  .home-content { top: 52px; bottom: 56px; padding: 20px 14px 12px; }
  .hero-title   { font-size: 22px; }
  .hero-sub     { font-size: 13px; }

  .dashboard { top: 52px; bottom: 56px; padding: 12px 12px; gap: 12px; }
  .dash-name  { font-size: 18px; }
  .dash-stat-value { font-size: 16px; }
  .dash-action-icon { width: 36px; height: 36px; }
  .dash-action-icon svg { width: 18px; height: 18px; }
  .dash-action-btn span { font-size: 9px; }

  .bottom-nav { height: 56px; }
  .bottom-nav-item svg  { width: 22px; height: 22px; }
  .bottom-nav-item span { font-size: 9px; }

  .profile-dropdown { bottom: 64px; left: 8px; right: 8px; }

  .modal-card { padding: 20px 14px 16px; max-height: calc(100vh - 52px); }
  .modal-title { font-size: 18px; }
  .input-wrap  { height: 46px; }
  .form-submit-btn { height: 46px; }
}

/* ════════════════════════════════
   GENERIC PANEL MODAL
   (Addresses, Orders, Earnings, Withdrawals, History)
════════════════════════════════ */
.panel-modal-overlay {
  align-items: center;
  padding: 16px;
}
.panel-modal-card {
  max-width: 680px;
  width: 100%;
  padding: 28px 30px 24px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
  padding-right: 40px;
}
.panel-modal-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── Filter chips (Orders modal) ── */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.2px;
}
.filter-chip.active {
  background: linear-gradient(135deg,#ff5f00,#ff2200);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255,60,0,0.4);
}
.filter-chip:hover:not(.active) { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Empty state ── */
.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.15);
}
.panel-empty svg { width: 44px; height: 44px; stroke: rgba(255,255,255,0.25); }

/* ── Order card ── */
.order-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card-id   { font-size: 13px; font-weight: 800; color: #fff; }
.order-card-date { font-size: 11px; color: rgba(255,255,255,0.5); }
.order-card-addr { font-size: 12px; color: rgba(255,255,255,0.7); }
.order-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-delivered { background: rgba(0,230,118,0.18); color: #00e676; }
.badge-picked    { background: rgba(255,149,0,0.18);  color: #ff9500; }
.badge-rejected  { background: rgba(255,68,68,0.18);  color: #ff4444; }
.badge-pending   { background: rgba(255,200,0,0.18);  color: #ffd000; }

/* ── Earnings summary cards ── */
.earn-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.earn-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.earn-card-value { font-size: 22px; font-weight: 900; color: #fff; }
.earn-card-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Earnings table ── */
.earn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.earn-table th {
  text-align: left;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.earn-table td {
  padding: 10px 8px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}
.earn-table tr:last-child td { border-bottom: none; }
.earn-amount-pos { color: #00e676; font-weight: 800; }
.earn-amount-neg { color: #ff4444; font-weight: 800; }

/* ── Withdrawal form ── */
.withdraw-balance {
  background: linear-gradient(135deg, rgba(255,95,0,0.3), rgba(255,34,0,0.2));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.withdraw-balance-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; }
.withdraw-balance-value { font-size: 26px; font-weight: 900; color: #fff; }

/* ── Address list ── */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.address-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.address-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff5f00,#ff2200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.address-card-icon svg { width: 18px; height: 18px; stroke: #fff; }
.address-card-body { flex: 1; }
.address-card-label { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.address-card-text  { font-size: 14px; font-weight: 600; color: #fff; margin-top: 2px; line-height: 1.5; }
.address-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.addr-action-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.addr-action-btn:hover { background: rgba(255,255,255,0.18); }
.addr-action-btn.danger { border-color: rgba(255,68,68,0.4); color: #ff7070; }
.addr-action-btn.danger:hover { background: rgba(255,68,68,0.15); }

.add-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.add-address-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }
.add-address-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* ── History timeline ── */
.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.history-item:last-child { border-bottom: none; }
.history-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ff5f00,#ff2200);
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 6px rgba(255,95,0,0.6);
}
.history-body { flex: 1; }
.history-action { font-size: 13px; font-weight: 700; color: #fff; }
.history-detail { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── Mobile panel modals ── */
@media (max-width: 900px) {
  .panel-modal-overlay {
    align-items: flex-end;
    padding: 0;
    padding-bottom: 60px;
  }
  .panel-modal-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 16px;
    max-height: calc(100vh - 100px);
  }
  .panel-modal-card::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 14px;
  }
  .earn-summary { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .earn-card-value { font-size: 18px; }
}
@media (min-width: 480px) and (max-width: 900px) {
  .panel-modal-overlay { align-items: center; padding: 16px; padding-bottom: calc(58px + 16px); }
  .panel-modal-card { max-width: 560px; border-radius: 20px; max-height: calc(100vh - 110px); }
  .panel-modal-card::before { display: none; }
}
@media (max-width: 380px) {
  .earn-summary { grid-template-columns: 1fr 1fr; }
  .earn-card:last-child { grid-column: 1 / -1; }
}

/* ── DOODLE LAYER — sits in background, behind all content ── */
.doodle-layer {
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;          /* sits with bg blobs, behind ALL content */
  overflow: hidden;
}

.doodle-icon {
  position: absolute;
  top: -60px;
  pointer-events: none;   /* pure decoration — never blocks any click */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  will-change: transform, opacity;
  animation: doodleFall ease-in forwards;
  user-select: none;
}

.doodle-icon svg {
  display: block;
  pointer-events: none;
}

/* gentle wobble variants */
.doodle-icon.wobble-a { animation-name: doodleFallWobbleA; }
.doodle-icon.wobble-b { animation-name: doodleFallWobbleB; }
.doodle-icon.wobble-c { animation-name: doodleFallWobbleC; }

@keyframes doodleFall {
  0%   { opacity: 0;    transform: translateY(-20px) rotate(0deg); }
  5%   { opacity: 0.28; }
  92%  { opacity: 0.22; }
  100% { opacity: 0;    transform: translateY(105vh) rotate(8deg); }
}

@keyframes doodleFallWobbleA {
  0%   { opacity: 0;    transform: translateY(-20px) translateX(0px)  rotate(0deg); }
  5%   { opacity: 0.28; }
  20%  {                transform: translateY(20vh)  translateX(6px)  rotate(3deg); }
  40%  {                transform: translateY(40vh)  translateX(-5px) rotate(-2deg); }
  60%  {                transform: translateY(60vh)  translateX(7px)  rotate(4deg); }
  80%  {                transform: translateY(80vh)  translateX(-4px) rotate(-2deg); }
  92%  { opacity: 0.22; }
  100% { opacity: 0;    transform: translateY(105vh) translateX(3px)  rotate(5deg); }
}

@keyframes doodleFallWobbleB {
  0%   { opacity: 0;    transform: translateY(-20px) translateX(0px)  rotate(0deg); }
  5%   { opacity: 0.28; }
  25%  {                transform: translateY(25vh)  translateX(-7px) rotate(-3deg); }
  45%  {                transform: translateY(45vh)  translateX(5px)  rotate(2deg); }
  65%  {                transform: translateY(65vh)  translateX(-6px) rotate(-3deg); }
  85%  {                transform: translateY(85vh)  translateX(4px)  rotate(2deg); }
  92%  { opacity: 0.22; }
  100% { opacity: 0;    transform: translateY(105vh) translateX(-3px) rotate(-4deg); }
}

@keyframes doodleFallWobbleC {
  0%   { opacity: 0;    transform: translateY(-20px) translateX(0px)  rotate(0deg); }
  5%   { opacity: 0.28; }
  15%  {                transform: translateY(15vh)  translateX(5px)  rotate(2deg); }
  35%  {                transform: translateY(35vh)  translateX(-6px) rotate(-3deg); }
  55%  {                transform: translateY(55vh)  translateX(6px)  rotate(3deg); }
  75%  {                transform: translateY(75vh)  translateX(-4px) rotate(-2deg); }
  92%  { opacity: 0.22; }
  100% { opacity: 0;    transform: translateY(105vh) translateX(4px)  rotate(4deg); }
}

/* ════════════════════════════════
   TOAST NOTIFICATION
════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(30, 8, 0, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(180, 40, 0, 0.35), 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: all;
  cursor: pointer;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.toast.toast-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast.toast-out {
  transform: translateY(16px) scale(0.94);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.22s ease;
}

.toast-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 60, 0, 0.4);
}

.toast-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1px;
  line-height: 1.3;
  margin-bottom: 3px;
}

.toast-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-weight: 400;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 16px 16px;
  animation: toastProgress 2s linear forwards;
}

.toast {
  position: relative;
  overflow: hidden;
}

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* mobile: toast sits above bottom nav */
@media (max-width: 900px) {
  .toast-container { bottom: 70px; }
}
@media (max-width: 380px) {
  .toast-container { bottom: 66px; }
  .toast { padding: 12px 14px; gap: 10px; }
  .toast-icon-wrap { width: 36px; height: 36px; border-radius: 10px; }
  .toast-title { font-size: 12px; }
  .toast-msg   { font-size: 11px; }
}

/* ════════════════════════════════
   NOTIFICATION BELL DOT
════════════════════════════════ */
.notif-btn { position: relative; }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff4444;
  border: 2px solid rgba(255,255,255,0.3);
  display: none;
  box-shadow: 0 0 6px rgba(255,50,50,0.8);
}
.notif-dot.visible { display: block; }

/* ════════════════════════════════
   NOTIFICATIONS DRAWER
════════════════════════════════ */
.notif-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  max-width: 94vw;
  background: rgba(40, 8, 0, 0.6);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid rgba(255,255,255,0.15);
  z-index: 310;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(120,20,0,0.3);
}
.notif-panel.open { transform: translateX(0); }

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  background: linear-gradient(135deg,rgba(255,80,0,0.3),rgba(255,30,0,0.15));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.notif-panel-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.notif-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}
.notif-panel-body::-webkit-scrollbar { display: none; }

/* Empty state */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  text-align: center;
}
.notif-empty svg { width: 40px; height: 40px; stroke: rgba(255,255,255,0.2); }

/* Notification card */
.notif-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.18s;
  cursor: default;
  position: relative;
}
.notif-card.unread {
  background: rgba(255,120,0,0.12);
  border-color: rgba(255,120,0,0.28);
}
.notif-card.unread::before {
  content: '';
  position: absolute;
  top: 14px; left: -1px;
  width: 3px; height: calc(100% - 28px);
  background: linear-gradient(180deg,#ff5f00,#ff2200);
  border-radius: 0 2px 2px 0;
}
.notif-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.notif-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  flex: 1;
}
.notif-card-time {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-card-msg {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.notif-card-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 160px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.notif-card-img:hover { opacity: 0.88; }

/* Lightbox */
.notif-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.notif-lightbox img {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .notif-panel {
    top: 56px;
    bottom: 58px;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
  }
}
@media (max-width: 380px) {
  .notif-panel { top: 52px; bottom: 56px; }
}

/* ════════════════════════════════
   KYC DOCUMENT UPLOAD GRID
════════════════════════════════ */
.kyc-uploads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.kyc-upload-box {
  position: relative;
  background: rgba(255,255,255,0.07);
  border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: 14px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  padding: 10px 8px 36px;
}
.kyc-upload-box:hover {
  border-color: rgba(255,150,60,0.6);
  background: rgba(255,100,0,0.08);
}
.kyc-upload-box.has-image {
  border-style: solid;
  border-color: rgba(0,230,118,0.5);
  background: rgba(0,230,118,0.05);
}

.kyc-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}
.kyc-upload-placeholder svg {
  width: 32px; height: 32px;
  stroke: rgba(255,255,255,0.4);
}
.kyc-upload-placeholder span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}
.kyc-upload-placeholder small {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

.kyc-remove-btn {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,60,60,0.8);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
}
.kyc-remove-btn:hover { background: rgba(255,30,30,0.95); }

@media (max-width: 600px) {
  .kyc-uploads-grid { grid-template-columns: 1fr 1fr; }
  .kyc-upload-box:last-child { grid-column: 1 / -1; }
  .kyc-upload-box { min-height: 110px; }
}
@media (max-width: 360px) {
  .kyc-uploads-grid { grid-template-columns: 1fr; }
  .kyc-upload-box:last-child { grid-column: auto; }
}


/* ════════════════════════════════════════════════════════════════
   ADVANCED MAP MODAL  –  full-screen, Google Maps-level UI
════════════════════════════════════════════════════════════════ */

/* -- Full-screen overlay wrapper -- */
.map-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;          /* shown via .open */
  pointer-events: none;
}
.map-modal-overlay.open {
  display: block;
  pointer-events: all;
}

/* -- The shell that fills the whole screen -- */
.map-shell {
  position: absolute;
  inset: 0;
  background: #0d0d18;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TOP BAR ── */
.map-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  /* glass effect */
  background: linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 70%, transparent 100%);
  pointer-events: none;
}
.map-topbar > * { pointer-events: all; }

/* Back button */
.map-back-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20,20,36,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.map-back-btn:hover { background: rgba(255,255,255,0.18); }

/* Search pill */
.map-search-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  background: rgba(20,20,36,0.88);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-search-pill:focus-within {
  border-color: rgba(255,100,0,0.6);
  box-shadow: 0 0 0 2px rgba(255,100,0,0.15);
}
.map-search-icon { flex-shrink: 0; color: rgba(255,255,255,0.45); }
.map-search-inp {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
.map-search-inp::placeholder { color: rgba(255,255,255,0.38); }
.map-search-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 14px;
  display: none;
  padding: 0 2px;
  line-height: 1;
}
.map-search-clear.visible { display: block; }

/* Layer tabs */
.map-layer-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  background: rgba(20,20,36,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 3px;
}
.map-layer-tab {
  padding: 4px 10px;
  border-radius: 18px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.map-layer-tab.active {
  background: linear-gradient(135deg, #ff5000, #ff2200);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,60,0,0.4);
}
.map-layer-tab:hover:not(.active) { background: rgba(255,255,255,0.1); color: #fff; }

/* -- Search results dropdown -- */
.map-search-results {
  position: absolute;
  top: 62px;
  left: 12px;
  right: 12px;
  background: rgba(18,18,30,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  z-index: 700;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  display: none;
  animation: mapDropIn 0.15s ease;
}
.map-search-results.visible { display: block; }
.map-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.12s;
}
.map-search-result-item:last-child { border-bottom: none; }
.map-search-result-item:hover { background: rgba(255,255,255,0.08); }
.map-search-result-item svg { flex-shrink: 0; color: rgba(255,100,0,0.7); }
.map-search-result-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-search-result-type {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
@keyframes mapDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Map canvas -- */
.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── RIGHT CONTROL STACK ── */
.map-right-controls {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(18,18,30,0.88);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.map-ctrl-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.map-ctrl-btn:active { transform: scale(0.92); }
.map-ctrl-gps { color: #4facfe; }
.map-ctrl-btn.active {
  background: rgba(255,80,0,0.25);
  border-color: rgba(255,80,0,0.5);
  color: #ff6200;
  box-shadow: 0 0 0 2px rgba(255,80,0,0.2);
}

/* Spinning refresh */
.map-ctrl-btn.refreshing svg { animation: mapSpin 0.8s linear infinite; }
@keyframes mapSpin { to { transform: rotate(360deg); } }

/* ── SCALE BAR ── */
.map-scale-bar {
  position: absolute;
  bottom: 210px;
  left: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
}
.map-scale-line {
  height: 3px;
  min-width: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top: none;
  background: transparent;
}
.map-scale-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  letter-spacing: 0.3px;
}

/* ── ORDER COUNT BADGE ── */
.map-order-badge {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background: rgba(18,18,30,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.map-order-badge.visible { opacity: 1; }
.map-order-badge span { color: #ff6200; font-size: 14px; }

/* ── FLOATING ORDER CARDS STRIP ── */
.map-cards-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  padding: 0 0 14px 0;
  pointer-events: none;
  /* fade-up animation */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.map-cards-strip.visible {
  transform: translateY(0);
  pointer-events: all;
}
.map-cards-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 14px 6px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbar */
  scrollbar-width: none;
}
.map-cards-track::-webkit-scrollbar { display: none; }

/* Each floating order card */
.map-order-card {
  flex-shrink: 0;
  width: 240px;
  background: rgba(18,18,30,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px 14px 12px 14px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}
.map-order-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,80,0,0.06), transparent);
  pointer-events: none;
}
.map-order-card:hover  { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.55); }
.map-order-card.active-card {
  border-color: rgba(255,90,0,0.6);
  box-shadow: 0 0 0 2px rgba(255,90,0,0.25), 0 10px 36px rgba(0,0,0,0.55);
}
.map-order-card.picked-card { border-color: rgba(255,145,0,0.35); }

/* Card content rows */
.moc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.moc-id     { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.5); letter-spacing: 0.3px; text-transform: uppercase; }
.moc-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
  background: #7fff6e;
  box-shadow: 0 0 6px #7fff6e;
}
.moc-status-dot.picked { background: #ff8c00; box-shadow: 0 0 6px #ff8c00; }
.moc-title {
  font-size: 14px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px; line-height: 1.3;
}
.moc-addr {
  font-size: 11px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 4px;
}
.moc-addr svg { flex-shrink: 0; }
.moc-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 9px; margin-top: 2px;
}
.moc-earn   { font-size: 17px; font-weight: 900; color: #7fff6e; letter-spacing: -0.5px; }
.moc-earn.picked { color: #ff9500; }
.moc-dist   { font-size: 11px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 3px; }
.moc-dist svg { color: rgba(255,255,255,0.3); }
.moc-accept-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5f00, #ff2200);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(255,60,0,0.4);
  letter-spacing: 0.2px;
}
.moc-accept-btn:hover   { opacity: 0.9; transform: scale(1.02); }
.moc-accept-btn:active  { transform: scale(0.97); }
.moc-accept-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Empty / loading states in strip */
.map-cards-empty {
  flex-shrink: 0;
  width: calc(100vw - 28px);
  background: rgba(18,18,30,0.82);
  backdrop-filter: blur(12px);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.map-cards-loading {
  display: flex; gap: 12px; padding: 12px 14px 6px;
}
.map-card-skeleton {
  flex-shrink: 0; width: 240px; height: 132px; border-radius: 18px;
  background: rgba(255,255,255,0.06);
  animation: mapSkeletonPulse 1.4s ease-in-out infinite;
}
@keyframes mapSkeletonPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ── ORDER DETAIL BOTTOM SHEET ── */
.map-detail-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: rgba(14,14,26,0.98);
  backdrop-filter: blur(24px);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 0 calc(env(safe-area-inset-bottom) + 20px) 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 -10px 60px rgba(0,0,0,0.7);
  max-height: 70vh;
  overflow-y: auto;
}
.map-detail-sheet.open { transform: translateY(0); }
.map-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
  margin: 12px auto 4px;
}
.map-sheet-inner { padding: 12px 20px 4px; }

/* Sheet sections */
.mds-header   { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mds-title    { font-size: 20px; font-weight: 900; color: #fff; line-height: 1.2; }
.mds-id       { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.mds-close    { background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; color: #fff; }
.mds-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mds-badge    { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.mds-badge.avail { background: rgba(127,255,110,0.15); color: #7fff6e; }
.mds-badge.picked { background: rgba(255,140,0,0.15); color: #ff8c00; }
.mds-badge.dist   { background: rgba(79,172,254,0.12); color: #4facfe; }
.mds-earn-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.mds-earn-val { font-size: 28px; font-weight: 900; color: #7fff6e; }
.mds-earn-label { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.4px; }
.mds-row      { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: rgba(255,255,255,0.75); }
.mds-row:last-of-type { border-bottom: none; }
.mds-row svg  { flex-shrink: 0; color: rgba(255,255,255,0.3); margin-top: 1px; }
.mds-row-val  { flex: 1; }
.mds-row-label{ font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 2px; }
.mds-btns     { display: flex; gap: 10px; margin-top: 16px; padding-bottom: 6px; }
.mds-btn-accept {
  flex: 1; padding: 14px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #ff5f00, #ff2200);
  color: #fff; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: opacity 0.15s;
  box-shadow: 0 4px 16px rgba(255,50,0,0.4);
}
.mds-btn-accept:hover   { opacity: 0.9; }
.mds-btn-accept:disabled { opacity: 0.5; cursor: not-allowed; }
.mds-btn-navigate {
  width: 52px; padding: 14px; border: 1px solid rgba(79,172,254,0.3);
  border-radius: 14px; background: rgba(79,172,254,0.1); color: #4facfe;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mds-btn-navigate:hover { background: rgba(79,172,254,0.2); }

/* Sheet backdrop */
.map-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 799;
  background: rgba(0,0,0,0.45);
  display: none;
  animation: mapFadeIn 0.25s ease;
}
.map-sheet-backdrop.open { display: block; }
@keyframes mapFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── CUSTOM LEAFLET MARKER STYLES ── */
/* (inserted via L.divIcon html — these classes drive the markers) */
.map-marker-user {
  width: 20px; height: 20px; border-radius: 50%;
  background: #4facfe;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(79,172,254,0.35), 0 0 16px rgba(79,172,254,0.6);
  animation: mapMarkerPulse 2s ease-in-out infinite;
}
@keyframes mapMarkerPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79,172,254,0.35), 0 0 16px rgba(79,172,254,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(79,172,254,0.12), 0 0 24px rgba(79,172,254,0.5); }
}
.map-marker-order {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 40px;
}
.map-marker-order-body {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.map-marker-order-body.avail { background: linear-gradient(135deg, #7fff6e, #00c853); }
.map-marker-order-body.picked { background: linear-gradient(135deg, #ff9500, #ff5500); }
.map-marker-order-inner {
  transform: rotate(45deg);
  font-size: 12px; font-weight: 900; color: #111;
  line-height: 1;
}
/* Hover/active state: card in strip is highlighted */
.map-marker-order-body.highlight {
  transform: rotate(-45deg) scale(1.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* ── RADIUS CIRCLE ── */
/* Drawn via L.circle — no extra CSS needed, just Leaflet options */

/* ── SCALE BAR (bottom-left) — moved down when sheet opens ── */
.map-scale-bar { transition: bottom 0.35s cubic-bezier(0.34,1.2,0.64,1); }
.map-scale-bar.shifted { bottom: 230px; }

/* ── MOBILE / RESPONSIVE TWEAKS ── */
@media (max-width: 480px) {
  .map-layer-tabs { display: none; }       /* tabs hidden on smallest phones, use long-press */
  .map-topbar { gap: 6px; padding: 8px 10px; }
  .map-right-controls { gap: 6px; }
  .map-ctrl-btn { width: 36px; height: 36px; border-radius: 10px; }
  .map-order-card { width: 220px; }
}
@media (min-width: 900px) {
  /* On wide screens, float the cards strip to the left side */
  .map-cards-strip {
    bottom: auto;
    top: 70px;
    left: 0;
    right: auto;
    width: 280px;
    padding: 0;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }
  .map-cards-track {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 12px;
    gap: 10px;
    max-height: calc(100vh - 170px);
  }
  .map-order-card { width: 100%; scroll-snap-align: none; }
  .map-right-controls { right: 16px; top: 52%; }
  .map-scale-bar { bottom: 40px; }
  .map-scale-bar.shifted { bottom: 40px; }
  .map-order-badge { top: 72px; }
  .map-detail-sheet { max-width: 420px; right: auto; left: 284px; border-radius: 16px; bottom: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 12px 60px rgba(0,0,0,0.7); }
}

/* ════════════════════════════════════════════════════
   OSRM ROUTE LINE + ROUTE INFO PANEL
════════════════════════════════════════════════════ */

/* Animated dashed route polyline (Leaflet adds this class via className option) */
.route-line-animated {
  stroke-dashoffset: 0;
  animation: routeDash 1.2s linear infinite;
}
@keyframes routeDash {
  to { stroke-dashoffset: -36; }
}

/* Route info panel — sits above the map, below the top-bar */
.route-info-panel {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  background: rgba(14,14,26,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 10px 16px 12px;
  min-width: 260px;
  max-width: calc(100vw - 80px);
  box-shadow: 0 6px 32px rgba(0,0,0,0.6);
  animation: mapDropIn 0.2s ease;
}
.rip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.rip-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff6200;
  box-shadow: 0 0 7px #ff6200;
  flex-shrink: 0;
  animation: routeDotPulse 1.4s ease-in-out infinite;
}
@keyframes routeDotPulse {
  0%,100% { box-shadow: 0 0 6px #ff6200; }
  50%      { box-shadow: 0 0 14px #ff6200; }
}
.rip-title {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rip-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.rip-close:hover { color: #fff; }
.rip-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.rip-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rip-val {
  font-size: 17px;
  font-weight: 900;
  color: #ff6200;
  letter-spacing: -0.4px;
}
.rip-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}
.rip-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Navigate button in detail sheet — now triggers OSRM route on map */
.mds-btn-navigate {
  width: 52px;
  padding: 14px;
  border: 1px solid rgba(255,160,0,0.35);
  border-radius: 14px;
  background: rgba(255,140,0,0.12);
  color: #ffaa00;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mds-btn-navigate:hover { background: rgba(255,140,0,0.25); }
