/* ============================================
   VALFRI PWA — Native iOS/Android Feel
   ============================================ */

:root {
  --bg: #0A0A1A;
  --bg-2: #16162E;
  --card: rgba(255, 255, 255, 0.05);
  --card-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.48);
  --text-4: rgba(255, 255, 255, 0.32);
  --primary: #A855F7;
  --primary-hi: #C084FC;
  --accent: #00C896;
  --blue: #3B82F6;
  --pink: #EC4899;
  --orange: #F59E0B;
  --red: #EF4444;
  --grad: linear-gradient(135deg, #A855F7 0%, #3B82F6 100%);
  --grad-pink: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(168, 85, 247, 0.2);
  --status-h: env(safe-area-inset-top, 20px);
  --tabbar-h: 72px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
  height: 100%;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; }

/* ============ SPLASH SCREEN ============ */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; }
.splash-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: splashPulse 1.5s ease-in-out infinite; }
.splash-mark {
  width: 80px; height: 80px;
  background: var(--grad);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 900; color: white;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
}
.splash-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.splash-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ STATUS BAR ============ */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--status-h) + 24px);
  padding: var(--status-h) 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: white;
  z-index: 100;
  pointer-events: none;
}
.status-right { display: flex; align-items: center; gap: 6px; }
.status-icon { width: 16px; height: 12px; color: white; }

/* ============ APP CONTAINER ============ */
.app {
  position: fixed; inset: 0;
  padding-top: calc(var(--status-h) + 24px);
  padding-bottom: var(--tabbar-h);
  overflow: hidden;
}

/* ============ SCREENS ============ */
.screen {
  position: absolute; inset: 0;
  padding-top: calc(var(--status-h) + 24px);
  padding-bottom: calc(var(--tabbar-h) + 20px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  background: var(--bg);
}
.screen.active { transform: translateX(0); }
.screen.slide-out-left { transform: translateX(-30%); opacity: 0; }
.screen-header { padding: 20px 20px 16px; }
.screen-header h1 { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -0.03em; }
.screen-header p { font-size: 0.95rem; color: var(--text-3); margin: 4px 0 0; }

/* ============ HOME SCREEN ============ */
.home-content { padding: 0 20px 40px; }

.home-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 20px;
}
.greet { font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.user-name { font-size: 1.6rem; font-weight: 800; margin-top: 2px; letter-spacing: -0.02em; }

.notif-bell {
  position: relative;
  width: 44px; height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: transform 0.2s;
}
.notif-bell:active { transform: scale(0.92); }
.notif-bell svg { width: 20px; height: 20px; }
.notif-dot {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--red);
}

/* Search */
.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-3);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.search-pill:active { background: var(--card-hi); transform: scale(0.98); }
.search-pill svg { width: 18px; height: 18px; }

/* Promo */
.promo-card {
  margin-top: 20px;
  background: var(--grad);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}
.promo-card::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.promo-content { flex: 1; position: relative; z-index: 1; }
.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.promo-sub { font-size: 0.85rem; margin-top: 6px; opacity: 0.9; line-height: 1.4; }
.btn-light {
  margin-top: 12px;
  background: white; color: var(--primary);
  border: none; padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 700;
}
.promo-emoji { font-size: 3.5rem; position: relative; z-index: 1; }

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.see-all { font-size: 0.8rem; font-weight: 600; color: var(--primary-hi); }

/* Quick grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: var(--text);
  transition: all 0.2s;
}
.quick-tile:active { transform: scale(0.94); background: var(--card-hi); }
.quick-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.quick-icon.taxi { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(30,64,175,0.25)); }
.quick-icon.food { background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(239,68,68,0.25)); }
.quick-icon.beauty { background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(168,85,247,0.25)); }
.quick-icon.moving { background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(4,120,87,0.25)); }
.quick-icon.cleaning { background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(14,116,144,0.25)); }
.quick-icon.shopping { background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(88,28,135,0.25)); }
.quick-name { font-size: 0.85rem; font-weight: 600; }

/* Active order */
.active-order {
  margin-top: 24px;
  background: var(--card-hi);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 20px;
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; }
.order-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.order-id { font-size: 1.1rem; font-weight: 800; margin-top: 2px; }
.order-status {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 200, 150, 0.15);
  padding: 6px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
}
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.order-track {
  display: flex; justify-content: space-between;
  margin: 24px 0 20px;
  position: relative;
}
.track-line {
  position: absolute; top: 12px; left: 12px; right: 12px;
  height: 2px; background: var(--border);
}
.track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.track-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border); }
.track-step.done .track-dot { background: var(--accent); border-color: var(--accent); }
.track-step.active .track-dot { background: var(--primary); border-color: var(--primary); }
.track-dot.pulse { animation: pulseRing 1.5s infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); } 100% { box-shadow: 0 0 0 12px rgba(168,85,247,0); } }
.track-label { font-size: 0.7rem; color: var(--text-3); }
.track-step.done .track-label, .track-step.active .track-label { color: var(--text); font-weight: 600; }

.order-cta { display: flex; gap: 10px; }
.btn-ghost, .btn-primary {
  flex: 1; padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem; font-weight: 700;
  border: none;
}
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-primary { background: var(--grad); color: white; box-shadow: 0 4px 16px rgba(168,85,247,0.3); }

/* Recommendations */
.rec-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 8px;
  scroll-snap-type: x mandatory;
}
.rec-scroll::-webkit-scrollbar { display: none; }
.rec-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
}
.rec-card:active { transform: scale(0.97); }
.rec-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.rec-name { padding: 10px 12px 2px; font-weight: 700; font-size: 0.9rem; }
.rec-meta { padding: 0 12px 12px; font-size: 0.75rem; color: var(--text-3); }

/* ============ SERVICES SCREEN ============ */
.services-list { padding: 0 20px; }
.service-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  transition: all 0.2s;
}
.service-row:active { transform: scale(0.98); background: var(--card-hi); }
.service-row-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-row-body { flex: 1; }
.service-row-name { font-weight: 700; font-size: 1rem; }
.service-row-desc { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.service-row-arrow { color: var(--text-4); font-size: 1.5rem; }

/* ============ ORDERS SCREEN ============ */
.orders-list { padding: 0 20px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
}
.order-card-head { display: flex; align-items: center; gap: 12px; }
.order-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.order-card-name { font-weight: 700; font-size: 0.95rem; }
.order-card-time { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.order-card-price { margin-left: auto; font-weight: 800; }
.order-card-status {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.order-card-status.done { background: rgba(0, 200, 150, 0.15); color: var(--accent); }
.order-card-status.upcoming { background: rgba(59, 130, 246, 0.15); color: var(--blue); }

/* ============ PROFILE SCREEN ============ */
.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
}
.profile-avatar {
  width: 72px; height: 72px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-email { font-size: 0.85rem; color: var(--text-3); margin-top: 2px; }

.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 12px;
  text-align: center;
}
.stat-num { font-size: 1.3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.7rem; color: var(--text-3); margin-top: 4px; }

.profile-menu { padding: 0 20px; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.menu-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.menu-label { flex: 1; font-size: 0.95rem; }
.menu-arrow { color: var(--text-4); font-size: 1.2rem; }
.menu-value { color: var(--text-3); font-size: 0.85rem; }
.menu-toggle { width: 44px; height: 26px; background: var(--primary); border-radius: 999px; position: relative; transition: background 0.2s; }
.menu-toggle::after { content: ''; position: absolute; top: 2px; left: 20px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: left 0.2s; }
.menu-toggle.on::after { left: 20px; }
.menu-toggle:not(.on) { background: var(--border); }
.menu-toggle:not(.on)::after { left: 2px; }

.logout-btn {
  margin: 24px 20px 8px;
  width: calc(100% - 40px);
  background: var(--card);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
}
.profile-version {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-4);
  padding: 20px;
}

/* ============ SERVICE DETAIL ============ */
.service-detail { background: var(--bg); }
.detail-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 10;
}
.back-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.detail-title { font-size: 1.1rem; font-weight: 800; }
.detail-content { padding: 20px; }

/* ============ TAB BAR ============ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 0;
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--primary-hi); }
.tab.active::before {
  content: '';
  position: absolute; top: 0;
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.tab:active { transform: scale(0.92); }

/* ============ MODAL (Bottom sheet) ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-height: 80vh;
  background: var(--bg-2);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.modal.open { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border-hi);
  border-radius: 2px;
  margin: 8px auto 4px;
}
.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

/* ============ TOUCH FEEDBACK ============ */
button, .rec-card, .quick-tile, .service-row {
  -webkit-user-select: none; user-select: none;
}

/* ============ SERVICE DETAIL STYLES ============ */
.booking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
}
.booking-card h3 { margin: 0 0 16px; font-size: 1.1rem; }

.map-mock {
  height: 180px;
  background: linear-gradient(135deg, #1a1a35 0%, #16162e 100%);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-mock::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.map-pin {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.map-pin.from { top: 30%; left: 20%; background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.map-pin.to { top: 60%; right: 20%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.map-line {
  position: absolute;
  top: 38%; left: 22%;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: rotate(25deg);
  transform-origin: left;
}

.booking-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.booking-field {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.from { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot.to { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.field-body { flex: 1; }
.field-label { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.field-input {
  background: none; border: none; color: var(--text);
  font-size: 0.95rem; width: 100%; padding: 2px 0;
  font-family: inherit;
}
.field-input::placeholder { color: var(--text-4); }
.field-input:focus { outline: none; }

.vehicle-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.vehicle-opt {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
  text-align: left;
  color: var(--text);
}
.vehicle-opt.selected { border-color: var(--primary); background: rgba(168,85,247,0.08); }
.vehicle-opt:active { transform: scale(0.98); }
.v-icon { font-size: 1.6rem; }
.v-info { flex: 1; }
.v-name { font-weight: 700; }
.v-time { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.v-price { font-weight: 800; color: var(--primary-hi); }

.book-btn {
  width: 100%;
  background: var(--grad);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
  transition: transform 0.2s;
}
.book-btn:active { transform: scale(0.98); }

/* Category pills */
.cat-pills {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 20px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}
.cat-pill.selected { background: var(--grad); border-color: transparent; }

/* Restaurant list */
.restaurant-list { display: flex; flex-direction: column; gap: 10px; }
.resto-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  transition: transform 0.2s;
}
.resto-card:active { transform: scale(0.98); }
.resto-img {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.resto-body { flex: 1; }
.resto-name { font-weight: 700; }
.resto-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }

/* Perfume feature */
.perfume-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.pf-head { margin-bottom: 12px; }
.pf-title { font-size: 1.1rem; font-weight: 800; }
.pf-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.pf-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.pf-scroll::-webkit-scrollbar { display: none; }
.pf-card {
  flex-shrink: 0;
  width: 110px;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  color: white;
}
.pf-emoji { font-size: 2rem; }
.pf-name { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
.pf-price { font-size: 0.7rem; opacity: 0.9; margin-top: 2px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 6px; font-weight: 600; }
.form-input, .form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); }

/* Search */
.search-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--primary); }

/* Modal success */
.modal-success { text-align: center; padding: 20px 0; }
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--accent), #00A876);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: white;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 200, 150, 0.4);
}
.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}
.sc-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.sc-row:last-child { border-bottom: none; }
.sc-row strong { color: var(--text); }

/* Notifications */
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notif-item.unread .notif-title::after { content: ' •'; color: var(--primary); }
.notif-icon { font-size: 1.6rem; }
.notif-body { flex: 1; }
.notif-title { font-weight: 700; font-size: 0.95rem; }
.notif-text { font-size: 0.85rem; color: var(--text-3); margin-top: 2px; }
.notif-time { font-size: 0.7rem; color: var(--text-4); margin-top: 4px; }

/* Payment */
.payment-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}
.payment-card.selected { border-color: var(--primary); background: rgba(168,85,247,0.06); }
.pay-icon { font-size: 1.4rem; }
.pay-info { flex: 1; }
.pay-name { font-weight: 700; font-size: 0.95rem; }
.pay-exp { font-size: 0.75rem; color: var(--text-3); }
.pay-check { color: var(--primary); font-weight: 800; }

/* Address */
.addr-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}
.addr-icon { font-size: 1.4rem; }
.addr-info { flex: 1; }
.addr-name { font-weight: 700; }
.addr-text { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.addr-default {
  font-size: 0.7rem;
  background: rgba(0, 200, 150, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* Promo codes */
.promo-code {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--border-hi);
  border-radius: 12px;
  margin-bottom: 8px;
}
.pc-left { flex: 1; }
.pc-discount { font-size: 1.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-desc { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.pc-copy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
