/* ============================================================
   GATELARK — mobile app ("cabin day" theme)
   The app lives inside a phone frame floating in the sky on
   desktop, and goes full-bleed on real phones.
   ============================================================ */

:root {
  /* palette */
  --bg: #eaf4fe;
  --bg-2: #dcecfc;
  --card: #ffffff;
  --ink: #14315b;
  --ink-soft: #53709c;
  --ink-faint: #8aa2c4;
  --line: #dbe7f6;
  --signal: #ff6b4a;          /* coral — primary */
  --signal-deep: #ef4620;
  --amber: #ffc65c;           /* gold highlight */
  --amber-soft: #fff2d6;
  --leaf: #12a58a;            /* mint-teal success */
  --leaf-soft: #d9f4ee;
  --sky: #3d8bfd;
  --sky-soft: #e3eeff;
  --shadow: 0 4px 14px -4px rgba(30, 70, 140, 0.14), 0 14px 34px -18px rgba(30, 70, 140, 0.3);
  --font-display: "Unbounded", sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-hud: "Space Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(180deg, #2d6cc4 0%, #6ba7e8 45%, #cfe6fb 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-hud); }

/* ambient clouds behind the phone */
.bg-cloud {
  position: fixed;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(2px);
  animation: bgdrift linear infinite;
  pointer-events: none;
}

.bg-cloud::before {
  content: "";
  position: absolute;
  width: 55%; height: 160%;
  left: 16%; bottom: 18%;
  background: inherit;
  border-radius: 50%;
}

@keyframes bgdrift { from { transform: translateX(-25vw); } to { transform: translateX(125vw); } }

/* ---------------- the phone ---------------- */

.phone {
  width: min(430px, 100vw);
  height: min(900px, 100vh);
  background: #0c1a34;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 0 60px 120px -40px rgba(5, 20, 50, 0.75), inset 0 0 0 2px #2a4066;
  position: relative;
  z-index: 1;
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
}

/* status bar */
.statusbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px 8px;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.statusbar .carrier { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint); }

/* main scroll area */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 20px 110px;
  scrollbar-width: none;
}

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

/* screen slide-in on tab change */
.main.screen-in { animation: screenIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes screenIn {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- bottom tab bar ---------------- */

.tabbar {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(20, 49, 91, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 26px;
  display: flex;
  justify-content: space-around;
  padding: 9px 6px;
  z-index: 40;
  box-shadow: 0 16px 34px -12px rgba(10, 30, 70, 0.6);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 16px;
  position: relative;
  transition: color 0.2s, transform 0.15s;
}

.nav-item .ico { font-size: 19px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-item:active .ico { transform: scale(0.82); }

.nav-item.active { color: #fff; }
.nav-item.active .ico { transform: translateY(-3px) scale(1.15); }

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 16px; height: 3px;
  border-radius: 3px;
  background: var(--amber);
}

.nav-item .pip {
  position: absolute;
  top: -2px; right: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(20, 49, 91, 0.95);
  animation: pipIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pipIn { from { transform: scale(0); } }

/* ---------------- shared atoms ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 13px 22px;
  border: none;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
  user-select: none;
}

.btn:active { transform: scale(0.95); }

.btn-primary {
  background: linear-gradient(125deg, var(--signal), var(--signal-deep));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255, 107, 74, 0.65);
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 49, 91, 0.6); }

.btn-ghost { background: var(--sky-soft); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: #d3e5ff; }

.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.icon-btn {
  border: none;
  background: var(--sky-soft);
  border-radius: 12px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}

.icon-btn:active { transform: scale(0.85); }
.icon-btn.danger { background: #ffe8e2; }
.icon-btn.danger:hover { background: #ffd6cc; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sky-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------------- page head ---------------- */

.page-head { padding: 12px 2px 4px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }

.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; }

.page-head .crumb {
  font-family: var(--font-hud);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--signal);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-head p.hint { color: var(--ink-soft); font-size: 12.5px; margin-top: 6px; font-weight: 400; }

/* radar (matches screen) */
.radar-mini {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(61, 139, 253, 0.45);
  position: relative;
  flex-shrink: 0;
  background: radial-gradient(circle, transparent 46%, rgba(61, 139, 253, 0.12) 47% 50%, transparent 51%);
}

.radar-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61, 139, 253, 0.55), transparent 28%);
  animation: sweep 2.8s linear infinite;
}

.radar-mini::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  top: 26%; left: 60%;
  animation: pulse 2.8s infinite;
}

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

/* ---------------- trip cards (ticket style) ---------------- */

.trip-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } }

.trip-main { padding: 18px 20px 14px; }

.trip-route { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }

.trip-route .iata { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

.trip-route .path {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-faint) 0 5px, transparent 5px 11px);
  position: relative;
  min-width: 50px;
}

.trip-route .path::after {
  content: "✈";
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-54%);
  background: var(--card);
  padding: 0 7px;
  color: var(--signal);
  font-size: 14px;
  animation: pathfly 3.2s ease-in-out infinite alternate;
}

@keyframes pathfly { from { left: 4%; } to { left: 78%; } }

.trip-meta { display: flex; gap: 7px; flex-wrap: wrap; }

.chip {
  font-family: var(--font-hud);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--ink-soft);
}

.chip.hot { background: var(--amber-soft); color: #9a6a08; }

.trip-stub {
  border-top: 2px dashed var(--line);
  background: linear-gradient(90deg, var(--sky-soft), var(--card));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  position: relative;
}

.trip-stub::before, .trip-stub::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
}

.trip-stub::before { left: -8px; }
.trip-stub::after { right: -8px; }

.trip-stub .count { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--signal); }
.trip-stub .lbl { font-family: var(--font-hud); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); line-height: 1.4; flex: 1; }

/* ---------------- match cards ---------------- */

.match-card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 13px;
  align-items: flex-start;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.match-card:nth-child(2) { animation-delay: 0.06s; }
.match-card:nth-child(3) { animation-delay: 0.12s; }
.match-card:nth-child(4) { animation-delay: 0.18s; }
.match-card:nth-child(5) { animation-delay: 0.24s; }

.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.22), 0 4px 10px -3px rgba(20, 49, 91, 0.35);
}

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

.match-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; flex-wrap: wrap; }

.badge {
  font-family: var(--font-hud);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge.verified { background: var(--leaf-soft); color: var(--leaf); }
.badge.purpose { background: var(--sky-soft); color: var(--ink-soft); }

.match-bio { font-size: 12px; color: var(--ink-soft); margin: 5px 0 9px; }

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

.reason {
  font-family: var(--font-hud);
  font-size: 9.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
}

.reason.r-flight { background: #ffe4dc; color: var(--signal-deep); }
.reason.r-window { background: var(--amber-soft); color: #9a6a08; }
.reason.r-dest { background: var(--leaf-soft); color: var(--leaf); }
.reason.r-taxi { background: var(--sky-soft); color: var(--sky); }

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

.match-score { text-align: center; flex-shrink: 0; font-family: var(--font-hud); }
.match-score .num { font-size: 19px; font-weight: 700; color: var(--signal); display: block; }
.match-score .of { font-size: 8px; color: var(--ink-faint); letter-spacing: 0.12em; }

/* ---------------- forms ---------------- */

.form-card { background: var(--card); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-hud);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input, .field select, .field textarea {
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--sky-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sky);
  background: #fff;
}

.field .help { font-size: 10.5px; color: var(--ink-faint); }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--sky-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}

.check-row:hover { background: #d8e8ff; }
.check-row input { accent-color: var(--signal); width: 17px; height: 17px; flex-shrink: 0; }

/* ---------------- requests ---------------- */

.req-card {
  background: var(--card);
  border-radius: 22px;
  padding: 15px 16px;
  margin-bottom: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  animation: cardIn 0.45s ease backwards;
  flex-wrap: wrap;
}

.req-card .msg {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  background: var(--amber-soft);
  padding: 8px 12px;
  border-radius: 4px 14px 14px 14px;
  margin-top: 7px;
}

/* ---------------- chat ---------------- */

.chat-layout {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: calc(100% - 70px);
  min-height: 420px;
}

.chat-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 10px 12px; gap: 6px; flex-shrink: 0; scrollbar-width: none; }
.chat-list::-webkit-scrollbar { display: none; }

.chat-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.chat-list-item:hover { background: var(--sky-soft); }
.chat-list-item.active { background: var(--amber-soft); }

.chat-list-item .avatar { width: 38px; height: 38px; font-size: 14px; }
.chat-list-item .who { font-weight: 600; font-size: 10.5px; display: flex; gap: 4px; align-items: center; }
.chat-list-item .last { display: none; }

.chat-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }

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

.chat-head .avatar { width: 36px; height: 36px; font-size: 14px; }
.chat-head .who { font-weight: 700; font-size: 14px; }
.chat-head .sub { font-family: var(--font-hud); font-size: 8px; color: var(--ink-faint); letter-spacing: 0.06em; }
.chat-head .spacer { flex: 1; }

.safety-banner {
  background: var(--amber-soft);
  padding: 7px 15px;
  font-size: 10.5px;
  color: #8a5f06;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(100% 40% at 50% 0%, var(--sky-soft), transparent 70%),
    #f6faff;
}

.bubble {
  max-width: 76%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13px;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(0.9); } }

.bubble.me {
  align-self: flex-end;
  background: linear-gradient(125deg, var(--sky), #2f6fd8);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble.them { align-self: flex-start; background: var(--card); box-shadow: 0 2px 8px -2px rgba(30, 70, 140, 0.18); border-bottom-left-radius: 5px; }
.bubble .time { display: block; font-family: var(--font-hud); font-size: 8px; opacity: 0.6; margin-top: 3px; }

.typing { display: inline-flex; gap: 4px; padding: 12px 15px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: bob 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes bob { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex-shrink: 0; }

.chat-input input {
  flex: 1;
  padding: 11px 15px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  background: var(--sky-soft);
  outline: none;
  min-width: 0;
}

.chat-input input:focus { border-color: var(--sky); background: #fff; }

/* ---------------- empty states ---------------- */

.empty {
  text-align: center;
  padding: 48px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed #bcd4ef;
  color: var(--ink-soft);
}

.empty .big { font-size: 40px; margin-bottom: 12px; display: inline-block; animation: hover-soft 3.5s ease-in-out infinite; }

@keyframes hover-soft { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }

.empty h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 7px; color: var(--ink); }
.empty p { font-size: 12.5px; max-width: 40ch; margin: 0 auto 16px; }

/* ---------------- toasts (drop from top of phone) ---------------- */

.toast-wrap {
  position: absolute;
  top: 52px; left: 14px; right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 18px 34px -12px rgba(10, 30, 70, 0.6);
  display: flex;
  gap: 9px;
  align-items: center;
  animation: toastIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.toast.out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-30px) scale(0.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px); } }

/* ---------------- modal → bottom sheet ---------------- */

.modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 60, 0.5);
  backdrop-filter: blur(3px);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  animation: veilIn 0.25s ease;
  border-radius: 44px;
}

@keyframes veilIn { from { opacity: 0; } }

.modal {
  background: var(--card);
  border-radius: 30px 30px 44px 44px;
  padding: 26px 22px 30px;
  width: 100%;
  max-height: 86%;
  overflow-y: auto;
  animation: sheetUp 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
}

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

/* grab handle */
.modal::before {
  content: "";
  display: block;
  width: 44px; height: 5px;
  border-radius: 5px;
  background: var(--line);
  margin: -6px auto 18px;
}

@keyframes sheetUp { from { transform: translateY(100%); } }

.modal h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 5px; }
.modal .modal-sub { color: var(--ink-soft); font-size: 12.5px; margin-bottom: 18px; }

/* ---------------- misc sections ---------------- */

.section-label {
  font-family: var(--font-hud);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after { content: ""; flex: 1; height: 1px; background: #c8dcf2; }

.rule-card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 11px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--amber);
  animation: cardIn 0.45s ease backwards;
}

.rule-card:nth-child(even) { border-left-color: var(--signal); }
.rule-card h3 { font-size: 14.5px; margin-bottom: 4px; font-weight: 700; }
.rule-card p { font-size: 12px; color: var(--ink-soft); }

.profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, var(--ink), #24549b);
  color: #fff;
  border-radius: 26px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* mini plane crossing the profile card */
.profile-hero::after {
  content: "✈";
  position: absolute;
  top: 16%; left: -8%;
  font-size: 14px;
  opacity: 0.5;
  animation: crossCard 7s linear infinite;
}

@keyframes crossCard { to { left: 108%; top: 6%; } }

.profile-hero .avatar { width: 64px; height: 64px; font-size: 24px; }
.profile-hero .match-bio { color: rgba(255, 255, 255, 0.75); }
.profile-hero .mono { color: rgba(255, 255, 255, 0.55); }
.profile-hero .badge.verified { background: rgba(255, 255, 255, 0.16); color: #a9f4e3; }
.profile-hero .badge.purpose { background: rgba(255, 255, 255, 0.16); color: #ffd98f; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }

.stat {
  background: var(--card);
  border-radius: 18px;
  padding: 13px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat .num { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--signal); display: block; }
.stat .lbl { font-family: var(--font-hud); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------------- paper-plane send effect ---------------- */

.fly-plane {
  position: absolute;
  z-index: 95;
  font-size: 26px;
  left: 8%;
  bottom: 18%;
  pointer-events: none;
  animation: sendPlane 1.1s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  filter: drop-shadow(0 4px 8px rgba(20, 49, 91, 0.4));
}

@keyframes sendPlane {
  0%   { transform: translate(0, 0) rotate(18deg) scale(0.7); opacity: 0; }
  12%  { opacity: 1; }
  55%  { transform: translate(160px, -220px) rotate(-8deg) scale(1.1); opacity: 1; }
  100% { transform: translate(330px, -480px) rotate(-20deg) scale(0.8); opacity: 0; }
}

/* ---------------- full-bleed on real phones ---------------- */

@media (max-width: 500px), (max-height: 720px) {
  body { display: block; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .modal-veil { border-radius: 0; }
  .modal { border-radius: 30px 30px 0 0; }
  .bg-cloud { display: none; }
}

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