/* ============================================================
   WaqtPer Customer App — Shared Design System
   Primary: #F5B800 · Black: #1A1A1A · White: #FFFFFF
   Font: Inter · Mobile-first 390px
   ============================================================ */

:root {
  --yellow: #F5B800;
  --yellow-light: #FFF8E1;
  --yellow-dark: #D4A000;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --gray-50: #F9F9F9;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #BBBBBB;
  --gray-500: #888888;
  --gray-700: #444444;
  --green: #22C55E;
  --green-light: #E8F5E9;
  --red: #E53935;
  --red-light: #FFEBEE;
  --orange: #F57C00;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-sheet: 0 -8px 32px rgba(0,0,0,0.12);
}

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

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #E8E8E8;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0 48px;
}

/* ─── Phone Frame ─── */
.phone {
  width: 390px;
  min-height: 844px;
  background: var(--white);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

/* ─── Status Bar ─── */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.status-bar.dark { background: var(--black); color: var(--white); }
.status-bar.light { background: var(--white); color: var(--black); }
.status-bar.yellow { background: var(--yellow); color: var(--black); }
.status-bar.transparent-dark { background: transparent; color: var(--black); position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.status-icons { display: flex; gap: 4px; align-items: center; font-size: 11px; }

/* ─── Scrollable Content Area ─── */
.screen-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-content::-webkit-scrollbar { display: none; }

/* ─── Top Bar ─── */
.top-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
}
.top-bar h2 { font-size: 17px; font-weight: 700; margin-left: 8px; flex: 1; }
.top-bar.centered { justify-content: center; }
.top-bar.centered h2 { margin-left: 0; }

/* ─── Back Button ─── */
.back-btn {
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 22px; font-weight: 300;
  cursor: pointer; color: var(--black);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.back-btn:hover { background: var(--gray-100); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gray-700); }

.btn-outline { background: var(--white); color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--black); }

.btn-ghost { background: none; color: var(--black); border: none; }

.btn-social {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.btn-social:hover { border-color: var(--black); background: var(--gray-50); }
.btn-social .social-icon { font-size: 20px; width: 24px; text-align: center; }

.btn-full { width: 100%; }

/* ─── Inputs ─── */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--yellow); }
.input::placeholder { color: var(--gray-400); }
.input.error { border-color: var(--red); }

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.input-wrap { position: relative; }
.input-icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px; color: var(--gray-500);
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card.selected { border-color: var(--yellow); background: var(--yellow-light); }
.card.hoverable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.card.hoverable:hover { border-color: var(--yellow); box-shadow: var(--shadow-sm); }

/* ─── Booking Stepper ─── */
.stepper {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  gap: 0;
}
.step-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--gray-400);
  flex-shrink: 0;
}
.step-item.active { color: var(--black); }
.step-item.done { color: var(--yellow-dark); }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.step-item.active .step-dot { background: var(--yellow); color: var(--black); }
.step-item.done .step-dot { background: var(--yellow-dark); color: var(--white); font-size: 12px; }
.step-line {
  flex: 1; height: 1.5px;
  background: var(--gray-200);
  margin: 0 4px;
}
.step-line.done { background: var(--yellow-dark); }

/* ─── Bottom Navigation ─── */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 10px; font-weight: 600;
  color: var(--gray-500); cursor: pointer;
  flex: 1; text-decoration: none;
  transition: color 0.15s;
}
.nav-item.active { color: var(--yellow-dark); }
.nav-icon { font-size: 22px; }

/* ─── Bottom Sticky Bar ─── */
.sticky-bottom {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 12px 16px 24px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}

/* ─── Bottom Sheet ─── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 20; display: none;
}
.sheet-overlay.show { display: block; }
.bottom-sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 390px; max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  z-index: 30; display: none;
  overflow-y: auto; overflow-x: hidden;
  padding-bottom: 32px;
}
.bottom-sheet.show { display: block; }
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ─── Badges / Pills ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
}
.badge-yellow { background: var(--yellow); color: var(--black); }
.badge-green { background: var(--green-light); color: #1B5E20; }
.badge-red { background: var(--red-light); color: #B71C1C; }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* ─── Divider ─── */
.divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--gray-400); font-weight: 500;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* ─── Section Header ─── */
.section-head {
  font-size: 17px; font-weight: 800;
  margin-bottom: 14px;
}

/* ─── Tab Bar ─── */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-item.active { color: var(--black); border-bottom-color: var(--yellow); }

/* ─── Avatar ─── */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-xl { width: 80px; height: 80px; font-size: 30px; }
.avatar-yellow { background: var(--yellow); color: var(--black); }
.avatar-dark { background: var(--black); color: var(--white); }
.avatar-gray { background: var(--gray-200); color: var(--gray-700); }

/* ─── Star Rating ─── */
.stars { color: var(--yellow); font-size: 14px; letter-spacing: 1px; }
.stars.sm { font-size: 12px; }

/* ─── Misc ─── */
.spacer-sm { height: 8px; }
.spacer-md { height: 16px; }
.spacer-lg { height: 24px; }
.spacer-xl { height: 32px; }
.spacer-nav { height: 80px; }

.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

/* ─── Row Utility ─── */
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }

.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
