/* The Fumba Haven — host card, dark edition */
:root {
  --rausch: #ff395c;
  --rausch-deep: #e01e48;
  --arches: #fc642d;
  --beach: #ffb400;
  --babu: #00a699;
  --kazan: #007a87;

  --bg: #050505;
  --panel: #161618;
  --panel-2: #1d1d20;
  --pill: #0a0a0b;
  --stroke: rgba(255, 255, 255, .09);
  --stroke-2: rgba(255, 255, 255, .16);
  --text: #f5f5f5;
  --muted: #a3a3a8;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(520px 380px at 50% -80px, rgba(255, 57, 92, .28), transparent 70%),
    radial-gradient(420px 320px at 100% 100%, rgba(0, 166, 153, .14), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  display: grid;
  justify-items: center;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rausch); outline-offset: 3px; }

.shell {
  width: min(100%, 460px);
  padding: 20px 16px 28px;
}
@media (min-width: 600px) { .shell { padding-top: 48px; } }

/* ---------- Header: mark + avatar ---------- */
.top {
  position: relative;
  height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  padding-top: 6px;
}
.mark .door {
  width: 34px; height: 42px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--rausch) 0 55%, var(--babu) 55%);
  position: relative;
  box-shadow: 0 0 0 1px var(--stroke-2), 0 6px 18px -6px rgba(255, 57, 92, .7);
}
.mark .door::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .55);
}
.mark b {
  display: block;
  font-family: var(--display);
  font-size: 15px; line-height: 1.05; letter-spacing: -.01em;
}
.mark span { font-size: 12px; color: var(--muted); }

.avatar {
  position: absolute;
  right: 12px; top: 0;
  z-index: 2;
  width: 152px; height: 152px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 210deg, var(--rausch), var(--arches), var(--beach), var(--babu), var(--rausch));
  box-shadow: 0 20px 40px -14px rgba(255, 57, 92, .55);
}
.avatar > * {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg);
}
.avatar img { object-fit: cover; display: block; }
.avatar .initials {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 55%),
    linear-gradient(160deg, var(--rausch) 0%, var(--rausch-deep) 60%, #9c0f33 100%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 54px;
  letter-spacing: -.04em;
  color: #fff;
}

/* ---------- Panel ---------- */
.panel {
  position: relative;
  margin-top: -24px;
  padding: 44px 18px 22px;
  border-radius: 24px;
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 40%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  animation: up .8s var(--ease) both;
}
.id { text-align: center; }
h1 {
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}
h1 svg { width: 22px; height: 22px; flex: none; }
.role { margin: 6px 0 0; font-weight: 600; font-size: 15px; color: #e6e6e6; }
.loc {
  margin: 6px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.loc svg { width: 14px; height: 14px; color: var(--rausch); }

/* two main buttons */
.duo {
  margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.duo > * {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 12px;
  border-radius: 14px;
  font-weight: 600; font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--ease), filter .2s;
}
.duo svg { width: 18px; height: 18px; flex: none; }
.duo .save {
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, #232326, #111113);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.duo .book {
  border: 0;
  background: linear-gradient(135deg, var(--rausch), var(--rausch-deep));
  box-shadow: 0 12px 26px -10px rgba(255, 57, 92, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.duo > *:hover { filter: brightness(1.1); }
.duo > *:active { transform: scale(.98); }

/* spotlight + action pills */
.actions {
  position: relative;
  margin: 22px -18px 0;
  padding: 22px 18px 4px;
  border-top: 1px solid var(--stroke);
  background: radial-gradient(260px 220px at 50% 40%, rgba(255, 255, 255, .08), transparent 75%);
  display: grid; gap: 10px;
  list-style: none;
}
.actions a, .actions button {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 18px -10px rgba(0, 0, 0, .9);
  font-size: 16px; font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .15s var(--ease);
}
.actions a:hover, .actions button:hover { border-color: rgba(255, 57, 92, .55); background: #111113; }
.actions a:active, .actions button:active { transform: scale(.99); }
.actions .ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
}
.actions .ic svg { width: 18px; height: 18px; }
.actions .go { justify-self: end; margin-right: 6px; width: 16px; height: 16px; color: #6b6b70; }
.actions .wa .ic { color: #25d366; }
.actions .call .ic { color: var(--babu); }
.actions .mail .ic { color: var(--arches); }
.actions .list .ic { color: var(--rausch); }
.actions .map .ic { color: var(--beach); }

/* social row */
.social {
  margin: 26px 0 4px;
  display: flex; justify-content: center; gap: 14px;
}
.social a {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  color: #8f8f95;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .03);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social svg { width: 24px; height: 24px; }
.social a:hover { color: #fff; border-color: var(--rausch); background: rgba(255, 57, 92, .12); }

/* qr strip */
.qr {
  margin-top: 16px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .03);
}
.qr .code {
  width: 76px; height: 76px; flex: none;
  padding: 7px; border-radius: 10px; background: #fff;
}
.qr img { width: 100%; height: 100%; display: block; }
.qr b { display: block; font-size: 15px; }
.qr span { font-size: 13px; color: var(--muted); }

footer {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: #6f6f75;
}
footer svg { width: 12px; height: 12px; }
footer a { color: #b5b5ba; }
footer a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10;
  translate: -50% 20px;
  padding: 12px 18px; border-radius: 999px;
  background: #fff; color: #111;
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, translate .25s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 380px) {
  .avatar { width: 128px; height: 128px; right: 4px; }
  .avatar .initials { font-size: 46px; }
  .top { height: 108px; }
  .duo > * { font-size: 14px; }
  .social { gap: 10px; }
  .social a { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
