/* ==========================================================================
   Esells Academy Global — Digital Business Card
   ========================================================================== */

/* Poppins (SIL OFL 1.1), self-hosted latin subset — see assets/fonts/OFL.txt */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #060607;
  --bg-2: #0d0d10;
  --ink: #f5f5f7;
  --ink-2: #c8c8cf;
  --muted: #8a8a94;
  --faint: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --white: #ffffff;
  --silver: #d9d9df;
  --pink: #ed1e79;
  --pink-hi: #ff5aa0;
  --purple: #47055c;
  --violet: #7a2c96;        /* the logo purple, lifted to read on black */

  --radius-xl: 30px;
  --radius-pill: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 18px;
  --stage: 300px;
  --disc: 164px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(110% 55% at 50% -8%, #1d1022 0%, rgba(29, 16, 34, 0) 62%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 45%, #030304 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Ambient light ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; contain: strict; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow--a {
  width: 560px; height: 560px; top: -260px; left: 50%; margin-left: -280px;
  background: radial-gradient(closest-side, rgba(122, 44, 150, 0.42), rgba(122, 44, 150, 0));
  animation: breathe 9s ease-in-out infinite alternate;
}
.glow--b {
  width: 480px; height: 480px; bottom: -240px; right: -240px;
  background: radial-gradient(closest-side, rgba(237, 30, 121, 0.16), rgba(237, 30, 121, 0));
  animation: drift 24s ease-in-out infinite alternate;
}
/* Ruled learning grid: fine lines that fade out from the header */
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 42% at 50% 12%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 42% at 50% 12%, #000 0%, transparent 78%);
}
@keyframes breathe { from { opacity: 0.7; transform: scale(0.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes drift { to { transform: translate3d(-80px, -60px, 0) scale(1.1); } }

/* ---------- Card shell ---------- */
.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) max(22px, env(safe-area-inset-bottom));
}

/* ---------- A. Brand header ---------- */
.brand {
  position: relative;
  display: grid; place-items: center;
  height: calc(var(--stage) * 0.8);
}
.brand__stage {
  position: absolute; left: 50%; top: 50%;
  width: var(--stage); height: var(--stage);
  margin: calc(var(--stage) / -2) 0 0 calc(var(--stage) / -2);
  pointer-events: none;
  will-change: transform, opacity;
}
.halo {
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(237, 30, 121, 0.28), rgba(122, 44, 150, 0.12) 55%, transparent);
  filter: blur(6px);
  animation: halo-on 1.6s var(--ease) 0.1s both;
}
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc { fill: none; stroke: #fff; stroke-linecap: round; transform-origin: 160px 160px; }
.arc--outer { stroke-width: 0.8; stroke-opacity: 0.16; stroke-dasharray: 2 7; animation: spin 90s linear infinite; }
.arc--mid { stroke: var(--pink); stroke-width: 1.4; stroke-opacity: 0.9; stroke-dasharray: 180 560; animation: spin 26s linear infinite, draw 1.8s var(--ease) 0.2s both; }
.arc--inner { stroke-width: 0.9; stroke-opacity: 0.12; }
.arc__dot { fill: var(--pink-hi); opacity: 0.95; transform-origin: 160px 160px; animation: spin 26s linear infinite reverse; }

.deco { position: absolute; stroke: #fff; fill: none; }
.deco--bubble { width: 22px; height: 22px; left: 8%; top: 22%; opacity: 0.32; animation: float 7s ease-in-out infinite; }
.deco--plus-a { width: 12px; height: 12px; right: 12%; top: 18%; opacity: 0.35; animation: twinkle 5s ease-in-out 0.8s infinite; }
.deco--plus-b { width: 9px; height: 9px; left: 16%; bottom: 20%; opacity: 0.28; animation: twinkle 6s ease-in-out 2s infinite; }
.deco--ring { width: 14px; height: 14px; right: 9%; bottom: 25%; opacity: 0.26; animation: float 8s ease-in-out 1.2s infinite; }

.medallion {
  position: relative; z-index: 2; margin: 0; line-height: 0;
  width: var(--disc); height: var(--disc); border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 26%, #ffffff 0%, #fbf9fc 55%, #ece6ef 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 7px rgba(255, 255, 255, 0.05),
    0 24px 50px -16px rgba(0, 0, 0, 0.85),
    0 0 70px -6px rgba(122, 44, 150, 0.65);
  overflow: hidden;
  animation: logo-in 1.1s var(--ease-spring) 0.15s both;
}
.medallion__logo { width: 85.5%; height: auto; }   /* image is centred on the logo's arc (make_assets.py) */
/* A soft light sweep crosses the medallion once after it lands */
.medallion::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.75) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 1.5s var(--ease) 1.1s both;
  pointer-events: none;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.8); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes halo-on { from { opacity: 0; transform: scale(0.7); } }
@keyframes draw { from { stroke-dasharray: 0 740; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 0.35; } 50% { transform: scale(0.7) rotate(45deg); opacity: 0.15; } }

/* ---------- Panel ---------- */
.panel {
  position: relative;
  margin-top: 2px;
  padding: 22px 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 30, 35, 0.66) 0%, rgba(14, 14, 17, 0.84) 44%, rgba(8, 8, 10, 0.92) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.panel::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-hi), transparent);
}

.profile { text-align: center; }
.profile__eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--pink-hi);
}
.profile__name {
  margin-top: 8px;
  font-size: clamp(22px, 6.6vw, 27px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 35%, #b9b9c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile__role { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.01em; }
.profile__motto {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white);
}
.profile__motto span { position: relative; padding-right: 0.3em; }
.profile__motto span + span::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--pink);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 14px;
  border-radius: 16px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 18px; height: 18px; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* The one solid call to action, in the logo's pink */
.btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hi) 0%, var(--pink) 48%, #b8125d 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px -14px rgba(237, 30, 121, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 600;
}
.btn--solid::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position 0.8s var(--ease);
}
.btn--block { width: 100%; }

@media (hover: hover) {
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 90, 160, 0.5); }
  .btn--solid:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(237, 30, 121, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  .btn--solid:hover::after { background-position: -20% 0; }
}

.primary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 10px; margin-top: 20px; }
.primary .btn { padding: 0 10px; font-size: 13.5px; }

.rule {
  height: 1px; margin: 18px -16px 16px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- D. Action pills ---------- */
.actions { position: relative; display: grid; gap: 10px; }
.actions::before {
  content: ""; position: absolute; inset: -10% -6% -4%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 30%, rgba(122, 44, 150, 0.18), transparent 70%);
}

.pill {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  width: 100%; min-height: 62px; padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #121215 0%, #070708 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.pill[hidden] { display: none; }
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(170px circle at var(--x) var(--y), rgba(237, 30, 121, 0.16), transparent 70%);
  transition: opacity 0.35s var(--ease);
}
.pill__icon {
  grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 90, 160, 0.32);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease-spring);
}
.pill__icon .ico { width: 19px; height: 19px; }
.pill__label { grid-column: 2; grid-row: 1; font-size: 15.5px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.25; color: var(--ink); }
.pill__meta {
  grid-column: 2; grid-row: 2; margin-top: 1px;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pill:active { transform: scale(0.982); }
.pill:active .pill__icon { transform: scale(0.9); }
.pill:focus-visible::before { opacity: 1; }

@media (hover: hover) {
  .pill:hover { border-color: rgba(255, 90, 160, 0.42); transform: translateY(-1px); box-shadow: 0 18px 32px -20px rgba(237, 30, 121, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09); }
  .pill:hover::before { opacity: 1; }
  .pill:hover .pill__icon { background: var(--pink); border-color: var(--pink); color: #fff; transform: rotate(-8deg) scale(1.06); }
}
.pill.is-pressed::before { opacity: 1; }
.pill.is-pressed .pill__icon { background: var(--pink); color: #fff; }

/* ---------- E. Socials ---------- */
.socials { margin-top: 22px; }
.socials__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.social {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease-spring);
}
.social .ico { width: 22px; height: 22px; }
.social:active { transform: scale(0.92); }
@media (hover: hover) {
  .social:hover { color: #fff; background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }
}

/* ---------- F. Utilities ---------- */
.utils { margin-top: 18px; }
.utils__row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 15px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.chip .ico { width: 16px; height: 16px; color: var(--pink-hi); }
.chip:active { transform: scale(0.96); }
@media (hover: hover) { .chip:hover { color: #fff; border-color: rgba(255, 90, 160, 0.45); background: rgba(255, 255, 255, 0.07); } }

.details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.details summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 0 16px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; list-style: none; border-radius: 18px;
}
.details summary::-webkit-details-marker { display: none; }
.ico--chev { width: 18px; height: 18px; color: var(--muted); transition: transform 0.35s var(--ease); }
.details[open] .ico--chev { transform: rotate(180deg); }
.details__body { padding: 0 8px 12px; }
.details[open] .details__body { animation: fade-down 0.35s var(--ease) both; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.info { display: grid; gap: 2px; }
.info__row {
  display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 4px;
  padding: 6px 4px 6px 8px; border-radius: 12px;
}
.info__row > .ico { width: 17px; height: 17px; color: var(--pink-hi); }
.info__text { min-width: 0; }
.info__label { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info__value { display: block; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.info__value[href] { transition: color 0.2s; }
@media (hover: hover) { .info__value[href]:hover { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; } }
.copy-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
  transition: color 0.2s, background-color 0.2s, transform 0.2s;
}
.copy-btn .ico { width: 17px; height: 17px; }
.copy-btn:active { transform: scale(0.9); }
@media (hover: hover) { .copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); } }
.copy-btn.is-done { color: var(--pink-hi); }
.copy-btn.is-done .ico { animation: pop 0.4s var(--ease-spring); }
@keyframes pop { from { transform: scale(0.5); } to { transform: scale(1); } }

/* ---------- Footer ---------- */
.foot { margin-top: 24px; display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 6px 10px; border-radius: 10px; }
.foot a .ico { width: 14px; height: 14px; color: var(--pink-hi); }
.foot small { font-size: 11px; letter-spacing: 0.04em; }

/* ---------- Dialogs ---------- */
/* Closed sheets must never render, even where the browser has no native <dialog> styles */
dialog:not([open]) { display: none !important; }
.sheet {
  width: 100%; max-width: 440px; max-height: 88vh; max-height: 88dvh;
  margin: auto auto 0; padding: 0;
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1b1420 0%, #0a0a0c 100%);
  color: var(--ink);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.85);
  overflow: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-in 0.45s var(--ease) both; }
.sheet.is-closing { animation: sheet-out 0.25s ease-in both; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Fallback modal for browsers without <dialog> (explicit offsets: old Safari lacks `inset`) */
.sheet.is-fallback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
.sheet-backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 59;
  background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease both;
}
.sheet-backdrop.is-closing { animation: fade-out 0.25s ease both; }
.sheet[open]::backdrop { animation: fade-in 0.3s ease both; }
.sheet.is-closing::backdrop { animation: fade-out 0.25s ease both; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-out { to { transform: translateY(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.sheet__inner { padding: 10px 18px max(20px, env(safe-area-inset-bottom)); }
.sheet__grip { width: 38px; height: 4px; border-radius: 4px; margin: 0 auto 12px; background: rgba(255, 255, 255, 0.2); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet__eyebrow { font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink-hi); }
.sheet h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.sheet__text { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.sheet__label { margin: 18px 0 10px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  transition: background-color 0.2s, transform 0.2s;
}
.icon-btn:active { transform: scale(0.92); }
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, 0.14); } }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.area {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; line-height: 1.3;
}
.sheet[open] .area { animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 40ms + 140ms); }
.area__num { font-size: 10.5px; font-weight: 600; color: var(--pink-hi); letter-spacing: 0.06em; }

.qr { display: grid; justify-items: center; gap: 12px; margin: 4px 0 18px; }
.qr__frame {
  width: min(250px, 72vw); aspect-ratio: 1;
  padding: 14px; border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 90, 160, 0.55), 0 24px 60px -20px rgba(122, 44, 150, 0.8);
}
.sheet[open] .qr__frame { animation: qr-in 0.6s var(--ease-spring) 0.1s both; }
@keyframes qr-in { from { transform: scale(0.88) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.qr__frame svg { width: 100%; height: 100%; }
.qr__url { font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.qr__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr__share { grid-column: 1 / -1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px 11px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgba(24, 24, 28, 0.94);
  border: 1px solid rgba(255, 90, 160, 0.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease);
}
.toast .ico { width: 16px; height: 16px; color: var(--pink-hi); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
/* Keep the toast above an open modal dialog */
dialog .toast { position: fixed; }

/* ---------- Entrance choreography ---------- */
.reveal { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 260ms); }
/* Pills and lower sections rise in as they reach the viewport (class added by app.js) */
.js-scroll .pill, .js-scroll .scroll-in { opacity: 0; transform: translateY(14px); }
.js-scroll .pill.is-in, .js-scroll .scroll-in.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms), 0s, 0s;
}
.js-scroll .pill.is-in:active { transform: scale(0.982); transition-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 359px) {
  :root { --gutter: 12px; --stage: 260px; --disc: 144px; }
  .panel { padding-left: 12px; padding-right: 12px; }
  .primary { grid-template-columns: 1fr; }
  .rule { margin-left: -12px; margin-right: -12px; }
  .pill { grid-template-columns: 38px 1fr 20px; min-height: 58px; }
  .pill__label { font-size: 14.5px; }
  .profile__motto { letter-spacing: 0.22em; }
  .areas { grid-template-columns: 1fr; }
  .deco--plus-b, .deco--ring { display: none; }
}
@media (min-width: 360px) and (max-width: 389px) {
  .primary .btn .ico { display: none; }
}
@media (min-width: 400px) {
  :root { --stage: 320px; --disc: 176px; }
}
@media (min-width: 600px) {
  body { display: grid; place-items: center; padding: 40px 0; }
  .card {
    padding: 22px 24px 26px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.5), rgba(6, 6, 8, 0.72));
    border: 1px solid var(--line);
    box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(237, 30, 121, 0.06) inset;
  }
  .sheet { margin: auto; border-radius: 28px; border-bottom: 1px solid var(--line-2); }
  .sheet[open] { animation-name: modal-in; }
  @keyframes modal-in { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .glow, .arc, .arc__dot, .deco { animation: none !important; }
  .medallion::after { display: none; }
}
