:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #1d2522;
  --muted: #65706b;
  --line: #dce3de;
  --teal: #0f766e;
  --teal-dark: #0a5f59;
  --amber: #b7791f;
  --red: #b42318;
  --shadow: 0 22px 60px rgba(30, 44, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(247, 248, 245, 0) 360px),
    var(--bg);
}

html,
body {
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 44px 0;
}

.intro {
  display: grid;
  gap: 28px;
  align-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  flex: 0 0 auto;
}

.brand-logo {
  object-fit: contain;
}

.dating-header-logo {
  display: none;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.request-block,
.consent-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.request-block {
  max-width: 520px;
  padding: 22px;
}

.client-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.client-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.client-details div {
  display: grid;
  gap: 4px;
}

.client-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.client-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
}

.service-text {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e7f4f1;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

body.dating-mode {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #11131b;
  --ink: #f6f8ff;
  --muted: #b8bfcc;
  --line: rgba(255, 255, 255, 0.13);
  --teal: #ff4f92;
  --teal-dark: #58a9ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 79, 146, 0.2), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(52, 152, 255, 0.2), transparent 33%),
    linear-gradient(160deg, #050507 0%, #0c1018 52%, #14161f 100%),
    var(--bg);
  overflow-x: hidden;
}

body.dating-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(90deg, rgba(255, 79, 146, 0.05), rgba(52, 152, 255, 0.05));
}

body.dating-mode .shell {
  width: min(460px, calc(100% - 28px));
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 18px 0;
}

body.dating-mode .intro {
  gap: 10px;
}

body.dating-mode .brand {
  position: relative;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding-right: 0;
  animation: datingRise 0.55s ease both;
}

body.dating-mode .dating-header-logo {
  display: none;
}

body.dating-mode .brand-logo {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 2px solid rgba(255, 79, 146, 0.82);
  background: linear-gradient(135deg, #ff4f92, #3498ff);
  box-shadow: 0 16px 34px rgba(255, 79, 146, 0.34), 0 10px 24px rgba(52, 152, 255, 0.22);
  object-fit: cover;
  animation: datingLogo 0.6s ease 0.12s both;
}

body.dating-mode .brand > div {
  flex: 1 1 auto;
  min-width: 0;
}

body.dating-mode .eyebrow {
  margin-bottom: 0;
  color: #ff6ca5;
}

body.dating-mode h1 {
  max-width: 260px;
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  line-height: 1;
}

body.dating-mode .service-text {
  background: #172033;
  color: #58a9ff;
}

body.parcel-mode,
body.pharmacy-mode {
  color-scheme: light;
  min-height: 100svh;
  overflow-x: hidden;
}

body.parcel-mode {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #101820;
  --muted: #627184;
  --line: rgba(16, 24, 32, 0.1);
  --teal: #f28d25;
  --teal-dark: #d66f08;
  --shadow: 0 24px 70px rgba(36, 54, 75, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 178, 63, 0.22) 0%, rgba(255, 255, 255, 0) 320px),
    linear-gradient(140deg, #f7fbff 0%, #fff8ee 58%, #f2f8ff 100%);
}

body.pharmacy-mode {
  --bg: #f4fbf7;
  --surface: #ffffff;
  --ink: #0e1720;
  --muted: #5f706b;
  --line: rgba(14, 23, 32, 0.1);
  --teal: #22c55e;
  --teal-dark: #128443;
  --shadow: 0 24px 70px rgba(27, 91, 63, 0.16);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(255, 255, 255, 0) 320px),
    linear-gradient(140deg, #f6fff9 0%, #f2fbff 54%, #f6fff9 100%);
}

body.parcel-mode .shell,
body.pharmacy-mode .shell {
  width: min(430px, calc(100% - 28px));
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0 28px;
}

body.parcel-mode .intro,
body.pharmacy-mode .intro {
  gap: 14px;
}

body.parcel-mode .brand,
body.pharmacy-mode .brand {
  align-items: center;
  gap: 12px;
  padding: 6px 2px 0;
  animation: datingRise 0.45s ease both;
}

body.parcel-mode .brand-logo,
body.pharmacy-mode .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.16);
}

body.parcel-mode .eyebrow,
body.pharmacy-mode .eyebrow {
  margin-bottom: 2px;
  text-transform: none;
  font-size: 0.9rem;
}

body.parcel-mode h1,
body.pharmacy-mode h1 {
  font-size: clamp(1.82rem, 8vw, 2.7rem);
  line-height: 1.02;
}

body.parcel-mode .request-block,
body.pharmacy-mode .request-block {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  animation: datingRise 0.55s ease 0.06s both;
}

body.parcel-mode .label,
body.pharmacy-mode .label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  margin: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 32, 0.72);
  text-transform: none;
}

body.parcel-mode .dating-profile,
body.pharmacy-mode .dating-profile {
  display: grid;
  gap: 0;
  margin: 0;
}

body.parcel-mode .dating-avatar,
body.pharmacy-mode .dating-avatar {
  position: relative;
  width: 100%;
  height: clamp(190px, 44svh, 310px);
  border-radius: 0;
  overflow: hidden;
}

body.parcel-mode .dating-avatar {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, #ffd07b 0%, #ffb23f 45%, #f28d25 100%);
}

body.pharmacy-mode .dating-avatar {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(135deg, #bbf7d0 0%, #2dd4bf 48%, #22c55e 100%);
}

body.parcel-mode .dating-avatar::before,
body.pharmacy-mode .dating-avatar::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

body.parcel-mode .dating-avatar::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 124px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(16, 24, 32, 0.14) 46% 54%, transparent 54%),
    linear-gradient(180deg, #fff1cf 0 32%, #ffb23f 32% 100%);
  box-shadow: 0 22px 36px rgba(118, 72, 15, 0.24);
  transform: rotate(-5deg);
}

body.pharmacy-mode .dating-avatar::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: 34px;
  width: 116px;
  height: 116px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 42%, #fff 42% 58%, transparent 58%),
    rgba(14, 23, 32, 0.88);
  box-shadow: 0 22px 40px rgba(19, 95, 56, 0.24);
  transform: rotate(7deg);
}

body.parcel-mode .dating-avatar span,
body.pharmacy-mode .dating-avatar span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  color: #fff;
  background: rgba(16, 24, 32, 0.84);
  box-shadow: 0 20px 38px rgba(16, 24, 32, 0.26);
}

body.parcel-mode .dating-main,
body.pharmacy-mode .dating-main {
  display: grid;
  gap: 10px;
  padding: 18px;
}

body.parcel-mode .profile-name,
body.pharmacy-mode .profile-name {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1.05;
}

body.parcel-mode .profile-hint,
body.pharmacy-mode .profile-hint {
  margin: 0;
  color: var(--muted);
}

body.parcel-mode .profile-message,
body.pharmacy-mode .profile-message {
  margin: 4px 0 0;
  border-color: var(--line);
  background: #f8fafc;
  color: var(--ink);
  box-shadow: none;
}

body.pharmacy-mode .profile-message {
  background: #f0fdf4;
}

body.parcel-mode .profile-message::before,
body.pharmacy-mode .profile-message::before {
  display: none;
}

body.parcel-mode .profile-view-button,
body.pharmacy-mode .profile-view-button {
  min-height: 56px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

body.parcel-mode .profile-view-button {
  background: linear-gradient(135deg, #101820, #f28d25);
}

body.pharmacy-mode .profile-view-button {
  background: linear-gradient(135deg, #0e1720, #22c55e);
}

body.parcel-mode .profile-view-button:hover:not(:disabled),
body.pharmacy-mode .profile-view-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.parcel-mode .profile-geo-hint,
body.pharmacy-mode .profile-geo-hint {
  color: var(--muted);
}

body.parcel-mode .consent-panel,
body.pharmacy-mode .consent-panel {
  display: none;
}

body.dating2-mode {
  color-scheme: light;
  --bg: #fff5f8;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: rgba(244, 63, 108, 0.16);
  --teal: #f43f6c;
  --teal-dark: #e11d48;
  --shadow: 0 24px 70px rgba(244, 63, 108, 0.18);
  background:
    radial-gradient(circle at 50% 12%, rgba(244, 63, 108, 0.13), transparent 28%),
    linear-gradient(180deg, #fff5f8 0%, #ffffff 48%, #ffffff 100%);
}

body.dating2-mode .shell {
  width: min(430px, calc(100% - 28px));
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0 28px;
}

body.dating2-mode .intro {
  gap: 14px;
}

body.dating2-mode .brand {
  align-items: center;
  gap: 12px;
}

body.dating2-mode .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(244, 63, 108, 0.2);
}

body.dating2-mode .eyebrow {
  display: none;
}

body.dating2-mode h1 {
  font-size: clamp(1.8rem, 8vw, 2.7rem);
}

body.dating2-mode .request-block {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dating2-mode .label {
  display: none;
}

body.dating2-mode .consent-panel {
  display: none;
}

.service-screen {
  width: 100%;
}

.kit-service,
.kit-dating {
  display: grid;
  gap: 16px;
  width: 100%;
}

.kit-service {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.kit-card-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fff;
}

.kit-icon-wrap {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 8px;
}

.kit-icon-wrap.parcel {
  background: #eff6ff;
}

.kit-icon-wrap.pharmacy {
  background: #f0fdf4;
}

.kit-icon-wrap img {
  width: 54px;
  height: 54px;
}

.kit-card-row h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.32rem;
  line-height: 1.1;
}

.kit-card-row p {
  margin: 6px 0 0;
  color: #64748b;
}

.kit-card-row span {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(16, 98, 244, 0.09);
  color: #1062f4;
  font-size: 0.86rem;
  font-weight: 800;
}

body.pharmacy-mode .kit-card-row span {
  background: rgba(21, 153, 71, 0.09);
  color: #159947;
}

.kit-service-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.35;
}

.kit-map {
  position: relative;
  height: 305px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    #f8fafc;
  background-size: 46px 46px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.kit-map::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 44%;
  width: 140%;
  height: 74px;
  transform: rotate(-11deg);
  background: rgba(125, 211, 252, 0.34);
}

.kit-map::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 86px;
  width: 120px;
  height: 72px;
  border-radius: 30px;
  background: rgba(187, 247, 208, 0.66);
}

.kit-street,
.kit-park {
  position: absolute;
  z-index: 1;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}

.kit-street {
  left: 54px;
  top: 134px;
  transform: rotate(-18deg);
}

.kit-park {
  right: 38px;
  bottom: 112px;
  color: #15803d;
  text-align: center;
}

.pin {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #1062f4;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  transform: rotate(-45deg);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

body.pharmacy-mode .pin {
  background: #159947;
}

.pin.p1 { left: 18%; top: 32%; }
.pin.p2 { left: 78%; top: 25%; }
.pin.p3 { left: 82%; top: 61%; }
.pin.p4 { left: 18%; top: 73%; }
.pin.active {
  left: 50%;
  top: 48%;
  width: 50px;
  height: 50px;
}

.kit-map-tooltip,
.kit-nearest {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.kit-map-tooltip {
  left: 50%;
  top: 16px;
  display: grid;
  gap: 2px;
  width: 190px;
  padding: 13px 16px;
  border-radius: 8px;
  text-align: center;
  transform: translateX(-50%);
}

.kit-map-tooltip strong {
  color: #0f172a;
}

.kit-map-tooltip span {
  color: #1062f4;
  font-weight: 800;
}

body.pharmacy-mode .kit-map-tooltip span {
  color: #159947;
}

.kit-map-tooltip small {
  color: #64748b;
}

.kit-nearest {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
}

.kit-nearest img {
  width: 28px;
  height: 28px;
}

.kit-nearest > img {
  box-sizing: content-box;
  padding: 10px;
  border-radius: 8px;
  background: #1062f4;
}

body.pharmacy-mode .kit-nearest > img {
  background: #159947;
}

.kit-nearest strong,
.kit-nearest span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-nearest strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.kit-nearest span {
  color: #334155;
  font-size: 0.92rem;
}

.kit-nearest b {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(16, 98, 244, 0.09);
  color: #1062f4;
  font-size: 0.9rem;
}

body.pharmacy-mode .kit-nearest b {
  background: rgba(21, 153, 71, 0.09);
  color: #159947;
}

.kit-primary,
.kit-secondary {
  width: 100%;
  min-height: 62px;
  border-radius: 8px;
  font-size: 1.12rem;
  font-weight: 900;
}

.kit-primary {
  border: 0;
  color: #fff;
  background: #1062f4;
  box-shadow: 0 16px 36px rgba(16, 98, 244, 0.24);
}

.kit-primary.pharmacy {
  background: #159947;
  box-shadow: 0 16px 36px rgba(21, 153, 71, 0.22);
}

.kit-secondary {
  border: 2px solid #1062f4;
  color: #1062f4;
  background: #fff;
}

.kit-secondary.pharmacy {
  border-color: #159947;
  color: #159947;
}

.kit-primary:disabled,
.kit-secondary:disabled {
  opacity: 0.62;
}

.kit-geo-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.kit-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px -8px -4px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.kit-bottom-nav span {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.kit-bottom-nav span.active {
  color: #1062f4;
}

body.pharmacy-mode .kit-bottom-nav span.active {
  color: #159947;
}

.kit-dating {
  padding: 24px 18px 18px;
  border: 1px solid rgba(244, 63, 108, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.kit-heart-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffe4ec;
}

.kit-heart-orbit img {
  width: 64px;
  height: 64px;
  padding: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f6c, #ec4899);
  box-shadow: 0 16px 34px rgba(244, 63, 108, 0.25);
}

.kit-dating h2 {
  margin: 8px 0 0;
  font-size: 2.2rem;
  line-height: 1;
}

.kit-subtitle {
  margin: 0;
  color: #71717a;
  font-size: 1.08rem;
}

.kit-profile-visual {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.45), transparent 22%),
    radial-gradient(circle at 70% 12%, rgba(251,191,36,.35), transparent 12%),
    linear-gradient(135deg, #fde68a, #ffe4e6 46%, #18181b 100%);
}

.kit-profile-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(#fde68a, #fecdd3);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  transform: translateX(-50%);
}

.kit-profile-face {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 220px;
  height: 210px;
  border-radius: 96px 96px 28px 28px;
  background: linear-gradient(#fff7ed, #fed7aa);
  transform: translateX(-50%);
}

.kit-message {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #ffe4ec;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.kit-message span {
  color: #f43f6c;
  font-weight: 900;
}

.kit-message p {
  margin: 0;
  color: #3f3f46;
  font-size: 1.14rem;
  line-height: 1.35;
}

.kit-primary.dating {
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f6c, #ec4899);
  box-shadow: 0 16px 36px rgba(244, 63, 108, 0.26);
}

.kit-secondary.dating {
  border-color: #fb7185;
  border-radius: 999px;
  color: #f43f6c;
}

body.dating-mode .request-block {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.84);
  box-shadow: var(--shadow);
  animation: datingRise 0.65s ease 0.06s both;
}

body.dating-mode .label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 8, 13, 0.54);
  backdrop-filter: blur(14px);
  text-transform: none;
}

.dating-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.dating-avatar {
  position: relative;
  isolation: isolate;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #e8f2ff;
  color: #1765ba;
  font-size: 3rem;
  font-weight: 800;
}

.dating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 8, 13, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.profile-photo-nav::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.profile-photo-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.profile-photo-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.profile-photo-prev {
  left: 12px;
}

.profile-photo-next {
  right: 12px;
}

.profile-photo-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.profile-photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.profile-photo-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.profile-name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 850;
  color: var(--ink);
}

.profile-hint {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

body.dating-mode .dating-profile {
  display: grid;
  gap: 0;
  margin: 0;
}

body.dating-mode .dating-avatar {
  position: relative;
  width: 100%;
  height: clamp(300px, 56svh, 560px);
  border-radius: 0;
  background: #151721;
}

body.dating-mode .dating-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.04) 0%, rgba(5, 5, 7, 0.08) 45%, rgba(5, 5, 7, 0.82) 100%),
    linear-gradient(135deg, rgba(255, 79, 146, 0.18), transparent 38%, rgba(52, 152, 255, 0.16));
}

body.dating-mode .dating-avatar img {
  animation: datingPhoto 7s ease-out both;
}

body.dating-mode .profile-photo-dots {
  top: 16px;
  bottom: auto;
}

body.dating-mode .dating-main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: -142px;
  padding: 0 18px 16px;
}

body.dating-mode .profile-name {
  font-size: clamp(2.2rem, 9vw, 4.1rem);
  color: #fff;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

body.dating-mode .profile-hint {
  margin: -4px 0 0;
  color: #d8deea;
  font-size: 0.98rem;
}

.profile-message {
  position: relative;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #354057;
  border-radius: 8px;
  background: #171e2b;
  color: #f5f7fb;
  line-height: 1.45;
  font-weight: 700;
}

.profile-message::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #354057;
  border-top: 1px solid #354057;
  background: #171e2b;
  transform: rotate(45deg);
}

.profile-view-button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f92, #3498ff);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(255, 79, 146, 0.28);
}

.profile-view-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.nearby-profile {
  max-width: 520px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nearby-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff1e8;
  color: #c2410c;
  font-size: 1.8rem;
  font-weight: 800;
}

.nearby-kicker {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nearby-profile h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.nearby-profile p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

body.dating-mode .nearby-profile {
  display: none !important;
}

body.dating-mode .nearby-avatar {
  background: #172033;
  color: #58a9ff;
}

body.dating-mode .consent-panel {
  display: none;
}

body.dating-mode .check-list {
  display: none;
}

body.dating-mode .check-list li {
  color: #c6cede;
}

body.dating-mode .check-list li::before {
  background: #ff4f92;
  box-shadow: inset 0 0 0 4px #2a1930;
}

body.dating-mode .consent-panel h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

body.dating-mode .consent-panel p {
  margin-bottom: 0;
}

body.dating-mode .profile-message {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(17, 20, 31, 0.72);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  animation: datingBubble 0.42s ease 0.26s both;
}

body.dating-mode .profile-message::before {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 20, 31, 0.72);
}

body.dating-mode .profile-view-button {
  position: relative;
  overflow: hidden;
  margin-top: 2px;
  min-height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4f92 0%, #ff6aa7 45%, #3498ff 100%);
  box-shadow: 0 18px 46px rgba(255, 79, 146, 0.34), 0 8px 24px rgba(52, 152, 255, 0.2);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  animation: datingButton 1.9s ease-in-out infinite;
}

body.dating-mode .profile-view-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 32%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: datingShine 2.7s ease-in-out infinite;
}

body.dating-mode .profile-view-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.dating-mode .profile-view-button:disabled {
  animation: none;
}

.profile-geo-hint {
  margin: 0;
  color: #c6ccd8;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.dating-mode .profile-geo-hint {
  color: #cfd6e6;
  animation: datingFade 0.36s ease both;
}

.consent-panel {
  min-height: 540px;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  align-content: center;
}

.consent-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #33413c;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #d9f2ee;
}

.consent-note {
  margin: 26px 0;
  color: #26332f;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--teal);
}

.primary-button:hover:not(:disabled) {
  background: var(--teal-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: #b9c6bf;
}

.status-view {
  text-align: center;
}

.loader {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border: 5px solid #dcebe7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 15px;
  height: 24px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.notice {
  border-left: 4px solid var(--amber);
  padding: 18px 20px;
  background: #fff8eb;
  border-radius: 8px;
}

.notice h2,
.notice p {
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

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

@keyframes datingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes datingLogo {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes datingPhoto {
  from {
    transform: scale(1.06);
    filter: saturate(0.88);
  }
  to {
    transform: scale(1);
    filter: saturate(1.04);
  }
}

@keyframes datingBubble {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes datingButton {
  0%,
  100% {
    box-shadow: 0 18px 46px rgba(255, 79, 146, 0.34), 0 8px 24px rgba(52, 152, 255, 0.2);
  }
  50% {
    box-shadow: 0 22px 54px rgba(255, 79, 146, 0.44), 0 12px 32px rgba(52, 152, 255, 0.26);
  }
}

@keyframes datingShine {
  0% {
    left: -38%;
    opacity: 0;
  }
  22% {
    opacity: 0.75;
  }
  46%,
  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes datingFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 26px 0;
  }

  body.dating-mode .shell {
    grid-template-columns: 1fr;
  }

  .consent-panel {
    min-height: auto;
  }

  h1 {
    font-size: 2.7rem;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  body.dating-mode .shell {
    width: min(360px, calc(100% - 28px));
    padding: 14px 0;
  }

  body.dating-mode .brand {
    min-height: 44px;
    padding-right: 0;
    gap: 12px;
  }

  body.dating-mode .dating-header-logo {
    display: none;
  }

  body.dating-mode .brand-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  body.dating-mode h1 {
    max-width: 240px;
    font-size: 1.72rem;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  .actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .dating-profile,
  .nearby-profile {
    align-items: flex-start;
  }

  .dating-avatar {
    width: 104px;
    height: 104px;
  }

  body.dating-mode .dating-avatar {
    width: 100%;
    height: min(53svh, 430px);
  }

  body.dating-mode .dating-main {
    gap: 8px;
    margin-top: -132px;
    padding: 0 18px 14px;
  }

  body.dating-mode .profile-message {
    padding: 12px 14px;
    font-size: 0.96rem;
  }

  body.dating-mode .profile-view-button {
    min-height: 52px;
  }

  body.dating-mode .profile-geo-hint {
    font-size: 0.82rem;
  }
}
