:root {
  --bg: #eef5ff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #1f3566;
  --muted: #7c94c6;
  --primary: #3998ff;
  --primary-dark: #2478e2;
  --primary-soft: rgba(57, 152, 255, 0.12);
  --border: rgba(100, 138, 205, 0.16);
  --shadow: 0 30px 60px rgba(67, 103, 171, 0.18);
  --danger: #e66d6d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(57, 152, 255, 0.2), transparent 22%),
    radial-gradient(circle at bottom left, rgba(116, 221, 208, 0.26), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.ambient {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: -1;
}

.ambient-one {
  top: -100px;
  right: -100px;
  background: rgba(57, 152, 255, 0.22);
}

.ambient-two {
  bottom: -140px;
  left: -140px;
  background: rgba(116, 221, 208, 0.22);
}

.page {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero-panel,
.summary-card,
.phone-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 28px;
  border-radius: 36px;
  backdrop-filter: blur(14px);
}

.eyebrow,
.summary-title,
.app-brand,
.app-subtitle {
  margin: 0;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.lead,
.hero-card li,
.muted-text,
.provider-meta,
.account-details p,
.upload-hint,
.bill-box div span,
.app-subtitle,
.summary-card p,
.trusted-card p {
  color: var(--muted);
}

.hero-slogan,
.welcome-slogan {
  display: block;
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  line-height: 1.9;
  font-size: 1.03rem;
}

.hero-features,
.stack-form,
.provider-results,
.bookings-list,
.account-details,
.wallet-transactions-list,
.services-list,
.trusted-providers,
.stage-summary {
  display: grid;
  gap: 14px;
}

.hero-features {
  margin-top: 20px;
  gap: 10px;
}

.feature-item,
.hero-card,
.summary-card,
.sheet-card,
.profile-card,
.wallet-card,
.promo-banner,
.service-card,
.trusted-card,
.provider-option,
.payment-methods-card,
.coupon-card,
.payment-provider-card,
.bill-box,
.booking-card {
  border-radius: 28px;
  border: 1px solid var(--border);
}

.feature-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
    radial-gradient(circle at top left, rgba(57, 152, 255, 0.16), transparent 35%);
}

.hero-card-label {
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-card ul {
  margin: 0;
  padding-right: 18px;
  line-height: 1.9;
}

.app-stage {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.summary-card {
  padding: 22px;
}

.summary-card h2 {
  margin: 8px 0 12px;
  font-size: 1.45rem;
}

.booking-snapshot {
  line-height: 1.9;
}

.phone-shell {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  padding: 14px;
  border-radius: 44px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  border-radius: 999px;
  background: rgba(216, 227, 246, 0.95);
}

.mobile-app {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafdff 0%, #f2f7ff 100%);
}

.app-header,
.section-label-row,
.payment-provider-card,
.bill-box div,
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header {
  padding: 24px 18px 14px;
}

.app-brand {
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  cursor: pointer;
}

.screen {
  display: none;
  flex: 1;
  padding: 0 14px 14px;
  overflow: auto;
}

.active-screen {
  display: block;
  animation: fadeSlideIn 0.45s ease;
}

.auth-hero {
  margin-top: 8px;
  padding: 26px 20px;
  text-align: center;
  color: #fff;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--primary) 0%, #64b7ff 100%);
}

.welcome-screen-card {
  margin-top: 14px;
  padding: 28px 20px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(180deg, #2f90ff 0%, #76c0ff 100%);
  color: #fff;
  box-shadow: 0 24px 42px rgba(57, 152, 255, 0.22);
}

.welcome-badge {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.welcome-screen-card .muted-text {
  color: rgba(255, 255, 255, 0.86);
}

.welcome-coupon {
  margin: 22px 0 16px;
  padding: 18px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.welcome-coupon span,
.welcome-coupon strong,
.welcome-coupon small {
  display: block;
}

.welcome-coupon strong {
  margin: 6px 0;
  font-size: 2rem;
  font-weight: 900;
}

.welcome-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.welcome-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.logo-mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.6rem;
}

.auth-hero h2,
.auth-hero p,
.promo-banner h2,
.promo-banner p,
.payment-header-card h2,
.payment-header-card p {
  margin: 0;
}

.auth-hero p,
.payment-header-card p {
  margin-top: 8px;
  line-height: 1.8;
}

.stack-form {
  margin-top: 16px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.stack-form input[type="file"] {
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
}

.upload-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.primary-cta,
.secondary-cta,
.select-provider-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta,
.select-provider-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(57, 152, 255, 0.28);
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost {
  margin-top: 12px;
}

.promo-banner {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2e90ff, #5db1ff);
  animation: floatCard 4s ease-in-out infinite;
}

.promo-chip {
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.promo-visual,
.provider-photo,
.trusted-avatar {
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

.photo-mother {
  background:
    radial-gradient(circle at 55% 28%, #ffd4bd 0 10%, transparent 10%),
    radial-gradient(circle at 56% 25%, #5c402b 0 13%, transparent 13%),
    radial-gradient(circle at 58% 48%, #8dc5ff 0 22%, transparent 22%),
    radial-gradient(circle at 28% 44%, #ffe0c3 0 11%, transparent 11%),
    radial-gradient(circle at 28% 40%, #d8b093 0 14%, transparent 14%),
    linear-gradient(135deg, #f5f7fb, #b3d4ff);
}

.photo-elder {
  background:
    radial-gradient(circle at 36% 35%, #f1d0b0 0 11%, transparent 11%),
    radial-gradient(circle at 38% 29%, #d9d9d9 0 14%, transparent 14%),
    radial-gradient(circle at 63% 40%, #ebcfb1 0 11%, transparent 11%),
    radial-gradient(circle at 62% 34%, #e8e8e8 0 14%, transparent 14%),
    linear-gradient(135deg, #eef2f7, #bed2ef);
}

.photo-nurse {
  background:
    radial-gradient(circle at 52% 31%, #f8d3ba 0 10%, transparent 10%),
    radial-gradient(circle at 52% 24%, #f0f4f9 0 14%, transparent 14%),
    radial-gradient(circle at 54% 48%, #8dc5ff 0 22%, transparent 22%),
    linear-gradient(135deg, #f6f9ff, #b5d3fb);
}

.service-card,
.trusted-card,
.provider-option,
.booking-card,
.payment-methods-card,
.coupon-card,
.payment-provider-card,
.bill-box,
.sheet-card,
.profile-card,
.wallet-card {
  background: var(--surface-soft);
}

.service-card,
.trusted-card,
.provider-option,
.booking-card {
  padding: 14px;
}

.service-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.service-card.active {
  border-color: rgba(57, 152, 255, 0.36);
  box-shadow: 0 14px 28px rgba(57, 152, 255, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.service-icon.child {
  background: linear-gradient(135deg, #72ddd2, #49c8d5);
}

.service-icon.elder {
  background: linear-gradient(135deg, #ffd978, #efb44a);
}

.service-icon.patient {
  background: linear-gradient(135deg, #6cc0ff, #4592ff);
}

.service-card h3,
.trusted-card h4,
.provider-option h3,
.profile-card h2,
.sheet-card h2,
.sheet-card h3,
.booking-card h4 {
  margin: 0;
}

.trusted-card,
.provider-option,
.booking-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.trusted-avatar,
.provider-photo {
  min-height: 72px;
}

.section-label-row {
  margin: 18px 0 12px;
}

.section-label-row h3,
.section-label-row h2,
.section-label-row span,
.booking-card p {
  margin: 0;
}

.section-label-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tight {
  margin-top: 0;
}

.sheet-card {
  padding: 18px;
}

.payment-header-card {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #2f90ff, #5eb2ff);
}

.payment-header-card p {
  color: rgba(255, 255, 255, 0.84);
}

.payment-provider-card {
  gap: 12px;
  padding: 14px;
}

.payment-methods-card,
.coupon-card {
  margin-top: 14px;
  padding: 16px;
}

.payment-option {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(100, 138, 205, 0.12);
}

.payment-option input {
  margin-top: 6px;
}

.payment-option strong,
.coupon-card h3 {
  color: var(--text);
}

.payment-option p {
  margin: 6px 0 0;
}

.toggle-option {
  padding: 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(100, 138, 205, 0.12);
}

.toggle-option input {
  margin-top: 5px;
}

.toggle-option strong {
  color: var(--text);
}

.card-fields {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.card-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coupon-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.coupon-row input,
.card-fields input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.coupon-button {
  padding-inline: 14px;
}

.hidden {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.payment-provider-card .provider-photo {
  width: 92px;
  min-height: 92px;
}

.bill-box {
  margin-top: 14px;
  padding: 16px;
}

.bill-box div {
  padding: 8px 0;
}

.bill-box div + div {
  border-top: 1px solid rgba(100, 138, 205, 0.12);
}

.bill-total {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 900;
}

.bookings-list {
  margin-top: 10px;
}

.booking-card {
  align-items: start;
}

.single-booking-card {
  grid-template-columns: 72px 1fr;
}

.booking-badge {
  width: 72px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.booking-status {
  margin-top: 8px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(57, 152, 255, 0.12);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.booking-status.canceled {
  background: rgba(230, 109, 109, 0.12);
  color: var(--danger);
}

.booking-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.small-button {
  width: auto;
  padding: 10px 14px;
}

.cancel-header-card {
  background: linear-gradient(135deg, #ff8f8f, #e66d6d);
}

.cancel-actions {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.cancel-button {
  background: linear-gradient(135deg, #ef7272, #d75454);
}

.profile-card {
  padding: 20px;
  gap: 14px;
  margin-bottom: 14px;
}

.wallet-card {
  margin-bottom: 14px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}

.wallet-card span,
.wallet-card small {
  color: var(--muted);
}

.wallet-card strong {
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.wallet-transaction {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.wallet-transaction strong,
.wallet-transaction p,
.wallet-transaction small {
  display: block;
}

.wallet-transaction p,
.wallet-transaction small {
  margin: 4px 0 0;
}

.wallet-transaction.credit {
  border-color: rgba(68, 181, 125, 0.2);
}

.wallet-transaction.debit {
  border-color: rgba(230, 109, 109, 0.2);
}

.wallet-amount {
  font-weight: 900;
}

.wallet-amount.credit {
  color: #2b9a62;
}

.wallet-amount.debit {
  color: var(--danger);
}

.payment-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(57, 152, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.profile-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.account-details {
  margin-top: 12px;
}

.account-details p {
  line-height: 1.9;
}

.bottom-nav {
  padding: 12px 10px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(100, 138, 205, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.nav-item {
  padding: 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.nav-item.active {
  background: rgba(57, 152, 255, 0.12);
  color: var(--primary-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(24px);
  padding: 14px 18px;
  border-radius: 999px;
  background: #213a6d;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  padding: 22px;
  border-radius: 24px;
  text-align: center;
  border: 1px dashed rgba(100, 138, 205, 0.3);
  color: var(--muted);
}

.site-footer,
.footer-links,
.legal-links {
  display: flex;
  align-items: center;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 22px;
  justify-content: space-between;
  gap: 18px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(67, 103, 171, 0.08);
}

.footer-brand,
.legal-panel h1,
.legal-panel h2 {
  margin: 0;
}

.footer-brand {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-copy {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links,
.legal-links {
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a,
.legal-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.legal-links a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-panel {
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-panel h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.legal-panel h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--text);
  line-height: 1.9;
}

.legal-panel ul {
  margin: 0;
  padding-right: 20px;
}

.legal-lead {
  margin: 0;
  color: var(--muted);
}

.legal-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.primary-cta:hover,
.secondary-cta:hover,
.select-provider-button:hover,
.service-card:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero-panel,
  .app-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 16px, 1280px);
    padding-top: 16px;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 28px;
  }

  .phone-shell {
    padding: 10px;
    border-radius: 34px;
  }

  .mobile-app {
    min-height: 780px;
    border-radius: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-inline,
  .coupon-row {
    grid-template-columns: 1fr;
  }
}
