@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg: #030211;
  --bg-soft: #08051A;
  --navy: #0B0F1A;
  --plum: #1A1022;
  --surface: rgba(26, 16, 34, 0.68);
  --surface-strong: rgba(31, 17, 54, 0.88);
  --line: rgba(216, 200, 248, 0.18);
  --text: #F5F6FA;
  --text-soft: #D8C8F8;
  --text-muted: #9D90C2;
  --pink: #FF6EC7;
  --pink-deep: #E749B2;
  --magenta: #D838A8;
  --cyan: #42E6FF;
  --blue: #1796E9;
  --lavender: #B68CFF;
  --peach: #FFD2A6;
  --pink-glow: 0 0 18px rgba(255, 110, 199, 0.78), 0 0 42px rgba(255, 110, 199, 0.28);
  --cyan-glow: 0 0 18px rgba(66, 230, 255, 0.76), 0 0 42px rgba(66, 230, 255, 0.24);
  --violet-glow: 0 0 24px rgba(182, 140, 255, 0.54), 0 0 58px rgba(182, 140, 255, 0.20);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-bottom: calc(82px + var(--safe-bottom));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

html {
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Quicksand", system-ui, sans-serif;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 110, 199, 0.18), transparent 30%),
    radial-gradient(circle at 82% 17%, rgba(66, 230, 255, 0.14), transparent 34%),
    radial-gradient(circle at 50% 108%, rgba(182, 140, 255, 0.13), transparent 42%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.nexus-app {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient-pink {
  left: -118px;
  top: 42px;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.6), transparent 68%);
}

.ambient-cyan {
  right: -124px;
  top: 185px;
  background: radial-gradient(circle, rgba(66, 230, 255, 0.52), transparent 68%);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    radial-gradient(circle, rgba(245, 246, 250, 0.72) 0 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(255, 110, 199, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(66, 230, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px, 72px 72px, 72px 72px;
  background-position: 12px 16px, 0 0, 0 0;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding:
    calc(24px + var(--safe-top))
    18px
    calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 110, 199, 0.22), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(66, 230, 255, 0.18), transparent 34%),
    rgba(3, 2, 17, 0.86);
  backdrop-filter: blur(22px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

.lock-screen.unlocked {
  opacity: 0;
  transform: scale(1.02);
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  width: min(100%, 370px);
  max-height: calc(100dvh - 38px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 110, 199, 0.32);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 17, 54, 0.82), rgba(8, 5, 26, 0.78)),
    rgba(26, 16, 34, 0.64);
  box-shadow:
    0 0 0 1px rgba(66, 230, 255, 0.12) inset,
    0 24px 88px rgba(0, 0, 0, 0.56),
    var(--pink-glow);
  text-align: center;
}

.lock-mark {
  width: 88px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 110, 199, 0.62);
  background:
    radial-gradient(circle at 80% 28%, rgba(66, 230, 255, 0.18), transparent 32%),
    rgba(8, 5, 26, 0.78);
  color: var(--text);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--pink-glow);
}

.lock-mark span {
  color: transparent;
  -webkit-text-stroke: 1px var(--pink);
  text-shadow: var(--pink-glow);
}

.lock-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.7px;
}

.lock-copy {
  margin: 10px auto 18px;
  max-width: 290px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.lock-form {
  display: grid;
  gap: 11px;
  text-align: left;
}

.lock-form label,
.details-form label {
  display: grid;
  gap: 7px;
}

.lock-form label span,
.details-form label span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.lock-form input,
.details-form input {
  height: 48px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(182, 140, 255, 0.24);
  background: rgba(8, 5, 26, 0.82);
  color: var(--text);
  outline: none;
  padding: 0 16px;
  font-size: 15px;
}

.lock-form input::placeholder,
.details-form input::placeholder,
.message-input::placeholder,
.moment-input::placeholder {
  color: var(--text-muted);
}

.lock-form input:focus,
.details-form input:focus,
.message-input:focus,
.moment-input:focus {
  border-color: rgba(255, 110, 199, 0.62);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.22);
}

.lock-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-deep), var(--lavender), var(--cyan));
  color: var(--text);
  box-shadow:
    0 0 18px rgba(255, 110, 199, 0.52),
    0 0 18px rgba(66, 230, 255, 0.32);
  font-size: 15px;
  font-weight: 700;
}

.lock-form button span {
  text-shadow: 0 0 12px white;
}

.lock-hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding:
    calc(12px + var(--safe-top))
    14px
    var(--app-bottom);
  min-height: 100dvh;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.top-status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(182, 140, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 5, 26, 0.58);
  color: var(--text-soft);
  box-shadow: 0 0 20px rgba(182, 140, 255, 0.10);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--cyan-glow);
}

.pulse-dot.tiny {
  width: 6px;
  height: 6px;
  display: inline-block;
}

.tiny-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 110, 199, 0.34);
  border-radius: 50%;
  background: rgba(255, 110, 199, 0.08);
  color: var(--pink);
  box-shadow: var(--pink-glow);
  font: 700 20px/1 "Quicksand", system-ui, sans-serif;
}

.brand-hero {
  text-align: center;
  padding-top: clamp(20px, 5vh, 42px);
}

.nexus-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: "Exo 2", "Quicksand", system-ui, sans-serif;
  font-size: clamp(50px, 16vw, 74px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--text);
  text-shadow: var(--violet-glow);
}

.xmark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 48px;
  color: transparent;
}

.xmark::before,
.xmark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: var(--violet-glow);
  transform-origin: center;
}

.xmark::before {
  transform: translate(-50%, -50%) rotate(42deg);
}

.xmark::after {
  transform: translate(-50%, -50%) rotate(-42deg);
}

.xmark span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -56%);
  color: var(--pink);
  font-size: 15px;
  text-shadow: var(--pink-glow);
}

.two {
  margin-left: 5px;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  text-stroke: 2px var(--pink);
  text-shadow: var(--pink-glow);
}

.tagline {
  margin: 13px 0 0;
  color: var(--text-soft);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: clamp(10px, 2.7vw, 12px);
  line-height: 1.75;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.mascot-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(205px, 31vh, 292px);
  margin-top: clamp(12px, 3vh, 24px);
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(182, 140, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(255, 110, 199, 0.06);
}

.ring-one {
  width: 235px;
  height: 92px;
  transform: rotate(-7deg);
}

.ring-two {
  width: 196px;
  height: 72px;
  transform: rotate(7deg);
  border-color: rgba(66, 230, 255, 0.17);
}

.mascot {
  position: relative;
  width: 205px;
  height: 198px;
  filter: drop-shadow(0 0 18px rgba(255, 110, 199, 0.55));
}

.mascot-body {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 148px;
  height: 104px;
  border-radius: 70px 70px 46px 46px;
  background:
    radial-gradient(circle at 36% 33%, rgba(245, 246, 250, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(255, 110, 199, 0.2), rgba(66, 230, 255, 0.16)),
    #08071B;
  border: 2px solid rgba(255, 110, 199, 0.9);
  box-shadow:
    var(--pink-glow),
    inset -20px 0 34px rgba(66, 230, 255, 0.19),
    inset 20px 0 34px rgba(255, 110, 199, 0.16);
}

.mascot-body::before,
.mascot-body::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 30px;
  height: 20px;
  border-radius: 14px;
  background: #09071B;
  border: 2px solid rgba(182, 140, 255, 0.72);
  box-shadow: 0 0 10px rgba(182, 140, 255, 0.4);
}

.mascot-body::before {
  left: 26px;
}

.mascot-body::after {
  right: 26px;
  border-color: rgba(66, 230, 255, 0.72);
}

.eye {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, white 0 3px, transparent 4px), #F5D8FF;
  box-shadow: 0 0 12px rgba(255, 110, 199, 0.65);
}

.eye-left {
  left: 42px;
}

.eye-right {
  right: 42px;
}

.smile {
  position: absolute;
  left: 50%;
  top: 68px;
  width: 19px;
  height: 10px;
  transform: translateX(-50%);
  border-bottom: 3px solid #F5D8FF;
  border-radius: 0 0 16px 16px;
}

.cheek {
  position: absolute;
  top: 66px;
  width: 13px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 110, 199, 0.78);
  box-shadow: var(--pink-glow);
}

.cheek-left {
  left: 27px;
}

.cheek-right {
  right: 27px;
}

.heart-core {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  color: var(--pink);
  font-size: 21px;
  text-shadow: var(--pink-glow);
}

.antenna {
  position: absolute;
  width: 68px;
  height: 78px;
}

.antenna::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 68px;
  bottom: 0;
  left: 33px;
  border-radius: 999px;
  transform-origin: bottom;
}

.antenna-left {
  left: 48px;
  top: 0;
}

.antenna-left::before {
  transform: rotate(-20deg);
  background: linear-gradient(var(--pink), transparent);
  box-shadow: var(--pink-glow);
}

.antenna-right {
  right: 43px;
  top: 0;
}

.antenna-right::before {
  transform: rotate(20deg);
  background: linear-gradient(var(--cyan), transparent);
  box-shadow: var(--cyan-glow);
}

.antenna-node {
  position: absolute;
  top: 5px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.node-pink {
  left: 4px;
  background: radial-gradient(circle at 38% 32%, #fff 0 3px, transparent 4px), var(--pink);
  box-shadow: var(--pink-glow);
}

.node-cyan {
  right: 4px;
  background: radial-gradient(circle at 38% 32%, #fff 0 3px, transparent 4px), var(--cyan);
  box-shadow: var(--cyan-glow);
}

.signal-arc {
  position: absolute;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-left-color: currentColor;
  border-radius: 50%;
  opacity: 0.84;
}

.signal-pink {
  color: var(--pink);
  filter: drop-shadow(0 0 10px rgba(255, 110, 199, 0.8));
}

.signal-cyan {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(66, 230, 255, 0.8));
}

.arc-one {
  width: 52px;
  height: 52px;
}

.arc-two {
  width: 70px;
  height: 70px;
  opacity: 0.55;
}

.antenna-left .arc-one {
  left: -7px;
  top: -16px;
  transform: rotate(-8deg);
}

.antenna-left .arc-two {
  left: -20px;
  top: -30px;
  transform: rotate(-8deg);
}

.antenna-right .arc-one {
  right: -8px;
  top: -16px;
  transform: rotate(80deg);
}

.antenna-right .arc-two {
  right: -22px;
  top: -31px;
  transform: rotate(80deg);
}

.welcome-card {
  margin-top: auto;
  padding: 18px 18px 17px;
  border: 1px solid rgba(216, 200, 248, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(31, 17, 54, 0.72), rgba(8, 5, 26, 0.62)),
    rgba(26, 16, 34, 0.54);
  box-shadow:
    inset 0 0 24px rgba(255, 110, 199, 0.05),
    0 16px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--cyan);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: var(--cyan-glow);
}

.eyebrow.compact {
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: 2.5px;
}

.welcome-card h1 {
  margin: 0;
  max-width: 330px;
  color: var(--text);
  font-size: clamp(25px, 7vw, 33px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.intro {
  margin: 11px 0 0;
  max-width: 330px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.52;
}

.action-stack {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--text);
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: linear-gradient(90deg, var(--pink-deep), var(--lavender), var(--cyan));
  box-shadow:
    0 0 18px rgba(255, 110, 199, 0.52),
    0 0 18px rgba(66, 230, 255, 0.32);
}

.action-heart {
  color: white;
  text-shadow: 0 0 12px white;
}

.secondary-action {
  background: rgba(8, 5, 26, 0.72);
  border: 1px solid rgba(182, 140, 255, 0.28);
  color: var(--text-soft);
}

.app-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px 44px 1fr 54px;
  gap: 10px;
  align-items: center;
}

.moments-header,
.settings-header {
  grid-template-columns: 38px 1fr 64px;
}

.back-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(8, 5, 26, 0.42);
  border: 1px solid rgba(182, 140, 255, 0.18);
}

.bond-avatar {
  position: relative;
  width: 44px;
  height: 44px;
}

.avatar-dot {
  position: absolute;
  top: 7px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background:
    radial-gradient(circle at 45% 36%, var(--peach) 0 18%, transparent 19%),
    linear-gradient(135deg, #6D2D87, #1A1022);
  box-shadow: var(--pink-glow);
}

.avatar-you {
  left: 0;
}

.avatar-them {
  right: 0;
  border-color: var(--cyan);
  background:
    radial-gradient(circle at 45% 36%, var(--peach) 0 18%, transparent 19%),
    linear-gradient(135deg, #275D93, #1A1022);
  box-shadow: var(--cyan-glow);
}

.app-title {
  min-width: 0;
}

.app-title h1 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}

.app-title h1 span {
  color: var(--pink);
  text-shadow: var(--pink-glow);
}

.app-title p {
  margin: 5px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.header-chip {
  min-width: 54px;
  height: 38px;
  border: 1px solid rgba(255, 110, 199, 0.38);
  border-radius: 999px;
  background: rgba(255, 110, 199, 0.08);
  color: var(--text-soft);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.connection-card,
.memory-orbit,
.nexus-profile-card {
  margin: 8px 0 13px;
  padding: 13px;
  border: 1px solid rgba(66, 230, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 20%, rgba(66, 230, 255, 0.13), transparent 30%),
    rgba(8, 5, 26, 0.52);
  backdrop-filter: blur(16px);
}

.connection-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  align-items: center;
}

.mini-n2,
.n2-badge {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 110, 199, 0.62);
  background: rgba(8, 5, 26, 0.74);
  color: var(--text);
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--pink-glow);
}

.mini-n2 {
  width: 58px;
  height: 42px;
  border-radius: 999px;
  font-size: 21px;
}

.connection-label,
.profile-label,
.panel-label {
  margin: 0 0 5px;
  color: var(--cyan);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: var(--cyan-glow);
}

.connection-copy {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.38;
}

.messages-wrap,
.moments-list-wrap,
.settings-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.message-list::-webkit-scrollbar,
.moments-list-wrap::-webkit-scrollbar,
.settings-scroll::-webkit-scrollbar,
.lock-card::-webkit-scrollbar {
  display: none;
}

.messages-wrap {
  display: flex;
  flex-direction: column;
}

.date-chip {
  align-self: center;
  margin: 3px 0 10px;
  padding: 6px 12px;
  border: 1px solid rgba(182, 140, 255, 0.20);
  border-radius: 999px;
  background: rgba(8, 5, 26, 0.54);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 1px 9px;
  scrollbar-width: none;
}

.message {
  width: fit-content;
  max-width: min(78vw, 310px);
  margin-bottom: 11px;
  padding: 12px 14px 10px;
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.36;
  word-wrap: break-word;
  animation: itemIn 190ms ease-out both;
}

.message.sent {
  margin-left: auto;
  border-bottom-right-radius: 7px;
  background: linear-gradient(145deg, rgba(169, 58, 146, 0.94), rgba(108, 46, 143, 0.94));
  border: 1px solid rgba(255, 110, 199, 0.34);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.12);
}

.message.received {
  margin-right: auto;
  border-bottom-left-radius: 7px;
  background: linear-gradient(145deg, rgba(17, 19, 61, 0.94), rgba(24, 26, 72, 0.94));
  border: 1px solid rgba(182, 140, 255, 0.22);
  box-shadow: 0 0 18px rgba(66, 230, 255, 0.08);
}

.message-author {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.message-meta {
  display: block;
  margin-top: 6px;
  color: rgba(216, 200, 248, 0.72);
  font-size: 9px;
  text-align: right;
}

.composer,
.moment-composer {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(72px + var(--safe-bottom));
  z-index: 8;
  max-width: 430px;
  margin: 0 auto;
}

.composer {
  display: grid;
  grid-template-columns: 42px 1fr 48px;
  gap: 9px;
  align-items: center;
}

.composer-button,
.send-button,
.moment-save {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-soft);
  backdrop-filter: blur(12px);
}

.composer-button {
  width: 42px;
  height: 42px;
  background: rgba(8, 5, 26, 0.74);
  border: 1px solid rgba(182, 140, 255, 0.28);
  font-size: 20px;
}

.message-input,
.moment-input {
  height: 46px;
  min-width: 0;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(182, 140, 255, 0.24);
  background: rgba(8, 5, 26, 0.82);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(12px);
  font-size: 14px;
}

.send-button,
.moment-save {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: white;
  box-shadow: var(--pink-glow);
  border: 0;
  font-size: 19px;
}

.memory-orbit {
  display: grid;
  place-items: center;
  gap: 8px;
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 110, 199, 0.13), transparent 28%),
    radial-gradient(circle at 88% 30%, rgba(66, 230, 255, 0.13), transparent 28%),
    rgba(8, 5, 26, 0.54);
}

.memory-capsule {
  position: relative;
  width: min(100%, 254px);
  height: 54px;
  display: grid;
  place-items: center;
}

.memory-line {
  position: absolute;
  left: 48px;
  right: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--cyan));
  box-shadow: var(--violet-glow);
}

.memory-node {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.memory-node.pink {
  left: 24px;
  background: radial-gradient(circle at 40% 32%, white 0 4px, transparent 5px), var(--pink);
  box-shadow: var(--pink-glow);
}

.memory-node.cyan {
  right: 24px;
  background: radial-gradient(circle at 40% 32%, white 0 4px, transparent 5px), var(--cyan);
  box-shadow: var(--cyan-glow);
}

.memory-heart {
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 5, 26, 0.84);
  border: 1px solid rgba(255, 110, 199, 0.45);
  color: var(--pink);
  text-shadow: var(--pink-glow);
  box-shadow: var(--pink-glow);
}

.memory-orbit p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}

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

.moment-tab,
.moment-type {
  border-radius: 999px;
  border: 1px solid rgba(182, 140, 255, 0.20);
  background: rgba(8, 5, 26, 0.52);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.moment-tab {
  min-height: 34px;
}

.moment-type {
  min-height: 30px;
  backdrop-filter: blur(12px);
}

.moment-tab.active,
.moment-type.active {
  border-color: rgba(255, 110, 199, 0.62);
  color: var(--text);
  background: rgba(255, 110, 199, 0.12);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.18);
}

.moments-list-wrap {
  padding-bottom: 148px;
}

.moments-list {
  display: grid;
  gap: 12px;
}

.moment-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(216, 200, 248, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 17, 54, 0.74), rgba(8, 5, 26, 0.64)),
    rgba(26, 16, 34, 0.54);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  animation: itemIn 190ms ease-out both;
}

.moment-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 110, 199, 0.35);
  background: rgba(255, 110, 199, 0.08);
  color: var(--pink);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.16);
  font-size: 22px;
}

.moment-card[data-kind="photo"] .moment-icon {
  border-color: rgba(66, 230, 255, 0.35);
  background: rgba(66, 230, 255, 0.08);
  color: var(--cyan);
}

.moment-card[data-kind="keepsake"] .moment-icon {
  border-color: rgba(182, 140, 255, 0.35);
  background: rgba(182, 140, 255, 0.08);
  color: var(--lavender);
}

.moment-card h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.moment-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.38;
}

.moment-date {
  display: inline-flex;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.moment-composer {
  display: grid;
  gap: 8px;
}

.moment-type-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.moment-input-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 9px;
}

.nexus-profile-card {
  display: grid;
  grid-template-columns: 64px 1fr 82px;
  gap: 13px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 24%, rgba(66, 230, 255, 0.14), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(255, 110, 199, 0.13), transparent 32%),
    rgba(8, 5, 26, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.n2-badge {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 24px;
}

.nexus-profile-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.profile-copy {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.mini-signal {
  position: relative;
  height: 54px;
}

.mini-node {
  position: absolute;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.mini-node.pink {
  left: 0;
  background: radial-gradient(circle at 40% 32%, white 0 3px, transparent 4px), var(--pink);
  box-shadow: var(--pink-glow);
}

.mini-node.cyan {
  right: 0;
  background: radial-gradient(circle at 40% 32%, white 0 3px, transparent 4px), var(--cyan);
  box-shadow: var(--cyan-glow);
}

.mini-line {
  position: absolute;
  left: 23px;
  right: 23px;
  top: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--cyan));
  box-shadow: var(--violet-glow);
}

.mini-heart {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 25px;
  height: 25px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 5, 26, 0.86);
  border: 1px solid rgba(255, 110, 199, 0.45);
  color: var(--pink);
  text-shadow: var(--pink-glow);
  font-size: 13px;
}

.settings-panel {
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 24px;
  border: 1px solid rgba(216, 200, 248, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 17, 54, 0.70), rgba(8, 5, 26, 0.62)),
    rgba(26, 16, 34, 0.54);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.panel-copy {
  margin-bottom: 13px;
}

.panel-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

.details-form {
  display: grid;
  gap: 11px;
}

.details-form input {
  border-radius: 18px;
}

.detail-save {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-deep), var(--lavender), var(--cyan));
  color: var(--text);
  box-shadow:
    0 0 18px rgba(255, 110, 199, 0.52),
    0 0 18px rgba(66, 230, 255, 0.32);
  font-size: 14px;
  font-weight: 700;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.theme-choice {
  min-width: 0;
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 20px;
  border: 1px solid rgba(182, 140, 255, 0.20);
  background: rgba(8, 5, 26, 0.54);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.theme-choice.active,
.icon-choice.active {
  border-color: rgba(255, 110, 199, 0.68);
  color: var(--text);
  box-shadow: 0 0 22px rgba(255, 110, 199, 0.18);
}

.theme-orb {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(245, 246, 250, 0.14);
}

.theme-orb.cosmic {
  background: linear-gradient(135deg, #09051D, #321046);
}

.theme-orb.aurora {
  background: linear-gradient(135deg, #06203E, #2487BA, #4BDDCB);
}

.theme-orb.sunset {
  background: linear-gradient(135deg, #46104A, #D06E7E, #FFD2A6);
}

.theme-orb.lavender {
  background: linear-gradient(135deg, #4A2E87, #B68CFF, #FF6EC7);
}

.theme-choice.active .theme-orb::after,
.icon-choice.active::after {
  content: "♥";
  position: absolute;
  right: -4px;
  bottom: -5px;
  color: var(--pink);
  text-shadow: var(--pink-glow);
  font-size: 15px;
}

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

.icon-choice {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(182, 140, 255, 0.20);
  background: rgba(8, 5, 26, 0.54);
  color: var(--text);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.vault-actions {
  display: grid;
  gap: 10px;
}

.vault-button {
  position: relative;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(182, 140, 255, 0.20);
  border-radius: 20px;
  background: rgba(8, 5, 26, 0.54);
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.vault-button span,
.vault-button small {
  position: relative;
  z-index: 1;
}

.vault-button span {
  font-size: 14px;
  font-weight: 700;
}

.vault-button small {
  color: var(--text-muted);
  font-size: 11px;
}

.import-button {
  cursor: pointer;
}

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

.vault-button.danger {
  border-color: rgba(255, 110, 199, 0.32);
}

.vault-button.danger span {
  color: var(--pink);
  text-shadow: var(--pink-glow);
}

.settings-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.48;
}

.bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 20;
  max-width: 430px;
  height: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid rgba(182, 140, 255, 0.20);
  border-radius: 999px;
  background: rgba(8, 5, 26, 0.82);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 21px;
}

.nav-item.active {
  color: var(--pink);
  text-shadow: var(--pink-glow);
}

.nav-heart {
  width: 44px;
  height: 44px;
  justify-self: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.22), rgba(66, 230, 255, 0.12));
  border: 1px solid rgba(255, 110, 199, 0.35);
  color: var(--text-soft);
}

.nav-heart.active {
  color: white;
  box-shadow: var(--pink-glow);
}

.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(74px + var(--safe-bottom));
  z-index: 90;
  min-height: 42px;
  max-width: 390px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 110, 199, 0.32);
  border-radius: 999px;
  background: rgba(8, 5, 26, 0.88);
  color: var(--text-soft);
  box-shadow: var(--pink-glow);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body[data-theme="aurora"] {
  --pink: #68F5D1;
  --pink-deep: #24C6A3;
  --magenta: #2FA7D9;
  --cyan: #42E6FF;
  --lavender: #9DF8EA;
}

body[data-theme="sunset"] {
  --pink: #FF9ADB;
  --pink-deep: #F06C9B;
  --magenta: #D06E7E;
  --cyan: #FFD2A6;
  --lavender: #FFB5C8;
}

body[data-theme="lavender"] {
  --pink: #B68CFF;
  --pink-deep: #8F65E8;
  --magenta: #9C6CF2;
  --cyan: #FF9ADB;
  --lavender: #D8C8F8;
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

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

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 24px;
  }

  .nexus-app {
    width: 430px;
    min-height: 932px;
    max-height: 932px;
    border: 1px solid rgba(255, 110, 199, 0.32);
    border-radius: 36px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(66, 230, 255, 0.25) inset,
      0 30px 100px rgba(0, 0, 0, 0.64),
      0 0 36px rgba(255, 110, 199, 0.22);
  }

  .composer,
  .moment-composer,
  .bottom-nav,
  .toast {
    position: absolute;
  }
}

@media (max-height: 760px) {
  .brand-hero {
    padding-top: 10px;
  }

  .mascot-zone {
    min-height: 185px;
    margin-top: 4px;
  }

  .mascot {
    transform: scale(0.86);
  }

  .welcome-card {
    padding: 15px;
  }

  .connection-card,
  .memory-orbit,
  .nexus-profile-card {
    display: none;
  }

  .app-header {
    min-height: 54px;
  }

  .settings-panel {
    padding: 13px;
    margin-bottom: 10px;
  }

  .theme-choice {
    min-height: 76px;
  }

  .theme-orb {
    width: 38px;
    height: 38px;
  }
}
