/* ============================================================
   YEIMER APP — COMPONENTS
   UI Components Library · Premium Delivery
   Version 1.0 · 2026
   ============================================================ */

/* ── PRODUCT CARD ─────────────────────────────────────────── */
.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-all);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.01);
}

.product-card:active {
  transform: translateY(-1px) scale(0.99);
}

.product-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-3);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-raised);
}

.product-card__fav {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: var(--z-raised);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-all);
}

.product-card__fav:hover {
  background: rgba(255,107,53,0.2);
  border-color: var(--color-border-primary);
  transform: scale(1.1);
}

.product-card__fav.active {
  background: var(--color-primary-muted);
  border-color: var(--color-border-primary);
  box-shadow: var(--shadow-glow-primary);
}

.product-card__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.product-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.product-card__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__price {
  font-size: var(--text-md);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  letter-spacing: var(--tracking-tight);
}

.product-card__price-old {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: line-through;
}

.product-card__add {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: var(--font-light);
  box-shadow: var(--shadow-button);
  transition: var(--transition-all);
  cursor: pointer;
  flex-shrink: 0;
}

.product-card__add:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: var(--shadow-button-hover);
}

.product-card__add:active {
  transform: scale(0.95);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-card__rating-star {
  color: var(--color-accent-yellow);
}

/* Horizontal variant */
.product-card--horizontal {
  flex-direction: row;
  border-radius: var(--radius-xl);
}

.product-card--horizontal .product-card__image-wrap {
  width: 100px;
  min-width: 100px;
  aspect-ratio: auto;
  height: 100%;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

/* ── BUSINESS CARD ────────────────────────────────────────── */
.business-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-all);
  box-shadow: var(--shadow-card);
  width: 200px;
  flex-shrink: 0;
}

.business-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.business-card__cover {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: var(--gradient-orange-fade);
  position: relative;
  overflow: hidden;
}

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

.business-card__cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
}

.business-card__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.business-card__logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: -28px;
  margin-bottom: var(--space-xs);
}

.business-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-bg);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-3);
  object-fit: cover;
  flex-shrink: 0;
}

.business-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.business-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.business-card__open {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-success);
}

/* ── CATEGORY CHIP ────────────────────────────────────────── */
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-all);
  min-width: 72px;
  flex-shrink: 0;
  user-select: none;
}

.category-chip:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.category-chip.active {
  background: var(--color-primary-muted);
  border-color: var(--color-border-primary);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
}

.category-chip__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--color-bg-elevated);
  transition: var(--transition-all);
}

.category-chip.active .category-chip__icon {
  background: var(--color-primary-muted);
}

.category-chip__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-base);
}

.category-chip.active .category-chip__label {
  color: var(--color-primary);
}

/* ── CART ITEM ROW ────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-all);
}

.cart-item:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-card-hover);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--color-bg-3);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item__name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.cart-item__variant {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.cart-item__price {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-all);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  user-select: none;
}

.qty-btn:hover {
  background: var(--color-primary-muted);
  border-color: var(--color-border-primary);
  color: var(--color-primary);
}

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

.qty-value {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-all);
  color: var(--color-text-faint);
}

.cart-item__remove:hover {
  color: var(--color-error);
  background: var(--color-error-muted);
}

/* ── ORDER STATUS TIMELINE ────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-md);
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-step__dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--color-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: var(--transition-all);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-step__line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: 4px;
  min-height: 20px;
  transition: background var(--transition-slow);
}

.timeline-step--completed .timeline-step__dot {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
  box-shadow: 0 0 10px rgba(6,214,160,0.4);
}

.timeline-step--completed .timeline-step__line {
  background: var(--color-success);
}

.timeline-step--active .timeline-step__dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow-primary);
  animation: pulse 1.5s infinite;
}

.timeline-step__content {
  flex: 1;
  padding-top: 2px;
}

.timeline-step__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: 2px;
}

.timeline-step--pending .timeline-step__title {
  color: var(--color-text-faint);
}

.timeline-step__desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.timeline-step__time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

/* ── PROMO BANNER ─────────────────────────────────────────── */
.promo-banner {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-all);
  min-height: 140px;
  display: flex;
  align-items: center;
}

.promo-banner:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-glow-primary);
}

.promo-banner__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-banner);
  z-index: 0;
}

.promo-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.4;
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  flex: 1;
}

.promo-banner__label {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-xs);
}

.promo-banner__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  color: white;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xs);
}

.promo-banner__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-md);
}

.promo-banner__image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 120%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: screen;
}

/* Carousel dots for banner slider */
.banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  transition: var(--transition-all);
  cursor: pointer;
}

.banner-dot.active {
  width: 20px;
  background: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

/* ── SEARCH BAR ───────────────────────────────────────────── */
.search-container {
  padding: var(--space-md);
  position: relative;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-bar__input-wrap {
  position: relative;
  flex: 1;
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
  transition: color var(--transition-base);
  font-size: 18px;
}

.search-bar__input {
  width: 100%;
  padding: 0.875rem var(--space-md) 0.875rem 48px;
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: var(--transition-all);
}

.search-bar__input::placeholder { color: var(--color-text-faint); }

.search-bar__input:focus {
  border-color: var(--color-primary);
  background: rgba(255,107,53,0.06);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.12);
  outline: none;
}

.search-bar__input:focus ~ .search-bar__icon,
.search-bar__input-wrap:focus-within .search-bar__icon {
  color: var(--color-primary);
}

.search-bar__filter-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-all);
  box-shadow: var(--shadow-button);
  font-size: 18px;
  color: white;
}

.search-bar__filter-btn:hover {
  box-shadow: var(--shadow-button-hover);
  transform: scale(1.05);
}

.search-bar__filter-btn:active { transform: scale(0.95); }

/* Search results dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-dropdown);
  background: var(--color-bg-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--color-bg-card-hover);
}

/* ── PAYMENT CARD VISUAL ──────────────────────────────────── */
.payment-card {
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-all);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-glow-secondary);
}

.payment-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(124,58,237,0.5);
}

.payment-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

.payment-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.payment-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.payment-card__network {
  font-size: var(--text-lg);
  font-weight: var(--font-black);
  color: white;
  letter-spacing: var(--tracking-tight);
}

.payment-card__type {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.payment-card__chip {
  width: 36px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}

.payment-card__number {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: white;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.payment-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.payment-card__label {
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}

.payment-card__value {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: white;
}

/* ── PIN INPUT ────────────────────────────────────────────── */
.pin-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.pin-digit {
  width: 56px;
  height: 64px;
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.pin-digit.filled {
  border-color: var(--color-primary);
  background: var(--color-primary-muted);
  box-shadow: 0 0 12px rgba(255,107,53,0.25);
}

.pin-digit.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
  animation: pulse 1.5s infinite;
}

.pin-digit--dot::after {
  content: '•';
  font-size: var(--text-3xl);
  color: var(--color-primary);
  line-height: 1;
}

/* ── STATS CARD (B2B PANEL) ───────────────────────────────── */
.stats-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: var(--transition-all);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stats-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stats-card:hover::before { opacity: 1; }

.stats-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stats-card__icon--secondary { background: var(--color-secondary-muted); }
.stats-card__icon--success { background: var(--color-success-muted); }
.stats-card__icon--warning { background: var(--color-warning-muted); }

.stats-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

.stats-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.stats-card__delta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.stats-card__delta--up { color: var(--color-success); }
.stats-card__delta--down { color: var(--color-error); }

/* ── ORDER ALERT (PULSATING) ──────────────────────────────── */
.order-alert {
  background: var(--gradient-card);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
  animation: orderAlertPulse 2.5s ease-in-out infinite;
}

@keyframes orderAlertPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    border-color: var(--color-primary);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    border-color: var(--color-primary-light);
  }
}

.order-alert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-orange-fade);
  opacity: 0.5;
  pointer-events: none;
}

.order-alert__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary);
  flex-shrink: 0;
  animation: pulse 1s infinite;
}

.order-alert__icon {
  font-size: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.order-alert__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.order-alert__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 2px;
}

.order-alert__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.order-alert__amount {
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.order-alert__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

/* ── MAP CONTAINER ────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 280px;
  background: var(--color-bg-3);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.map-container__bg {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(255,107,53,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: #0D1117;
}

.map-container__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,107,53,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(124,58,237,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.map-rider-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

.map-rider-pin__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow-primary);
  border: 2px solid white;
}

.map-rider-pin__ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,53,0.4);
  animation: ripple 2s linear infinite;
}

.map-destination-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-destination-pin__dot {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-secondary);
  transform: rotate(-45deg);
  box-shadow: var(--shadow-glow-secondary);
}

.map-route-line {
  position: absolute;
  border: none;
  border-top: 2.5px dashed rgba(255,107,53,0.6);
  transform-origin: left center;
}

.map-overlay-card {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-raised);
}

/* ── RIDER INFO CARD ──────────────────────────────────────── */
.rider-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.rider-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  object-fit: cover;
  box-shadow: var(--shadow-glow-primary);
  flex-shrink: 0;
}

.rider-card__info {
  flex: 1;
}

.rider-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: 3px;
}

.rider-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.rider-card__eta {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  white-space: nowrap;
}

.rider-card__eta-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
  margin-top: 1px;
}

.rider-card__actions {
  display: flex;
  gap: var(--space-xs);
  margin-left: var(--space-xs);
}

/* ── MODAL / OVERLAY ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 0.2s var(--ease-out);
}

.modal-overlay--center {
  align-items: center;
}

.modal {
  background: var(--color-bg-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  width: 100%;
  max-width: var(--max-width-app);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: slideInUp 0.35s var(--ease-spring);
  position: relative;
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal--center {
  border-radius: var(--radius-3xl);
  animation: scaleIn 0.3s var(--ease-spring);
}

.modal__handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  margin: var(--space-md) auto var(--space-sm);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 18px;
  transition: var(--transition-all);
}

.modal__close:hover {
  background: var(--color-error-muted);
  border-color: var(--color-error);
  color: var(--color-error);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-md);
}

/* ── TOAST NOTIFICATIONS ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--top-bar-h) + var(--space-md));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: calc(100% - 2rem);
  max-width: calc(var(--max-width-app) - 2rem);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  animation: bounceIn 0.5s var(--ease-spring);
  pointer-events: all;
  cursor: pointer;
  transition: var(--transition-all);
}

.toast:hover {
  transform: scale(1.02);
}

.toast--success {
  border-color: rgba(6,214,160,0.4);
  background: rgba(6,214,160,0.08);
}

.toast--error {
  border-color: rgba(239,35,60,0.4);
  background: rgba(239,35,60,0.08);
}

.toast--warning {
  border-color: rgba(255,209,102,0.4);
  background: rgba(255,209,102,0.08);
}

.toast--info {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.08);
}

.toast__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.toast__content { flex: 1; }

.toast__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: 2px;
}

.toast__message {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.toast__dismiss {
  font-size: 18px;
  color: var(--color-text-faint);
  cursor: pointer;
  transition: color var(--transition-base);
  flex-shrink: 0;
}

.toast__dismiss:hover { color: var(--color-text); }

/* ── ORDER SUMMARY CARD ───────────────────────────────────── */
.order-summary {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
}

.order-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}

.order-summary__row--total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}

.order-summary__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.order-summary__value {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

.order-summary__total-label {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.order-summary__total-value {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-2xl);
  text-align: center;
  gap: var(--space-md);
}

.empty-state__icon {
  font-size: 64px;
  animation: float 4s ease-in-out infinite;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.empty-state__desc {
  font-size: var(--text-base);
  color: var(--color-text-faint);
  max-width: 260px;
}

/* ── YM MODAL OVERLAY SYSTEM ─────────────────────────────── */
.ym-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.ym-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.ym-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ym-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(20, 20, 31, 0.95);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-modal);
  padding: var(--space-xl);
  animation: modalCardEnter 0.4s var(--ease-spring) both;
}

@keyframes modalCardEnter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ym-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 18px;
  transition: var(--transition-all);
  z-index: 2;
}

.ym-modal-close:hover {
  background: var(--color-error-muted);
  border-color: var(--color-error);
  color: var(--color-error);
  transform: rotate(90deg);
}

.ym-modal-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-right: var(--space-3xl);
}

.ym-modal-body {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ── NOTIFICATION PANEL ──────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: rgba(14, 14, 24, 0.97);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border-left: 1px solid var(--color-border);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
  overflow-y: auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.notif-panel.is-open {
  transform: translateX(0);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-all);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-strong);
  transform: translateX(-4px);
}

.notif-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-item__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-item__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.notif-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: var(--leading-normal);
}

.notif-item__time {
  font-size: var(--text-2xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item--unread {
  border-color: var(--color-border-primary);
  background: rgba(255, 107, 53, 0.04);
}

.notif-item--unread .notif-item__icon {
  box-shadow: var(--shadow-glow-primary);
}

/* ── DEMO HUB FLOATING BUTTON ────────────────────────────── */
.demo-hub-btn {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--space-md) + env(safe-area-inset-bottom, 0px));
  right: var(--space-md);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-glow-primary);
  transition: var(--transition-all);
  animation: demoHubPulse 3s ease-in-out infinite;
  border: none;
}

.demo-hub-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-button-hover);
}

.demo-hub-btn:active {
  transform: scale(0.95);
}

@keyframes demoHubPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5),
                var(--shadow-glow-primary);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 107, 53, 0),
                var(--shadow-glow-primary);
  }
}

/* ── SHIMMER LOADING SKELETON ────────────────────────────── */
.shimmer-line {
  height: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 300% 100%;
  animation: shimmerSweep 1.8s ease-in-out infinite;
}

.shimmer-line--sm { height: 10px; }
.shimmer-line--lg { height: 20px; }
.shimmer-line--xl { height: 28px; }
.shimmer-line--short { width: 50%; }
.shimmer-line--medium { width: 75%; }
.shimmer-line--full { width: 100%; }

@keyframes shimmerSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── BADGE COMPONENT (Enhanced) ──────────────────────────── */
.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-dot-success {
  background: var(--color-success-muted);
  color: var(--color-success);
}
.badge-dot-success::before { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); }

.badge-dot-warning {
  background: var(--color-warning-muted);
  color: var(--color-warning);
}
.badge-dot-warning::before { background: var(--color-warning); box-shadow: 0 0 6px var(--color-warning); }

.badge-dot-error {
  background: var(--color-error-muted);
  color: var(--color-error);
}
.badge-dot-error::before { background: var(--color-error); box-shadow: 0 0 6px var(--color-error); }

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--font-black);
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

