/* ============================================
   ONWASH - Main Stylesheet
   Brand: #00a6ff | Dark premium mobile UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --brand:        #00a6ff;
  --brand-dark:   #0082cc;
  --brand-light:  #33b9ff;
  --brand-glow:   rgba(0, 166, 255, 0.35);
  --bg-base:      #080d1a;
  --bg-card:      #0f1629;
  --bg-elevated:  #161d35;
  --bg-input:     #111827;
  --border:       rgba(255,255,255,0.07);
  --border-brand: rgba(0, 166, 255, 0.3);
  --text-primary: #f0f4ff;
  --text-second:  #8a9cc2;
  --text-muted:   #4a5878;
  --error:        #ff4d6d;
  --success:      #00e5a0;
  --warning:      #ffb700;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-brand: 0 0 30px rgba(0, 166, 255, 0.2);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.4);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --nav-height:   72px;
  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---- App Shell ---- */
#app {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---- Background Mesh ---- */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,166,255,0.12) 0%, transparent 65%);
  border-radius: 50%;
  animation: meshFloat 12s ease-in-out infinite;
}
.bg-mesh::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,166,255,0.07) 0%, transparent 65%);
  border-radius: 50%;
  animation: meshFloat 16s ease-in-out infinite reverse;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

/* ---- Screens ---- */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding-top: var(--safe-top);
}
.screen.active { display: flex; margin-top: 20px; }

/* ---- SPLASH SCREEN ---- */
#screen-splash {
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
}
.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splashIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-icon {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px var(--brand-glow), 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.splash-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.splash-icon svg { width: 48px; height: 48px; color: white; z-index: 1; }
.splash-brand {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--brand-light) 30%, var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-tagline {
  font-size: 13px;
  color: var(--text-second);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}
.splash-loader {
  position: absolute;
  bottom: 60px;
  width: 48px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}
.splash-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 99px;
  animation: loadBar 2s ease forwards;
}
@keyframes loadBar {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ---- AUTH SCREENS ---- */
#screen-login, #screen-register, #screen-verify,
#screen-forgot, #screen-reset-verify, #screen-new-password {
  padding: 0;
  overflow-y: auto;
}
.auth-logo-row {
  margin-bottom: -20px;
}
.auth-header {
  padding: calc(var(--safe-top) + 16px) 28px 24px;
  position: relative;
}
.auth-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(180deg, rgba(0,166,255,0.08) 0%, transparent 100%);
  pointer-events: none;
}
.auth-back {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 10;
  transition: background 0.2s;
}
.auth-back:hover { background: var(--bg-card); }
.auth-eyebrow {
  padding-top: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.5;
}

/* ---- FORM ---- */
.auth-form {
  padding: 8px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-second);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-top: 10px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color 0.2s;
}
.form-input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--brand);
  background: rgba(0,166,255,0.04);
  box-shadow: 0 0 0 4px rgba(0,166,255,0.1);
}
.form-input:focus ~ .input-icon,
.input-wrap:focus-within .input-icon { color: var(--brand); }
.input-suffix {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.input-suffix:hover { color: var(--brand); }
.form-input.has-suffix { padding-right: 48px; }
.form-input.error { border-color: var(--error); }
.form-hint {
  font-size: 12px;
  color: var(--error);
  display: none;
  padding-left: 4px;
}
.form-hint.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(0,166,255,0.35), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0,166,255,0.45), 0 2px 8px rgba(0,0,0,0.3); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-brand);
  color: var(--brand);
}
.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-second);
  border: 1px solid var(--border);
}
.btn-danger {
  background: rgba(255,77,109,0.15);
  color: var(--error);
  border: 1px solid rgba(255,77,109,0.2);
}
.btn-full { width: 100%; }
.btn-loading { pointer-events: none; opacity: 0.8; }
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-loading .btn-spinner { display: block; }
.btn-loading .btn-text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- DIVIDER ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- AUTH FOOTER ---- */
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-second);
  padding-top: 4px;
}
.auth-footer a, .text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: 390px;
  pointer-events: none;
}
.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: all;
}
.toast.hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}
.toast-success { background: rgba(0,229,160,0.15); border: 1px solid rgba(0,229,160,0.3); color: var(--success); }
.toast-error   { background: rgba(255,77,109,0.15); border: 1px solid rgba(255,77,109,0.3); color: var(--error); }
.toast-info    { background: rgba(0,166,255,0.15);  border: 1px solid rgba(0,166,255,0.3);  color: var(--brand); }

/* ---- WELCOME / HOME SCREEN ---- */
#screen-home {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  overflow-y: auto;
}

.home-header {
  padding: calc(var(--safe-top) + 20px) 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-header-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: white;
  cursor: pointer;
  border: 2px solid var(--border-brand);
  overflow: hidden;
  text-decoration: none;
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Hero Card */
.hero-card {
  margin: 20px 20px 0;
  background: linear-gradient(135deg, #0d2040 0%, #0a1a35 60%, rgba(0,166,255,0.08) 100%);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0,166,255,0.2) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-greeting {
  font-size: 13px;
  color: var(--brand-light);
  margin-bottom: 4px;
  font-weight: 500;
}
.hero-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.hero-tagline {
  font-size: 13px;
  color: var(--text-second);
  line-height: 1.5;
  max-width: 200px;
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,166,255,0.12);
  border: 1px solid var(--border-brand);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--brand-light);
  font-weight: 600;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Services Grid */
.section-header {
  padding: 0px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.section-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px;
}
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.service-item:hover, .service-item:active {
  border-color: var(--border-brand);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,166,255,0.1);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,166,255,0.15), rgba(0,166,255,0.05));
  border: 1px solid rgba(0,166,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.service-icon svg { width: 22px; height: 22px; }
.service-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-second);
  line-height: 1.3;
}

/* Info Card */
.info-card {
  margin: 8px 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.info-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
}
.info-card-icon svg { width: 22px; height: 22px; }
.info-card-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.info-card-text p { font-size: 12px; color: var(--text-second); line-height: 1.4; }

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  /*max-width: 430px;*/
  height: calc(var(--nav-height) + var(--safe-bottom));
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 12px 8px 0;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
  max-width: 370px;
  margin-bottom: 15px;
  border-radius: 20px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  flex: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.nav-item.active { color: var(--brand); }
.nav-item.active .nav-dot {
  display: block;
  width: 4px; height: 4px;
  background: var(--brand);
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  box-shadow: 0 0 8px var(--brand);
}

/* ---- PROFILE SCREEN ---- */
#screen-profile {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  overflow-y: auto;
}

.profile-header {
  padding: calc(var(--safe-top) + 20px) 24px 24px;
  position: relative;
}
.profile-header-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.profile-card {
  margin: 0 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.profile-avatar-wrap {
  position: relative;
  width: 90px; height: 90px;
}
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: white;
  border: 3px solid var(--border-brand);
  overflow: hidden;
  box-shadow: 0 0 30px var(--brand-glow);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  cursor: pointer;
  color: white;
}
.profile-avatar-edit svg { width: 14px; height: 14px; }

.profile-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}
.profile-email {
  font-size: 13px;
  color: var(--text-second);
}
.profile-since {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
}

/* Profile Info List */
.profile-section {
  margin: 0 20px 16px;
}
.profile-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}
.profile-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}
.profile-row:hover, .profile-row:active {
  background: var(--bg-elevated);
  border-color: var(--border-brand);
}
.profile-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-row-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0,166,255,0.08);
  border: 1px solid rgba(0,166,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.profile-row-icon svg { width: 18px; height: 18px; }
.profile-row-label { font-size: 14px; font-weight: 500; }
.profile-row-value { font-size: 12px; color: var(--text-second); margin-top: 2px; }
.profile-row-arrow { color: var(--text-muted); }
.profile-row-arrow svg { width: 16px; height: 16px; }

/* Edit Profile Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg-card);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid var(--border);
  border-bottom: none;
  animation: sheetUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-height: 92dvh;
  overflow-y: auto;
  padding-bottom: calc(24px + var(--safe-bottom));
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 12px auto 20px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  padding: 0 24px 20px;
  letter-spacing: -0.3px;
}

/* ---- OTP CODE INPUT ---- */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
}
.otp-input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  caret-color: var(--brand);
}
.otp-input:focus {
  border-color: var(--brand);
  background: rgba(0,166,255,0.04);
  box-shadow: 0 0 0 4px rgba(0,166,255,0.12);
}
.otp-input.filled {
  border-color: var(--brand);
  background: rgba(0,166,255,0.06);
}
.otp-input.error {
  border-color: var(--error);
  animation: shake 0.35s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
}

.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-second);
  margin-top: 4px;
}
.otp-resend .text-link { font-size: 13px; }
.otp-timer {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- UTILITY ---- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ---- SELECT INPUT ---- */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9cc2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ---- ANIMATION HELPERS ---- */
.fade-in { animation: fadeIn 0.4s ease forwards; }
.slide-up { animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- AVATAR UPLOAD MODAL ---- */
.avatar-preview-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 8px;
}
.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: white;
  border: 3px solid var(--border-brand);
  overflow: hidden;
  box-shadow: 0 0 40px var(--brand-glow);
}
.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-card);
  cursor: pointer;
  color: white;
  transition: transform 0.2s, background 0.2s;
}
.avatar-upload-btn:hover {
  transform: scale(1.08);
  background: var(--brand-light);
}
.avatar-upload-btn:active {
  transform: scale(0.95);
}

/* ============================================
   CAR WASH BOOKING STYLES
   ============================================ */

/* Car Type Cards */
.car-type-card {
  position: relative;
  overflow: hidden;
}

.car-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a6ff, #0082cc);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.car-type-card:hover::before {
  transform: scaleX(1);
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00a6ff, #0082cc);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleY(1);
}

/* Payment Option */
.payment-option {
  transition: all 0.2s ease;
}

.payment-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Booking Confirmation Animation */
@keyframes bookingSuccess {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-confirmed {
  animation: bookingSuccess 0.5s ease;
}

/* Loading Spinner Enhancement */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Grid for Car Types */
@media (min-width: 768px) {
  #car-types-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Touch Feedback */
.car-type-card:active,
.service-card:active,
.payment-option:active {
  transform: scale(0.97);
}

/* Date Input Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

/* Map Location Button */
.location-btn-active {
  background: linear-gradient(135deg, #00c853, #00a040) !important;
  color: white !important;
}

/* Smooth Transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Map Styles */
#map {
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
  margin: 12px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
}

.custom-map-marker {
  background: transparent;
  border: none;
}

/* Map Container Animation */
#map-container {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MORE MENU, ABOUT US & CONTACT US STYLES
   ============================================ */

/* Menu List Styles */
.menu-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: 0 20px 20px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: var(--bg-elevated);
}

.menu-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,166,255,0.1), rgba(0,166,255,0.05));
  border: 1px solid rgba(0,166,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.menu-item-icon svg {
  width: 22px;
  height: 22px;
}

.menu-item-content {
  flex: 1;
}

.menu-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.menu-item-subtitle {
  font-size: 13px;
  color: var(--text-second);
}

.menu-item-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Team Member Cards */
.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.team-member-info {
  width: 100%;
}

.linkedin-link:hover {
  color: #005582 !important;
  text-decoration: underline;
}

/* Contact Cards */
.contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-card a:hover {
  color: var(--brand) !important;
}

/* Social Media Link Buttons Hover */
.contact-card a[style*="background:var(--bg-elevated)"]:hover {
  background: rgba(0,166,255,0.1) !important;
  border-color: var(--brand) !important;
  transform: translateY(-2px);
}

/* Screen Header Styles */
.screen-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 20px 12px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.header-back:active {
  transform: scale(0.95);
  background: var(--bg-card);
}

.header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Content Wrap */
.content-wrap {
  min-height: calc(100dvh - var(--nav-height) - var(--safe-bottom));
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
}

/* About Intro */
.about-intro {
  animation: fadeIn 0.5s ease;
}
/* ============================================
   CARE CENTER MODULE STYLES
   ============================================ */

/* Care Center service icon — green accent */
.service-item.care-center-icon .service-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}

/* Category Selection Cards */
.care-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 24px;
}
.care-cat-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  position: relative;
}
.care-cat-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.12);
}
.care-cat-card.care-cat-selected {
  border-color: #10b981;
  background: rgba(16,185,129,0.06);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}
.care-cat-selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: #10b981;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.care-cat-card.care-cat-selected .care-cat-selected-check {
  display: flex;
}
.care-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
}
.care-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.care-cat-desc {
  font-size: 11px;
  color: var(--text-second);
  line-height: 1.4;
}

/* Full-width 5th category card */
.care-cat-grid-full {
  padding: 0 20px;
  margin-bottom: 24px;
}
.care-cat-card-full {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.care-cat-card-full:hover,
.care-cat-card-full.care-cat-selected {
  border-color: #10b981;
  background: rgba(16,185,129,0.06);
}
.care-cat-card-full.care-cat-selected {
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}

/* Progress Bar */
.care-progress-wrap {
  padding: 16px 20px 0;
}
.care-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-second);
  margin-bottom: 8px;
  font-weight: 600;
}
.care-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.care-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 14%;
}

/* CRC Info Box */
.care-crc-info-box {
  background: linear-gradient(135deg, rgba(0,166,255,0.08), rgba(0,166,255,0.03));
  border: 1px solid rgba(0,166,255,0.25);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.care-crc-info-box p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 10px;
  color: var(--text-second);
}
.care-crc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #00a6ff, #0082cc);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Upload Button */
.care-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-second);
  transition: all 0.2s;
  background: var(--bg-card);
}
.care-upload-label:hover {
  border-color: #10b981;
  color: #10b981;
}
.care-upload-label.uploaded {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16,185,129,0.06);
}

/* Caregiver Cards (Browse screen) */
.caregiver-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s;
}
.caregiver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,166,255,0.1);
}

/* Care Center main icon in services grid — teal accent */
.service-item[onclick*="openCareCenter"] .service-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}
