:root {
  --bg: #050612;
  --panel: #0b1020;
  --panel-2: #141a31;
  --card: #ffffff;
  --text: #111827;
  --muted: #728096;
  --line: rgba(17, 24, 39, .1);
  --cyan: #41f3e5;
  --blue: #5177ff;
  --pink: #ff4f9b;
  --orange: #ffc857;
  --green: #42f29b;
  --violet: #9a6bff;
  --gold: #ffd166;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(65, 243, 229, .26), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(154, 107, 255, .24), transparent 28%),
    radial-gradient(circle at 74% 82%, rgba(255, 79, 155, .18), transparent 32%),
    linear-gradient(135deg, #040611, #101528 48%, #070816);
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.preview-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone {
  width: min(430px, 100%);
  min-height: min(890px, calc(100vh - 44px));
  border-radius: 40px;
  padding: 12px;
  background: #050814;
  box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.14);
}

.screen {
  min-height: calc(min(890px, 100vh - 44px) - 24px);
  border-radius: 30px;
  overflow: hidden;
  background: #f5f7fb;
  color: var(--text);
  position: relative;
}

.app-header {
  height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 17px 17px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgba(56,217,207,.38), transparent 32%),
    linear-gradient(135deg, #101827, #182642);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}

.brand-mark .brand-icon {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 18px;
  height: 18px;
  opacity: .48;
}

.app-header span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 800;
}

.app-header h1 {
  margin: 4px 0 0;
  font-size: 23px;
  letter-spacing: 0;
}

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

.global-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.global-status .icon {
  width: 12px;
  height: 12px;
  color: #70ffe9;
}

.global-status span {
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
}

.header-action,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  color: #07111f;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.view {
  display: none;
  padding: 14px 15px 92px;
  min-height: calc(100% - 104px);
}

.view.active {
  display: block;
  animation: viewIn .24s ease both;
}

.explore-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 11px;
}

.explore-strip::-webkit-scrollbar {
  display: none;
}

.explore-strip button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: #5c687a;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17,24,39,.06);
}

.explore-strip button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.deck {
  height: 518px;
  position: relative;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(17,24,39,.13);
}

.swipe-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  transform-origin: 50% 90%;
  transition: transform .22s ease, opacity .22s ease;
}

.swipe-card.is-dragging {
  transition: none;
}

.swipe-card.is-exit-left {
  transform: translateX(-130%) rotate(-16deg);
  opacity: 0;
}

.swipe-card.is-exit-right {
  transform: translateX(130%) rotate(16deg);
  opacity: 0;
}

.profile-visual {
  height: 286px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #283e66, #38d9cf);
}

.profile-visual::before {
  content: "";
  position: absolute;
  inset: 22px 30px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  box-shadow: -110px 88px 0 rgba(255,255,255,.09), -24px 168px 0 rgba(255,255,255,.11);
}

.profile-visual::after {
  content: attr(data-initial);
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 116px;
  height: 116px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 54px;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.tone-2 {
  background:
    radial-gradient(circle at 78% 16%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, #441c82, #ff4f9b 62%, #ffb86b);
}

.tone-3 {
  background:
    radial-gradient(circle at 74% 14%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(135deg, #0f4c81, #32d6b8 58%, #9affc8);
}

.tone-4 {
  background:
    radial-gradient(circle at 74% 14%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, #30364f, #9a6bff 55%, #ffd166);
}

.tone-5 {
  background:
    radial-gradient(circle at 74% 14%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, #0b6b64, #5177ff 58%, #41f3e5);
}

.profile-title {
  position: relative;
  z-index: 1;
  max-width: 210px;
}

.profile-title h2 {
  margin: 0 0 7px;
  font-size: 31px;
  color: #fff;
}

.profile-title p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}

.profile-body {
  padding: 16px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-meta span,
.chips span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #eef4fb;
  color: #40506a;
  font-size: 11px;
  font-weight: 900;
}

.bio {
  margin: 0 0 14px;
  color: #5d6b7f;
  font-size: 13px;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 3px 0;
}

.round-action {
  height: 58px;
  border: 0;
  border-radius: 21px;
  background: #fff;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(17,24,39,.12);
}

.pass {
  color: var(--pink);
}

.rewind {
  color: var(--orange);
}

.super {
  color: var(--blue);
}

.like {
  color: var(--green);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin: 3px 0 14px;
}

.section-head span,
.profile-top span {
  display: block;
  color: #7b8799;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-head h2,
.profile-top h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.ghost-button {
  background: #e9eff7;
  color: #344259;
}

.match-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 13px;
  scrollbar-width: none;
}

.match-list::-webkit-scrollbar {
  display: none;
}

.match-chip {
  min-width: 86px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(17,24,39,.09);
  text-align: center;
}

.mini-photo,
.profile-photo {
  margin: 0 auto 8px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.mini-photo.has-image {
  overflow: hidden;
  padding: 0;
  background: #111827;
}

.mini-photo.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-chip strong {
  display: block;
  font-size: 12px;
}

.chat-panel {
  min-height: 414px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(17,24,39,.11);
  overflow: hidden;
}

.empty-state {
  min-height: 414px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
}

.empty-state strong {
  font-size: 18px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.5;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  display: block;
  font-size: 14px;
}

.chat-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.messages {
  height: 270px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.msg {
  width: fit-content;
  max-width: 78%;
  margin: 0 0 9px;
  border-radius: 17px 17px 17px 6px;
  padding: 10px 12px;
  background: #fff;
  color: #344259;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 7px 18px rgba(17,24,39,.07);
}

.msg.me {
  margin-left: auto;
  border-radius: 17px 17px 6px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
}

.chat-form button,
.premium-tools button,
.match-box button {
  border: 0;
  border-radius: 15px;
  padding: 12px 14px;
  color: #07111f;
  background: var(--cyan);
  font-weight: 950;
}

.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.chat-form button .icon {
  width: 16px;
  height: 16px;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 13px 30px rgba(17,24,39,.09);
}

.plan-card.featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #2563eb);
}

.plan-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.plan-card p {
  margin: 0;
  color: #728096;
  font-size: 13px;
  line-height: 1.45;
}

.plan-card.featured p {
  color: rgba(255,255,255,.72);
}

.premium-tools {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-top p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-photo {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  margin: 0;
}

.profile-card:not(.swipe-card) {
  padding: 15px;
  margin-bottom: 12px;
}

.profile-card label {
  display: block;
  margin-bottom: 9px;
  color: #526075;
  font-size: 12px;
  font-weight: 950;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
}

.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-picker button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 11px;
  background: #f3f6fa;
  color: #59677a;
  font-size: 12px;
  font-weight: 900;
}

.interest-picker button.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4f5e73;
  font-size: 13px;
}

.toggle {
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 3px;
  background: #cfd8e5;
}

.toggle i {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.toggle.active {
  background: var(--green);
}

.toggle.active i {
  transform: translateX(22px);
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 16px 34px rgba(17,24,39,.14);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #8793a5;
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 950;
}

.bottom-nav i {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.bottom-nav i .icon {
  width: 16px;
  height: 16px;
}

.bottom-nav button.active {
  color: var(--blue);
}

.bottom-nav button.active i {
  background: rgba(37,99,235,.12);
}

.toast,
.match-modal {
  position: absolute;
  pointer-events: none;
}

.toast {
  left: 26px;
  right: 26px;
  bottom: calc(94px + env(safe-area-inset-bottom));
  border-radius: 18px;
  padding: 13px 15px;
  color: #fff;
  background: #111827;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17,24,39,.26);
  transform: translateY(18px);
  opacity: 0;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.match-modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5,8,20,.62);
  opacity: 0;
  transition: opacity .22s ease;
}

.match-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.match-box {
  width: 100%;
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.2), transparent 26%),
    linear-gradient(135deg, #ff4f7b, #2563eb);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}

.match-box span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-box h2 {
  margin: 8px 0;
  font-size: 30px;
}

.match-box p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .preview-shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 0;
    background: #f5f7fb;
    box-shadow: none;
  }

  .screen {
    min-height: 100vh;
    border-radius: 0;
  }

  .deck {
    height: calc(100vh - 318px);
    min-height: 430px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, #000 0 58%, transparent 82%);
  animation: gridDrift 18s linear infinite;
}

.preview-shell {
  position: relative;
}

.preview-shell::before,
.preview-shell::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 42%;
  pointer-events: none;
  filter: blur(20px);
  opacity: .2;
  border: 1px solid rgba(255,255,255,.12);
}

.preview-shell::before {
  left: 6vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(65,243,229,.44), transparent 65%);
  animation: softOrbit 14s ease-in-out infinite;
}

.preview-shell::after {
  right: 8vw;
  bottom: 10vh;
  background: radial-gradient(circle, rgba(154,107,255,.36), transparent 67%);
  animation: softOrbit 16s ease-in-out infinite reverse;
}

.phone {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), transparent 18%),
    #050814;
  box-shadow:
    0 34px 110px rgba(0,0,0,.55),
    0 0 80px rgba(65,243,229,.1),
    inset 0 0 0 1px rgba(255,255,255,.14);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 12px 30px auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  z-index: 2;
}

.screen {
  background:
    radial-gradient(circle at 18% 8%, rgba(65,243,229,.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(154,107,255,.12), transparent 24%),
    linear-gradient(180deg, #fbfcff, #edf2f8);
}

.app-header {
  height: 116px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 84% 8%, rgba(65,243,229,.5), transparent 33%),
    radial-gradient(circle at 48% 112%, rgba(154,107,255,.3), transparent 36%),
    radial-gradient(circle at 12% 92%, rgba(255,79,155,.23), transparent 30%),
    linear-gradient(135deg, #060815, #151f3a 56%, #0f2a3f);
}

.app-header::before {
  content: "";
  position: absolute;
  inset: -60px -30px auto auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(56,217,207,.2);
  border-radius: 38%;
  transform: rotate(24deg);
}

.app-header::after {
  content: "";
  position: absolute;
  left: -24%;
  top: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  animation: headerSweep 5s ease-in-out infinite;
}

.brand-mark,
.app-header > div:not(.brand-mark),
.header-action {
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    0 14px 34px rgba(37,99,235,.32),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: #050814;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 0 3px rgba(56,217,207,.18);
}

.header-action {
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #07111f;
  background: linear-gradient(135deg, #70ffe9, #38d9cf);
  box-shadow: 0 12px 30px rgba(56,217,207,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.global-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 28px;
  padding: 15px;
  margin-bottom: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(65,243,229,.35), transparent 32%),
    radial-gradient(circle at 8% 100%, rgba(255,79,155,.22), transparent 36%),
    linear-gradient(135deg, #0a1020, #243263 58%, #0f766e);
  box-shadow:
    0 20px 44px rgba(17,24,39,.18),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.global-showcase::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -38px;
  width: 142px;
  height: 142px;
  border-radius: 38%;
  border: 1px solid rgba(255,255,255,.16);
  transform: rotate(28deg);
}

.global-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,255,233,.85), transparent);
}

.global-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #70ffe9;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.global-kicker .icon {
  width: 14px;
  height: 14px;
}

.global-showcase h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 265px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.global-showcase p {
  position: relative;
  z-index: 1;
  margin: 8px 0 11px;
  max-width: 290px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.4;
}

.global-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.global-stats span {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  padding: 9px 8px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.09);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  backdrop-filter: blur(10px);
}

.global-stats strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.header-action .icon {
  width: 16px;
  height: 16px;
}

.header-action span {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
}

.header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(56,217,207,.32);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 18px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.header-icon span {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ff4f7b;
  border: 2px solid #111827;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.header-icon span:empty {
  display: none;
}

.header-icon .icon {
  width: 19px;
  height: 19px;
}

.view {
  padding: 15px 16px 94px;
}

.explore-strip {
  margin-inline: -1px;
  padding: 1px 1px 13px;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.explore-strip button {
  border-color: rgba(37,99,235,.09);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.explore-strip button:hover {
  transform: translateY(-1px);
}

.explore-strip button.active {
  background: linear-gradient(135deg, #111827, #2563eb 55%, #38d9cf);
  box-shadow: 0 12px 28px rgba(37,99,235,.24);
}

.deck {
  height: 420px;
  perspective: 900px;
}

.deck::before,
.deck::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -10px;
  height: 96%;
  border-radius: 30px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(17,24,39,.06);
  transform: scale(.95) translateY(18px);
  z-index: 0;
  box-shadow: 0 18px 38px rgba(17,24,39,.08);
}

.deck::after {
  left: 42px;
  right: 42px;
  bottom: -20px;
  opacity: .45;
  transform: scale(.9) translateY(34px);
}

.profile-card {
  border-radius: 30px;
}

.swipe-card {
  z-index: 2;
  border: 1px solid rgba(255,255,255,.86);
  box-shadow:
    0 24px 56px rgba(17,24,39,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.swipe-card::before {
  content: "BEĞEN";
  position: absolute;
  top: 26px;
  left: 22px;
  z-index: 4;
  border: 2px solid rgba(40,209,124,.8);
  border-radius: 14px;
  padding: 8px 12px;
  color: #0f9d58;
  background: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  transform: rotate(-12deg);
}

.swipe-card::after {
  content: "PAS";
  position: absolute;
  top: 26px;
  right: 22px;
  z-index: 4;
  border: 2px solid rgba(255,79,123,.8);
  border-radius: 14px;
  padding: 8px 12px;
  color: #e11d48;
  background: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  transform: rotate(12deg);
}

.swipe-card.is-exit-right::before,
.swipe-card.is-dragging:hover::before {
  opacity: 1;
}

.swipe-card.is-exit-left::after {
  opacity: 1;
}

.profile-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(7,11,19,.35);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 950;
}

.profile-visual {
  height: 246px;
  border-radius: 30px 30px 0 0;
  padding: 20px;
}

.profile-visual::before {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,.06) 52%, transparent 70%);
  box-shadow:
    -120px 96px 0 rgba(255,255,255,.08),
    -22px 190px 0 rgba(255,255,255,.1),
    40px 44px 44px rgba(0,0,0,.12);
  animation: cardGlow 7s ease-in-out infinite;
}

.profile-visual::after {
  width: 108px;
  height: 108px;
  right: 24px;
  bottom: 22px;
  border-radius: 36px;
  font-size: 49px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 36px rgba(0,0,0,.16);
}

.profile-signal {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(7,11,19,.35);
  backdrop-filter: blur(12px);
}

.profile-signal span {
  width: 4px;
  border-radius: 999px;
  background: #70ffe9;
  box-shadow: 0 0 12px rgba(112,255,233,.65);
}

.profile-signal span:nth-child(1) {
  height: 8px;
}

.profile-signal span:nth-child(2) {
  height: 13px;
}

.profile-signal span:nth-child(3) {
  height: 18px;
}

.profile-title {
  max-width: 235px;
}

.profile-title h2 {
  font-size: 30px;
  text-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.profile-title p {
  color: rgba(255,255,255,.84);
  font-weight: 750;
}

.profile-body {
  padding: 14px 16px 16px;
}

.smart-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  padding: 10px 12px;
  margin: -32px 0 12px;
  position: relative;
  z-index: 3;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.94), rgba(37,99,235,.9));
  box-shadow: 0 16px 32px rgba(37,99,235,.22);
}

.smart-score strong {
  font-size: 14px;
}

.smart-score span {
  max-width: 150px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.profile-meta span,
.chips span {
  background: linear-gradient(180deg, #f6f9fd, #e9eff7);
  border: 1px solid rgba(37,99,235,.08);
}

.chips span {
  color: #31445f;
}

.bio {
  color: #4e5d73;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.action-row {
  gap: 10px;
  padding-top: 14px;
}

.round-action {
  height: 60px;
  border-radius: 22px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(17,24,39,.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.round-action .icon {
  width: 27px;
  height: 27px;
}

.round-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.round-action:active {
  transform: translateY(0) scale(.96);
}

.pass {
  background: linear-gradient(135deg, #ff6b8f, #f43f5e);
}

.rewind {
  background: linear-gradient(135deg, #ffc466, #f59e0b);
}

.super {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.like {
  background: linear-gradient(135deg, #69f0a4, #16a34a);
}

.section-head {
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 0, rgba(65,243,229,.14), transparent 28%),
    rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 16px 32px rgba(17,24,39,.1);
  backdrop-filter: blur(16px);
}

.match-chip,
.chat-panel,
.plan-card,
.profile-card:not(.swipe-card) {
  border-color: rgba(37,99,235,.08);
  box-shadow: 0 16px 34px rgba(17,24,39,.1);
}

.match-chip {
  min-width: 94px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.match-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17,24,39,.13);
}

.mini-photo,
.profile-photo {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 22px rgba(37,99,235,.18);
}

.chat-panel {
  border: 1px solid rgba(37,99,235,.08);
}

.chat-head {
  background:
    radial-gradient(circle at 92% 10%, rgba(56,217,207,.2), transparent 30%),
    linear-gradient(135deg, #fff, #f4f8ff);
}

.messages {
  background:
    radial-gradient(circle at 10% 8%, rgba(56,217,207,.12), transparent 24%),
    #f8fafc;
}

.msg {
  border: 1px solid rgba(17,24,39,.05);
}

.chat-form input,
textarea {
  background: #f9fbfe;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.chat-form input:focus,
textarea:focus {
  border-color: rgba(37,99,235,.36);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.plan-grid {
  gap: 13px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 35px;
  background: rgba(56,217,207,.12);
  transform: rotate(18deg);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(17,24,39,.14);
}

.plan-card.featured {
  background:
    radial-gradient(circle at 85% 14%, rgba(65,243,229,.32), transparent 28%),
    radial-gradient(circle at 12% 92%, rgba(255,79,155,.24), transparent 32%),
    linear-gradient(135deg, #090d1a, #30265f 56%, #5177ff);
}

.premium-tools button,
.match-box button,
.chat-form button {
  background: linear-gradient(135deg, #9affef, #41f3e5 52%, #8da2ff);
  box-shadow: 0 12px 24px rgba(65,243,229,.22);
}

.profile-top {
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(240,246,255,.92));
  border: 1px solid rgba(37,99,235,.08);
  box-shadow: 0 14px 30px rgba(17,24,39,.1);
}

.profile-photo.mine {
  background: linear-gradient(135deg, #111827, #38d9cf);
}

.interest-picker button {
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.interest-picker button:hover {
  transform: translateY(-1px);
}

.interest-picker button.active {
  background: linear-gradient(135deg, #2563eb, #38d9cf);
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

.bottom-nav {
  border-color: rgba(255,255,255,.62);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,255,.84));
  box-shadow:
    0 20px 44px rgba(17,24,39,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.bottom-nav button {
  transition: color .18s ease, transform .18s ease;
}

.bottom-nav button:hover {
  transform: translateY(-1px);
}

.bottom-nav i {
  transition: background .18s ease, color .18s ease;
}

.bottom-nav button.active i {
  color: #fff;
  background: linear-gradient(135deg, #5177ff, #41f3e5);
  box-shadow: 0 10px 18px rgba(81,119,255,.24);
}

.toast {
  background:
    radial-gradient(circle at 92% 0, rgba(56,217,207,.32), transparent 30%),
    #111827;
}

.match-box {
  border: 1px solid rgba(255,255,255,.24);
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.22), transparent 26%),
    radial-gradient(circle at 8% 90%, rgba(56,217,207,.26), transparent 30%),
    linear-gradient(135deg, #ff4f7b, #6d28d9 56%, #2563eb);
  animation: modalPop .24s ease both;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 74px 74px, 74px 74px;
  }
}

@keyframes softOrbit {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -20px, 0) rotate(14deg);
  }
}

@keyframes headerSweep {
  0%, 48% {
    left: -48%;
  }
  70%, 100% {
    left: 118%;
  }
}

@keyframes cardGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8px, 10px, 0) scale(1.04);
  }
}

@keyframes modalPop {
  from {
    transform: scale(.96) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

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

.screen.auth-active > .app-header,
.screen.auth-active > .view,
.screen.auth-active > .bottom-nav {
  display: none;
}

.screen:not(.auth-active) > .auth-view {
  display: none;
}

.auth-view {
  min-height: inherit;
  max-height: inherit;
  overflow-y: auto;
  position: relative;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(circle at 76% 10%, rgba(56,217,207,.34), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(255,79,123,.2), transparent 32%),
    linear-gradient(155deg, #070b13, #111827 58%, #0d1a2f);
}

.auth-orbit {
  position: absolute;
  right: -64px;
  top: 92px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(56,217,207,.2);
  border-radius: 38%;
  transform: rotate(24deg);
  animation: softOrbit 14s ease-in-out infinite;
}

.auth-orbit::before,
.auth-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 42%;
  transform: rotate(36deg);
}

.auth-orbit::after {
  inset: 62px;
  background: rgba(56,217,207,.16);
  filter: blur(8px);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #07111f;
  background: linear-gradient(135deg, #70ffe9, #38d9cf);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(56,217,207,.26);
}

.auth-brand span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.auth-brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0;
}

.auth-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.auth-copy span {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 8px 10px;
  color: #70ffe9;
  background: rgba(56,217,207,.1);
  border: 1px solid rgba(56,217,207,.18);
  font-size: 11px;
  font-weight: 950;
}

.auth-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 13px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.55;
}

.auth-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 12px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tabs button {
  border: 0;
  border-radius: 18px;
  padding: 12px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 950;
}

.auth-tabs button.active {
  color: #07111f;
  background: linear-gradient(135deg, #70ffe9, #38d9cf);
  box-shadow: 0 12px 24px rgba(56,217,207,.2);
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: grid;
  gap: 11px;
  animation: viewIn .22s ease both;
}

.auth-pane label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.auth-pane input,
.auth-pane textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255,255,255,.1);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-pane input:focus,
.auth-pane textarea:focus {
  border-color: rgba(112,255,233,.45);
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(56,217,207,.12);
}

.auth-pane textarea {
  min-height: 80px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 10px;
}

.primary-auth {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  color: #07111f;
  background: linear-gradient(135deg, #70ffe9, #38d9cf);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(56,217,207,.23);
}

.auth-note {
  margin: 0;
  color: rgba(255,255,255,.54);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.onboard-block {
  display: grid;
  gap: 9px;
}

.onboard-block > span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.onboard-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboard-interests button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 9px 11px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
}

.onboard-interests button.active {
  color: #07111f;
  border-color: transparent;
  background: #fff;
}

.location-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 13px;
  color: #fff;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.location-card.active {
  border-color: rgba(112,255,233,.34);
  background: rgba(56,217,207,.14);
}

.location-card i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #07111f;
  background: #70ffe9;
  font-style: normal;
  font-weight: 950;
}

.location-card i .icon {
  width: 19px;
  height: 19px;
}

.location-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.location-card small {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.35;
}

.bottom-nav {
  grid-template-columns: repeat(6, 1fr);
}

.bottom-nav button {
  font-size: 9px;
}

.ai-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(45,212,191,.38), transparent 32%),
    linear-gradient(135deg, #111827, #3b1d4f 52%, #0f766e);
  box-shadow: 0 18px 40px rgba(17,24,39,.16);
}

.ai-hero span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ai-hero h2 {
  margin: 10px 0 7px;
  max-width: 290px;
  font-size: 22px;
  line-height: 1.04;
}

.ai-hero p {
  margin: 0;
  max-width: 330px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.5;
}

.ai-layout {
  display: grid;
  gap: 12px;
}

.ai-companion-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 168px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ai-companion-card {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.92);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  color: #172033;
  box-shadow: 0 12px 28px rgba(17,24,39,.08);
  cursor: pointer;
  touch-action: manipulation;
}

.ai-companion-card.active {
  border-color: rgba(59,130,246,.58);
  background: linear-gradient(135deg, #fff, #eef7ff);
}

.ai-companion-card > span {
  min-width: 0;
  overflow: hidden;
}

.ai-companion-card strong,
.ai-companion-card small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-companion-card strong {
  font-size: 12px;
}

.ai-companion-card small {
  color: var(--muted);
  font-size: 10px;
}

.ai-chat-head {
  justify-content: space-between;
}

.ai-bio-line {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  background: #fff;
}

.ai-chat-panel .messages {
  height: clamp(112px, 18vh, 176px);
}

.ai-chat-panel .chat-form {
  position: relative;
  z-index: 2;
}

.safety-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(112,255,233,.28), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(154,107,255,.22), transparent 34%),
    linear-gradient(135deg, #0b1020, #263a66 58%, #0f766e);
  box-shadow: 0 18px 42px rgba(17,24,39,.16);
  margin-bottom: 13px;
}

.safety-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -44px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 38%;
  transform: rotate(24deg);
}

.safety-hero span,
.compact span {
  display: block;
  margin-bottom: 7px;
  color: #70ffe9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.safety-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 27px;
}

.safety-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 280px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.safety-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 13px;
}

.safety-card,
.report-panel,
.support-thread-panel,
.blocked-panel {
  border: 1px solid rgba(37,99,235,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(17,24,39,.1);
}

.safety-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.safety-card strong {
  display: block;
  margin-bottom: 4px;
  color: #17233a;
  font-size: 14px;
}

.safety-card p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.45;
}

.report-panel,
.support-thread-panel,
.blocked-panel {
  padding: 14px;
  margin-bottom: 13px;
}

.section-head.compact {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.section-head.compact h2 {
  font-size: 18px;
}

.reason-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 10px;
}

.reason-row::-webkit-scrollbar {
  display: none;
}

.reason-row button {
  flex: 0 0 auto;
  border: 1px solid rgba(37,99,235,.08);
  border-radius: 999px;
  padding: 9px 11px;
  color: #5f6f86;
  background: #f3f7fb;
  font-size: 12px;
  font-weight: 900;
}

.reason-row button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff4f7b, #2563eb);
}

.report-panel textarea {
  min-height: 86px;
  margin-bottom: 10px;
}

.safety-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.support-thread-list {
  display: grid;
  gap: 10px;
}

.support-thread-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 20px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.support-thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.support-thread-head strong,
.support-thread-head span {
  display: block;
}

.support-thread-head strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.18;
}

.support-thread-head span {
  margin-top: 3px;
  color: #657084;
  font-size: 10px;
  font-weight: 850;
}

.support-thread-head b {
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--auth-red-dark);
  background: rgba(255, 56, 92, 0.12);
  font-size: 9px;
  font-weight: 950;
}

.support-thread-item > p {
  margin: 0;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 15px;
  padding: 10px;
  color: #526075;
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
}

.support-replies {
  display: grid;
  gap: 7px;
}

.support-replies > small {
  display: block;
  border: 1px dashed rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  padding: 9px 10px;
  color: #7b8799;
  background: #f6f8fc;
  font-size: 10px;
  font-weight: 850;
}

.support-reply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.support-reply-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  padding: 10px 11px;
  color: #111827;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  outline: none;
}

.support-reply-box input:focus {
  border-color: rgba(255, 56, 92, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.support-reply-box button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #263a66);
  font-size: 10px;
  font-weight: 950;
}

.danger-button,
.dark-button {
  border: 0;
  border-radius: 16px;
  padding: 12px 13px;
  color: #fff;
  font-weight: 950;
}

.danger-button {
  background: linear-gradient(135deg, #ff6b8f, #e11d48);
  box-shadow: 0 12px 24px rgba(225,29,72,.18);
}

.dark-button {
  background: linear-gradient(135deg, #111827, #263a66);
}

.blocked-list {
  display: grid;
  gap: 9px;
}

.blocked-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 17px;
  padding: 10px;
  background: #f7faff;
  border: 1px solid rgba(37,99,235,.07);
}

.blocked-item strong {
  display: block;
  font-size: 13px;
}

.blocked-item span {
  display: block;
  color: #728096;
  font-size: 11px;
}

.blocked-item button {
  border: 0;
  border-radius: 13px;
  padding: 9px 10px;
  color: #111827;
  background: #e8eef7;
  font-size: 11px;
  font-weight: 950;
}

.blocked-empty {
  margin: 0;
  border-radius: 16px;
  padding: 14px;
  color: #728096;
  background: #f7faff;
  font-size: 12px;
  line-height: 1.45;
}

.notification-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.18), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(65,243,229,.24), transparent 32%),
    linear-gradient(135deg, #17213d, #6d28d9 56%, #ff4f9b);
  box-shadow: 0 18px 42px rgba(17,24,39,.16);
  margin-bottom: 13px;
}

.notification-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 146px;
  height: 146px;
  border-radius: 42%;
  border: 1px solid rgba(255,255,255,.18);
  transform: rotate(25deg);
}

.notification-hero span {
  display: block;
  margin-bottom: 7px;
  color: #70ffe9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.notification-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 27px;
}

.notification-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 290px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.55;
}

.notification-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.notification-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.notification-filter::-webkit-scrollbar {
  display: none;
}

.notification-filter button {
  border: 1px solid rgba(37,99,235,.08);
  border-radius: 999px;
  padding: 10px 12px;
  color: #5f6f86;
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(17,24,39,.07);
}

.notification-filter button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #38d9cf);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(37,99,235,.08);
  border-radius: 21px;
  padding: 12px;
  color: #17233a;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 30px rgba(17,24,39,.1);
}

.notification-item.unread {
  border-color: rgba(255,79,123,.18);
  background:
    radial-gradient(circle at 96% 0, rgba(255,79,123,.1), transparent 30%),
    #fff;
}

.notification-icon {
  width: 45px;
  height: 45px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #38d9cf);
  font-size: 16px;
  font-weight: 950;
}

.notification-icon .icon {
  width: 20px;
  height: 20px;
}

.notification-icon.match {
  background: linear-gradient(135deg, #ff4f7b, #6d28d9);
}

.notification-icon.message {
  background: linear-gradient(135deg, #2563eb, #38d9cf);
}

.notification-icon.premium {
  background: linear-gradient(135deg, #ffb03a, #f97316);
}

.notification-icon.safety {
  background: linear-gradient(135deg, #111827, #0f766e);
}

.notification-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.notification-body span {
  display: block;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

.notification-time {
  align-self: start;
  color: #9aa6b7;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.notification-item.unread::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f7b;
  box-shadow: 0 0 0 4px rgba(255,79,123,.12);
}

@media (max-width: 480px) {
  .auth-view {
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
  }

  .bottom-nav button span {
    font-size: 9px;
  }

  .notification-tools {
    grid-template-columns: 1fr;
  }
}

/* Fit the app into one mobile viewport instead of letting the page scroll. */
:root {
  --app-header-h: 104px;
  --app-bottom-h: 78px;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.preview-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.phone {
  height: min(890px, calc(100dvh - 28px));
  min-height: 0;
}

.screen {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-header {
  height: var(--app-header-h);
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 12px;
}

.view {
  height: calc(100% - var(--app-header-h));
  min-height: 0;
  overflow-y: auto;
  padding: 12px 15px calc(var(--app-bottom-h) + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.view::-webkit-scrollbar {
  display: none;
}

#discoverView.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 9px;
  overflow: hidden;
}

#discoverView .global-showcase {
  margin-bottom: 0;
  padding: 12px;
  border-radius: 23px;
}

#discoverView .global-showcase h2 {
  font-size: 18px;
}

#discoverView .global-showcase p {
  margin: 6px 0 8px;
  font-size: 11px;
  line-height: 1.32;
}

#discoverView .global-stats {
  gap: 6px;
}

#discoverView .global-stats span {
  border-radius: 13px;
  padding: 7px 6px;
}

#discoverView .global-stats strong {
  font-size: 12px;
}

#discoverView .explore-strip {
  padding-bottom: 0;
  min-height: 40px;
}

#discoverView .explore-strip button {
  padding: 9px 11px;
}

#discoverView .deck {
  height: auto;
  min-height: 0;
}

#discoverView .swipe-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#discoverView .profile-visual {
  flex: 0 0 clamp(142px, 32dvh, 214px);
  height: auto;
}

#discoverView .profile-visual::after {
  width: clamp(78px, 18dvh, 108px);
  height: clamp(78px, 18dvh, 108px);
  font-size: clamp(34px, 8dvh, 49px);
}

#discoverView .profile-title h2 {
  font-size: clamp(23px, 5dvh, 30px);
}

#discoverView .profile-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 11px 14px 13px;
}

#discoverView .smart-score {
  margin-top: -28px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

#discoverView .smart-score strong {
  font-size: 12px;
}

#discoverView .smart-score span {
  font-size: 10px;
}

#discoverView .profile-meta {
  margin-bottom: 8px;
}

#discoverView .profile-meta span,
#discoverView .chips span {
  padding: 6px 8px;
  font-size: 10px;
}

#discoverView .bio {
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 1;
}

#discoverView .action-row {
  padding: 0 3px;
  gap: 9px;
}

#discoverView .round-action {
  height: 52px;
  border-radius: 19px;
}

#discoverView .round-action .icon {
  width: 23px;
  height: 23px;
}

.bottom-nav {
  height: 64px;
  bottom: calc(10px + env(safe-area-inset-bottom));
}

.toast {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

.screen.auth-active > .auth-view {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: none;
}

@media (max-width: 480px) {
  :root {
    --app-header-h: 96px;
    --app-bottom-h: 74px;
  }

  .preview-shell,
  .phone,
  .screen {
    height: 100dvh;
    min-height: 0;
  }

  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 13px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .header-action {
    min-width: 44px;
    width: 44px;
    height: 42px;
    padding: 0;
    border-radius: 16px;
  }

  .header-action span {
    display: none;
  }

  .header-icon {
    width: 42px;
    height: 42px;
  }

  .global-status {
    display: none;
  }

  #discoverView .global-showcase h2 {
    font-size: 17px;
  }
}

@media (max-height: 760px) {
  :root {
    --app-header-h: 92px;
    --app-bottom-h: 70px;
  }

  #discoverView .global-showcase {
    padding: 10px 11px;
  }

  #discoverView .global-showcase p {
    display: none;
  }

  #discoverView .global-stats span {
    padding: 6px 5px;
  }

  #discoverView .profile-visual {
    flex-basis: clamp(126px, 27dvh, 170px);
  }

  #discoverView .profile-ribbon,
  #discoverView .profile-signal {
    top: 14px;
  }

  #discoverView .profile-title h2 {
    font-size: 23px;
  }

  #discoverView .smart-score {
    margin-top: -24px;
  }

  #discoverView .chips span:nth-child(n+3) {
    display: none;
  }

  #discoverView .round-action {
    height: 48px;
  }

  .bottom-nav {
    height: 60px;
  }
}

/* Clean discover layout pass: reduce stacked shadows and keep mobile content separated. */
.app-header {
  background:
    radial-gradient(circle at 88% 5%, rgba(90, 225, 209, 0.34), transparent 34%),
    linear-gradient(135deg, #10152c 0%, #152546 54%, #133f4a 100%);
  box-shadow: none;
}

.app-header::before,
.app-header::after {
  opacity: 0.28;
}

.brand-mark,
.header-icon,
.header-action {
  box-shadow: none;
}

.header-actions {
  gap: 7px;
}

.header-icon,
.header-action {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.global-status {
  display: none;
}

#discoverView.active {
  gap: 8px;
}

#discoverView .global-showcase {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(93, 221, 208, 0.2), transparent 34%),
    linear-gradient(135deg, #17203d 0%, #17415a 58%, #16746e 100%);
  box-shadow: none;
}

#discoverView .global-showcase::before,
#discoverView .global-showcase::after {
  opacity: 0.18;
}

#discoverView .global-kicker {
  margin-bottom: 5px;
  font-size: 10px;
}

#discoverView .global-showcase h2 {
  max-width: 245px;
  font-size: 16px;
  line-height: 1.08;
}

#discoverView .global-showcase p,
#discoverView .global-stats {
  display: none;
}

#discoverView .explore-strip {
  min-height: 38px;
  padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

#discoverView .explore-strip button {
  padding: 8px 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: none;
}

#discoverView .explore-strip button.active {
  box-shadow: 0 8px 18px rgba(42, 140, 239, 0.2);
}

.deck::before,
.deck::after {
  display: none;
}

#discoverView .deck {
  min-height: 0;
}

#discoverView .swipe-card {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 26px;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

#discoverView .profile-visual {
  flex-basis: clamp(166px, 34dvh, 224px);
  padding: 18px;
}

#discoverView .profile-visual::before {
  opacity: 0.55;
  box-shadow: none;
}

#discoverView .profile-visual::after {
  right: 24px;
  bottom: 27px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

#discoverView .profile-title {
  max-width: 220px;
}

#discoverView .profile-title h2 {
  font-size: clamp(25px, 4.9dvh, 29px);
  line-height: 1.05;
}

#discoverView .profile-title p {
  font-size: 12px;
}

#discoverView .profile-ribbon {
  top: 15px;
  right: 15px;
  background: rgba(11, 16, 31, 0.38);
  box-shadow: none;
}

#discoverView .profile-signal {
  top: 15px;
  left: 15px;
  box-shadow: none;
}

#discoverView .profile-body {
  padding: 12px 15px 14px;
}

#discoverView .smart-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 9px;
  padding: 8px 10px;
  color: #17233a;
  background: #f3f7fb;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  box-shadow: none;
}

#discoverView .smart-score strong {
  color: #17233a;
}

#discoverView .smart-score span {
  color: #718096;
  text-align: right;
}

#discoverView .profile-meta {
  margin-bottom: 8px;
}

#discoverView .profile-meta span,
#discoverView .chips span {
  box-shadow: none;
}

#discoverView .bio {
  margin-bottom: 8px;
}

#discoverView .action-row {
  gap: 10px;
  padding: 0 2px;
}

#discoverView .round-action {
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.bottom-nav {
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.14);
}

@media (max-height: 760px) {
  #discoverView .global-showcase {
    padding: 8px 10px;
  }

  #discoverView .global-showcase h2 {
    font-size: 15px;
  }

  #discoverView .global-kicker {
    font-size: 9px;
  }

  #discoverView .profile-visual {
    flex-basis: clamp(148px, 30dvh, 186px);
  }

  #discoverView .profile-visual::after {
    width: 82px;
    height: 82px;
    font-size: 36px;
  }

  #discoverView .profile-title h2 {
    font-size: 24px;
  }

  #discoverView .smart-score span {
    display: none;
  }
}

/* Photo-first match card inspired by modern dating apps. */
#discoverView .global-showcase {
  display: none;
}

#discoverView.active {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#discoverView .swipe-card {
  color: #fff;
  background: #05070d;
  border: 3px solid #05070d;
  border-radius: 30px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

#discoverView .profile-visual {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  border-radius: 26px 26px 0 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.38), transparent 16%),
    linear-gradient(135deg, #1e375f 0%, #49a9df 44%, #74d6ef 100%);
}

#discoverView .profile-visual.tone-2 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.34), transparent 17%),
    linear-gradient(135deg, #2a1a60 0%, #c94f9b 52%, #ffb46b 100%);
}

#discoverView .profile-visual.tone-3 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.34), transparent 17%),
    linear-gradient(135deg, #0a4778 0%, #27bba9 56%, #a8ffd1 100%);
}

#discoverView .profile-visual.tone-4 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.32), transparent 17%),
    linear-gradient(135deg, #252a47 0%, #7e67dd 56%, #ffd166 100%);
}

#discoverView .profile-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 1;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.16) 43% 45%, transparent 46%),
    linear-gradient(90deg, rgba(8, 16, 35, 0.28) 0 26%, transparent 26% 100%),
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.32), transparent 7%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 36%);
  animation: none;
}

#discoverView .profile-visual::after {
  content: "";
  right: 34px;
  bottom: 44px;
  width: 108px;
  height: 148px;
  border: 0;
  border-radius: 70px 70px 34px 34px;
  background:
    radial-gradient(circle at 50% 22%, #ffd2bd 0 21px, transparent 22px),
    radial-gradient(circle at 50% 20%, #33223a 0 30px, transparent 31px),
    linear-gradient(165deg, #2d3640 0 45%, #56616c 46% 100%);
  box-shadow: -22px 20px 36px rgba(0, 0, 0, 0.16);
  opacity: 0.92;
}

#discoverView .profile-ribbon {
  top: 16px;
  right: 16px;
  left: auto;
  bottom: auto;
  padding: 7px 11px;
  color: #365163;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(54, 81, 99, 0.08);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

#discoverView .profile-signal {
  top: 16px;
  left: 16px;
  height: auto;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: none;
}

#discoverView .profile-signal i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #35df87;
  box-shadow: 0 0 0 4px rgba(53, 223, 135, 0.16), 0 0 16px rgba(53, 223, 135, 0.72);
}

#discoverView .profile-signal span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.profile-jump {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 18px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

#discoverView .profile-title {
  max-width: 260px;
  margin-bottom: 2px;
}

#discoverView .profile-title h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-size: clamp(25px, 5.3dvh, 31px);
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
}

.verified-badge {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2f8cff, #5bdcff);
  border: 2px solid #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(47, 140, 255, 0.32);
}

#discoverView .profile-title p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
}

#discoverView .profile-body {
  flex: 0 0 auto;
  padding: 12px 17px 14px;
  color: #fff;
  background: #05070d;
}

.profile-looking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.profile-looking .icon {
  width: 14px;
  height: 14px;
}

.profile-intent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 950;
}

.profile-intent span {
  font-size: 21px;
  filter: drop-shadow(0 4px 10px rgba(255, 79, 123, 0.35));
}

#discoverView .profile-meta {
  gap: 6px;
  margin-bottom: 9px;
}

#discoverView .profile-meta span,
#discoverView .chips span {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

#discoverView .chips span:nth-child(n+3) {
  display: none;
}

#discoverView .action-row {
  grid-template-columns: repeat(4, 56px);
  justify-content: center;
  gap: 12px;
}

#discoverView .round-action {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* Verification flow */
.verification-panel {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 79, 123, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 79, 123, 0.14), transparent 34%),
    #fff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
}

.verification-phone {
  display: grid;
  place-items: center;
  height: 142px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff5f8);
  border: 1px solid rgba(255, 79, 123, 0.12);
}

.face-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 3px solid #ff4f7b;
  border-radius: 999px;
  color: #ff4f7b;
  background: #fff;
  font-weight: 950;
}

.face-ring i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #fbbf24;
}

.verification-kicker {
  color: #ff4f7b;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.verification-copy h2 {
  margin: 4px 0 6px;
  color: #12172a;
  font-size: 18px;
  line-height: 1.12;
}

.verification-copy p {
  margin: 0 0 10px;
  color: #6b7484;
  font-size: 11px;
  line-height: 1.45;
}

.verification-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.verification-steps span {
  border-radius: 999px;
  padding: 6px 8px;
  color: #6b2442;
  background: #fff0f5;
  font-size: 10px;
  font-weight: 900;
}

.verify-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7554);
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(255, 79, 123, 0.24);
}

.verification-panel.verified {
  border-color: rgba(40, 209, 124, 0.24);
  background:
    radial-gradient(circle at 0 0, rgba(40, 209, 124, 0.16), transparent 34%),
    #fff;
}

.verification-panel.verified .face-ring {
  border-color: #28d17c;
  color: #28d17c;
}

.verification-panel.verified .face-ring i {
  background: #28d17c;
}

.verification-panel.verified .verify-button {
  background: linear-gradient(135deg, #20c979, #5ae1d1);
}

@media (max-height: 760px) {
  #discoverView .profile-ribbon {
    top: 14px;
  }

  .profile-jump {
    bottom: 16px;
  }

  #discoverView .profile-body {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  #discoverView .profile-meta span:nth-child(n+3) {
    display: none;
  }

  .verification-panel {
    grid-template-columns: 76px 1fr;
    padding: 12px;
  }

  .verification-phone {
    height: 118px;
  }

  .verification-copy p {
    display: none;
  }
}

/* HDSOFT Match: Tinder-inspired, original visual language. */
.app-header {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 92, 109, 0.34), transparent 30%),
    radial-gradient(circle at 15% 0%, rgba(255, 183, 77, 0.2), transparent 32%),
    linear-gradient(135deg, #101226 0%, #1b1a3b 52%, #211327 100%);
}

.brand-mark {
  background: linear-gradient(135deg, #ff5c6d, #ff914d 52%, #5ae1d1);
}

.header-action {
  color: #171421;
  background: linear-gradient(135deg, #ffe08a, #ff7a59);
  border: 0;
}

.header-icon {
  background: rgba(255, 255, 255, 0.11);
}

#notificationBadge {
  background: linear-gradient(135deg, #ff2f73, #ff7554);
}

#discoverView .explore-strip button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7554 58%, #ffc857);
  box-shadow: 0 10px 20px rgba(255, 79, 123, 0.24);
}

#discoverView .swipe-card {
  border-color: #07070d;
  background: #07070d;
}

.swipe-card::before {
  content: "LIKE";
  border-color: rgba(40, 209, 124, 0.9);
  color: #19b967;
  background: rgba(255, 255, 255, 0.86);
}

.swipe-card::after {
  content: "NOPE";
  border-color: rgba(255, 47, 115, 0.9);
  color: #ff2f73;
  background: rgba(255, 255, 255, 0.86);
}

#discoverView .profile-visual::before {
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.14) 43% 45%, transparent 46%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 7%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 38%);
}

#discoverView .profile-title h2 {
  font-weight: 950;
}

.verified-badge {
  background: linear-gradient(135deg, #178bff, #65e2ff);
}

.profile-looking {
  color: rgba(255, 255, 255, 0.76);
}

.profile-intent {
  color: #fff;
}

#discoverView .round-action {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #171925;
}

#discoverView .round-action.pass {
  color: #ff4d74;
  background: #171925;
}

#discoverView .round-action.rewind {
  color: #ffc857;
  background: #171925;
}

#discoverView .round-action.super {
  color: #3ca0ff;
  background: #171925;
}

#discoverView .round-action.like {
  color: #35df87;
  background: #171925;
}

#discoverView .round-action.pass:hover,
#discoverView .round-action.pass:active {
  background: linear-gradient(135deg, #ff2f73, #ff7554);
  color: #fff;
}

#discoverView .round-action.like:hover,
#discoverView .round-action.like:active {
  background: linear-gradient(135deg, #25d474, #78f2aa);
  color: #fff;
}

.match-modal {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 79, 123, 0.34), transparent 28%),
    rgba(5, 8, 20, 0.78);
  backdrop-filter: blur(14px);
}

.match-box {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(145deg, #ff2f73 0%, #ff7554 48%, #6d5dfc 100%);
  box-shadow: 0 24px 70px rgba(255, 79, 123, 0.28);
}

.match-avatars {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  height: 92px;
}

.match-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
}

.match-avatar.mine {
  transform: rotate(-8deg) translateX(10px);
  background: linear-gradient(135deg, #111827, #5ae1d1);
}

.match-avatar.them {
  transform: rotate(8deg) translateX(-10px);
  background: linear-gradient(135deg, #6d5dfc, #ff5c6d);
}

.match-heart {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 -4px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #ff2f73;
  background: #fff;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(255, 47, 115, 0.28);
  animation: heartBeat 1.15s ease-in-out infinite;
}

.match-box span {
  color: rgba(255, 255, 255, 0.82);
}

.match-box h2 {
  margin-top: 7px;
  font-size: 34px;
  letter-spacing: 0;
}

.match-box button {
  width: 100%;
  color: #191421;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }
}

/* Profile editor */
.editable-avatar {
  position: relative;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.86);
}

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

.editable-avatar.has-photo {
  background: #111827;
}

.photo-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7554);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(255, 79, 123, 0.22);
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-completion {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 79, 123, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0, rgba(255, 117, 84, 0.15), transparent 32%),
    #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.profile-completion > div:first-child,
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-completion span,
.profile-card-head span {
  display: block;
  color: #8a95a6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-completion strong,
.profile-card-head strong {
  color: #12172a;
  font-size: 15px;
}

.completion-bar {
  height: 9px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.completion-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff2f73, #ff7554 55%, #ffc857);
  transition: width 0.24s ease;
}

.profile-completion small {
  color: #697589;
  font-size: 11px;
  font-weight: 800;
}

.profile-card-head {
  margin-bottom: 13px;
}

.save-profile {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(135deg, #171925, #2b2f42);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.14);
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-field-grid label,
.full-field {
  display: block;
  color: #526075;
  font-size: 11px;
  font-weight: 950;
}

.profile-field-grid input,
.profile-field-grid select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 15px;
  padding: 12px 11px;
  color: #17233a;
  background: #f8fbff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-field-grid input:focus,
.profile-field-grid select:focus,
.full-field textarea:focus {
  border-color: rgba(255, 79, 123, 0.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 79, 123, 0.09);
}

.profile-field-grid input:disabled {
  color: #9aa6b7;
  background: #eef3fb;
  cursor: not-allowed;
}

.profile-showcase-card {
  position: relative;
  overflow: hidden;
}

.profile-showcase-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -56px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 225, 209, 0.2), transparent 68%);
  pointer-events: none;
}

.profile-plus-badge {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 7px 9px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.profile-anthem-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  border: 1px solid rgba(90, 225, 209, 0.18);
  border-radius: 20px;
  padding: 10px;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 200, 87, 0.18), transparent 38%),
    linear-gradient(135deg, #101827, #142033);
  color: #fff;
}

.profile-anthem-preview i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffffff 55%, #ffc857);
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
}

.profile-anthem-preview span,
.profile-anthem-preview strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-anthem-preview span {
  color: #70ffe9;
  font-size: 10px;
  font-weight: 950;
}

.profile-anthem-preview strong {
  margin-top: 3px;
  font-size: 13px;
}

.social-lock-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border-radius: 17px;
  padding: 10px;
  background: #f6f8fc;
}

.social-lock-note span {
  color: #657084;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
}

.social-lock-note button {
  border: 0;
  border-radius: 13px;
  padding: 9px 10px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  font-size: 10px;
  font-weight: 950;
}

.social-lock-note:not(.locked) button {
  display: none;
}

.full-field textarea {
  margin-top: 7px;
}

@media (max-width: 380px) {
  .profile-field-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-head {
    align-items: flex-start;
  }
}

/* Premium feature center */
.premium-dashboard {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.plan-card.selected {
  outline: 3px solid rgba(255, 79, 123, 0.18);
  box-shadow: 0 18px 36px rgba(255, 79, 123, 0.16);
}

.premium-status,
.premium-panel {
  border: 1px solid rgba(255, 79, 123, 0.1);
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 117, 84, 0.13), transparent 34%),
    #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.premium-status > div:first-child,
.premium-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.premium-status span,
.premium-panel-head span {
  color: #8a95a6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-status strong,
.premium-panel-head h2 {
  margin: 3px 0 0;
  color: #111827;
}

.premium-status p {
  margin: 8px 0 12px;
  color: #657084;
  font-size: 12px;
  line-height: 1.45;
}

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

.quota-grid span {
  border-radius: 17px;
  padding: 9px 8px;
  color: #5b6577;
  background: #f7f9fd;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.quota-grid strong {
  display: block;
  color: #ff4f7b;
  font-size: 16px;
}

.premium-panel-head small {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 8px;
  color: #ff4f7b;
  background: #fff0f5;
  font-size: 10px;
  font-weight: 950;
}

.liked-you-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.premium-mini-card {
  border-radius: 18px;
  padding: 10px 7px;
  background: #f7f9fd;
  text-align: center;
}

.premium-mini-card .mini-photo {
  margin: 0 auto 7px;
}

.premium-mini-card strong,
.premium-mini-card span {
  display: block;
}

.premium-mini-card strong {
  color: #111827;
  font-size: 12px;
}

.premium-mini-card span {
  margin-top: 3px;
  color: #7a8496;
  font-size: 10px;
  font-weight: 800;
}

.premium-mini-card.locked,
.top-pick-item.locked {
  filter: grayscale(0.85);
  opacity: 0.72;
}

.top-picks-list,
.liked-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.top-pick-item,
.liked-history-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 18px;
  padding: 9px;
  background: #f8fbff;
  text-align: left;
}

.top-pick-item strong,
.liked-history-item strong {
  display: block;
  color: #111827;
  font-size: 13px;
}

.top-pick-item span,
.liked-history-item span,
.liked-history-item small {
  color: #7b8799;
  font-size: 11px;
  font-weight: 850;
}

.liked-history-item {
  grid-template-columns: 82px 1fr auto;
}

.platinum-note-panel textarea {
  min-height: 76px;
  margin-top: 10px;
}

.premium-empty {
  margin: 10px 0 0;
  color: #7b8799;
  font-size: 12px;
  font-weight: 800;
}

.video-chat-button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7554);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(255, 79, 123, 0.22);
}

/* Visual lift: richer motion, cleaner glass and global-app polish. */
:root {
  --hot-pink: #ff2f73;
  --coral: #ff7759;
  --gold: #ffc857;
  --aqua: #5ae1d1;
  --royal: #5a67ff;
  --ink: #101226;
}

.preview-shell {
  background:
    linear-gradient(130deg, rgba(255, 47, 115, 0.16), transparent 30%),
    linear-gradient(250deg, rgba(90, 225, 209, 0.14), transparent 34%),
    linear-gradient(180deg, #070912 0%, #111426 52%, #070912 100%);
}

.phone {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 70px rgba(5, 8, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.screen {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92)),
    linear-gradient(90deg, rgba(255, 47, 115, 0.08), rgba(90, 225, 209, 0.08));
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.36) 19%, transparent 20% 100%),
    linear-gradient(180deg, rgba(255, 47, 115, 0.06), transparent 34%, rgba(90, 225, 209, 0.07));
  opacity: 0.48;
  animation: ambientSweep 10s ease-in-out infinite alternate;
}

.app-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, #12142d 0%, #231638 42%, #132e3b 100%);
}

.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.16) 36%, transparent 46% 100%),
    linear-gradient(90deg, rgba(255, 47, 115, 0.18), rgba(255, 200, 87, 0.08), rgba(90, 225, 209, 0.18));
  opacity: 0.75;
  transform: translateX(-18%);
  animation: headerFlow 7s ease-in-out infinite alternate;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, var(--hot-pink), var(--coral) 42%, var(--gold) 62%, var(--aqua));
  box-shadow: 0 12px 28px rgba(255, 79, 123, 0.28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.header-copy h1 {
  letter-spacing: 0;
}

.header-icon,
.header-action {
  transform: translateZ(0);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-icon:active,
.header-action:active,
.round-action:active,
.premium-tools button:active,
.save-profile:active,
.verify-button:active {
  transform: scale(0.96);
}

.view {
  position: relative;
  z-index: 1;
}

.explore-strip button {
  backdrop-filter: blur(12px);
}

#discoverView .swipe-card {
  border: 2px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #07070d;
  box-shadow:
    0 18px 42px rgba(5, 8, 20, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#discoverView .profile-visual {
  overflow: hidden;
}

#discoverView .profile-visual::before {
  animation: photoSheen 8s ease-in-out infinite alternate;
}

#discoverView .profile-title h2 {
  letter-spacing: 0;
}

.verified-badge {
  animation: verifiedPop 2.8s ease-in-out infinite;
}

.profile-intent {
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 47, 115, 0.12), rgba(255, 200, 87, 0.08));
}

#discoverView .profile-meta span,
#discoverView .chips span {
  backdrop-filter: blur(10px);
}

#discoverView .round-action {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#discoverView .round-action::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

#discoverView .round-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(5, 8, 20, 0.22);
}

.bottom-nav {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav button.active i {
  background: linear-gradient(135deg, var(--hot-pink), var(--coral) 55%, var(--gold));
  box-shadow: 0 10px 18px rgba(255, 79, 123, 0.24);
}

.bottom-nav button.active {
  color: var(--hot-pink);
}

.profile-top,
.profile-completion,
.profile-card:not(.swipe-card),
.premium-status,
.premium-panel,
.notification-hero,
.safety-hero,
.report-panel,
.blocked-panel,
.chat-panel,
.match-chip {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.86)),
    linear-gradient(135deg, rgba(255, 47, 115, 0.08), rgba(90, 225, 209, 0.07));
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-card,
.premium-tools button,
.top-pick-item,
.liked-history-item,
.premium-mini-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.plan-card:hover,
.premium-tools button:hover,
.top-pick-item:hover,
.premium-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.plan-card.featured,
.plan-card.selected {
  background:
    linear-gradient(145deg, rgba(255, 47, 115, 0.98), rgba(255, 119, 89, 0.95) 48%, rgba(90, 103, 255, 0.92));
  color: #fff;
}

.plan-card.featured span,
.plan-card.featured p,
.plan-card.selected span,
.plan-card.selected p {
  color: rgba(255, 255, 255, 0.82);
}

.premium-tools {
  gap: 9px;
}

.premium-tools button,
.save-profile,
.photo-upload,
.verify-button,
.video-chat-button {
  background:
    linear-gradient(135deg, var(--hot-pink), var(--coral) 52%, var(--gold));
  box-shadow: 0 12px 24px rgba(255, 79, 123, 0.22);
}

.quota-grid span,
.profile-field-grid input,
.profile-field-grid select,
textarea,
.chat-form input {
  background:
    linear-gradient(180deg, #ffffff, #f7faff);
  border-color: rgba(90, 103, 255, 0.11);
}

.completion-bar i {
  background:
    linear-gradient(90deg, var(--hot-pink), var(--coral), var(--gold), var(--aqua));
  background-size: 180% 100%;
  animation: progressFlow 3.6s ease infinite;
}

.mini-photo,
.profile-photo {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(90, 103, 255, 0.18);
}

.chat-head {
  background:
    linear-gradient(135deg, rgba(255, 47, 115, 0.08), rgba(90, 225, 209, 0.12)),
    #fff;
}

.msg.me {
  background: linear-gradient(135deg, var(--hot-pink), var(--coral));
}

.match-box {
  animation: matchRise 0.36s ease both;
}

.toast.show {
  animation: toastPop 0.28s ease both;
}

@keyframes ambientSweep {
  from {
    transform: translateX(-4%);
  }

  to {
    transform: translateX(4%);
  }
}

@keyframes headerFlow {
  from {
    transform: translateX(-18%);
  }

  to {
    transform: translateX(10%);
  }
}

@keyframes photoSheen {
  from {
    transform: translateX(-3%);
    opacity: 0.8;
  }

  to {
    transform: translateX(3%);
    opacity: 1;
  }
}

@keyframes verifiedPop {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes progressFlow {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes matchRise {
  from {
    transform: translateY(14px) scale(0.96);
    opacity: 0;
  }

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

@keyframes toastPop {
  from {
    transform: translateX(-50%) translateY(8px);
  }

  to {
    transform: translateX(-50%) translateY(0);
  }
}

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

/* Interaction safety: keep the fixed bottom tabs above scrollable views. */
.bottom-nav {
  z-index: 60;
  pointer-events: auto;
}

.bottom-nav button {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.app-header {
  z-index: 30;
}

.view {
  z-index: 2;
}

/* Rich chat experience */
.chat-panel {
  display: flex;
  flex-direction: column;
}

.chat-head {
  flex: 0 0 auto;
}

.messages {
  flex: 1 1 auto;
  min-height: 245px;
  height: auto;
  scroll-behavior: smooth;
}

.msg {
  display: grid;
  gap: 4px;
  animation: messageIn 0.22s ease both;
}

.msg-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 850;
}

.msg:not(.me) .msg-status {
  color: #7d889a;
}

.msg-status .icon {
  width: 13px;
  height: 13px;
}

.media-msg {
  min-width: 172px;
  padding: 8px;
}

.image-bubble {
  display: grid;
  gap: 8px;
}

.image-bubble span {
  display: block;
  height: 96px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, #7c4dff, #ff4f7b 52%, #ffc857);
}

.image-bubble strong {
  font-size: 12px;
}

.voice-msg,
.video-msg {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-width: 180px;
}

.video-msg > div {
  display: grid;
  gap: 2px;
}

.video-msg > div small {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 850;
}

.voice-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.voice-wave i {
  width: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.voice-wave i:nth-child(1) { height: 9px; }
.voice-wave i:nth-child(2) { height: 18px; }
.voice-wave i:nth-child(3) { height: 13px; }
.voice-wave i:nth-child(4) { height: 22px; }
.voice-wave i:nth-child(5) { height: 10px; }

.typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 78%;
  margin: 2px 0 9px;
  border-radius: 17px 17px 17px 6px;
  padding: 10px 12px;
  color: #5d6879;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 18px rgba(17, 24, 39, 0.07);
}

.typing-indicator.show {
  display: inline-flex;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff4f7b;
  animation: typingPulse 0.9s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.24s;
}

.typing-indicator strong {
  margin-left: 4px;
  font-size: 11px;
}

.quick-replies,
.chat-toolbar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px 0;
  scrollbar-width: none;
}

.quick-replies::-webkit-scrollbar,
.chat-toolbar::-webkit-scrollbar {
  display: none;
}

.quick-replies button,
.chat-toolbar button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 79, 123, 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  color: #3e4758;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.06);
}

.chat-toolbar {
  padding-top: 8px;
}

.chat-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff4f7b;
  background: #fff7fa;
}

.chat-toolbar .icon {
  width: 15px;
  height: 15px;
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
}

.chat-form button[type="submit"] {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 17px;
}

.chat-form button[type="submit"] span {
  display: none;
}

.chat-form button[type="submit"] .icon {
  width: 19px;
  height: 19px;
}

@keyframes typingPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes messageIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }

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

/* Match visibility and stable chat composer */
.match-modal {
  z-index: 140;
}

.match-modal.show {
  z-index: 140;
}

.match-modal.show .match-box {
  animation: matchCelebrate 0.72s cubic-bezier(0.2, 0.9, 0.24, 1.12) both;
}

.match-box h2 {
  text-wrap: balance;
}

#matchesView.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

#matchesView .section-head,
#matchesView .match-list {
  flex: 0 0 auto;
}

#matchesView .chat-panel {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

#matchesView .messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

#matchesView .quick-replies,
#matchesView .chat-toolbar,
#matchesView .chat-form {
  flex: 0 0 auto;
}

#matchesView .chat-form {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

@keyframes matchCelebrate {
  0% {
    transform: translateY(18px) scale(0.92);
    opacity: 0;
  }

  58% {
    transform: translateY(-4px) scale(1.03);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* More colorful welcome screen */
.auth-view {
  overflow-x: hidden;
  background:
    linear-gradient(150deg, rgba(255, 47, 115, 0.2) 0 18%, transparent 19% 100%),
    linear-gradient(24deg, rgba(255, 200, 87, 0.14) 0 14%, transparent 15% 100%),
    linear-gradient(210deg, rgba(90, 225, 209, 0.22) 0 22%, transparent 23% 100%),
    linear-gradient(155deg, #070b16 0%, #151d36 44%, #351b3d 72%, #0b1730 100%);
}

.auth-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.12) 35%, transparent 43% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  animation: headerFlow 9s ease-in-out infinite alternate;
}

.auth-logo {
  color: #07111f;
  background: linear-gradient(135deg, #5af4dc 0%, #62e6ff 38%, #ffc857 70%, #ff6b8f 100%);
  box-shadow: 0 18px 34px rgba(255, 79, 123, 0.2), 0 10px 26px rgba(90, 225, 209, 0.22);
}

.auth-brand span {
  color: rgba(255, 255, 255, 0.66);
}

.auth-copy span {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 47, 115, 0.28), rgba(90, 225, 209, 0.18));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(255, 79, 123, 0.12);
}

.auth-copy h2 {
  color: #fff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.auth-panel {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(255, 47, 115, 0.09), rgba(90, 225, 209, 0.08));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-tabs {
  padding: 3px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-tabs button {
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.auth-tabs button.active,
.primary-auth {
  color: #111827;
  background: linear-gradient(135deg, #5af4dc 0%, #62e6ff 45%, #ffc857 100%);
  box-shadow: 0 14px 28px rgba(90, 225, 209, 0.18), 0 10px 24px rgba(255, 200, 87, 0.12);
}

.auth-pane label {
  color: rgba(255, 255, 255, 0.78);
}

.auth-pane input,
.auth-pane select,
.auth-pane textarea {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-pane input:focus,
.auth-pane select:focus,
.auth-pane textarea:focus {
  border-color: rgba(255, 200, 87, 0.52);
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.12);
}

select option,
select optgroup,
.auth-pane select option,
.profile-field-grid select option,
.admin-group-form select option {
  color: #111827;
  background: #ffffff;
}

.auth-note {
  color: rgba(255, 255, 255, 0.62);
}

.auth-stamp {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(90, 244, 220, 0.16), rgba(255, 107, 143, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  backdrop-filter: blur(14px);
}

.auth-stamp::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #5af4dc;
  box-shadow: 0 0 18px rgba(90, 244, 220, 0.78);
}

/* Premium discovery card and match celebration */
#discoverView.active {
  gap: 9px;
}

#discoverView .deck {
  height: clamp(432px, calc(100dvh - 324px), 520px);
}

#discoverView .premium-swipe {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 33px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 25%),
    #05070d;
  box-shadow:
    0 24px 54px rgba(5, 8, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#discoverView .premium-swipe::before,
#discoverView .premium-swipe::after {
  top: 32px;
  border-radius: 18px;
  padding: 9px 13px;
  letter-spacing: .08em;
  box-shadow: 0 15px 30px rgba(5, 8, 20, 0.18);
}

#discoverView .premium-swipe::before {
  left: 20px;
  color: #17a765;
  background: rgba(255, 255, 255, 0.92);
}

#discoverView .premium-swipe::after {
  right: 20px;
  color: #f3356d;
  background: rgba(255, 255, 255, 0.92);
}

#discoverView .premium-swipe .profile-visual {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 31px 31px 0 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.02) 0%, rgba(4, 6, 14, 0.18) 46%, rgba(4, 6, 14, 0.88) 100%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.3), transparent 15%),
    linear-gradient(135deg, #1b2950 0%, #6966ff 42%, #5ae1d1 100%);
}

#discoverView .premium-swipe .profile-visual.tone-2 {
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.02) 0%, rgba(4, 6, 14, 0.16) 46%, rgba(4, 6, 14, 0.9) 100%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 15%),
    linear-gradient(135deg, #2b145a 0%, #ff4f8f 52%, #ffc857 100%);
}

#discoverView .premium-swipe .profile-visual.tone-3 {
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.02) 0%, rgba(4, 6, 14, 0.16) 46%, rgba(4, 6, 14, 0.9) 100%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 15%),
    linear-gradient(135deg, #0b3e78 0%, #21c4b2 54%, #a8ffd1 100%);
}

#discoverView .premium-swipe .profile-visual.tone-4 {
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.02) 0%, rgba(4, 6, 14, 0.16) 46%, rgba(4, 6, 14, 0.9) 100%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 15%),
    linear-gradient(135deg, #252b4f 0%, #9a6bff 52%, #ffd166 100%);
}

#discoverView .premium-swipe .profile-visual.tone-5 {
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.02) 0%, rgba(4, 6, 14, 0.16) 46%, rgba(4, 6, 14, 0.9) 100%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 15%),
    linear-gradient(135deg, #0b6b64 0%, #5177ff 56%, #41f3e5 100%);
}

#discoverView .profile-photo-glow {
  position: absolute;
  right: 34px;
  top: 78px;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 48%, transparent 70%);
  filter: blur(2px);
  opacity: 0.8;
  animation: profileGlow 4.8s ease-in-out infinite alternate;
}

#discoverView .premium-swipe .profile-visual::before {
  opacity: 0.8;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.2) 43%, transparent 48% 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 7%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 38%);
}

#discoverView .premium-swipe .profile-visual::after {
  right: 28px;
  bottom: 54px;
  width: 112px;
  height: 156px;
  border-radius: 74px 74px 34px 34px;
  background:
    radial-gradient(circle at 50% 20%, #ffd6c6 0 23px, transparent 24px),
    radial-gradient(circle at 50% 19%, #2b2134 0 33px, transparent 34px),
    linear-gradient(165deg, rgba(255, 255, 255, 0.34) 0 32%, rgba(19, 27, 47, 0.82) 33% 100%);
  box-shadow: -22px 24px 42px rgba(0, 0, 0, 0.22);
}

#discoverView .premium-swipe .profile-ribbon {
  top: 15px;
  right: 15px;
  color: #253044;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(5, 8, 20, 0.14);
}

#discoverView .premium-swipe .profile-signal {
  top: 15px;
  left: 15px;
  color: #fff;
  background: rgba(5, 8, 20, 0.38);
}

#discoverView .profile-match-score {
  position: absolute;
  top: 58px;
  right: 15px;
  z-index: 5;
  display: grid;
  min-width: 70px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  background: rgba(5, 8, 20, 0.32);
  box-shadow: 0 16px 34px rgba(5, 8, 20, 0.2);
  text-align: center;
  backdrop-filter: blur(14px);
}

#discoverView .profile-match-score strong {
  font-size: 18px;
  line-height: 1;
}

#discoverView .profile-match-score span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 950;
}

#discoverView .premium-swipe .profile-jump {
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(5, 8, 20, 0.46);
}

#discoverView .premium-swipe .profile-jump .icon {
  width: 15px;
  height: 15px;
}

#discoverView .profile-category-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 950;
}

#discoverView .premium-swipe .profile-title {
  max-width: 245px;
  margin-bottom: 0;
}

#discoverView .premium-swipe .profile-title h2 {
  margin-bottom: 6px;
  font-size: clamp(27px, 5.1dvh, 33px);
}

#discoverView .premium-swipe .profile-title p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.86);
}

#discoverView .premium-swipe .profile-title p .icon {
  width: 14px;
  height: 14px;
}

#discoverView .premium-swipe .profile-body {
  display: grid;
  gap: 8px;
  padding: 12px 15px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 47, 115, 0.14), transparent 30%),
    linear-gradient(180deg, #060812, #05070d);
}

#discoverView .premium-swipe .profile-intent {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 47, 115, 0.18), rgba(255, 200, 87, 0.08)),
    rgba(255, 255, 255, 0.06);
}

#discoverView .premium-swipe .profile-intent .icon {
  width: 17px;
  height: 17px;
  color: #ff4f7b;
  filter: drop-shadow(0 5px 12px rgba(255, 79, 123, 0.4));
}

.profile-quick-row {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.profile-quick-row span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-quick-row .icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #5ae1d1;
}

#discoverView .premium-swipe .profile-meta {
  margin: 0;
}

#discoverView .premium-swipe .profile-meta span,
#discoverView .premium-swipe .chips span {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

#discoverView .premium-swipe .bio {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#discoverView .premium-swipe .chips {
  gap: 6px;
}

#discoverView .premium-swipe .chips span:nth-child(n+4) {
  display: none;
}

#discoverView .action-row {
  padding: 0 0 2px;
}

#discoverView .round-action {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #141824;
}

#discoverView .round-action.rewind {
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.24), rgba(255, 255, 255, 0.03)),
    #161721;
}

#discoverView .round-action.super {
  background:
    linear-gradient(135deg, rgba(60, 160, 255, 0.25), rgba(255, 255, 255, 0.03)),
    #141824;
}

#discoverView .round-action.like {
  background:
    linear-gradient(135deg, rgba(53, 223, 135, 0.24), rgba(255, 255, 255, 0.03)),
    #111c1a;
}

#discoverView .round-action.pass {
  background:
    linear-gradient(135deg, rgba(255, 79, 123, 0.23), rgba(255, 255, 255, 0.03)),
    #1d131c;
}

.match-modal.show::before,
.match-modal.show::after {
  content: "";
  position: absolute;
  inset: 12% auto auto 16%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ffc857;
  box-shadow:
    58px 80px 0 #5ae1d1,
    188px 34px 0 #ff4f7b,
    250px 120px 0 #7c6dff;
  animation: confettiFloat 1.8s ease-in-out infinite alternate;
}

.match-modal.show::after {
  inset: auto 12% 16% auto;
  background: #ff4f7b;
  box-shadow:
    -44px -66px 0 #5ae1d1,
    -156px -18px 0 #ffc857,
    -230px -110px 0 #ffffff;
  animation-delay: .35s;
}

.match-box {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 24px;
}

.match-box::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 62%);
  transform: rotate(-8deg);
}

.match-box > * {
  position: relative;
  z-index: 1;
}

.match-box h2 {
  font-size: clamp(26px, 7dvw, 34px);
}

.match-box p {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.match-box button {
  border-radius: 18px;
}

@keyframes profileGlow {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: .62;
  }

  to {
    transform: translate3d(-12px, 10px, 0) scale(1.08);
    opacity: .88;
  }
}

@keyframes confettiFloat {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: .66;
  }

  to {
    transform: translateY(-16px) rotate(22deg);
    opacity: 1;
  }
}

@media (max-height: 760px) {
  #discoverView .deck {
    height: clamp(394px, calc(100dvh - 300px), 462px);
  }

  #discoverView .profile-photo-glow {
    width: 118px;
    height: 118px;
  }

  #discoverView .premium-swipe .profile-visual::after {
    width: 92px;
    height: 132px;
  }

  #discoverView .premium-swipe .profile-body {
    gap: 6px;
    padding: 10px 13px 12px;
  }

  #discoverView .premium-swipe .bio {
    -webkit-line-clamp: 1;
  }

  .profile-quick-row span:nth-child(2),
  #discoverView .premium-swipe .profile-meta span:nth-child(n+3) {
    display: none;
  }
}

/* Professional profile, chat and premium sales pass */
* {
  box-sizing: border-box;
}

.view {
  overscroll-behavior: contain;
}

.profile-top {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0, rgba(90, 225, 209, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9));
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.11);
}

.profile-top::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 79, 123, 0.16), transparent 66%);
}

.profile-top > * {
  position: relative;
  z-index: 1;
}

.profile-top h2 {
  color: #12172a;
  font-size: 22px;
}

.editable-avatar {
  width: 88px;
  height: 88px;
  border-radius: 30px;
  box-shadow: 0 18px 34px rgba(90, 225, 209, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.68);
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.profile-photo-actions small {
  max-width: 190px;
  color: #7a8496;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
}

.profile-completion,
.profile-card:not(.swipe-card),
.profile-verify-card {
  border-color: rgba(17, 24, 39, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.09);
}

.profile-verify-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 79, 123, 0.12);
  border-radius: 26px;
}

.profile-verify-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 123, 0.14), transparent 32%),
    radial-gradient(circle at 0 100%, rgba(90, 225, 209, 0.14), transparent 34%);
  pointer-events: none;
}

.profile-verify-card > * {
  position: relative;
  z-index: 1;
}

.profile-verify-face {
  display: grid;
  place-items: center;
  position: relative;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 79, 123, 0.8);
  border-radius: 24px;
  color: #ff2f73;
  background: #fff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(255, 79, 123, 0.13);
}

.profile-verify-face i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #ffc857;
}

.profile-verify-card span {
  color: #ff2f73;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-verify-card h3 {
  margin: 4px 0 5px;
  color: #12172a;
  font-size: 16px;
  line-height: 1.16;
}

.profile-verify-card p {
  margin: 0 0 9px;
  color: #657084;
  font-size: 11px;
  line-height: 1.45;
}

.profile-verify-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-verify-steps b {
  border-radius: 999px;
  padding: 6px 8px;
  color: #65425a;
  background: rgba(255, 79, 123, 0.09);
  font-size: 10px;
}

#profileVerifyButton {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 17px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7759);
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(255, 79, 123, 0.2);
}

.profile-verify-card.verified {
  border-color: rgba(40, 209, 124, 0.22);
}

.profile-verify-card.verified .profile-verify-face {
  border-color: rgba(40, 209, 124, 0.78);
  color: #20c979;
}

.profile-verify-card.verified .profile-verify-face i,
.profile-verify-card.verified #profileVerifyButton {
  background: linear-gradient(135deg, #20c979, #5ae1d1);
}

#profileVerifyButton:disabled {
  cursor: default;
  opacity: .9;
}

.profile-field-grid input,
.profile-field-grid select,
.full-field textarea,
.platinum-note-panel textarea {
  border-color: rgba(17, 24, 39, 0.08);
  background: #f8fbff;
}

.interest-picker button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.interest-picker button.active {
  background: linear-gradient(135deg, #ff2f73, #ff7759 54%, #ffc857);
  box-shadow: 0 10px 18px rgba(255, 79, 123, 0.2);
}

.premium-hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 200, 87, 0.34), transparent 26%),
    radial-gradient(circle at 14% 100%, rgba(90, 225, 209, 0.22), transparent 34%),
    linear-gradient(135deg, #13152d, #2d1640 52%, #151f3d);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.2);
}

.premium-hero-card span {
  color: #5ae1d1;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.premium-hero-card h3 {
  max-width: 330px;
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.08;
}

.premium-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.premium-hero-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.premium-hero-card b {
  border-radius: 999px;
  padding: 7px 9px;
  color: #101226;
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
}

.plan-grid {
  gap: 10px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 26px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 225, 209, 0.11), transparent 34%),
    #fff;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #5ae1d1, #ff7759, #ffc857);
}

.plan-card.featured {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 200, 87, 0.22), transparent 34%),
    linear-gradient(135deg, #111827, #2f1951 54%, #ff7759);
}

.plan-card span {
  color: #ff4f7b;
}

.plan-card.featured span,
.plan-card.featured p,
.plan-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.plan-card strong {
  margin-bottom: 4px;
  font-size: 19px;
}

.plan-card em {
  display: block;
  margin-bottom: 9px;
  color: #111827;
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
}

.plan-card.featured em {
  color: #fff;
}

.plan-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 13px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #59677a;
  font-size: 11px;
  font-weight: 850;
}

.plan-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5ae1d1;
  box-shadow: 0 0 0 4px rgba(90, 225, 209, 0.12);
}

.plan-card small {
  display: flex;
  justify-content: center;
  border-radius: 15px;
  padding: 11px 12px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  font-size: 12px;
  font-weight: 950;
}

.premium-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-tools button {
  min-height: 48px;
  color: #151827;
  background:
    linear-gradient(135deg, rgba(90, 225, 209, 0.22), rgba(255, 200, 87, 0.14)),
    #fff;
}

.premium-status,
.premium-panel {
  border-radius: 26px;
}

#matchesView .chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: #f7f9fd;
}

.modern-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 88% 0, rgba(90, 225, 209, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f5f8ff);
}

.chat-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.chat-person .mini-photo {
  flex: 0 0 auto;
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 18px;
}

.chat-head-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.chat-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 8px;
  color: #198f65;
  background: rgba(32, 201, 121, 0.1);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.chat-security-pill .icon {
  width: 12px;
  height: 12px;
}

.video-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  border-radius: 14px;
  padding: 8px 10px;
}

.video-chat-button .icon {
  width: 14px;
  height: 14px;
}

#matchesView .messages {
  background:
    radial-gradient(circle at 0 0, rgba(255, 79, 123, 0.06), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(90, 225, 209, 0.08), transparent 34%),
    #f7f9fd;
}

#matchesView .msg {
  border: 1px solid rgba(17, 24, 39, 0.04);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.07);
}

#matchesView .msg.me {
  border-color: rgba(90, 225, 209, 0.12);
  background: linear-gradient(135deg, #3b82f6, #5ae1d1);
}

.msg-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 850;
}

.msg-status.passive {
  color: #8792a4;
}

.msg-status .icon {
  width: 12px;
  height: 12px;
}

.quick-replies {
  border-top: 1px solid rgba(17, 24, 39, 0.05);
  background: rgba(255, 255, 255, 0.78);
}

.quick-replies button,
.chat-toolbar button {
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.chat-toolbar {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.chat-toolbar button {
  color: #2d3a55;
  background: #f3f7ff;
}

.chat-toolbar button small,
.video-chat-button small {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  color: #526075;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 950;
}

.chat-toolbar button.locked,
.video-chat-button.locked {
  color: #7a8496;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(243, 247, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.chat-toolbar button.locked .icon,
.video-chat-button.locked .icon {
  opacity: .62;
}

.chat-toolbar button.locked small,
.video-chat-button.locked small {
  color: #fff;
  background: linear-gradient(135deg, #ff2f73, #ff7759);
}

#matchesView .chat-form {
  gap: 9px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.95);
}

#matchesView .chat-form input {
  border-radius: 18px;
  background: #f6f8fc;
}

#matchesView .chat-form button[type="submit"] {
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
}

@media (max-width: 380px), (max-height: 760px) {
  .profile-top {
    grid-template-columns: 76px 1fr;
    padding: 13px;
  }

  .editable-avatar {
    width: 76px;
    height: 76px;
    border-radius: 25px;
  }

  .profile-verify-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .profile-verify-face {
    width: 54px;
    height: 54px;
    border-radius: 20px;
  }

  .profile-verify-card p,
  .profile-photo-actions small,
  .chat-security-pill {
    display: none;
  }

  .premium-hero-card {
    padding: 15px;
  }

  .premium-hero-card h3 {
    font-size: 19px;
  }

  .premium-tools {
    grid-template-columns: 1fr;
  }

  .chat-head-actions {
    display: block;
  }

  .video-chat-button span {
    display: none;
  }
}

/* Final mobile hygiene */
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

input,
select,
textarea {
  max-width: 100%;
}

.auth-pane select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  padding: 13px 14px;
  outline: none;
  font: inherit;
}

#profileView .profile-card,
#plusView .plan-card,
#plusView .premium-panel,
#matchesView .chat-panel,
#matchesView .chat-panel * {
  min-width: 0;
}

.bottom-nav {
  z-index: 80;
}

.toast,
.match-modal {
  z-index: 160;
}

.profile-settings-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #eaf2ff);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.08);
}

.settings-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 200, 87, 0.3), transparent 28%),
    linear-gradient(135deg, #111827, #263052 58%, #14434a);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.16);
}

.settings-hero span,
.settings-card-head span {
  color: #5ae1d1;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-hero h2 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.settings-hero p,
.settings-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.settings-card {
  margin-bottom: 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.settings-card p {
  color: #657084;
}

.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-card-head strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 15px;
}

.settings-choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.settings-choice-row button {
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 16px;
  padding: 11px 8px;
  color: #526075;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 950;
}

.settings-choice-row button.active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  box-shadow: 0 12px 22px rgba(90, 225, 209, 0.16);
}

.danger-zone {
  border-color: rgba(255, 79, 123, 0.16);
}

.danger-zone .danger-button {
  width: 100%;
  margin-top: 12px;
}

.profile-detail-modal,
.payment-modal {
  position: absolute;
  inset: 0;
  z-index: 170;
  display: none;
  place-items: end center;
  padding: 18px;
  background: rgba(5, 8, 20, 0.62);
  backdrop-filter: blur(14px);
}

.profile-detail-modal.show,
.payment-modal.show {
  display: grid;
}

.profile-detail-sheet,
.payment-sheet {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 86px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  animation: sheetIn .24s ease both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 20, 0.42);
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.detail-visual {
  position: relative;
  min-height: 218px;
  border-radius: 31px 31px 0 0;
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.72)),
    linear-gradient(135deg, #2b145a, #ff4f8f 52%, #ffc857);
}

.detail-visual.tone-3 {
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.72)),
    linear-gradient(135deg, #0b3e78, #21c4b2 54%, #a8ffd1);
}

.detail-visual.tone-4 {
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.72)),
    linear-gradient(135deg, #252b4f, #9a6bff 52%, #ffd166);
}

.detail-visual.tone-5 {
  background:
    linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.72)),
    linear-gradient(135deg, #0b6b64, #5177ff 56%, #41f3e5);
}

.detail-distance {
  position: absolute;
  left: 16px;
  top: 16px;
  border-radius: 999px;
  padding: 8px 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 950;
}

.detail-avatar {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 54px;
  font-weight: 950;
  backdrop-filter: blur(14px);
}

.detail-body {
  padding: 17px;
}

.detail-kicker {
  color: #ff4f7b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-body h2 {
  margin: 5px 0 4px;
  color: #111827;
  font-size: 25px;
}

.detail-body p {
  color: #657084;
  font-size: 12px;
  line-height: 1.5;
}

.detail-chips,
.detail-trust,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chips span,
.detail-trust span {
  border-radius: 999px;
  padding: 8px 10px;
  color: #526075;
  background: #f2f5fa;
  font-size: 11px;
  font-weight: 900;
}

.detail-trust {
  margin: 11px 0 14px;
}

.detail-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #168a63;
  background: rgba(32, 201, 121, 0.1);
}

.detail-trust .icon {
  width: 13px;
  height: 13px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.detail-actions button {
  min-height: 42px;
}

.payment-sheet {
  padding: 22px;
  color: #111827;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 200, 87, 0.18), transparent 30%),
    #fff;
}

.payment-sheet > span {
  color: #ff4f7b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-sheet h2 {
  margin: 6px 0 7px;
  font-size: 26px;
}

.payment-sheet p {
  margin: 0 0 14px;
  color: #657084;
  font-size: 12px;
  line-height: 1.5;
}

.payment-card-preview {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border-radius: 24px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(90, 225, 209, 0.36), transparent 30%),
    linear-gradient(135deg, #111827, #332052 54%, #ff4f7b);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.18);
}

.payment-card-preview small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 950;
  letter-spacing: .12em;
}

.payment-card-preview strong {
  font-size: 22px;
}

.payment-card-preview em {
  font-style: normal;
  font-weight: 950;
}

.payment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 20px;
  padding: 13px;
  background: #f6f8fc;
}

.payment-summary span {
  color: #7a8496;
  font-size: 11px;
  font-weight: 900;
}

.payment-summary strong {
  font-size: 12px;
}

.paytr-status {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  border: 1px solid rgba(32, 201, 121, 0.16);
  border-radius: 18px;
  padding: 11px 12px;
  background: rgba(32, 201, 121, 0.08);
}

.paytr-status strong {
  color: #198f65;
  font-size: 12px;
}

.paytr-status span {
  color: #657084;
  font-size: 11px;
  font-weight: 850;
}

.payment-form-grid,
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.payment-form-grid label,
.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: #657084;
  font-size: 10px;
  font-weight: 950;
}

.payment-form-grid input,
.admin-form-grid input,
.promo-row input {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  padding: 11px 10px;
  color: #111827;
  background: #f7f9fd;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.payment-form-grid label:nth-child(1),
.payment-form-grid label:nth-child(2),
.admin-form-grid label:nth-child(1),
.admin-form-grid label:nth-child(2) {
  grid-column: 1 / -1;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 7px;
}

.promo-row button {
  border: 0;
  border-radius: 15px;
  padding: 0 13px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  font-size: 12px;
  font-weight: 950;
}

.promo-status {
  margin-bottom: 12px !important;
  color: #7a8496 !important;
  font-size: 11px !important;
}

.admin-demo-card {
  border-color: rgba(90, 225, 209, 0.16);
}

.admin-only,
.admin-session-badge {
  display: none;
}

#adminSessionBadge,
#adminSessionBadge[hidden],
.screen:not(.admin-mode) #adminSessionBadge {
  display: none !important;
}

.screen.admin-mode .admin-only {
  display: block;
}

.screen.admin-mode #adminSessionBadge:not([hidden]) {
  display: inline-flex !important;
}

.screen.admin-mode .admin-tab-panel {
  display: none;
}

.screen.admin-mode .admin-tab-panel.active {
  display: block;
}

.admin-tabs {
  gap: 7px;
  margin: 0 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 19px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.screen.admin-mode .admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 10px 6px;
  color: #657084;
  background: transparent;
  font-size: 10px;
  font-weight: 950;
}

.admin-tabs button.active {
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  box-shadow: 0 10px 18px rgba(90, 225, 209, 0.16);
}

.admin-session-badge {
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  appearance: none;
  border-radius: 999px;
  padding: 8px 10px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #ffc857);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(255, 200, 87, 0.18);
}

.admin-rule-grid {
  display: grid;
  gap: 7px;
  margin: 2px 0 12px;
}

.admin-rule-grid span {
  border-radius: 15px;
  padding: 9px 10px;
  color: #526075;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 850;
}

.admin-rule-grid b {
  color: #111827;
}

.admin-control-card {
  border-color: rgba(37, 99, 235, 0.12);
}

[data-admin-panel="payments"] .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

[data-admin-panel="payments"] .admin-form-grid label {
  min-width: 0;
}

[data-admin-panel="payments"] .admin-form-grid label:nth-child(-n + 6) {
  grid-column: 1 / -1;
}

[data-admin-panel="payments"] .admin-form-grid input:focus,
[data-admin-panel="groups"] .admin-group-form input:focus,
[data-admin-panel="groups"] .admin-group-form select:focus {
  border-color: rgba(255, 56, 92, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

[data-admin-panel="payments"] .admin-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

[data-admin-panel="payments"] .paytr-check-grid span:first-child {
  grid-column: 1 / -1;
}

[data-admin-panel="payments"] .admin-rule-grid span {
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #fff;
}

#saveAdminSettingsButton {
  width: 100%;
}

.admin-live-pill,
.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 9px;
  color: #0f766e;
  background: rgba(90, 225, 209, 0.14);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-status.success {
  color: #147a55;
  background: rgba(32, 201, 121, 0.13);
}

.admin-status.soft {
  color: #526075;
  background: #eef3fb;
}

.admin-status.danger {
  color: #d31f4f;
  background: rgba(255, 79, 123, 0.13);
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 12px 0 10px;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.admin-user-summary span {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  padding: 8px 6px;
  color: #647084;
  background: linear-gradient(180deg, #fff, #f8fbff);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.admin-user-summary b {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.1;
}

.admin-search-row input {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 11px 12px;
  color: #111827;
  background: #f7f9fd;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.admin-search-row button,
.admin-action-row button,
.admin-log-actions button,
.admin-user-item button {
  border: 0;
  border-radius: 14px;
  padding: 10px 11px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #eaf2ff);
  font-size: 10px;
  font-weight: 950;
}

.admin-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.admin-action-row button.danger,
.admin-log-actions button.danger,
.admin-user-item button.danger {
  color: #fff;
  background: linear-gradient(135deg, #ff4f7b, #ff7759);
}

.admin-user-item button.soft {
  color: #0f766e;
  background: rgba(90, 225, 209, 0.16);
}

.admin-user-list,
.admin-notification-list,
.admin-support-list {
  display: grid;
  gap: 9px;
}

.admin-user-list {
  max-height: min(54vh, 560px);
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.admin-user-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.admin-user-pager span {
  min-width: 104px;
  color: #647084;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.admin-user-pager button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 10px 11px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #eaf2ff);
  font-size: 10px;
  font-weight: 950;
}

.admin-user-pager button:disabled {
  color: #94a3b8;
  background: #edf2f7;
}

.admin-user-item,
.admin-log-item,
.admin-support-item {
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 18px;
  padding: 10px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-user-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-user-item .mini-photo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.admin-user-item.banned {
  border-color: rgba(255, 79, 123, 0.18);
  background: linear-gradient(135deg, rgba(255, 79, 123, 0.08), #fff);
}

.admin-user-copy {
  min-width: 0;
}

.admin-log-copy,
.admin-support-top > div,
.admin-support-foot small {
  min-width: 0;
}

.admin-user-copy strong,
.admin-log-copy strong,
.admin-support-top strong {
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.admin-user-copy span,
.admin-user-copy small,
.admin-log-copy span,
.admin-log-copy small,
.admin-support-top span,
.admin-support-foot small {
  display: block;
  overflow: hidden;
  color: #657084;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-copy strong {
  font-size: 13px;
  line-height: 1.18;
}

.admin-user-copy span,
.admin-user-copy small {
  margin-top: 2px;
  white-space: normal;
}

.admin-user-item .admin-status {
  grid-column: 3;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
}

.admin-user-item button {
  justify-self: stretch;
}

.admin-user-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(92px, 1.15fr) minmax(78px, 0.9fr) minmax(78px, 0.9fr);
  gap: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding-top: 8px;
}

.admin-plan-select {
  display: grid;
  gap: 4px;
  grid-column: auto;
  color: #647084;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-plan-select select,
.admin-edit-grid input,
.admin-edit-grid select,
.admin-edit-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 15px;
  padding: 11px 12px;
  color: #111827;
  background: #f8fbff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.admin-user-actions button {
  grid-column: auto;
  min-height: 36px;
  border-radius: 13px;
  padding: 8px 9px;
  line-height: 1.1;
}

.admin-user-actions button:disabled {
  cursor: not-allowed;
  color: #647084;
  background: #edf2f7;
}

@media (max-width: 430px) {
  .admin-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-item {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .admin-user-item .admin-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}

.admin-profile-modal,
.profile-extras-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 8, 18, .62);
}

.admin-profile-modal.show,
.profile-extras-modal.show {
  display: flex;
}

.admin-profile-sheet,
.profile-extras-sheet {
  position: relative;
  width: min(100%, 390px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 30px;
  padding: 18px;
  color: #111827;
  background:
    radial-gradient(circle at 12% 0, rgba(90, 225, 209, .2), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5f8fc);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  animation: sheetIn .22s ease both;
}

.profile-extras-sheet > span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.profile-extras-sheet h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.05;
}

.profile-extras-sheet p {
  margin: 0 0 14px;
  color: #647084;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-profile-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 4px 0 14px;
}

.admin-profile-head span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-profile-head h2 {
  margin: 3px 0;
  font-size: 20px;
  line-height: 1.05;
}

.admin-profile-head p {
  margin: 0;
  color: #647084;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-edit-grid,
.profile-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-edit-grid label,
.profile-extras-grid label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 10px;
  font-weight: 950;
}

.admin-edit-grid label.wide,
.profile-extras-grid label.wide {
  grid-column: 1 / -1;
}

.admin-edit-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.profile-extras-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 15px;
  padding: 11px 12px;
  color: #111827;
  background: #f8fbff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.admin-profile-sheet .primary-auth,
.profile-extras-sheet .primary-auth {
  width: 100%;
  margin-top: 14px;
}

.admin-log-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
}

.admin-log-item.unread {
  border-color: rgba(90, 225, 209, 0.24);
  background: linear-gradient(135deg, rgba(90, 225, 209, 0.12), #fff);
}

[data-admin-panel="notifications"] .admin-action-row {
  margin: 12px 0 14px;
}

[data-admin-panel="notifications"] .admin-log-item {
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: start;
  border-color: rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-admin-panel="notifications"] .admin-log-item.unread {
  border-color: rgba(255, 56, 92, 0.18);
  background:
    radial-gradient(circle at 94% 0, rgba(255, 56, 92, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #fff7f8);
}

[data-admin-panel="notifications"] .admin-log-copy strong {
  font-size: 13px;
  line-height: 1.18;
}

[data-admin-panel="notifications"] .admin-log-copy span {
  margin-top: 4px;
  white-space: normal;
}

[data-admin-panel="notifications"] .admin-log-copy small {
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  border-radius: 999px;
  padding: 6px 8px;
  background: #eef2f7;
  white-space: nowrap;
}

[data-admin-panel="notifications"] .admin-log-actions button {
  min-height: 36px;
  border-radius: 14px;
}

.admin-log-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-support-top,
.admin-support-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-support-top b {
  border-radius: 999px;
  padding: 6px 8px;
  color: #111827;
  background: linear-gradient(135deg, #fff, #ffc857);
  font-size: 9px;
  font-weight: 950;
}

.admin-support-item p {
  margin: 9px 0 10px;
  color: #526075;
  font-size: 11px;
  line-height: 1.45;
}

.admin-support-item.closed {
  opacity: .68;
}

.admin-support-foot {
  align-items: center;
}

.admin-support-foot .admin-log-actions {
  grid-column: auto;
  min-width: 142px;
}

[data-admin-panel="support"] > p {
  margin-bottom: 12px;
  line-height: 1.55;
}

[data-admin-panel="support"] .admin-action-row {
  grid-template-columns: minmax(0, 1fr);
  margin: 12px 0 14px;
}

[data-admin-panel="support"] .admin-action-row button {
  justify-self: start;
  min-height: 40px;
  border-radius: 15px;
  padding: 11px 14px;
}

.admin-support-list {
  gap: 12px;
}

.admin-support-item {
  display: grid;
  gap: 10px;
  border-color: rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-support-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-support-top strong {
  font-size: 13px;
  line-height: 1.18;
}

.admin-support-top span {
  margin-top: 3px;
  white-space: normal;
}

.admin-support-top b {
  min-width: 54px;
  justify-self: end;
  text-align: center;
}

.admin-support-item > p {
  margin: 0;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  padding: 10px 11px;
  color: #4d5c72;
  background: #fff;
}

.admin-support-replies {
  display: grid;
  gap: 7px;
}

.admin-support-replies > small {
  display: block;
  border: 1px dashed rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  padding: 9px 10px;
  color: #7b8799;
  background: #f6f8fc;
  font-size: 10px;
  font-weight: 850;
}

.support-reply {
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 15px;
  padding: 9px 10px;
  background: #f6f8fc;
}

.support-reply.admin {
  border-color: rgba(255, 56, 92, 0.16);
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.08), #fff);
}

.support-reply.user {
  border-color: rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), #fff);
}

.support-reply span {
  display: block;
  color: #657084;
  font-size: 10px;
  font-weight: 950;
}

.support-reply p {
  margin: 4px 0 0;
  color: #42516a;
  font-size: 11px;
  line-height: 1.42;
}

.admin-support-reply-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
}

.admin-support-reply-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  padding: 10px 11px;
  color: #111827;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  outline: none;
}

.admin-support-reply-box input:focus {
  border-color: rgba(255, 56, 92, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.admin-support-reply-box button {
  border: 0;
  border-radius: 14px;
  padding: 10px 9px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #263a66);
  font-size: 10px;
  font-weight: 950;
}

.admin-support-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.admin-support-foot small {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 9px;
  background: #eef2f7;
  white-space: nowrap;
}

.admin-support-foot .admin-log-actions {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-support-foot .admin-log-actions button {
  min-height: 36px;
  border-radius: 14px;
}

.admin-support-item.closed {
  opacity: .72;
  background: #f1f5f9;
}

.admin-group-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.admin-group-form label {
  display: grid;
  gap: 6px;
  color: #657084;
  font-size: 10px;
  font-weight: 950;
}

.admin-group-form input,
.admin-group-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  padding: 11px 10px;
  color: #111827;
  background: #f7f9fd;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.admin-group-form > label:first-child,
.admin-permission-row,
#adminCreateGroupButton {
  grid-column: 1 / -1;
}

.admin-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.admin-inline-row button {
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  color: #111827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  font-size: 10px;
  font-weight: 950;
}

.admin-permission-row,
.admin-category-chips,
.admin-group-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-permission-row {
  margin: 2px 0 4px;
}

.admin-permission-row label {
  display: inline-flex;
  flex: 1 1 122px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 9px;
  color: #526075;
  background: #f6f8fc;
  font-size: 10px;
  font-weight: 950;
}

.admin-permission-row input {
  width: auto;
  margin: 0;
  accent-color: #5ae1d1;
}

.admin-category-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.admin-category-chips::-webkit-scrollbar {
  display: none;
}

.admin-category-chips span,
.admin-group-permissions span {
  border-radius: 999px;
  padding: 7px 9px;
  color: #526075;
  background: #eef3fb;
  font-size: 10px;
  font-weight: 900;
}

.admin-group-list {
  display: grid;
  gap: 12px;
}

.admin-group-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 12px;
  background:
    radial-gradient(circle at 94% 0, rgba(90, 225, 209, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-group-item.passive {
  opacity: .68;
}

.admin-group-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
}

.admin-group-top > div {
  min-width: 0;
}

.admin-group-top strong,
.admin-group-top span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-group-top strong {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.admin-group-top span {
  margin-top: 3px;
  color: #657084;
  font-size: 10px;
  font-weight: 850;
  white-space: normal;
}

.admin-group-top b {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 8px;
  color: #0f766e;
  background: rgba(90, 225, 209, 0.15);
  font-size: 9px;
  font-weight: 950;
}

.admin-group-permissions {
  margin: 0;
}

.admin-group-item .admin-log-actions {
  width: 100%;
}

@media (max-width: 380px), (max-height: 760px) {
  .admin-group-form,
  [data-admin-panel="payments"] .admin-form-grid,
  [data-admin-panel="payments"] .admin-rule-grid {
    grid-template-columns: 1fr;
  }

  [data-admin-panel="payments"] .admin-form-grid label,
  [data-admin-panel="payments"] .admin-rule-grid span {
    grid-column: 1 / -1;
  }
}

.notification-hero {
  color: #fff;
  border-color: rgba(90, 225, 209, 0.22);
  background:
    radial-gradient(circle at 86% 18%, rgba(90, 225, 209, 0.26), transparent 32%),
    radial-gradient(circle at 8% 95%, rgba(255, 79, 123, 0.2), transparent 34%),
    linear-gradient(135deg, #101827, #192443 58%, #143e45) !important;
}

.notification-hero h2 {
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.notification-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.notification-hero span {
  color: #70ffe9;
}

body[data-theme="rose"] .app-header,
body[data-theme="rose"] .settings-hero {
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(135deg, #7f1020, #e11d48 58%, #ffffff);
}

body[data-theme="rose"] .bottom-nav button.active,
body[data-theme="rose"] .header-copy h1 {
  color: #e11d48;
}

body[data-theme="midnight"] .screen {
  color: #e7edf8;
  background: linear-gradient(145deg, #111827, #172033);
}

body[data-theme="midnight"] .view,
body[data-theme="midnight"] .profile-card:not(.swipe-card),
body[data-theme="midnight"] .settings-card,
body[data-theme="midnight"] .premium-panel,
body[data-theme="midnight"] .premium-status,
body[data-theme="midnight"] .chat-panel {
  color: #e7edf8;
}

body[data-theme="midnight"] .settings-card,
body[data-theme="midnight"] .profile-card:not(.swipe-card),
body[data-theme="midnight"] .premium-panel,
body[data-theme="midnight"] .premium-status {
  background: #151f31;
}

.screen.compact-mode .profile-verify-card p,
.screen.compact-mode .premium-hero-card p,
.screen.compact-mode .profile-top p,
.screen.compact-mode .premium-panel p {
  display: none;
}

.screen.compact-mode .profile-card:not(.swipe-card),
.screen.compact-mode .settings-card,
.screen.compact-mode .premium-panel {
  padding: 12px;
}

@keyframes sheetIn {
  from {
    transform: translateY(24px) scale(.98);
    opacity: 0;
  }

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

@media (max-width: 380px), (max-height: 760px) {
  .settings-choice-row,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 170px;
  }

  .detail-avatar {
    width: 88px;
    height: 88px;
    font-size: 40px;
  }
}

/* Red-white auth button trial */
.auth-tabs button.active,
.primary-auth {
  color: #7f1020;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff6f7 44%, #ffd8df 63%, #ff385c 100%);
  box-shadow:
    0 14px 30px rgba(255, 56, 92, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Lumora logo mark */
.brand-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #101827;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.92) 0 8%, transparent 9%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 26%, #5ae1d1 48%, #ffd166 74%, #ff385c 100%);
  box-shadow:
    0 18px 34px rgba(255, 56, 92, 0.2),
    0 10px 26px rgba(90, 225, 209, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08));
}

.brand-logo::after {
  content: none;
}

.brand-logo > span,
.brand-logo .logo-symbol {
  position: relative;
  z-index: 1;
}

.brand-logo > span {
  color: #07111f;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-logo .logo-symbol {
  width: 74%;
  height: 74%;
  color: #06111f;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 12px rgba(6, 17, 31, 0.12));
}

.auth-logo.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.brand-mark.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.brand-mark.brand-logo > span {
  font-size: 13px;
}

.brand-mark.brand-logo .logo-symbol {
  width: 72%;
  height: 72%;
  stroke-width: 4.8;
}

/* Safety hero readability pass */
.safety-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(90, 225, 209, 0.18);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(90, 225, 209, 0.28), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(255, 79, 123, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #101a32 48%, #0f4a53 100%);
  box-shadow:
    0 20px 44px rgba(7, 17, 31, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.safety-hero::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: -1;
  width: 72px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px 36px 28px 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(90, 225, 209, 0.26), transparent 28%),
    rgba(255, 255, 255, 0.05);
  transform: rotate(10deg);
}

.safety-hero::after {
  right: -34px;
  top: -42px;
  z-index: -1;
  border-color: rgba(90, 225, 209, 0.18);
}

.safety-hero span {
  color: #5af4dc;
  text-shadow: 0 8px 18px rgba(90, 225, 209, 0.18);
}

.safety-hero h2 {
  max-width: 285px;
  color: #ffffff;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.safety-hero p {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.78);
}

body[data-theme="rose"] .safety-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #7f1020 0%, #be123c 56%, #111827 100%);
}

/* Fit explore filters inside the phone width */
#discoverView .explore-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
  overflow: visible;
  padding: 0 0 2px;
  -webkit-mask-image: none;
  mask-image: none;
}

#discoverView .explore-strip button {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 9px 6px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

@media (max-height: 760px) {
  #discoverView .explore-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  #discoverView .explore-strip button {
    padding: 7px 3px;
    font-size: 9px;
  }
}

/* First-run onboarding */
.onboarding-modal {
  position: absolute;
  inset: 0;
  z-index: 165;
  display: none;
  place-items: end center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(90, 225, 209, 0.22), transparent 28%),
    rgba(5, 8, 20, 0.66);
  backdrop-filter: blur(16px);
}

.onboarding-modal.show {
  display: grid;
}

.onboarding-sheet {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 200, 87, 0.22), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(255, 47, 115, 0.18), transparent 34%),
    linear-gradient(145deg, #0b1020, #151d36 56%, #0b2f36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  animation: sheetIn .24s ease both;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 30px 0 15px;
}

.onboarding-progress span {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 950;
}

.onboarding-progress i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-style: normal;
}

.onboarding-progress span.active {
  color: #fff;
}

.onboarding-progress span.active i {
  color: #101827;
  background: linear-gradient(135deg, #5ae1d1, #ffc857);
  box-shadow: 0 10px 20px rgba(90, 225, 209, 0.16);
}

.onboarding-content {
  min-height: 300px;
  max-height: calc(100dvh - 250px);
  overflow-y: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.onboarding-content::-webkit-scrollbar {
  display: none;
}

.onboarding-hero-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #101827;
  background: linear-gradient(135deg, #ffffff, #5ae1d1 58%, #ffc857);
  box-shadow: 0 18px 36px rgba(90, 225, 209, 0.18);
}

.onboarding-hero-mark .icon {
  width: 24px;
  height: 24px;
}

.onboarding-kicker {
  display: block;
  margin-bottom: 8px;
  color: #5af4dc;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.onboarding-content h2 {
  max-width: 330px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 25px;
  line-height: 1.08;
}

.onboarding-content p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.onboarding-mini-grid,
.onboarding-plan-grid {
  display: grid;
  gap: 9px;
}

.onboarding-mini-grid span,
.onboarding-location-card,
.onboarding-plan-grid button,
.onboarding-verify-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.onboarding-mini-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-mini-grid .icon {
  width: 16px;
  height: 16px;
  color: #5ae1d1;
}

.onboarding-location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  color: #fff;
  text-align: left;
}

.onboarding-location-card > .icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #5ae1d1;
}

.onboarding-location-card strong,
.onboarding-location-card small {
  display: block;
}

.onboarding-location-card strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.onboarding-location-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-location-card.active {
  border-color: rgba(90, 225, 209, 0.42);
  background: rgba(90, 225, 209, 0.14);
}

.onboarding-interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-interest-picker button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-interest-picker button.active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, #ffffff, #5ae1d1 60%, #ffc857);
}

.onboarding-verify-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.onboarding-verify-card > div {
  display: grid;
  place-items: center;
  position: relative;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 79, 123, 0.8);
  border-radius: 24px;
  color: #ff6b8f;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.onboarding-verify-card i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border: 3px solid #111827;
  border-radius: 999px;
  background: #ffc857;
}

.onboarding-verify-card strong {
  color: #fff;
  font-size: 14px;
}

.onboarding-verify-card button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 17px;
  padding: 12px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #ffc857);
  font-weight: 950;
}

.onboarding-verify-card.verified > div {
  border-color: rgba(90, 225, 209, 0.78);
  color: #5ae1d1;
}

.onboarding-verify-card.verified i {
  background: #5ae1d1;
}

.onboarding-plan-grid button {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: #fff;
  text-align: left;
}

.onboarding-plan-grid strong {
  font-size: 16px;
}

.onboarding-plan-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 850;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10px;
  margin-top: 14px;
}

.onboarding-actions button {
  min-height: 48px;
}

.onboarding-actions button:disabled {
  cursor: default;
  opacity: .45;
}

body[data-theme="rose"] .onboarding-sheet {
  background:
    radial-gradient(circle at 92% 0, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #7f1020, #be123c 58%, #111827);
}

/* Auth-theme button pass: remove green/yellow action buttons across the app. */
:root {
  --auth-red: #ff385c;
  --auth-red-dark: #7f1020;
  --auth-rose-soft: #ffd8df;
  --auth-rose-faint: #fff6f7;
}

.settings-choice-row button.active,
.notification-filter button.active,
.promo-row button,
.social-lock-note button,
.profile-plus-badge,
.plan-card small,
.premium-tools button,
.admin-tabs button.active,
.admin-live-pill,
.admin-search-row button,
.admin-action-row button:not(.danger),
.admin-log-actions button:not(.danger),
.admin-inline-row button,
.admin-user-item button.soft,
.onboarding-progress span.active i,
.onboarding-hero-mark,
.onboarding-location-card.active,
.onboarding-interest-picker button.active,
.onboarding-verify-card button,
#matchesView .chat-form button[type="submit"] {
  color: var(--auth-red-dark) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  background:
    linear-gradient(135deg, #ffffff 0%, var(--auth-rose-faint) 42%, var(--auth-rose-soft) 66%, var(--auth-red) 100%) !important;
  box-shadow:
    0 14px 28px rgba(255, 56, 92, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.admin-group-top b,
.admin-status.success,
.admin-status.soft {
  color: var(--auth-red-dark) !important;
  background: rgba(255, 56, 92, 0.11) !important;
}

.onboarding-kicker,
.settings-hero span,
.settings-card-head span,
.profile-anthem-preview span {
  color: #ff8fa3 !important;
}

.auth-tabs button.active,
.primary-auth {
  color: var(--auth-red-dark) !important;
  background:
    linear-gradient(135deg, #ffffff 0%, var(--auth-rose-faint) 44%, var(--auth-rose-soft) 63%, var(--auth-red) 100%) !important;
}

@media (max-width: 380px), (max-height: 760px) {
  .onboarding-sheet {
    padding: 14px;
    border-radius: 28px;
  }

  .onboarding-progress b {
    display: none;
  }

  .onboarding-content {
    min-height: 250px;
    max-height: calc(100dvh - 220px);
  }

  .onboarding-content h2 {
    font-size: 21px;
  }
}

/* Reference-inspired mobile app polish */
.reference-page-head,
.likes-hero-copy {
  margin-bottom: 12px;
}

.reference-page-head span,
.likes-hero-copy span,
.explore-section-copy strong {
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reference-page-head h2,
.likes-hero-copy h2 {
  margin: 6px 0;
  color: #151827;
  font-size: 25px;
  line-height: 1.08;
}

.reference-page-head p,
.explore-section-copy span {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.explore-feature-card,
.explore-category-card,
.liked-profile-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
}

.explore-feature-card::before,
.explore-category-card::before,
.liked-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .28), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 48%);
}

.explore-feature-card::after,
.explore-category-card::after,
.liked-profile-card::after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5));
}

.explore-feature-card {
  display: grid;
  min-height: 190px;
  width: 100%;
  align-content: end;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 32px;
  padding: 22px;
}

.explore-feature-card strong {
  max-width: 260px;
  font-size: 29px;
  line-height: 1.05;
}

.explore-feature-card small {
  max-width: 250px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 850;
}

.people-count {
  display: inline-flex;
  position: absolute;
  top: 18px;
  right: 18px;
  align-items: center;
  gap: 4px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  padding: 3px 7px;
  color: #fff;
  background: rgba(17, 24, 39, .28);
  font-size: 12px;
  font-weight: 950;
}

.people-count .icon {
  width: 13px;
  height: 13px;
}

.explore-section-copy {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.reference-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 96px;
}

.explore-category-card {
  min-height: 176px;
  border-radius: 26px;
  padding: 17px;
}

.explore-category-card strong {
  position: absolute;
  right: 16px;
  bottom: 17px;
  left: 16px;
  font-size: 23px;
  line-height: 1.08;
}

.tone-rose { background: linear-gradient(145deg, #a40e42, #ff385c 58%, #321129); }
.tone-coral { background: linear-gradient(145deg, #9d1f17, #f45b4f 58%, #3f120c); }
.tone-rust { background: linear-gradient(145deg, #7e160d, #d45132 52%, #32130f); }
.tone-green { background: linear-gradient(145deg, #174e46, #2bbca3 58%, #0f2630); }
.tone-blue { background: linear-gradient(145deg, #123766, #4678f0 58%, #291649); }
.tone-purple { background: linear-gradient(145deg, #35145f, #9b5cff 58%, #210d3f); }
.tone-gold { background: linear-gradient(145deg, #7a3713, #ff8a4c 58%, #35120d); }

.chat-priority-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(135deg, #f1f3f8, #fff);
  box-shadow: 0 16px 30px rgba(17, 24, 39, .08);
}

.priority-orb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 24px;
  color: var(--auth-red);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .9), transparent 22%),
    linear-gradient(145deg, #111827, #3b3f52);
}

.priority-orb .icon {
  width: 28px;
  height: 28px;
}

.chat-priority-card strong {
  display: block;
  color: #151827;
  font-size: 15px;
}

.chat-priority-card span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.match-search-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  padding: 8px 6px 12px;
  color: #7b8493;
}

.match-search-line input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #151827;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.new-match-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.new-match-strip button {
  flex: 0 0 82px;
  border: 0;
  color: #151827;
  background: transparent;
  text-align: center;
  font-weight: 950;
}

.new-match-strip .mini-photo {
  width: 78px;
  height: 92px;
  margin: 0 0 6px;
  border: 3px solid #fff;
  border-radius: 24px;
  box-shadow: 0 12px 22px rgba(17, 24, 39, .12);
}

.likes-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: -4px -18px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .9);
}

.likes-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 8px;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.likes-tabs button.active {
  color: #151827;
  border-color: var(--auth-red);
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 96px;
}

.liked-profile-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 20px;
  padding: 8px 6px;
  color: #151827;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .08);
}

.liked-profile-card::before,
.liked-profile-card::after {
  content: none;
}

.liked-profile-card .like-avatar {
  width: 54px;
  height: 54px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 18px;
}

.liked-copy {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.liked-profile-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #151827;
  font-size: 12px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liked-profile-card small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #7b8799;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liked-verified {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  background: #178bff;
  font-size: 10px;
  font-weight: 950;
}

.likes-upgrade-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(17, 24, 39, .08);
}

.likes-upgrade-card .icon {
  width: 42px;
  height: 42px;
  color: #a100ff;
}

.likes-upgrade-card strong {
  color: #151827;
  font-size: 18px;
}

.likes-upgrade-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.likes-upgrade-card button,
.settings-premium-banner button {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--auth-red-dark);
  background: linear-gradient(135deg, #fff, var(--auth-rose-soft), var(--auth-red));
  font-weight: 950;
}

.profile-ready-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  color: #596273;
  font-size: 12px;
}

.profile-ready-line strong {
  color: #151827;
}

.profile-ready-line small {
  min-width: 0;
  line-height: 1.35;
}

.profile-power-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.profile-power-grid button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 116px;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 24px;
  padding: 12px 8px;
  color: #151827;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .08);
}

.profile-power-grid .icon {
  width: 34px;
  height: 34px;
  color: var(--auth-red);
}

.profile-power-grid strong {
  font-size: 12px;
  line-height: 1.2;
}

.profile-power-grid small {
  color: #8a94a5;
  font-size: 9px;
  font-weight: 900;
}

.profile-media-card .save-profile {
  padding: 8px 10px;
}

.profile-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.media-tile {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px dashed rgba(123, 132, 147, .42);
  border-radius: 22px;
  color: #7b8493;
  background: #eef1f7;
  font-weight: 950;
}

.media-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-tile.filled {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #151827, #ff385c);
}

.media-tile.main {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .35), transparent 19%),
    linear-gradient(145deg, #111827, #ff385c 66%, #ff8a4c);
}

.media-tile.add span {
  font-size: 34px;
}

.media-tile span {
  font-size: 22px;
}

.media-tile b {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  text-align: center;
}

.smart-photo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border-radius: 20px;
  padding: 12px;
  background: #f4f6fb;
}

.smart-photo-row strong,
.smart-photo-row small {
  display: block;
}

.smart-photo-row small {
  margin-top: 3px;
  color: #7b8493;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
}

.prompt-stack {
  display: grid;
  gap: 10px;
}

.prompt-stack article {
  position: relative;
  border-radius: 22px;
  padding: 13px 14px 13px 44px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .05);
}

.prompt-stack span {
  position: absolute;
  top: 11px;
  left: 14px;
  color: var(--auth-red);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.prompt-stack strong {
  color: #151827;
  font-size: 14px;
}

.prompt-stack p {
  margin: 4px 0 0;
  color: #5f6878;
  font-size: 12px;
}

.profile-info-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: #edf0f6;
}

.profile-info-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 14px;
  color: #151827;
  background: #fff;
  text-align: left;
}

.profile-info-list span,
.profile-info-list strong {
  font-size: 13px;
}

.profile-info-list strong {
  color: #737d8f;
  font-weight: 850;
}

.settings-premium-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 28px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(17, 24, 39, .08);
}

.settings-premium-banner .icon {
  width: 34px;
  height: 34px;
  color: #151827;
}

.settings-premium-banner strong,
.settings-premium-banner span {
  display: block;
}

.settings-premium-banner strong {
  color: #151827;
  font-size: 16px;
}

.settings-premium-banner span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.3;
}

.settings-location-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  border: 0;
  border-radius: 22px;
  padding: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.settings-location-card:active {
  transform: scale(0.985);
}

.settings-location-card .icon {
  width: 28px;
  height: 28px;
  color: var(--auth-red);
}

.settings-location-card strong,
.settings-location-card span {
  display: block;
}

.settings-location-card span {
  margin-top: 3px;
  color: var(--auth-red);
  font-size: 12px;
  font-weight: 950;
}

.range-setting {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border-radius: 22px;
  padding: 13px;
  background: #fff;
}

.range-setting div {
  display: flex;
  justify-content: space-between;
  color: #151827;
  font-size: 13px;
}

.range-setting input {
  width: 100%;
  accent-color: var(--auth-red);
}

.settings-option-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: #edf0f6;
}

.settings-option-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  padding: 14px;
  color: #151827;
  background: #fff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.settings-option-list strong {
  color: #7b8493;
  white-space: nowrap;
}

.match-compat-card {
  margin: 12px 0;
  border-radius: 22px;
  padding: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  text-align: left;
}

.match-compat-card strong,
.match-compat-card small {
  display: block;
}

.match-compat-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.35;
}

.match-reaction-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.match-reaction-row button {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  padding: 11px 0;
  background: rgba(255, 255, 255, .08);
  font-size: 20px;
}

.bottom-nav [data-view="likesView"] i {
  position: relative;
}

.bottom-nav [data-view="likesView"] i::after {
  content: "1";
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #111827;
  background: #ffd35a;
  font-size: 10px;
  font-weight: 950;
}

@media (max-width: 380px), (max-height: 760px) {
  .explore-feature-card {
    min-height: 154px;
    padding: 18px;
  }

  .explore-feature-card strong {
    font-size: 23px;
  }

  .explore-category-card {
    min-height: 142px;
  }

  .explore-category-card strong {
    font-size: 18px;
  }

  .profile-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-tile {
    min-height: 112px;
  }

  .profile-power-grid {
    gap: 7px;
  }

  .profile-power-grid button {
    min-height: 96px;
    border-radius: 20px;
  }

  .settings-premium-banner {
    grid-template-columns: auto 1fr;
  }

  .settings-premium-banner button {
    grid-column: 1 / -1;
  }
}

/* Swipe action dock fix: keep buttons complete and away from the bottom tabs. */
#discoverView.active {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#discoverView .deck {
  height: clamp(374px, calc(100dvh - 384px), 468px) !important;
}

#discoverView .premium-swipe {
  border-radius: 30px;
}

#discoverView .premium-swipe .profile-visual {
  flex-basis: clamp(154px, 27dvh, 214px);
}

#discoverView .premium-swipe .profile-body {
  padding-bottom: 16px;
}

#discoverView .premium-swipe .bio {
  -webkit-line-clamp: 1;
}

#discoverView .premium-swipe .chips span:nth-child(n+3) {
  display: none;
}

#discoverView .action-row {
  display: grid !important;
  grid-template-columns: repeat(4, 56px) !important;
  justify-content: center;
  gap: 12px !important;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0 auto 8px;
  padding: 9px 12px !important;
  position: relative;
  z-index: 30;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 0, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 244, 255, .76));
  box-shadow:
    0 18px 38px rgba(17, 24, 39, .18),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -18px 34px rgba(17, 24, 39, .04);
  backdrop-filter: blur(20px) saturate(1.15);
}

#discoverView .action-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 56, 92, .08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 45%);
}

#discoverView .round-action {
  width: 56px !important;
  height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  position: relative;
  z-index: 1;
  background: #fff !important;
  box-shadow:
    0 12px 22px rgba(17, 24, 39, .16),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -10px 16px rgba(17, 24, 39, .04) !important;
}

#discoverView .round-action .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  filter: drop-shadow(0 5px 10px rgba(17, 24, 39, .12));
}

#discoverView .round-action.pass {
  color: #ff385c;
  background:
    radial-gradient(circle at 28% 18%, #fff, transparent 30%),
    linear-gradient(145deg, #fff4f6, #ffe3ea) !important;
}

#discoverView .round-action.rewind {
  color: #f59e0b;
  background:
    radial-gradient(circle at 28% 18%, #fff, transparent 30%),
    linear-gradient(145deg, #fff8e7, #ffe7aa) !important;
}

#discoverView .round-action.super {
  color: #3977f6;
  background:
    radial-gradient(circle at 28% 18%, #fff, transparent 30%),
    linear-gradient(145deg, #f4f8ff, #dfebff) !important;
}

#discoverView .round-action.like {
  color: #13a567;
  background:
    radial-gradient(circle at 28% 18%, #fff, transparent 30%),
    linear-gradient(145deg, #f0fff8, #d7f8e8) !important;
}

/* Stronger, clearer swipe action buttons. */
#discoverView .action-row {
  background:
    radial-gradient(circle at 15% 0, rgba(255, 255, 255, .98), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(232, 240, 255, .88)) !important;
  box-shadow:
    0 20px 42px rgba(17, 24, 39, .2),
    0 0 0 1px rgba(255, 255, 255, .68),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

#discoverView .round-action {
  filter: saturate(1.18);
  box-shadow:
    0 13px 24px rgba(17, 24, 39, .18),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

#discoverView .round-action .icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.8;
}

#discoverView .round-action.pass {
  color: #f21646;
  background: linear-gradient(145deg, #fff7f9 0%, #ffdce5 52%, #ffb8c8 100%) !important;
  box-shadow:
    0 14px 24px rgba(242, 22, 70, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

#discoverView .round-action.rewind {
  color: #e88b00;
  background: linear-gradient(145deg, #fffaf0 0%, #ffe6ad 52%, #ffc857 100%) !important;
  box-shadow:
    0 14px 24px rgba(232, 139, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

#discoverView .round-action.super {
  color: #1f6eff;
  background: linear-gradient(145deg, #f7fbff 0%, #dfeaff 50%, #aecaFF 100%) !important;
  box-shadow:
    0 14px 24px rgba(31, 110, 255, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

#discoverView .round-action.like {
  color: #079b5d;
  background: linear-gradient(145deg, #f3fff9 0%, #c9f6df 52%, #7ee6b6 100%) !important;
  box-shadow:
    0 14px 24px rgba(7, 155, 93, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

#discoverView .round-action:active {
  transform: scale(.94);
}

#discoverView.active ~ .toast.show {
  display: none;
}

@media (max-width: 380px), (max-height: 760px) {
  #discoverView .deck {
    height: clamp(336px, calc(100dvh - 374px), 410px) !important;
  }

  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 8px !important;
    padding: 7px 9px !important;
    margin-bottom: 6px;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Restore the darker premium action style the user preferred. */
#discoverView .action-row {
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  background:
    radial-gradient(circle at 16% 0, rgba(255, 255, 255, .14), transparent 34%),
    linear-gradient(135deg, rgba(8, 12, 24, .92), rgba(20, 30, 48, .78)) !important;
  box-shadow:
    0 18px 38px rgba(5, 8, 20, .34),
    inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(18px) saturate(1.1);
}

#discoverView .action-row::before {
  background:
    linear-gradient(90deg, transparent, rgba(90, 225, 209, .12), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 48%) !important;
}

#discoverView .round-action {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)),
    #111827 !important;
  filter: none !important;
  box-shadow:
    0 12px 22px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#discoverView .round-action .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .24));
}

#discoverView .round-action.pass {
  color: #ff4f7b;
  background:
    linear-gradient(135deg, rgba(255, 79, 123, .24), rgba(255, 255, 255, .03)),
    #1d131c !important;
}

#discoverView .round-action.rewind {
  color: #ffc857;
  background:
    linear-gradient(135deg, rgba(255, 200, 87, .25), rgba(255, 255, 255, .03)),
    #161721 !important;
}

#discoverView .round-action.super {
  color: #58a6ff;
  background:
    linear-gradient(135deg, rgba(60, 160, 255, .26), rgba(255, 255, 255, .03)),
    #141824 !important;
}

#discoverView .round-action.like {
  color: #42f29b;
  background:
    linear-gradient(135deg, rgba(53, 223, 135, .25), rgba(255, 255, 255, .03)),
    #111c1a !important;
}

/* Flat premium auth header and no-scroll login fit */
.screen.auth-active .auth-view.login-mode {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, auto) auto auto;
  align-content: start;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
}

.screen.auth-active .auth-view.register-mode {
  height: 100%;
  overflow-y: auto;
}

.screen.auth-active .auth-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)),
    rgba(6, 10, 22, .66);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px);
}

.screen.auth-active .auth-logo {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 20%, #fff 0 9%, transparent 10%),
    linear-gradient(145deg, #5af4dc 0%, #72e8ff 34%, #ffe083 63%, #ff5d83 100%);
  box-shadow:
    0 14px 30px rgba(90, 225, 209, .22),
    inset 0 1px 0 rgba(255, 255, 255, .64);
}

.screen.auth-active .auth-logo span {
  margin: 0;
  color: #06111f;
  font-size: 16px;
  letter-spacing: -.03em;
  text-shadow: none;
}

.screen.auth-active .auth-logo .logo-symbol {
  width: 42px;
  height: 42px;
  color: #06111f;
  animation: lumoraLogoPulse 4.4s ease-in-out infinite;
}

.auth-logo-crown {
  display: grid;
  place-items: center;
  position: absolute;
  right: -6px;
  bottom: -7px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(6, 10, 22, .92);
  border-radius: 999px;
  color: #7f1020;
  background: linear-gradient(135deg, #fff, #ffe8a7 56%, #ffb347);
  box-shadow: 0 8px 16px rgba(255, 200, 87, .24);
}

.auth-logo-crown .icon {
  width: 13px;
  height: 13px;
}

.screen.auth-active .auth-brand > div:not(.auth-logo) {
  min-width: 0;
}

.screen.auth-active .auth-brand > div:not(.auth-logo) span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  letter-spacing: .16em;
}

.screen.auth-active .auth-brand strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.05;
}

.screen.auth-active .auth-brand > b {
  border: 1px solid rgba(255, 200, 87, .34);
  border-radius: 999px;
  padding: 7px 9px;
  color: #ffe6a3;
  background: rgba(255, 200, 87, .1);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.screen.auth-active .auth-copy {
  margin: 0;
}

.screen.auth-active .auth-copy h2 {
  font-size: clamp(25px, 7vw, 31px);
}

.screen.auth-active .auth-copy p {
  margin-top: 9px;
}

.screen.auth-active .auth-panel {
  padding: 11px;
}

.screen.auth-active .auth-pane.active {
  gap: 9px;
}

.screen.auth-active .auth-pane input,
.screen.auth-active .auth-pane textarea,
.screen.auth-active .auth-pane select {
  padding: 12px 13px;
}

.screen.auth-active .auth-stamp {
  margin-top: 0;
}

.screen.auth-active .gold-members {
  margin-top: 0;
}

@media (max-height: 760px) {
  .screen.auth-active .auth-view.login-mode {
    gap: 8px;
    padding: 10px 12px;
  }

  .screen.auth-active .auth-brand {
    padding: 9px 10px;
    border-radius: 24px;
  }

  .screen.auth-active .auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 20px;
  }

  .screen.auth-active .auth-brand > b {
    display: none;
  }

  .screen.auth-active .auth-copy h2 {
    font-size: 25px;
  }
}

/* Crisp dark action dock: remove blur haze and sharpen the controls. */
#discoverView .action-row {
  border: 1px solid rgba(255, 255, 255, .24) !important;
  background:
    linear-gradient(180deg, #293142 0%, #151c2b 100%) !important;
  box-shadow:
    0 16px 28px rgba(5, 8, 20, .3),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .34) !important;
  backdrop-filter: none !important;
}

#discoverView .action-row::before {
  display: none !important;
}

#discoverView .round-action {
  border: 1px solid rgba(255, 255, 255, .18) !important;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

#discoverView .round-action .icon,
#discoverView .round-action svg {
  width: 25px;
  height: 25px;
  opacity: 1;
  stroke-width: 3;
  filter: none !important;
}

#discoverView .round-action.pass {
  color: #ff4f7b;
  border-color: rgba(255, 79, 123, .34) !important;
  background: linear-gradient(145deg, #331421 0%, #20111a 100%) !important;
}

#discoverView .round-action.rewind {
  color: #ffc857;
  border-color: rgba(255, 200, 87, .34) !important;
  background: linear-gradient(145deg, #342c18 0%, #1f1b13 100%) !important;
}

#discoverView .round-action.super {
  color: #58a6ff;
  border-color: rgba(88, 166, 255, .34) !important;
  background: linear-gradient(145deg, #142744 0%, #101a2c 100%) !important;
}

#discoverView .round-action.like {
  color: #42f29b;
  border-color: rgba(66, 242, 155, .34) !important;
  background: linear-gradient(145deg, #123628 0%, #0f211b 100%) !important;
}

#discoverView .round-action.locked,
.premium-tools button.locked,
.toggle.locked {
  opacity: .55;
  filter: grayscale(.28);
}

#discoverView .round-action.locked {
  box-shadow:
    0 8px 14px rgba(0, 0, 0, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
}

.premium-tools button.locked::after {
  content: " Kilitli";
  opacity: .72;
}

.liked-profile-card.locked {
  filter: saturate(.65);
}

.liked-profile-card.locked::after {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .68)),
    linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
}

.likes-empty-card {
  grid-column: 1 / -1;
  border-radius: 28px;
  padding: 18px;
  color: #151827;
  background: #fff;
  box-shadow: 0 16px 30px rgba(17, 24, 39, .08);
}

.likes-empty-card strong {
  display: block;
  font-size: 18px;
}

.likes-empty-card p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

/* Premium login landing */
.screen.auth-active .auth-view {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 200, 87, .22), transparent 26%),
    radial-gradient(circle at 14% 14%, rgba(90, 225, 209, .22), transparent 30%),
    linear-gradient(132deg, rgba(255, 56, 92, .22) 0 16%, transparent 17% 100%),
    linear-gradient(28deg, rgba(255, 200, 87, .14) 0 13%, transparent 14% 100%),
    linear-gradient(155deg, #070913 0%, #17132b 42%, #301833 70%, #071827 100%);
}

.screen.auth-active .auth-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 28%, rgba(255, 255, 255, .16) 29%, transparent 38% 100%),
    radial-gradient(circle at 86% 36%, rgba(90, 225, 209, .14), transparent 24%);
  opacity: .8;
}

.auth-brand,
.auth-copy,
.auth-panel,
.auth-stamp,
.gold-members {
  position: relative;
  z-index: 1;
}

.screen.auth-active .auth-copy span {
  color: #fff6d8;
  border-color: rgba(255, 210, 110, .32);
  background:
    linear-gradient(135deg, rgba(255, 200, 87, .22), rgba(255, 56, 92, .18)),
    rgba(255, 255, 255, .08);
}

.screen.auth-active .auth-copy h2 {
  font-size: clamp(29px, 8vw, 35px);
  text-shadow: 0 18px 38px rgba(0, 0, 0, .36);
}

.auth-premium-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.auth-premium-stats button {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 6px;
  color: rgba(255, 255, 255, .88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-size: 9px;
  font-weight: 950;
  text-align: center;
}

.auth-premium-stats button.active {
  border-color: rgba(255, 220, 142, .54);
  color: #fff;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 220, 142, .32), transparent 48%),
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  box-shadow:
    0 10px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.auth-premium-note {
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 9px 11px;
  color: rgba(255,255,255,.82);
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.05)),
    rgba(13,18,35,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.screen.auth-active .auth-panel {
  border-color: rgba(255, 255, 255, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 200, 87, .12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08)),
    rgba(12, 16, 31, .42);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .04),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.screen.auth-active .auth-tabs button.active,
.screen.auth-active .primary-auth {
  color: #7f1020 !important;
  background:
    linear-gradient(135deg, #fff 0%, #fff1f3 38%, #ff9bae 68%, #ff385c 100%) !important;
  box-shadow:
    0 16px 30px rgba(255, 56, 92, .24),
    inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

.gold-members {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 200, 87, .18), transparent 42%),
    rgba(255, 255, 255, .07);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.gold-members-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gold-members-head span,
.gold-members-head small {
  display: block;
}

.gold-members-head span {
  color: #ffe6a3;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gold-members-head small {
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  font-weight: 850;
  text-align: right;
}

.gold-member-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gold-member-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  padding: 10px 6px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
}

.gold-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, .78);
  border-radius: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(0, 0, 0, .2);
}

.gold-member-card.first .gold-avatar {
  background: linear-gradient(145deg, #ff385c, #ffc857);
}

.gold-member-card.second .gold-avatar {
  background: linear-gradient(145deg, #7c3aed, #58a6ff);
}

.gold-member-card.third .gold-avatar {
  background: linear-gradient(145deg, #14b8a6, #42f29b);
}

.gold-member-card strong {
  font-size: 12px;
  line-height: 1;
}

.gold-member-card small {
  color: rgba(255, 255, 255, .68);
  font-size: 8.5px;
  font-weight: 850;
}

@media (max-height: 760px) {
  .auth-premium-stats {
    margin-top: 10px;
  }

  .auth-premium-stats button {
    min-height: 30px;
    font-size: 8.5px;
  }

  .gold-members {
    padding: 10px;
  }

  .gold-avatar {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    font-size: 19px;
  }
}

/* Richer matches hub */
#matchesView {
  background:
    radial-gradient(circle at 90% 0, rgba(255, 56, 92, .1), transparent 28%),
    radial-gradient(circle at 4% 36%, rgba(90, 225, 209, .1), transparent 30%);
}

#matchesView .chat-priority-card {
  grid-template-columns: 66px minmax(0, 1fr) auto;
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 30px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .16), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(255, 56, 92, .34), transparent 36%),
    linear-gradient(135deg, #111827 0%, #22213f 48%, #41152c 100%);
  box-shadow:
    0 20px 42px rgba(17, 24, 39, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

#matchesView .chat-priority-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
}

#matchesView .priority-orb {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .28), transparent 22%),
    linear-gradient(145deg, #ff385c, #7c3aed);
  box-shadow: 0 14px 28px rgba(255, 56, 92, .24);
}

#matchesView .priority-copy,
#matchesView .priority-cta,
#matchesView .priority-orb {
  position: relative;
  z-index: 1;
}

#matchesView .chat-priority-card strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

#matchesView .chat-priority-card span {
  color: rgba(255, 255, 255, .72);
}

.priority-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.priority-badges b {
  border-radius: 999px;
  padding: 5px 7px;
  color: #ffdbe4;
  background: rgba(255, 255, 255, .1);
  font-size: 9px;
  font-weight: 950;
}

.priority-cta {
  align-self: center;
  border: 0;
  border-radius: 15px;
  padding: 10px 12px;
  color: #7f1020;
  background: linear-gradient(135deg, #fff, #ffd8df 58%, #ff8ea3);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(255, 56, 92, .22);
}

#matchesView .match-search-line {
  margin-bottom: 12px;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 22px;
  padding: 12px 14px;
  color: #7c8798;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 24px rgba(17, 24, 39, .06);
}

#matchesView .new-match-strip {
  gap: 12px;
  margin: 0 -2px 14px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

#matchesView .new-match-strip::-webkit-scrollbar {
  display: none;
}

#matchesView .new-match-strip button {
  flex-basis: 104px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  padding: 10px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(249, 251, 255, .84));
  box-shadow: 0 14px 28px rgba(17, 24, 39, .09);
}

.match-ring {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 7px;
  border-radius: 24px;
  background: conic-gradient(from 160deg, #ff385c, #ffc857, #58a6ff, #ff385c);
  box-shadow: 0 12px 22px rgba(255, 56, 92, .18);
}

#matchesView .new-match-strip .mini-photo {
  width: 64px;
  height: 64px;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 21px;
  font-size: 21px;
}

#matchesView .new-match-strip strong,
#matchesView .new-match-strip small {
  display: block;
}

#matchesView .new-match-strip small {
  margin-top: 3px;
  color: #8a94a5;
  font-size: 9px;
  font-weight: 850;
}

#matchesView .section-head {
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 26px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 225, 209, .16), transparent 30%),
    rgba(255, 255, 255, .88);
  box-shadow: 0 14px 26px rgba(17, 24, 39, .08);
}

#matchesView .match-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 13px;
}

#matchesView .match-chip {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 22px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 26px rgba(17, 24, 39, .08);
}

#matchesView .match-chip .mini-photo {
  width: 54px;
  height: 54px;
  border-radius: 19px;
}

#matchesView .chat-panel > .empty-state {
  position: relative;
  min-height: 182px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 56, 92, .1), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 249, 255, .9));
}

#matchesView .chat-panel > .empty-state::before {
  content: "💬";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff385c, #7c3aed);
  box-shadow: 0 14px 26px rgba(124, 58, 237, .2);
  font-size: 24px;
}

@media (max-width: 380px), (max-height: 760px) {
  #matchesView .chat-priority-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 100px;
    padding: 13px;
  }

  #matchesView .priority-orb {
    width: 54px;
    height: 54px;
  }

  .priority-cta {
    grid-column: 1 / -1;
    padding: 9px 10px;
  }

  #matchesView .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Matches screen final fit */
#matchesView.active {
  display: block !important;
  overflow-y: auto !important;
  padding-bottom: 108px !important;
}

#matchesView .chat-priority-card {
  min-height: 96px !important;
  padding: 12px !important;
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  align-items: center !important;
}

#matchesView .priority-orb {
  width: 52px !important;
  height: 52px !important;
  border-radius: 18px !important;
}

#matchesView .chat-priority-card strong {
  font-size: 13px !important;
}

#matchesView .chat-priority-card span {
  font-size: 11px !important;
}

#matchesView .priority-badges {
  margin-top: 6px !important;
}

#matchesView .match-search-line {
  margin: 10px 0 !important;
  padding: 10px 12px !important;
}

#matchesView .new-match-strip {
  margin-bottom: 10px !important;
  padding-bottom: 5px !important;
}

#matchesView .new-match-strip button {
  flex-basis: 92px !important;
  padding: 8px !important;
}

#matchesView .section-head {
  margin: 0 0 10px !important;
  padding: 12px !important;
}

#matchesView .match-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding-bottom: 10px !important;
}

#matchesView .match-chip {
  min-height: 76px !important;
  padding: 8px 6px !important;
}

#matchesView .match-chip .mini-photo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 15px !important;
}

#matchesView .match-chip small {
  display: block;
  margin-top: 2px;
  color: #7b8798;
  font-size: 9px;
  font-weight: 900;
}

#matchesView .match-chip.active {
  border-color: rgba(255, 56, 92, .34) !important;
  background:
    radial-gradient(circle at 80% 0, rgba(255, 56, 92, .14), transparent 30%),
    #fff !important;
}

#matchesView .chat-panel {
  display: flex !important;
  flex: none !important;
  min-height: 376px !important;
  max-height: none !important;
  margin-top: 8px !important;
  overflow: hidden !important;
  scroll-margin-bottom: 110px !important;
}

#matchesView .modern-chat-head {
  flex: 0 0 auto !important;
  padding: 10px !important;
}

#matchesView .messages {
  flex: 1 1 auto !important;
  min-height: 150px !important;
  max-height: 210px !important;
  overflow-y: auto !important;
}

#matchesView .quick-replies,
#matchesView .chat-toolbar,
#matchesView .chat-form {
  flex: 0 0 auto !important;
}

#matchesView .chat-form {
  position: relative !important;
  bottom: auto !important;
}

@media (max-width: 380px), (max-height: 760px) {
  #matchesView .chat-priority-card {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  #matchesView .priority-cta {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
  }

  #matchesView .match-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #matchesView .chat-panel {
    min-height: 348px !important;
  }
}

/* Chat-first matches screen: keep the page still, scroll only messages. */
#matchesView.active {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 8px !important;
  height: calc(min(890px, 100dvh - 44px) - 104px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 8px 12px 90px !important;
}

#matchesView .chat-priority-card,
#matchesView .match-search-line,
#matchesView .new-match-strip {
  display: none !important;
}

#matchesView .section-head {
  min-height: 58px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
}

#matchesView .section-head h2 {
  font-size: 18px !important;
  line-height: 1.08 !important;
}

#matchesView .match-list {
  display: flex !important;
  min-height: 70px !important;
  max-height: 74px !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 2px 4px !important;
  scrollbar-width: none !important;
}

#matchesView .match-list::-webkit-scrollbar {
  display: none !important;
}

#matchesView .match-chip {
  flex: 0 0 74px !important;
  min-height: 68px !important;
  border-radius: 18px !important;
  padding: 7px 6px !important;
}

#matchesView .match-chip .mini-photo {
  width: 34px !important;
  height: 34px !important;
  margin-bottom: 4px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
}

#matchesView .match-chip strong {
  font-size: 11px !important;
  line-height: 1.05 !important;
}

#matchesView .match-chip small {
  font-size: 8px !important;
}

#matchesView .chat-panel {
  min-height: 0 !important;
  height: 100% !important;
  margin-top: 0 !important;
  border-radius: 24px !important;
}

#matchesView .modern-chat-head {
  min-height: 70px !important;
}

#matchesView .messages {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#matchesView .quick-replies {
  max-height: 44px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 7px 10px !important;
}

#matchesView .chat-toolbar {
  padding: 7px 10px !important;
}

#matchesView .chat-form {
  padding: 8px 10px !important;
}

@media (max-height: 760px) {
  #matchesView.active {
    grid-template-rows: auto minmax(0, 1fr) !important;
    padding-top: 7px !important;
  }

  #matchesView .section-head {
    display: none !important;
  }

  #matchesView .match-list {
    min-height: 60px !important;
    max-height: 62px !important;
  }

  #matchesView .match-chip {
    flex-basis: 66px !important;
    min-height: 58px !important;
  }

  #matchesView .match-chip .mini-photo {
    width: 30px !important;
    height: 30px !important;
  }

  #matchesView .modern-chat-head {
    min-height: 62px !important;
    padding: 8px !important;
  }
}

/* Admin-managed login announcement */
.screen.auth-active .auth-announcement-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 78px;
  max-height: 84px;
  overflow: hidden;
}

.screen.auth-active .auth-announcement-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  background: linear-gradient(95deg, #ffffff 0%, #ffffff 42%, #ffd7df 55%, #ffffff 72%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: authAnnouncementFloat 4.8s ease-in-out infinite, authAnnouncementShine 5.8s linear infinite;
}

.screen.auth-active .auth-announcement-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-red), #ffffff, #5ae1d1);
  opacity: 0.72;
  animation: authAnnouncementLine 3.8s ease-in-out infinite;
}

.admin-form-grid textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  padding: 11px 10px;
  color: #111827;
  background: #f7f9fd;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.admin-control-card .admin-form-grid label {
  grid-column: 1 / -1;
}

.screen.admin-mode .admin-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes authAnnouncementFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  45% {
    transform: translate3d(0, -3px, 0);
    filter: drop-shadow(0 10px 20px rgba(255, 56, 92, 0.18));
  }
}

@keyframes authAnnouncementShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes authAnnouncementLine {
  0%, 100% {
    transform: translateX(0);
    width: 54px;
  }
  50% {
    transform: translateX(46px);
    width: 120px;
  }
}

@keyframes lumoraLogoPulse {
  0%, 100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.05);
  }
}

/* Kaydir ekraninda eski yarim uyarı/serit katmanlarini tamamen temizle. */
#discoverView .action-row::before,
#discoverView .action-row::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body:has(#discoverView.active) .toast,
body:has(#discoverView.active) .toast.show,
#discoverView.active ~ .toast,
#discoverView.active ~ .toast.show {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(24px) scale(.96) !important;
  pointer-events: none !important;
}

/* Aksiyon butonlarinin arkasinda kalan tek parca hap/serit tamamen kalksin. */
#discoverView .action-row {
  overflow: visible !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Genel islem uyarisi artik siyah serit degil, kompakt bildirim hapi. */
.toast {
  left: 50% !important;
  right: auto !important;
  bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  display: inline-flex;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(318px, calc(100% - 54px)) !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 56, 92, .18) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  color: #831532 !important;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .94), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 236, 243, .96)) !important;
  box-shadow:
    0 16px 34px rgba(255, 56, 92, .13),
    0 8px 22px rgba(17, 24, 39, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: translateX(-50%) translateY(14px) scale(.98) !important;
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff385c, #ff8a63);
  box-shadow: 0 0 0 5px rgba(255, 56, 92, .12);
}

.toast.show {
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Final live polish: admin editable covers, fitted media, legal pages and chat translation. */
.explore-feature-card.has-admin-cover,
.explore-category-card.has-admin-cover {
  background-image:
    linear-gradient(180deg, rgba(8, 12, 24, .06), rgba(8, 12, 24, .68)),
    var(--explore-cover-image) !important;
  background-size: cover !important;
  background-position: center !important;
}

.explore-feature-card.has-admin-cover::before,
.explore-category-card.has-admin-cover::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .2), transparent 23%),
    linear-gradient(145deg, rgba(255, 56, 92, .22), rgba(84, 224, 210, .18) 50%, rgba(4, 9, 20, .38)) !important;
}

.admin-explore-cover-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.admin-explore-cover-list label {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 11px;
  background: rgba(255, 255, 255, .74);
}

.admin-explore-cover-list span {
  color: #152033;
  font-size: 12px;
  font-weight: 950;
}

.admin-explore-cover-list input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 14px;
  padding: 11px 12px;
  color: #111827;
  background: #fff;
  font-weight: 800;
}

.profile-settings-button.ghost {
  background: rgba(255, 255, 255, .86);
  color: #ff385c;
}

.profile-photo,
.mini-photo,
.gold-avatar,
.match-avatar,
.detail-avatar,
.media-tile,
.profile-media-grid label {
  overflow: hidden;
}

.profile-photo img,
.mini-photo img,
#avatarPreview,
.gold-avatar img,
.match-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-visual.has-profile-photo,
.detail-visual.has-profile-photo,
.media-tile.has-profile-photo {
  background-image:
    linear-gradient(180deg, rgba(5, 9, 20, .04), rgba(5, 9, 20, .78)),
    var(--profile-photo) !important;
  background-size: cover !important;
  background-position: center !important;
}

.profile-visual.has-profile-photo::before {
  background: linear-gradient(135deg, rgba(255, 56, 92, .18), rgba(84, 224, 210, .14), transparent 58%) !important;
}

.profile-visual.has-profile-photo::after,
.detail-visual.has-profile-photo .detail-avatar,
.profile-visual.has-profile-photo .profile-photo-glow,
.media-tile.has-profile-photo span {
  display: none !important;
}

/* Main app polish: compact, calmer discovery surface. */
#discoverView.active {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding-top: 10px !important;
  background:
    radial-gradient(circle at 90% 3%, rgba(255, 56, 92, .08), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, #f3f6fb 100%);
}

#discoverView .global-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 22px !important;
  padding: 12px !important;
  color: #111827 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 56, 92, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 249, 255, .94)) !important;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .07) !important;
}

#discoverView .global-showcase::before,
#discoverView .global-showcase::after {
  content: none !important;
}

#discoverView .global-kicker {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: #ff385c !important;
  font-size: 10px !important;
}

#discoverView .global-showcase h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 19px !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
}

#discoverView .global-showcase p {
  display: none !important;
}

#discoverView .global-stats {
  grid-column: 2;
  grid-row: 2;
  display: grid !important;
  grid-template-columns: repeat(3, 46px);
  gap: 5px !important;
  margin: 0 !important;
}

#discoverView .global-stats span {
  min-width: 0 !important;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 14px !important;
  padding: 6px 5px !important;
  color: #647084 !important;
  background: #fff !important;
  font-size: 8px !important;
  line-height: 1.15;
  text-align: center;
}

#discoverView .global-stats strong {
  display: block;
  color: #111827 !important;
  font-size: 11px !important;
}

#discoverView .explore-strip {
  display: flex !important;
  gap: 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1px 1px 5px !important;
  scrollbar-width: none;
}

#discoverView .explore-strip::-webkit-scrollbar {
  display: none;
}

#discoverView .explore-strip button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 70px !important;
  max-width: 122px;
  border: 1px solid rgba(17, 24, 39, .07) !important;
  border-radius: 999px !important;
  padding: 9px 11px !important;
  color: #596273 !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06) !important;
  font-size: 10px !important;
  font-weight: 950;
}

#discoverView .explore-strip button.active {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #111827, #ff385c) !important;
}

#discoverView .deck {
  display: grid;
  align-items: stretch;
  height: clamp(428px, calc(100dvh - 326px), 538px) !important;
  min-height: 0 !important;
}

#discoverView .premium-swipe {
  min-height: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 28px !important;
  background: #05070d !important;
  box-shadow:
    0 22px 44px rgba(17, 24, 39, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

#discoverView .premium-swipe .profile-visual {
  flex-basis: clamp(224px, 38dvh, 304px) !important;
}

#discoverView .premium-swipe .profile-title {
  left: 16px !important;
  right: 88px !important;
  bottom: 17px !important;
  max-width: none !important;
}

#discoverView .premium-swipe .profile-title h2 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(25px, 4.7dvh, 32px) !important;
  line-height: 1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#discoverView .premium-swipe .profile-title p {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#discoverView .profile-category-pill {
  margin-bottom: 7px !important;
  padding: 6px 9px !important;
}

#discoverView .profile-match-score {
  top: 54px !important;
  right: 14px !important;
  min-width: 62px !important;
  border-radius: 16px !important;
  padding: 8px !important;
}

#discoverView .premium-swipe .profile-jump {
  right: 15px !important;
  bottom: 15px !important;
  width: 38px;
  height: 38px;
}

#discoverView .premium-swipe .profile-body {
  grid-template-rows: auto auto auto minmax(0, auto) auto;
  gap: 8px !important;
  padding: 12px 14px 13px !important;
}

#discoverView .premium-swipe .profile-intent {
  min-width: 0;
}

#discoverView .premium-swipe .profile-intent strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#discoverView .profile-quick-row span:nth-child(n+2),
#discoverView .premium-swipe .profile-meta span:nth-child(n+3),
#discoverView .premium-swipe .chips span:nth-child(n+4) {
  display: none !important;
}

#discoverView .premium-swipe .bio {
  -webkit-line-clamp: 2 !important;
}

#discoverView .action-row {
  display: grid !important;
  grid-template-columns: repeat(4, 54px) !important;
  justify-content: center !important;
  gap: 11px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto 5px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#discoverView .round-action {
  width: 54px !important;
  height: 54px !important;
  border: 1px solid rgba(17, 24, 39, .08) !important;
  border-radius: 20px !important;
  color: #111827 !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow:
    0 12px 24px rgba(17, 24, 39, .15),
    inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

#discoverView .round-action.pass { color: #f21646 !important; }
#discoverView .round-action.rewind { color: #e88b00 !important; }
#discoverView .round-action.super { color: #1f6eff !important; }
#discoverView .round-action.like { color: #079b5d !important; }

@media (max-width: 380px), (max-height: 760px) {
  #discoverView.active {
    gap: 6px !important;
    padding-top: 8px !important;
  }

  #discoverView .global-showcase {
    padding: 10px !important;
  }

  #discoverView .global-stats {
    display: none !important;
  }

  #discoverView .global-showcase h2 {
    font-size: 17px !important;
  }

  #discoverView .deck {
    height: clamp(376px, calc(100dvh - 292px), 466px) !important;
  }

  #discoverView .premium-swipe .profile-visual {
    flex-basis: clamp(190px, 34dvh, 242px) !important;
  }

  #discoverView .profile-quick-row,
  #discoverView .premium-swipe .profile-meta {
    display: none !important;
  }

  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 8px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
  }
}

.media-tile.has-profile-photo b {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.profile-verify-card.gender-verified .profile-verify-steps b,
.verification-panel.gender-verified .verification-steps span {
  border-color: rgba(84, 224, 210, .42);
  color: #064e45;
  background: rgba(84, 224, 210, .16);
}

.translate-chat-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(84, 224, 210, .22);
  border-radius: 999px;
  padding: 7px 10px;
  color: #11364b;
  background: rgba(255, 255, 255, .88);
  font-size: 10px;
  font-weight: 950;
}

.translate-chat-button.active {
  color: #06342f;
  background: linear-gradient(135deg, rgba(84, 224, 210, .9), rgba(255, 255, 255, .88));
}

.translate-chat-button small {
  color: inherit;
  opacity: .76;
}

.translation-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  border-radius: 12px;
  padding: 6px 8px;
  color: #0f766e;
  background: rgba(84, 224, 210, .12);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.translation-note .icon {
  width: 12px;
  height: 12px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 10, 20, .46);
  backdrop-filter: blur(12px);
}

.legal-modal.show {
  display: flex;
}

.legal-sheet {
  position: relative;
  width: min(100%, 360px);
  max-height: min(76vh, 650px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 30px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #f7f9fd);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

.legal-sheet > span {
  color: #ff385c;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.legal-sheet h2 {
  margin: 8px 0 14px;
  color: #111827;
  font-size: 23px;
  line-height: 1.1;
}

.legal-body {
  display: grid;
  gap: 10px;
}

.legal-body section {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  padding: 13px;
  background: rgba(255, 255, 255, .78);
}

.legal-body h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 14px;
}

.legal-body p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

/* Main app polish: calmer chat hub. */
#matchesView.active {
  gap: 9px !important;
  padding: 10px 12px 92px !important;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 56, 92, .08), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, #f2f5fb 100%) !important;
}

#matchesView .section-head {
  min-height: 54px !important;
  border-color: rgba(17, 24, 39, .07) !important;
  border-radius: 22px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .06) !important;
}

#matchesView .section-head span {
  color: #ff385c;
}

#matchesView .section-head h2 {
  font-size: 17px !important;
}

#matchesView .section-head .ghost-button {
  min-height: 34px;
  border-radius: 13px;
  padding: 8px 10px;
}

#matchesView .match-list {
  min-height: 76px !important;
  max-height: 80px !important;
  gap: 9px !important;
  padding: 0 2px 5px !important;
}

#matchesView .match-chip {
  flex-basis: 82px !important;
  min-height: 72px !important;
  border: 1px solid rgba(17, 24, 39, .07) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .9)) !important;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .07) !important;
}

#matchesView .match-chip.active {
  border-color: rgba(255, 56, 92, .3) !important;
  box-shadow:
    0 12px 22px rgba(255, 56, 92, .12),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

#matchesView .match-chip .mini-photo {
  width: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
}

#matchesView .chat-panel {
  border: 1px solid rgba(17, 24, 39, .07) !important;
  border-radius: 25px !important;
  background: #fff !important;
  box-shadow: 0 18px 36px rgba(17, 24, 39, .1) !important;
}

#matchesView .chat-panel > .empty-state {
  min-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 56, 92, .08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#matchesView .modern-chat-head {
  border-bottom: 1px solid rgba(17, 24, 39, .06);
  background:
    radial-gradient(circle at 100% 0, rgba(90, 225, 209, .14), transparent 32%),
    linear-gradient(135deg, #fff, #f8fbff) !important;
}

#matchesView .chat-person > div {
  min-width: 0;
}

#matchesView .chat-person strong,
#matchesView .chat-person span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#matchesView .chat-head-actions {
  grid-template-columns: 1fr;
  max-width: 132px;
}

#matchesView .chat-security-pill {
  display: none !important;
}

#matchesView .translate-chat-button,
#matchesView .video-chat-button {
  justify-content: center;
  width: 100%;
  min-height: 32px;
  border-radius: 13px;
  padding: 7px 8px;
}

#matchesView .translate-chat-button small,
#matchesView .video-chat-button small {
  display: none;
}

#matchesView .messages {
  padding: 12px !important;
  background:
    radial-gradient(circle at 0 0, rgba(255, 56, 92, .05), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(90, 225, 209, .08), transparent 34%),
    #f7f9fd !important;
}

#matchesView .msg {
  max-width: 82%;
  border-radius: 18px !important;
  padding: 10px 11px !important;
  font-size: 12px;
  line-height: 1.42;
}

#matchesView .msg.me {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, #ff385c, #ff7759) !important;
}

#matchesView .quick-replies {
  gap: 7px;
  border-top: 1px solid rgba(17, 24, 39, .05);
  background: #fff;
}

#matchesView .quick-replies button {
  flex: 0 0 auto;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 999px;
  color: #596273;
  background: #f8fbff;
  font-size: 10px;
  font-weight: 950;
}

#matchesView .chat-toolbar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid rgba(17, 24, 39, .05);
  background: #fff;
}

#matchesView .chat-toolbar button {
  min-width: 0;
  min-height: 40px;
  border-radius: 14px;
  padding: 8px 6px;
}

#matchesView .chat-toolbar button span,
#matchesView .chat-toolbar button small {
  font-size: 9px;
}

#matchesView .chat-form {
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 8px !important;
  border-top: 1px solid rgba(17, 24, 39, .05);
  background: #fff;
}

#matchesView .chat-form input {
  min-height: 44px;
  border-radius: 16px !important;
}

#matchesView .chat-form button[type="submit"] {
  min-width: 0 !important;
  min-height: 44px;
  border-radius: 16px !important;
  padding: 0 !important;
}

#matchesView .chat-form button[type="submit"] span {
  display: none !important;
}

@media (max-height: 760px) {
  #matchesView.active {
    gap: 7px !important;
    padding-top: 8px !important;
  }

  #matchesView .match-list {
    min-height: 64px !important;
    max-height: 66px !important;
  }

  #matchesView .match-chip {
    flex-basis: 70px !important;
    min-height: 60px !important;
  }

  #matchesView .chat-toolbar {
    display: none !important;
  }

#matchesView .quick-replies {
    max-height: 40px !important;
  }
}

/* Discover overlap fix: reserve a real row for swipe actions. */
#discoverView.active {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

#discoverView .deck {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#discoverView .premium-swipe {
  height: 100% !important;
  max-height: 100% !important;
}

#discoverView .premium-swipe .profile-visual {
  flex: 0 0 clamp(202px, 34dvh, 276px) !important;
}

#discoverView .premium-swipe .profile-body {
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 10px !important;
}

#discoverView .premium-swipe .bio {
  -webkit-line-clamp: 1 !important;
}

#discoverView .premium-swipe .chips {
  max-height: 29px;
  overflow: hidden;
}

#discoverView .action-row {
  align-self: center !important;
  position: relative !important;
  z-index: 12 !important;
  margin-top: 2px !important;
}

@media (max-height: 820px) {
  #discoverView .global-showcase {
    padding: 9px 10px !important;
  }

  #discoverView .deck {
    min-height: 0 !important;
  }

  #discoverView .premium-swipe .profile-visual {
    flex-basis: clamp(174px, 31dvh, 234px) !important;
  }

  #discoverView .profile-quick-row,
  #discoverView .premium-swipe .profile-meta,
  #discoverView .premium-swipe .chips {
    display: none !important;
  }

  #discoverView .premium-swipe .profile-body {
    gap: 7px !important;
  }
}

/* Discover redesign reset: remove the crowded promo block and give the card room. */
#discoverView.active {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 10px 14px calc(var(--app-bottom-h) + env(safe-area-inset-bottom)) !important;
  background:
    radial-gradient(circle at 86% 2%, rgba(255, 56, 92, .08), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, #f2f5fb 100%) !important;
}

#discoverView .global-showcase {
  display: none !important;
}

#discoverView .explore-strip {
  display: flex !important;
  gap: 8px !important;
  min-height: 38px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 1px 3px !important;
  scrollbar-width: none !important;
}

#discoverView .explore-strip button {
  flex: 0 0 auto !important;
  min-width: 74px !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-size: 10px !important;
}

#discoverView .deck {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#discoverView .premium-swipe {
  display: flex !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 28px !important;
  background: #fff !important;
}

#discoverView .premium-swipe .profile-visual {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#discoverView .premium-swipe .profile-title {
  right: 82px !important;
  bottom: 18px !important;
}

#discoverView .premium-swipe .profile-title h2 {
  font-size: clamp(27px, 4.8dvh, 34px) !important;
}

#discoverView .premium-swipe .profile-body {
  flex: 0 0 134px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, auto) auto !important;
  gap: 8px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 14px !important;
  color: #111827 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 56, 92, .08), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#discoverView .premium-swipe .profile-intent {
  min-height: 38px;
  border-color: rgba(17, 24, 39, .07) !important;
  background: #fff !important;
}

#discoverView .premium-swipe .profile-intent strong {
  color: #111827 !important;
}

#discoverView .profile-quick-row,
#discoverView .premium-swipe .profile-meta {
  display: none !important;
}

#discoverView .premium-swipe .bio {
  margin: 0 !important;
  color: #4f5f76 !important;
  font-size: 11.5px !important;
  line-height: 1.38 !important;
  -webkit-line-clamp: 2 !important;
}

#discoverView .premium-swipe .chips {
  display: flex !important;
  max-height: 27px !important;
  overflow: hidden !important;
  gap: 6px !important;
}

#discoverView .premium-swipe .chips span {
  border-color: rgba(17, 24, 39, .07) !important;
  color: #596273 !important;
  background: #f4f7fb !important;
}

#discoverView .premium-swipe .chips span:nth-child(n+3) {
  display: none !important;
}

#discoverView .action-row {
  grid-template-columns: repeat(4, 54px) !important;
  gap: 12px !important;
  align-self: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#discoverView .round-action {
  width: 54px !important;
  height: 54px !important;
  border-radius: 20px !important;
}

@media (max-height: 760px) {
  #discoverView.active {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  #discoverView .premium-swipe .profile-body {
    flex-basis: 112px !important;
    padding: 10px 12px !important;
  }

  #discoverView .premium-swipe .bio {
    -webkit-line-clamp: 1 !important;
  }

  #discoverView .premium-swipe .chips {
    display: none !important;
  }

  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 10px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Balanced discovery style: richer card, no crowded promo block. */
#discoverView.active {
  gap: 9px !important;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 56, 92, .12), transparent 30%),
    radial-gradient(circle at 92% 20%, rgba(84, 224, 210, .12), transparent 32%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fa 100%) !important;
}

#discoverView .explore-strip button {
  border-color: rgba(255, 255, 255, .84) !important;
  color: #596273 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .9)) !important;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .07) !important;
}

#discoverView .explore-strip button.active {
  color: #fff !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .24), transparent 28%),
    linear-gradient(135deg, #9f1239, #ff385c 58%, #111827) !important;
}

#discoverView .premium-swipe {
  border: 1px solid rgba(255, 255, 255, .76) !important;
  background: #07101d !important;
  box-shadow:
    0 24px 48px rgba(17, 24, 39, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

#discoverView .premium-swipe .profile-visual {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#discoverView .premium-swipe .profile-visual::before {
  opacity: .95 !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .22) 42%, transparent 48%),
    linear-gradient(0deg, rgba(5, 8, 20, .74), transparent 42%) !important;
}

#discoverView .premium-swipe .profile-title {
  bottom: 19px !important;
}

#discoverView .premium-swipe .profile-body {
  flex: 0 0 158px !important;
  grid-template-rows: auto auto minmax(0, auto) auto !important;
  gap: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff !important;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 56, 92, .22), transparent 32%),
    radial-gradient(circle at 90% 100%, rgba(84, 224, 210, .16), transparent 30%),
    linear-gradient(180deg, #101827, #07101d) !important;
}

#discoverView .premium-swipe .profile-intent {
  min-height: 39px;
  border-color: rgba(255, 255, 255, .11) !important;
  background:
    linear-gradient(135deg, rgba(255, 56, 92, .2), rgba(255, 200, 87, .08)),
    rgba(255, 255, 255, .06) !important;
}

#discoverView .premium-swipe .profile-intent strong {
  color: #fff !important;
}

#discoverView .premium-swipe .profile-meta {
  display: flex !important;
  gap: 6px;
  margin: 0 !important;
  overflow: hidden;
}

#discoverView .premium-swipe .profile-meta span {
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 999px;
  padding: 6px 8px !important;
  color: rgba(255, 255, 255, .76) !important;
  background: rgba(255, 255, 255, .07) !important;
  font-size: 10px !important;
  white-space: nowrap;
}

#discoverView .premium-swipe .profile-meta span:nth-child(n+3) {
  display: none !important;
}

#discoverView .premium-swipe .bio {
  color: rgba(255, 255, 255, .72) !important;
  -webkit-line-clamp: 2 !important;
}

#discoverView .premium-swipe .chips {
  display: flex !important;
  max-height: 28px !important;
}

#discoverView .premium-swipe .chips span {
  border-color: rgba(255, 255, 255, .1) !important;
  color: rgba(255, 255, 255, .82) !important;
  background: rgba(255, 255, 255, .08) !important;
}

#discoverView .action-row {
  gap: 12px !important;
}

#discoverView .round-action {
  border: 1px solid rgba(255, 255, 255, .76) !important;
  color: #fff !important;
  box-shadow:
    0 16px 28px rgba(17, 24, 39, .18),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

#discoverView .round-action.pass {
  background: linear-gradient(145deg, #3b1021, #ff385c) !important;
}

#discoverView .round-action.rewind {
  background: linear-gradient(145deg, #2a1b05, #ffc857) !important;
}

#discoverView .round-action.super {
  background: linear-gradient(145deg, #0f2247, #3b82f6) !important;
}

#discoverView .round-action.like {
  background: linear-gradient(145deg, #063522, #10b981) !important;
}

@media (max-height: 760px) {
  #discoverView .premium-swipe .profile-body {
    flex-basis: 126px !important;
    grid-template-rows: auto minmax(0, auto) !important;
  }

  #discoverView .premium-swipe .profile-meta,
  #discoverView .premium-swipe .chips {
    display: none !important;
  }

  #discoverView .premium-swipe .bio {
    -webkit-line-clamp: 1 !important;
  }
}

/* Compact discovery header: adds identity without stealing card space. */
#discoverView.active {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

#discoverView .global-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "kicker stats"
    "title stats" !important;
  align-items: center !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 0 0, rgba(255, 56, 92, .2), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(84, 224, 210, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(247, 250, 255, .74)) !important;
  box-shadow: 0 14px 28px rgba(17, 24, 39, .09) !important;
}

#discoverView .global-showcase::before,
#discoverView .global-showcase::after {
  display: none !important;
}

#discoverView .global-kicker {
  grid-area: kicker !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #ff385c !important;
  font-size: 9px !important;
  letter-spacing: .08em !important;
}

#discoverView .global-kicker .icon {
  width: 13px !important;
  height: 13px !important;
}

#discoverView .global-showcase h2 {
  grid-area: title !important;
  max-width: 190px !important;
  margin: 3px 0 0 !important;
  color: #121827 !important;
  font-size: 16px !important;
  line-height: 1.05 !important;
}

#discoverView .global-showcase p {
  display: none !important;
}

#discoverView .global-stats {
  grid-area: stats !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 48px)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

#discoverView .global-stats span {
  min-height: 40px !important;
  border: 1px solid rgba(17, 24, 39, .06) !important;
  border-radius: 15px !important;
  padding: 7px 5px !important;
  color: #596273 !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: none !important;
  font-size: 8.5px !important;
  line-height: 1.1 !important;
}

#discoverView .global-stats strong {
  color: #111827 !important;
  font-size: 11px !important;
}

@media (max-height: 760px) {
  #discoverView.active {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  #discoverView .global-showcase {
    display: none !important;
  }
}

/* Discovery polish fixes: prevent cramped text, clipped filters and heavy actions. */
#discoverView .explore-strip {
  display: grid !important;
  grid-template-columns: .72fr .9fr .86fr 1.15fr 1fr .72fr !important;
  gap: 6px !important;
  min-height: 36px !important;
  overflow: visible !important;
  padding: 0 !important;
}

#discoverView .explore-strip button {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 6px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 9.4px !important;
  line-height: 1 !important;
}

#discoverView .premium-swipe .profile-body {
  flex-basis: 138px !important;
  grid-template-rows: 39px minmax(31px, auto) 28px !important;
  gap: 9px !important;
  padding: 12px 14px 13px !important;
}

#discoverView .premium-swipe .profile-meta {
  display: none !important;
}

#discoverView .premium-swipe .profile-intent {
  min-height: 39px !important;
}

#discoverView .premium-swipe .bio {
  max-height: 34px !important;
  overflow: hidden !important;
  font-size: 11.3px !important;
  line-height: 1.42 !important;
}

#discoverView .premium-swipe .chips {
  align-self: end !important;
  max-height: 28px !important;
  overflow: hidden !important;
}

#discoverView .premium-swipe .chips span {
  padding: 6px 10px !important;
  font-size: 10px !important;
}

#discoverView .action-row {
  grid-template-columns: repeat(4, 52px) !important;
  gap: 14px !important;
}

#discoverView .round-action {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .82) 52%, rgba(241, 246, 255, .78)) !important;
  box-shadow:
    0 16px 28px rgba(17, 24, 39, .14),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(14px) !important;
}

#discoverView .round-action .icon {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.35 !important;
}

#discoverView .round-action.pass {
  color: #ff385c !important;
  box-shadow:
    0 16px 28px rgba(255, 56, 92, .2),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

#discoverView .round-action.rewind {
  color: #f59e0b !important;
  box-shadow:
    0 16px 28px rgba(245, 158, 11, .2),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

#discoverView .round-action.super {
  color: #2563eb !important;
  box-shadow:
    0 16px 28px rgba(37, 99, 235, .2),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

#discoverView .round-action.like {
  color: #10b981 !important;
  box-shadow:
    0 16px 28px rgba(16, 185, 129, .2),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

@media (max-width: 370px) {
  #discoverView .explore-strip {
    gap: 5px !important;
  }

  #discoverView .explore-strip button {
    padding-inline: 4px !important;
    font-size: 8.8px !important;
  }

  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 10px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
  }
}

@media (max-height: 760px) {
  #discoverView .premium-swipe .profile-body {
    flex-basis: 118px !important;
    grid-template-rows: 38px minmax(0, auto) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  #discoverView .premium-swipe .bio {
    max-height: 18px !important;
    -webkit-line-clamp: 1 !important;
  }

  #discoverView .premium-swipe .chips {
    display: none !important;
  }

  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 11px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Premium dark swipe actions: closer to the first richer direction. */
#discoverView .action-row {
  grid-template-columns: repeat(4, 54px) !important;
  gap: 14px !important;
}

#discoverView .round-action {
  position: relative !important;
  isolation: isolate !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  color: currentColor !important;
  background: #111827 !important;
  box-shadow:
    0 16px 30px rgba(15, 23, 42, .2),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -16px 28px rgba(0, 0, 0, .24) !important;
}

#discoverView .round-action::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(145deg, var(--action-start), var(--action-end)) !important;
}

#discoverView .round-action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .18), transparent 42%, rgba(255, 255, 255, .08));
  opacity: .72;
}

#discoverView .round-action .icon {
  position: relative;
  z-index: 1;
  width: 21px !important;
  height: 21px !important;
  stroke-width: 2.25 !important;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .24));
}

#discoverView .round-action.pass {
  --action-start: #4a1026;
  --action-end: #c91d48;
  color: #ff466a !important;
  box-shadow:
    0 16px 30px rgba(255, 56, 92, .26),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -16px 28px rgba(0, 0, 0, .24) !important;
}

#discoverView .round-action.rewind {
  --action-start: #3a2908;
  --action-end: #a86b08;
  color: #ffc247 !important;
  box-shadow:
    0 16px 30px rgba(245, 158, 11, .24),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -16px 28px rgba(0, 0, 0, .24) !important;
}

#discoverView .round-action.super {
  --action-start: #10254e;
  --action-end: #1f65d6;
  color: #4f8dff !important;
  box-shadow:
    0 16px 30px rgba(37, 99, 235, .25),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -16px 28px rgba(0, 0, 0, .24) !important;
}

#discoverView .round-action.like {
  --action-start: #063523;
  --action-end: #078658;
  color: #19d38b !important;
  box-shadow:
    0 16px 30px rgba(16, 185, 129, .24),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -16px 28px rgba(0, 0, 0, .24) !important;
}

#discoverView .round-action:active {
  transform: translateY(1px) scale(.98) !important;
}

@media (max-width: 370px), (max-height: 760px) {
  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 11px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }

  #discoverView .round-action::before {
    border-radius: 15px;
  }
}

/* Reference swipe actions: dark premium tiles with clean colored outlines. */
#discoverView .action-row {
  grid-template-columns: repeat(4, 54px) !important;
  gap: 14px !important;
}

#discoverView .round-action {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid var(--action-border) !important;
  color: var(--action-icon) !important;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, .16), transparent 28%),
    radial-gradient(circle at 72% 84%, var(--action-wash), transparent 58%),
    linear-gradient(145deg, #17131b 0%, var(--action-core) 100%) !important;
  box-shadow:
    0 15px 28px var(--action-glow),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -16px 28px rgba(0, 0, 0, .42) !important;
}

#discoverView .round-action::before {
  inset: 1px !important;
  border-radius: 17px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .18)) !important;
}

#discoverView .round-action::after {
  opacity: .38 !important;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .18), transparent 38%),
    radial-gradient(circle at 50% 100%, var(--action-wash), transparent 54%) !important;
}

#discoverView .round-action .icon {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 2.35 !important;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3));
}

#discoverView .round-action.pass {
  --action-icon: #ff355f;
  --action-border: rgba(255, 67, 103, .5);
  --action-core: #21111b;
  --action-wash: rgba(255, 53, 95, .18);
  --action-glow: rgba(255, 53, 95, .22);
}

#discoverView .round-action.rewind {
  --action-icon: #f5a400;
  --action-border: rgba(245, 164, 0, .48);
  --action-core: #221b0d;
  --action-wash: rgba(245, 164, 0, .17);
  --action-glow: rgba(245, 164, 0, .2);
}

#discoverView .round-action.super {
  --action-icon: #2f7dff;
  --action-border: rgba(47, 125, 255, .5);
  --action-core: #0f1b31;
  --action-wash: rgba(47, 125, 255, .2);
  --action-glow: rgba(47, 125, 255, .2);
}

#discoverView .round-action.like {
  --action-icon: #08b878;
  --action-border: rgba(8, 184, 120, .5);
  --action-core: #0b211b;
  --action-wash: rgba(8, 184, 120, .2);
  --action-glow: rgba(8, 184, 120, .21);
}

@media (max-width: 370px), (max-height: 760px) {
  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 11px !important;
  }

  #discoverView .round-action {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }

  #discoverView .round-action::before {
    border-radius: 15px !important;
  }
}

/* Final reference lock: nearly black tiles, color only on icon and rim. */
#discoverView .action-row {
  grid-template-columns: repeat(4, 54px) !important;
  gap: 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

#discoverView .action-row::before,
#discoverView .action-row::after {
  display: none !important;
}

#discoverView .round-action,
#discoverView .round-action.pass,
#discoverView .round-action.rewind,
#discoverView .round-action.super,
#discoverView .round-action.like {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid var(--rim) !important;
  color: var(--icon) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 32%),
    linear-gradient(145deg, var(--tile-top), var(--tile-bottom)) !important;
  box-shadow:
    0 13px 25px var(--halo),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -14px 24px rgba(0, 0, 0, .48) !important;
  backdrop-filter: none !important;
}

#discoverView .round-action::before,
#discoverView .round-action::after {
  display: none !important;
}

#discoverView .round-action .icon,
#discoverView .round-action svg {
  width: 21px !important;
  height: 21px !important;
  color: var(--icon) !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.35 !important;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .34)) !important;
}

#discoverView .round-action.pass {
  --icon: #ff365c;
  --rim: rgba(255, 54, 92, .44);
  --halo: rgba(255, 54, 92, .18);
  --tile-top: #21141c;
  --tile-bottom: #100d13;
}

#discoverView .round-action.rewind {
  --icon: #e5a11a;
  --rim: rgba(229, 161, 26, .43);
  --halo: rgba(229, 161, 26, .16);
  --tile-top: #211c11;
  --tile-bottom: #11100c;
}

#discoverView .round-action.super {
  --icon: #2f7dff;
  --rim: rgba(47, 125, 255, .44);
  --halo: rgba(47, 125, 255, .17);
  --tile-top: #121b2f;
  --tile-bottom: #0b111d;
}

#discoverView .round-action.like {
  --icon: #08ad73;
  --rim: rgba(8, 173, 115, .45);
  --halo: rgba(8, 173, 115, .17);
  --tile-top: #102119;
  --tile-bottom: #08130f;
}

@media (max-width: 370px), (max-height: 760px) {
  #discoverView .action-row {
    grid-template-columns: repeat(4, 48px) !important;
    gap: 11px !important;
  }

  #discoverView .round-action,
  #discoverView .round-action.pass,
  #discoverView .round-action.rewind,
  #discoverView .round-action.super,
  #discoverView .round-action.like {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }
}

/* Animated rose-heart brand mark */
.brand-logo {
  border: 1px solid rgba(255, 255, 255, .72) !important;
  color: #22101d !important;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .95) 0 9%, transparent 10%),
    linear-gradient(135deg, #fff7fb 0%, #ff7aa2 25%, #fb3f6c 44%, #6ee7d8 66%, #ffd166 100%) !important;
  box-shadow:
    0 18px 36px rgba(255, 56, 92, .3),
    0 10px 28px rgba(84, 224, 210, .24),
    inset 0 1px 0 rgba(255, 255, 255, .88) !important;
  animation: lumoraRosePulse 3.8s ease-in-out infinite;
}

.brand-logo::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  z-index: 1 !important;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .08) 46%, rgba(255, 56, 92, .1)) !important;
  pointer-events: none;
}

.brand-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: -45% !important;
  z-index: 0 !important;
  border-radius: 50% !important;
  background:
    conic-gradient(from 0deg, transparent 0 34%, rgba(255, 255, 255, .72) 42%, transparent 51% 100%) !important;
  opacity: .55 !important;
  animation: lumoraRoseSweep 4.8s linear infinite;
  pointer-events: none;
}

.brand-logo .logo-symbol {
  z-index: 2 !important;
  width: 76% !important;
  height: 76% !important;
  color: #20101b !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, .38))
    drop-shadow(0 7px 12px rgba(32, 16, 27, .24)) !important;
  animation: lumoraRoseFloat 2.9s ease-in-out infinite;
}

.auth-logo.brand-logo {
  width: 62px !important;
  height: 62px !important;
  border-radius: 22px !important;
}

.brand-mark.brand-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 17px !important;
}

.auth-logo-crown {
  display: none !important;
}

@keyframes lumoraRosePulse {
  0%, 100% {
    transform: rotate(-1deg) scale(1);
    box-shadow:
      0 18px 36px rgba(255, 56, 92, .3),
      0 10px 28px rgba(84, 224, 210, .24),
      inset 0 1px 0 rgba(255, 255, 255, .88);
  }
  50% {
    transform: rotate(1.5deg) scale(1.045);
    box-shadow:
      0 22px 42px rgba(255, 56, 92, .38),
      0 14px 32px rgba(84, 224, 210, .32),
      inset 0 1px 0 rgba(255, 255, 255, .92);
  }
}

@keyframes lumoraRoseFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-1px) rotate(1deg);
  }
}

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

/* Real chat media controls */
.chat-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.image-bubble img {
  display: block;
  width: min(210px, 58vw);
  max-height: 180px;
  border-radius: 14px;
  object-fit: cover;
  background: #101827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.voice-msg audio {
  width: min(190px, 52vw);
  height: 32px;
  accent-color: #ff4f7b;
}

.chat-toolbar button.recording {
  color: #fff !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(135deg, #ff385c, #991b1b) !important;
  box-shadow: 0 12px 24px rgba(255, 56, 92, .24) !important;
}

.chat-toolbar button.recording .icon {
  animation: voiceRecordPulse 1s ease-in-out infinite;
}

.video-call-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 56, 92, .22), transparent 32%),
    rgba(7, 12, 22, .72);
  backdrop-filter: blur(18px);
}

.video-call-modal.show {
  display: flex;
}

.video-call-sheet {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 330px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 56, 92, .24), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(84, 224, 210, .18), transparent 28%),
    linear-gradient(180deg, #111827, #07101d);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .34);
}

.video-call-head {
  display: grid;
  gap: 4px;
  padding-right: 36px;
}

.video-call-head span {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.video-call-head strong {
  font-size: 22px;
  line-height: 1;
}

.video-call-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  min-height: 310px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .11), transparent 30%),
    linear-gradient(145deg, #1f2937, #030712);
}

.video-call-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-call-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.video-call-fallback[hidden] {
  display: none;
}

.video-call-fallback .icon {
  width: 36px;
  height: 36px;
  color: #70ffe9;
}

.video-call-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.video-call-actions button {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 12px 10px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 950;
}

.video-call-actions button:last-child {
  background: linear-gradient(135deg, #ff385c, #b91c1c);
}

.video-call-actions button.muted {
  color: #ffc857;
  background: rgba(255, 200, 87, .14);
}

@keyframes voiceRecordPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .78;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* Device fit hardening: modern phones, small phones, tall phones and safe areas. */
:root {
  --device-top-safe: env(safe-area-inset-top, 0px);
  --device-bottom-safe: env(safe-area-inset-bottom, 0px);
  --app-header-h: clamp(82px, 12.5dvh, 104px);
  --app-bottom-h: clamp(62px, 9.5dvh, 78px);
}

html,
body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-width: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.preview-shell,
.phone,
.screen {
  max-width: 100vw;
}

.preview-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0px, 2.2vw, 22px);
}

.phone {
  width: min(430px, 100%);
  height: min(890px, calc(100dvh - clamp(0px, 4.4vw, 44px)));
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
}

.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.screen > .app-header {
  flex: 0 0 var(--app-header-h);
  height: var(--app-header-h) !important;
  min-height: 0;
}

.screen > .view {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  max-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--app-bottom-h) + var(--device-bottom-safe) + 10px) !important;
}

.screen.auth-active > .auth-view {
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.screen.auth-active .auth-view.login-mode {
  overflow-y: auto !important;
}

.bottom-nav {
  left: max(10px, env(safe-area-inset-left, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(8px + var(--device-bottom-safe)) !important;
  height: clamp(58px, 8.8dvh, 70px) !important;
  max-width: calc(100% - 20px) !important;
  overflow: hidden !important;
}

.bottom-nav button {
  min-width: 0 !important;
}

.bottom-nav button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header,
.header-copy,
.header-actions,
.profile-card,
.settings-card,
.premium-panel,
.chat-panel,
.admin-control-card,
.modal-sheet,
.payment-sheet,
.onboarding-sheet,
.video-call-sheet {
  min-width: 0;
  max-width: 100%;
}

.app-header {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  padding-top: calc(clamp(10px, 1.8dvh, 16px) + var(--device-top-safe)) !important;
  padding-bottom: clamp(9px, 1.5dvh, 14px) !important;
}

.header-copy span,
.header-copy h1,
.chat-person strong,
.chat-person span,
.match-chip strong,
.match-chip small,
.premium-panel-head h2,
.profile-card-head strong,
.profile-card-head span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.modal,
.payment-modal,
.onboarding-modal,
.profile-detail-modal,
.admin-profile-modal,
.legal-modal,
.video-call-modal {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.payment-sheet,
.onboarding-sheet,
.modal-sheet,
.profile-detail-sheet,
.admin-profile-sheet,
.legal-sheet,
.video-call-sheet {
  max-height: calc(100dvh - var(--device-top-safe) - var(--device-bottom-safe) - 28px) !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#discoverView.active {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

#discoverView .deck,
#discoverView .premium-swipe {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#matchesView {
  overflow: hidden !important;
}

#matchesView .chat-panel {
  min-height: 0 !important;
  overflow: hidden !important;
}

#matchesView .messages {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#matchesView .chat-toolbar,
#matchesView .quick-replies,
#matchesView .match-list,
#matchesView .chat-head-actions {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
}

#matchesView .chat-toolbar::-webkit-scrollbar,
#matchesView .quick-replies::-webkit-scrollbar,
#matchesView .match-list::-webkit-scrollbar,
#matchesView .chat-head-actions::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .preview-shell {
    padding: 0 !important;
  }

  .phone {
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .screen {
    border-radius: 0 !important;
  }

  .app-header {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: clamp(7px, 2vw, 10px) !important;
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)) !important;
  }

  .header-actions {
    gap: 6px !important;
  }

  .header-action {
    width: 42px !important;
    min-width: 42px !important;
  }

  .brand-mark.brand-logo {
    width: 44px !important;
    height: 44px !important;
  }

  .screen > .view {
    padding-inline: clamp(10px, 3.6vw, 15px) !important;
  }
}

@media (max-width: 360px) {
  :root {
    --app-header-h: clamp(76px, 12dvh, 92px);
    --app-bottom-h: clamp(58px, 8.8dvh, 68px);
  }

  .app-header {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    padding-inline: 10px !important;
  }

  .brand-mark.brand-logo,
  .header-icon,
  .header-action {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .header-copy h1 {
    font-size: 20px !important;
  }

  .header-copy span {
    font-size: 9.5px !important;
  }

  .bottom-nav {
    left: 7px !important;
    right: 7px !important;
    max-width: calc(100% - 14px) !important;
  }

  .bottom-nav button span {
    font-size: 8px !important;
  }
}

@media (max-height: 700px) {
  :root {
    --app-header-h: clamp(72px, 12dvh, 88px);
    --app-bottom-h: clamp(56px, 8.5dvh, 64px);
  }

  .global-status,
  #discoverView .global-showcase,
  #matchesView .chat-priority-card {
    display: none !important;
  }

  .app-header {
    padding-top: calc(8px + var(--device-top-safe)) !important;
    padding-bottom: 8px !important;
  }

  .bottom-nav i {
    width: 23px !important;
    height: 23px !important;
  }

  .bottom-nav button span {
    font-size: 8px !important;
  }

  .screen > .view {
    padding-top: 8px !important;
  }

  #discoverView.active {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  #matchesView .modern-chat-head {
    min-height: 54px !important;
  }
}

@media (min-width: 481px) and (max-height: 760px) {
  .phone {
    height: calc(100dvh - 12px) !important;
  }
}

/* Auth isolation lock: login/register must never reveal app screens underneath. */
.screen.auth-active {
  display: block !important;
  overflow: hidden !important;
}

.screen.auth-active > .app-header,
.screen.auth-active > .view,
.screen.auth-active > .bottom-nav,
.screen.auth-active > .match-modal,
.screen.auth-active > .profile-detail-modal,
.screen.auth-active > .profile-extras-modal,
.screen.auth-active > .legal-modal,
.screen.auth-active > .admin-profile-modal,
.screen.auth-active > .payment-modal,
.screen.auth-active > .onboarding-modal,
.screen.auth-active > .video-call-modal,
.screen.auth-active > #discoverView,
.screen.auth-active > #exploreView,
.screen.auth-active > #likesView,
.screen.auth-active > #matchesView,
.screen.auth-active > #plusView,
.screen.auth-active > #profileView,
.screen.auth-active > #settingsView,
.screen.auth-active > #notificationsView,
.screen.auth-active > #safetyView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.screen.auth-active > .auth-view {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

.screen.auth-active > .auth-view::-webkit-scrollbar {
  display: none !important;
}

.screen:not(.auth-active) > .auth-view {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-height: 860px) {
  .screen.auth-active .gold-members {
    display: none !important;
  }

  .screen.auth-active .auth-view.login-mode {
    padding-bottom: calc(18px + var(--device-bottom-safe)) !important;
  }
}

@media (max-height: 760px) {
  .screen.auth-active .auth-copy p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* Premium announcement stamp on auth screen */
.screen.auth-active .auth-stamp {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  width: min(100%, 338px) !important;
  min-height: 46px !important;
  margin: 2px auto 0 !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(112, 255, 233, .3), transparent 24%),
    radial-gradient(circle at 100% 82%, rgba(255, 56, 92, .32), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)),
    rgba(18, 16, 34, .78) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  backdrop-filter: blur(18px) !important;
}

.screen.auth-active .auth-stamp::before {
  content: "" !important;
  position: relative !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 1px solid rgba(112, 255, 233, .45) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 50% 50%, #70ffe9 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(112, 255, 233, .22), rgba(255, 56, 92, .2)) !important;
  box-shadow:
    0 0 22px rgba(112, 255, 233, .42),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  animation: stampSignalPulse 2.4s ease-in-out infinite;
}

.screen.auth-active .auth-stamp::after {
  content: "RESMI" !important;
  position: relative !important;
  border: 1px solid rgba(255, 200, 87, .34) !important;
  border-radius: 999px !important;
  padding: 5px 8px !important;
  color: #ffe6a3 !important;
  background: rgba(255, 200, 87, .12) !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
}

.screen.auth-active .auth-stamp:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .34),
    0 0 28px rgba(112, 255, 233, .16),
    inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

@keyframes stampSignalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .86;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .screen.auth-active .auth-stamp {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .screen.auth-active .auth-stamp::before {
    width: 21px !important;
    height: 21px !important;
    border-radius: 8px !important;
  }

  .screen.auth-active .auth-stamp::after {
    padding: 4px 6px !important;
    font-size: 7px !important;
  }
}

/* Final admin user list pass: compact paged list. */
.admin-user-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.admin-user-list {
  max-height: min(54vh, 560px) !important;
  overflow-y: auto !important;
  padding-right: 3px !important;
}

.admin-user-item {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  border-radius: 18px !important;
  padding: 10px !important;
}

.admin-user-item .mini-photo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 15px !important;
}

.admin-user-item .admin-status {
  grid-column: 3 !important;
  justify-self: end !important;
  margin-top: 0 !important;
}

.admin-user-actions {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(92px, 1.15fr) minmax(78px, .9fr) minmax(78px, .9fr) !important;
  gap: 8px !important;
  padding-top: 8px !important;
}

.admin-plan-select {
  grid-column: auto !important;
}

.admin-user-actions button {
  min-height: 36px !important;
  padding: 8px 9px !important;
  line-height: 1.1 !important;
}

.admin-user-pager {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
}

.admin-user-pager span {
  min-width: 104px !important;
  white-space: nowrap !important;
}

@media (max-width: 430px) {
  .admin-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-user-item {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .admin-user-item .admin-status {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 6px !important;
  }
}
