* {
  box-sizing: border-box;
}

:root {
  --pink: #FF4D6D;
  --hot-pink: #FF2E63;
  --pink-2: #FF758F;
  --pink-3: #FFB3C6;
  --navy: #1A1A2E;
  --gray: #6C6C80;
  --bg: #FFF1F5;
  --surface: #ffffff;
  --line: #F5D5DE;
  --ok: #27c48f;
  --warn: #f59e0b;
  --danger: #ef476f;
  --shadow: 0 18px 38px rgba(255, 77, 109, 0.12);
}

html {
  direction: rtl;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 179, 198, 0.38), transparent 36%),
    linear-gradient(180deg, #fff9fb 0%, var(--bg) 100%);
  color: var(--navy);
  font-family: 'Cairo', system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 77, 109, 0.11) 0 10px, transparent 12px),
    radial-gradient(circle at 82% 16%, rgba(255, 117, 143, 0.18) 0 22px, transparent 24px),
    radial-gradient(circle at 14% 46%, rgba(255, 179, 198, 0.2) 0 18px, transparent 20px),
    radial-gradient(circle at 86% 74%, rgba(255, 77, 109, 0.11) 0 14px, transparent 16px);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.desktop-gate {
  display: none;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 14px 85px;
}

.app-shell.no-nav {
  padding-bottom: 24px;
}

.app-shell.reference-screen {
  padding-top: 58px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 179, 198, 0.28) 0 12px, transparent 14px),
    radial-gradient(circle at 85% 21%, rgba(255, 117, 143, 0.2) 0 19px, transparent 22px),
    linear-gradient(180deg, #fff7fa 0%, #fff1f5 100%);
}

.splash-screen {
  width: 100%;
  max-width: 480px;
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 70px 28px 46px;
  overflow: hidden;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 51% 13%, rgba(255, 255, 255, 0.24) 0 4px, transparent 7px),
    radial-gradient(circle at 14% 19%, rgba(255, 179, 198, 0.46) 0 28px, transparent 33px),
    radial-gradient(circle at 83% 17%, rgba(255, 179, 198, 0.54) 0 44px, transparent 50px),
    radial-gradient(circle at 93% 31%, rgba(255, 179, 198, 0.42) 0 26px, transparent 31px),
    radial-gradient(circle at 11% 48%, rgba(255, 179, 198, 0.36) 0 20px, transparent 25px),
    radial-gradient(circle at 88% 70%, rgba(255, 179, 198, 0.46) 0 31px, transparent 37px),
    radial-gradient(circle at 5% 94%, rgba(255, 46, 99, 0.78) 0 94px, transparent 105px),
    radial-gradient(circle at 98% 95%, rgba(255, 46, 99, 0.72) 0 86px, transparent 98px),
    linear-gradient(180deg, #FF2E63 0%, #FF4D6D 44%, #D6005F 100%);
}

.splash-screen .splash-mark {
  width: 100%;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 12% 21%, rgba(255, 179, 198, 0.45) 0 26px, transparent 30px),
    radial-gradient(circle at 85% 31%, rgba(255, 179, 198, 0.34) 0 28px, transparent 32px),
    radial-gradient(circle at 6% 92%, rgba(255, 46, 99, 0.7) 0 86px, transparent 92px),
    radial-gradient(circle at 96% 95%, rgba(255, 46, 99, 0.72) 0 78px, transparent 86px),
    linear-gradient(180deg, #FF2E63 0%, #FF4D6D 44%, #C90055 100%);
  color: white;
  animation: splashOut 900ms ease 850ms forwards;
}

.splash-mark {
  text-align: center;
  animation: softPop 900ms ease both;
}

.splash-heart {
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 54px;
  background: transparent;
  font-size: 138px;
  line-height: 1;
  filter: drop-shadow(0 22px 24px rgba(84, 0, 42, 0.24));
}

.status-bar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 15;
  width: min(480px, 100%);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 30px 4px;
  color: var(--navy);
  direction: ltr;
  font-weight: 900;
  font-size: 16px;
  pointer-events: none;
}

.status-bar.light {
  color: white;
}

.status-icons {
  letter-spacing: 2px;
  font-size: 15px;
}

.love-logo {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 auto 22px;
  color: var(--pink);
  text-align: center;
}

.love-logo .mark {
  font-size: 76px;
  line-height: 0.82;
  filter: drop-shadow(0 10px 14px rgba(255, 77, 109, 0.22));
}

.love-logo .arabic {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.love-logo .latin {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 8px;
  margin-right: 8px;
}

.love-logo.compact {
  margin-bottom: 18px;
}

.love-logo.compact .mark {
  font-size: 74px;
}

.love-logo.compact .arabic {
  font-size: 36px;
}

.back-arrow {
  position: absolute;
  top: 72px;
  right: 24px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  transform: rotate(180deg);
}

@keyframes splashOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes softPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.brand-logo,
.icon-bubble {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  color: white;
  box-shadow: 0 12px 24px rgba(255, 77, 109, 0.24);
}

.muted {
  color: var(--gray);
}

.hero {
  min-height: calc(100svh - 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-art {
  width: 176px;
  height: 176px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 36%, #fff 0 20%, transparent 21%),
    linear-gradient(150deg, var(--pink-2), #b20f56 70%, var(--navy));
  color: white;
  font-size: 72px;
  box-shadow: 0 28px 56px rgba(255, 77, 109, 0.28);
  animation: floatLove 3.8s ease-in-out infinite;
}

.splash-title {
  color: white;
  font-size: 78px;
  line-height: 0.85;
  font-weight: 900;
  text-shadow: 0 14px 24px rgba(94, 0, 45, 0.22);
}

.splash-love {
  margin-top: 8px;
  color: white;
  font-size: 26px;
  letter-spacing: 18px;
  transform: translateX(-8px);
}

.splash-copy {
  margin-top: 54px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.9;
}

.loader-wrap {
  width: 250px;
  margin: 78px auto 0;
}

.loader-heart {
  color: var(--pink-3);
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.loader-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.loader-fill {
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: white;
  animation: loadSlide 1.4s ease-in-out infinite alternate;
}

.landing-phone {
  min-height: calc(100svh - 116px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.landing-visual {
  width: 176px;
  height: 176px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 54px;
  color: white;
  font-size: 86px;
  background:
    radial-gradient(circle at 50% 42%, white 0 19%, transparent 20%),
    linear-gradient(150deg, #FF758F, #FF2E63 54%, #BA0054);
  box-shadow: 0 32px 58px rgba(255, 77, 109, 0.28);
  animation: floatLove 3.8s ease-in-out infinite;
}

.screen-title {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}

.screen-copy {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

@keyframes loadSlide {
  to { width: 78%; }
}

@keyframes floatLove {
  50% {
    transform: translateY(-7px);
  }
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
}

.hero p,
.page-subtitle {
  margin: 12px auto 0;
  max-width: 31ch;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
}

.stack {
  display: grid;
  gap: 14px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.reference-card {
  border-radius: 18px;
  background: rgba(255, 241, 245, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(255, 77, 109, 0.08);
}

.login-alert,
.welcome-panel {
  position: relative;
  padding: 24px 22px;
  border-radius: 18px;
  background: #FFF1F5;
  border: 1px solid #F5B8C8;
  color: var(--navy);
  text-align: center;
}

.login-alert strong,
.welcome-panel strong {
  display: block;
  color: var(--pink);
  font-size: 18px;
  margin-bottom: 4px;
}

.input-shell {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 10px 20px rgba(255, 77, 109, 0.08);
}

.input-shell input {
  min-height: 56px;
  border: 0;
  outline: none;
  font-size: 17px;
  color: var(--navy);
  background: transparent;
}

.input-icon {
  color: var(--pink);
  font-size: 24px;
}

.country-code {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  direction: ltr;
}

.egypt-flag {
  width: 28px;
  height: 18px;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(26, 26, 46, 0.08);
  background: linear-gradient(180deg, #ce1126 0 33%, #fff 33% 66%, #000 66%);
}

.forgot-link {
  display: block;
  margin: 8px 0 14px;
  color: var(--pink);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.trust-row span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.trust-row i {
  color: var(--pink);
  font-style: normal;
  font-size: 22px;
}

.mini-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat strong {
  display: block;
  color: var(--pink);
  font-size: 25px;
  line-height: 1.1;
}

.stat span {
  color: var(--gray);
  font-size: 12px;
}

.btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  color: white;
  box-shadow: 0 16px 30px rgba(255, 77, 109, 0.26);
}

.btn-secondary {
  color: var(--pink);
  background: white;
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--gray);
  background: transparent;
  border: 1px solid rgba(108, 108, 128, 0.18);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(108, 108, 128, 0.16);
  border-radius: 15px;
  background: #fff;
  color: var(--navy);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.pill {
  flex: 1 1 calc(50% - 8px);
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffe7ee;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.tag.ok {
  background: rgba(39, 196, 143, 0.14);
  color: #0f8b68;
}

.tag.danger {
  background: #ffe8ee;
  color: #b20f56;
}

.schedule-card {
  display: grid;
  gap: 12px;
}

.schedule-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.time-chip {
  min-width: 76px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  color: white;
  font-weight: 900;
  direction: ltr;
  box-shadow: 0 16px 28px rgba(255, 77, 109, 0.22);
}

.compact-line {
  margin: 2px 0 0;
  font-size: 12px;
}

.compact-note {
  padding: 10px 12px;
}

.message-preview {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid #d9f4e7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fffb 0%, #ffffff 100%);
}

.message-preview span {
  color: #0f8b68;
  font-size: 12px;
  font-weight: 900;
}

.message-preview p {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.connect-status,
.connect-method {
  display: grid;
  gap: 12px;
}

.connect-card {
  display: grid;
  gap: 16px;
}

.connect-card[hidden] {
  display: none;
}

.connect-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff0f4;
}

.connect-switch-option {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-weight: 900;
}

.connect-switch-option.active {
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  color: white;
  box-shadow: 0 12px 22px rgba(255, 77, 109, 0.2);
}

.connect-panel {
  display: grid;
  gap: 12px;
}

.connect-panel[hidden] {
  display: none;
}

.connect-status {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.connect-status p,
.connect-method p {
  margin: 3px 0 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
}

.connect-method strong {
  color: var(--navy);
  font-size: 16px;
}

.qr-inline-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(255, 77, 109, 0.32);
  border-radius: 18px;
  background: #fff;
}

.qr-inline-box img {
  width: min(230px, 100%);
  aspect-ratio: 1;
  border-radius: 14px;
  background: white;
}

.qr-inline-box img[hidden] {
  display: none;
}

.qr-loading {
  width: min(150px, 52vw);
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 25%, rgba(255, 77, 109, 0.16) 50%, transparent 75%),
    repeating-linear-gradient(45deg, #fff 0 10px, #ffe7ee 10px 20px);
  background-size: 220% 100%, auto;
  animation: qrLoadingSweep 1.2s ease-in-out infinite;
}

@keyframes qrLoadingSweep {
  to {
    background-position: -120% 0, 0 0;
  }
}

.qr-inline-box span {
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.pairing-code-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(15, 139, 104, 0.45);
  border-radius: 16px;
  background: #f6fffb;
  text-align: center;
}

.pairing-code-box span {
  color: #0f8b68;
  font-size: 12px;
  font-weight: 900;
}

.pairing-code-box strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 4px;
}

.copy-code-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid rgba(15, 139, 104, 0.22);
  border-radius: 13px;
  background: white;
  color: #0f8b68;
  cursor: pointer;
  font-weight: 900;
}

.copy-code-btn.copied {
  background: rgba(39, 196, 143, 0.14);
  color: #0f8b68;
}

.connect-shell {
  padding: 22px 20px 88px;
}

.connect-shell .topbar {
  margin-bottom: 8px;
}

.connect-shell .page-title {
  font-size: 26px;
  line-height: 1.15;
  text-align: center;
}

.connect-shell .page-subtitle {
  margin-top: 6px;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.55;
}

.connect-shell .connect-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 15px;
}

.connect-shell .connect-card {
  gap: 10px;
  margin-top: 10px !important;
  padding: 12px;
  border-radius: 16px;
}

.connect-shell .connect-switch {
  padding: 4px;
  border-radius: 14px;
}

.connect-shell .connect-switch-option {
  min-height: 38px;
  border-radius: 11px;
  font-size: 14px;
}

.connect-shell .connect-panel,
.connect-shell .connect-method {
  gap: 9px;
}

.connect-shell .connect-panel strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.connect-shell .connect-panel p {
  max-width: 25ch;
  margin: 4px auto 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.connect-shell .qr-inline-box {
  gap: 7px;
  padding: 10px;
  border-radius: 15px;
}

.connect-shell .qr-inline-box img {
  width: min(205px, 78vw);
}

.connect-shell .qr-loading {
  width: min(150px, 55vw);
}

.connect-shell .qr-inline-box span {
  font-size: 11px;
  line-height: 1.45;
}

.connect-shell .btn {
  min-height: 46px;
  border-radius: 14px;
}

.connect-shell .field {
  gap: 5px;
  margin-bottom: 9px;
}

.connect-shell .field input,
.connect-shell .field select,
.connect-shell .field textarea {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 13px;
}

.connect-shell .pairing-code-box {
  gap: 5px;
  padding: 10px;
  border-radius: 14px;
}

.connect-shell .pairing-code-box strong {
  font-size: 26px;
}

.auto-import-panel {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.auto-import-panel[hidden] {
  display: none;
}

.auto-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
}

.auto-import-head span {
  color: var(--pink);
  direction: ltr;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffe7ee;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  transition: width 320ms ease;
}

.auto-import-panel p {
  margin: 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
}

.security-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  position: relative;
  padding-right: 20px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.7;
}

.security-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #0f8b68;
  font-weight: 900;
}

.import-results-link[hidden] {
  display: none;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.weekday-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--navy);
  font-size: 12px;
}

.weekday-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--pink);
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-item + .list-item {
  margin-top: 10px;
}

.list-body {
  min-width: 0;
  flex: 1;
}

.list-body strong {
  display: block;
}

.list-body small {
  color: var(--gray);
}

.contact-picker {
  display: grid;
  gap: 12px;
}

.source-actions {
  display: block;
}

.source-actions .btn {
  min-height: 46px;
  border-radius: 14px;
  font-size: 13px;
}

.source-actions .btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.contact-results {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
  padding-left: 2px;
}

.contact-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--navy);
  text-align: right;
  cursor: pointer;
}

.contact-option[hidden] {
  display: none;
}

.contact-option strong,
.contact-option small {
  display: block;
}

.contact-option small {
  color: var(--gray);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(26, 26, 46, 0.36);
}

.modal-backdrop[hidden] {
  display: none;
}

.relationship-modal {
  width: min(448px, 100%);
  max-height: calc(100svh - 36px);
  margin: 0 auto;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 22px 48px rgba(26, 26, 46, 0.2);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff0f4;
  color: var(--pink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 10;
  width: min(448px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--gray);
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav i {
  display: block;
  font-style: normal;
  font-size: 18px;
}

.bottom-nav a.active {
  color: var(--pink);
  background: #fff0f4;
  border-radius: 17px;
}

.notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff0f4;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
}

.notice.error {
  background: #ffe8ee;
  color: #b20f56;
}

.success-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-2), var(--pink));
  color: white;
  font-size: 28px;
  box-shadow: 0 18px 32px rgba(255, 77, 109, 0.22);
  animation: softPop 420ms ease both;
}

.success-mark.big {
  width: 178px;
  height: 178px;
  background: radial-gradient(circle at 50% 42%, white 0 33%, transparent 34%), linear-gradient(135deg, var(--pink-3), var(--pink));
  color: var(--pink);
  font-size: 84px;
  box-shadow: 0 24px 44px rgba(255, 77, 109, 0.24);
}

.welcome-page-title {
  font-size: 32px;
  text-align: center;
  line-height: 1.35;
}

.welcome-page-title span {
  color: var(--pink);
}

.soft-panel {
  padding: 20px;
  border: 1px solid #F5D5DE;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.privacy-panel {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  text-align: right;
  color: var(--navy);
}

.privacy-panel .shield {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f4eaff;
  color: #8b5cf6;
  font-size: 28px;
}

.terms-copy {
  margin: 22px auto 0;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.terms-copy a {
  color: var(--pink);
  font-weight: 800;
}

.safe-note {
  border: 1px dashed rgba(255, 77, 109, 0.32);
  background: rgba(255, 255, 255, 0.72);
}

.table-lite {
  width: 100%;
  border-spacing: 0 8px;
}

.table-lite td {
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 2500px) {
  body {
    display: grid;
    place-items: center;
    background: #fff;
  }

  .app-shell,
  .bottom-nav,
  .splash,
  .splash-screen {
    display: none !important;
  }

  .desktop-gate {
    width: min(420px, 90vw);
    display: block;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow);
  }
}
