:root {
  --primary: #2563eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 18px;
}

/* DARK MODE */
body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: var(--bg);
  color: var(--text);
}

/* PAGES */
.page {
  
    margin-bottom: 40px;

  padding: 10px;
  min-height: 100vh;
  animation: slide 0.35s ease;
}
.page.active {
  display: block;
}

@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* COMMON */
.logo {
  text-align: center;
  font-size: 28px;
  margin-top: 150px;
}
.logo span {
  color: var(--primary);
}
.muted {
  color: var(--muted);
  margin: 8px 0;
  text-align: center;
}
.input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  margin-top: 24px;
}
.primary-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: 600;
}

/* HEADER */

.header {
    display: flex;
	 margin-bottom: -10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Left */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h3 {
    margin: 0;
    font-size: 14px;
}

/* Center */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-center h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Right */
.header-right .icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.top-bar {
    padding-bottom: 10px;
}
.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
}

/* SEARCH */
.search-box {
  display: flex;
  gap: 10px;
  background: var(--card);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* SERVICES */
.section-title {
  margin: 20px 0 10px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
	margin-bottom: 60px !important;
}
.service-card {
 background: var(--card);
    
	    padding-top: 15px !important;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
    min-height: 100px;
    vertical-align: middle;
}
.service-card i {
  font-size: 22px;
  color: var(--primary);
}
.service-card span {
  display: block;
  margin-top: 6px;
}
.service-card:active {
  transform: scale(0.95);
}

/* PROVIDERS */
.provider-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
}
.provider-card img {
  border-radius: 50%;
}
.badge {
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
}
.price {
  margin-left: auto;
  font-weight: 600;
}

/* BOTTOM SHEET */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  z-index: 100;
}
.overlay.active {
  display: flex;
}
.bottom-sheet {
  width: 100%;
  background: var(--card);
  padding: 24px;
  border-radius: 24px 24px 0 0;
  animation: up 0.35s ease;
}
@keyframes up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* OTP */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-inputs input {
  width: 46px;
  height: 46px;
  text-align: center;
  font-size: 18px;
}

/* TIMELINE */
.timeline {
  margin-top: 20px;
}
.step {
  padding: 12px;
  border-left: 4px solid #e5e7eb;
  margin-left: 10px;
  color: var(--muted);
}
.step.active {
  border-color: var(--primary);
  color: var(--primary);
}

/* NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}
.bottom-nav button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
}
.bottom-nav button.active {
  color: var(--primary);
}
.search-wrapper {
  position: relative;
  background: var(--card);
  border-radius: 5px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.search-wrapper input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
}

.suggestions {
  background: var(--card);
  border-radius: 16px;
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: none;
}

.suggestions div {
  padding: 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.suggestions div:hover {
  background: #f1f5f9;
}
.slider {
  margin: 5px 0;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slides {
  display: flex;
  /* width: 300%; */
  animation: slide 12s infinite;
}

.slides img {
  width: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}
.sidebar {
  width: 260px;
  height: 100%;
  background: var(--card);
  padding: 20px;
  animation: sideIn 0.35s ease;
}

@keyframes sideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.sidebar-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.sidebar-header i {
  font-size: 40px;
  color: var(--primary);
}

.sidebar nav a {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
}

.sidebar nav a.logout {
  color: #dc2626;
}

.profile-card {
  background: var(--card);
  padding: 30px 20px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
	    margin-top: 20px;
}
.profile-card i {
  font-size: 70px;
  color: var(--primary);
  margin-bottom: 10px;
}

.profile-menu {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.profile-menu div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.profile-menu div:last-child {
  border: none;
}
.profile-menu i {
  font-size: 18px;
  color: var(--primary);
}
.profile-menu .logout {
  color: #dc2626;
}
.booking-card-status {
  background: var(--card);
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.booking-card-status .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
}
.chip.pending {
  background: #dbeafe;
  color: #1d4ed8;
}
.history-card {
  background: var(--card);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 14px;
}

.chip.success {
  background: #dcfce7;
  color: #166534;
}
.chip.cancel {
  background: #fee2e2;
  color: #991b1b;
}
.booking-tabs {
  display: flex;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.booking-tabs button {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  font-weight: 600;
  color: var(--muted);
}

.booking-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.booking-tab-content {
  display: none;
}
.booking-tab-content.active {
  display: block;
}
.radio-list label {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.danger-btn {
  width: 100%;
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 16px;
  margin-top: 16px;
}
.stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  margin: 20px 0;
}
.stars i {
  color: #e5e7eb;
}
.stars i.active {
  color: #facc15;
}
.invoice-card {
  background: var(--card);
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.invoice-row.total {
  border-top: 1px dashed #ccc;
  margin-top: 10px;
}
/* ================= TRACKING ================= */

.tracking-provider {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}
.tracking-provider img {
  border-radius: 50%;
}
.tracking-provider .eta {
  color: #16a34a;
  font-weight: 600;
}
.call-btn {
  margin-left: auto;
  background: #dcfce7;
  border: none;
  padding: 10px;
  border-radius: 50%;
  color: #166534;
}

/* STEPS */
.tracking-steps {
  margin: 10px 0 20px;
}
.track-step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}
.track-step:last-child {
  padding-bottom: 0;
}
.track-step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 36px;
  width: 2px;
  height: 100%;
  background: #e5e7eb;
}
.track-step:last-child::before {
  display: none;
}

.track-step .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.track-step.done .icon {
  background: #dcfce7;
  color: #166534;
}

.track-step.active .icon {
  background: var(--primary);
  color: #fff;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

.track-step .content strong {
  display: block;
}
.track-step .content small {
  color: var(--muted);
}

/* OTP */
.otp-card {
  background: #f1f5f9;
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.otp-code {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 8px 0;
}

/* ACTIONS */
.tracking-actions {
  display: flex;
  gap: 12px;
}
.outline-btn {
  flex: 1;
  border: 2px solid #dc2626;
  background: none;
  color: #dc2626;
  padding: 12px;
  border-radius: 16px;
}
.primary-btn.small {
  flex: 1;
  padding: 12px;
}
/* ================= ADDRESS SELECTOR ================= */

.address-sheet {
  max-height: 90vh;
  overflow: auto;
}

/* Search bar */
.address-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin: 12px 0;
}

.address-search input {
  border: none;
  outline: none;
  width: 100%;
}

/* Suggestions */
.address-suggestions {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: none;
  margin-bottom: 12px;
}
.address-suggestions div {
  padding: 14px;
  border-bottom: 1px solid #eee;
}
.address-suggestions div:last-child {
  border: none;
}

/* Current location */
.current-location {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f1f5f9;
  margin-bottom: 12px;
}
.current-location i {
  color: var(--primary);
  font-size: 18px;
}

/* Map preview */
.map-preview {
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-weight: 600;
  margin: 14px 0;
}

/* Saved addresses */
.saved-address {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}
.saved-address i {
  font-size: 18px;
  color: var(--primary);
}
/* ================= BOOKING SHEET ================= */

.booking-sheet {
  padding-bottom: 30px;
}

.sheet-header {
  text-align: center;
  margin-bottom: 16px;
}

.sheet-section {
  margin-bottom: 18px;
}

.sheet-section h4 {
  font-size: 14px;
  margin-bottom: 10px;
}

/* DATE CHIPS */
.date-row {
  display: flex;
  gap: 10px;
}
.date-chip {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 14px;
  background: #f1f5f9;
  font-weight: 600;
}
.date-chip.active {
  background: var(--primary);
  color: #fff;
}

/* TIME SLOTS */
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.time-slot {
  padding: 12px;
  text-align: center;
  border-radius: 14px;
  background: #f1f5f9;
  font-weight: 500;
}
.time-slot.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

/* ADDRESS */
.address-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.address-preview i {
  font-size: 18px;
  color: var(--primary);
}

/* PRICE */
.price-box {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: #f8fafc;
  border-radius: 16px;
  font-size: 15px;
}

/* ACTIONS */
.sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.sheet-actions button {
  flex: 1;
}
/* ================= AUTH ================= */

.auth-page {
  padding: 0;
  background: linear-gradient(180deg, #2563eb, #1e40af);
}

/* HERO */
.auth-hero {
  padding: 60px 24px 40px;
  color: #fff;
}
.auth-hero h1 {
  font-size: 34px;
  font-weight: 800;
}
.auth-hero h1 span {
  color: #fde047;
}
.auth-hero p {
  margin-top: 8px;
  opacity: 0.9;
}

/* CARD */
.auth-card {
  background: var(--card);
  border-radius: 28px 28px 0 0;
  padding: 26px 22px 32px;
  min-height: 60vh;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

/* TABS */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
}
.auth-tabs button {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  font-weight: 700;
  color: var(--muted);
}
.auth-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* FORM */
.auth-form {
  display: none;
  animation: fadeUp 0.3s ease;
}
.auth-form.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-form label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  font-size: 15px;
}

.terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
.terms span {
  color: var(--primary);
  font-weight: 600;
}

.service-icon {
  width: 32px;
  height: 32px;
  stroke: #2563eb;
  fill: var(--icon-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon-img {
  width: 40px;
  height: 40px;
}
.avatar-initials {
       width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
}
.clean-card {
  align-items: center;
  gap: 14px;
}

/* Bigger avatar */
.avatar-initials.large {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

/* Info area */
.provider-info {
  flex: 1;
}

/* Name + badge */
.provider-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-top h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Meta info */
.provider-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.provider-meta i {
  margin-right: 6px;
}

/* Rating */
.provider-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}

.provider-rating i {
  color: #facc15;
}

/* Verified badge */
.badge.verified {
  background: #dcfce7;
  color: #166534;
}

/* Call button */
.call-btn.big {
  width: 50px;
    height: 50px;
    font-size: 22px;
}
.notice-card {
  background: var(--card);
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  margin-bottom: 20px;
 margin-top: 20px;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notice-header i {
  color: var(--primary);
  font-size: 18px;
}

.notice-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.notice-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.notice-header.mt {
  margin-top: 10px;
}
