:root {
  --aw-primary: #6a4c93;
  --aw-secondary: #f3e5ab;
  --aw-bg: #f9f9f9;
  --aw-text-main: #222222;
  --aw-text-muted: #888888;
  --aw-radius-lg: 18px;
  --aw-radius-md: 14px;
  --aw-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--aw-bg);
  color: var(--aw-text-main);
  -webkit-font-smoothing: antialiased;
}

/* App layout */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #ffffff;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-main {
  padding-top: 72px;
  padding-bottom: 70px;
}

.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1020;
}

/* Header */
.app-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--aw-primary);
}

.header-left {
  min-width: 0;
}

.header-center {
  flex: 1;
  min-width: 0;
  margin: 0 8px;
}

.header-right {
  gap: 8px;
}

.header-location {
  border: none;
  background: rgba(106, 76, 147, 0.04);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--aw-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-location i {
  color: var(--aw-primary);
}

.header-location:focus {
  outline: none;
}

.header-location:active {
  background: rgba(106, 76, 147, 0.08);
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  color: var(--aw-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:active {
  background-color: rgba(0, 0, 0, 0.04);
}

.header-icons .icon-btn {
  width: 36px;
  height: 36px;
}

.profile-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(106, 76, 147, 0.08);
  color: var(--aw-primary);
}

.badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff6b6b;
}

/* Hero Carousel */
.hero-carousel {
  height: 180px;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25)
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-title {
  font-size: 18px;
  margin-bottom: 3px;
}

.hero-subtitle {
  font-size: 12px;
  opacity: 0.92;
}

.hero-cta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--aw-primary);
}

.carousel-indicators button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: rgba(106, 76, 147, 0.2);
  border: none;
}

.carousel-indicators .active {
  width: 18px;
  background-color: var(--aw-primary);
}

/* Service mode cards */
.service-mode-card {
  background-color: #ffffff;
  border-radius: var(--aw-radius-lg);
  padding: 10px 10px 12px;
  box-shadow: 0 8px 20px rgba(15, 17, 32, 0.04);
  border: 1px solid rgba(106, 76, 147, 0.06);
}

.service-mode-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(106, 76, 147, 0.08);
  color: var(--aw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search bar */
.search-bar {
  background-color: #ffffff;
  border-radius: var(--aw-radius-pill);
  box-shadow: 0 4px 12px rgba(15, 17, 32, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-bar input::placeholder {
  color: var(--aw-text-muted);
  font-size: 13px;
}

.search-bar input:focus {
  box-shadow: none;
}

/* Section titles */
.section-title {
  font-size: 16px;
  font-weight: 600;
}

/* Categories */
.category-card {
  background-color: #ffffff;
  border-radius: var(--aw-radius-md);
  padding: 8px;
  box-shadow: 0 6px 18px rgba(15, 17, 32, 0.04);
}

.category-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
  background-color: #eee;
}

.category-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-name {
  font-size: 13px;
  font-weight: 500;
}

/* Popular services horizontal scroll */
.popular-scroll::-webkit-scrollbar,
.testimonial-scroll::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.service-card {
  min-width: 190px;
  max-width: 190px;
  background-color: #ffffff;
  border-radius: var(--aw-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 17, 32, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-image-wrapper {
  height: 110px;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 10px 10px 9px;
}

.service-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--aw-primary);
}

.btn-primary {
  background-color: var(--aw-primary);
  border-color: var(--aw-primary);
}

.btn-primary:hover {
  background-color: #59397e;
  border-color: #59397e;
}

.btn-outline-primary {
  border-color: rgba(106, 76, 147, 0.35);
  color: var(--aw-primary);
}

.btn-outline-primary:hover {
  background-color: rgba(106, 76, 147, 0.06);
  border-color: var(--aw-primary);
}

/* Slots */
.slot-pill {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  color: var(--aw-text-main);
}

.slot-pill.active,
.slot-pill:active {
  border-color: var(--aw-primary);
  background-color: rgba(106, 76, 147, 0.08);
  color: var(--aw-primary);
}

/* Coupons */
.coupon-card {
  position: relative;
  background: linear-gradient(135deg, #fff9e6, #ffffff);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(15, 17, 32, 0.06);
  border: 1px dashed rgba(106, 76, 147, 0.35);
}

.coupon-card::before,
.coupon-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--aw-bg);
  transform: translateY(-50%);
}

.coupon-card::before {
  left: -7px;
}

.coupon-card::after {
  right: -7px;
}

.coupon-code {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--aw-primary);
}

/* Why choose us */
.why-card {
  background-color: #ffffff;
  border-radius: var(--aw-radius-md);
  padding: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(15, 17, 32, 0.04);
}

.why-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(106, 76, 147, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aw-primary);
}

.why-text {
  font-size: 12px;
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  min-width: 220px;
  max-width: 220px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15, 17, 32, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-text {
  font-size: 12px;
  color: var(--aw-text-muted);
}

/* Bottom nav */
.nav-item-btn {
  border: none;
  background: transparent;
  flex: 1;
  height: 100%;
  padding: 6px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--aw-text-muted);
  font-size: 10px;
}

.nav-item-btn i {
  font-size: 18px;
}

.nav-item-btn.active {
  color: var(--aw-primary);
}

.nav-item-btn.active i {
  position: relative;
}

.nav-item-btn.active i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--aw-primary);
}

/* Small screen optimizations */
@media (max-width: 430px) {
  body {
    max-width: 430px;
    margin: 0 auto;
  }

  .app-main .container-fluid {
    max-width: 430px;
  }
}

/* Slightly larger screens */
@media (min-width: 768px) {
  .app-main {
    max-width: 520px;
    margin: 0 auto;
  }

  .app-header,
  .app-bottom-nav {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Profile Drawer & Overlay */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 32, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.profile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 75vw;
  max-width: 360px;
  background-color: #ffffff;
  box-shadow: -8px 0 24px rgba(15, 17, 32, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1110;
  display: flex;
  flex-direction: column;
}

.profile-drawer.open {
  transform: translateX(0);
}

.profile-drawer-inner {
  padding-top: env(safe-area-inset-top, 12px);
}

.profile-drawer-header {
  padding: 12px 16px 4px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(106, 76, 147, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aw-primary);
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-phone {
  font-size: 12px;
}

.profile-close-btn {
  padding: 4px;
  color: var(--aw-text-muted);
}

.drawer-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--aw-text-main);
}

.drawer-menu-item i {
  width: 18px;
  text-align: center;
  font-size: 16px;
  color: var(--aw-primary);
}

.drawer-menu-item:active {
  background-color: rgba(106, 76, 147, 0.06);
}

.profile-drawer-footer {
  padding: 0 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 10px;
}

/* Services page - filter bar */
.filter-bar {
  gap: 8px;
}

.filter-bar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.filter-chip {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--aw-text-muted);
  white-space: nowrap;
}

.filter-chip i {
  font-size: 10px;
}

.filter-chip.active,
.filter-chip:active {
  border-color: var(--aw-primary);
  color: var(--aw-primary);
  background-color: rgba(106, 76, 147, 0.06);
}

/* Services list cards */
.service-list {
  margin-bottom: 8px;
}

.service-card-list {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 17, 32, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
}

.service-card-tagline {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 10px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.service-tag-primary {
  background-color: rgba(106, 76, 147, 0.95);
}

.service-tag-gold {
  background-color: rgba(243, 229, 171, 0.95);
  color: #5a4714;
}

.service-card-image-wrapper {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.service-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 10px 12px 12px;
}

.service-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--aw-primary);
}

.service-card-price-old {
  font-size: 11px;
}

/* Small bottom sheet style for filter modals */
.modal-bottom-sheet {
  margin: 0.75rem auto;
}

.modal-bottom-sheet .modal-content {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 17, 32, 0.3);
}

.btn-close-sm {
  width: 0.9rem;
  height: 0.9rem;
}

/* Filter option buttons */
.filter-option-btn {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  text-align: left;
}

.filter-option-btn:active {
  border-color: var(--aw-primary);
  color: var(--aw-primary);
  background-color: rgba(106, 76, 147, 0.06);
}

/* Services header title */
.services-header-title {
  font-size: 16px;
  font-weight: 600;
}