:root {
  --bg: #110E0E;
  --card: #1B1617;
  --card-soft: #241D1F;
  --border: rgba(255, 240, 235, 0.10);
  --text: #FAF5F0;
  --muted: #B8AAA5;
  --accent: #E2556B;
  --accent-top: #E05268;
  --accent-bottom: #C93B52;
  --green: #34D399;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 85, 107, 0.14), transparent 52%),
    radial-gradient(circle at 80% 90%, rgba(212, 163, 115, 0.08), transparent 46%);
}

.webview-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 0 12px;
  pointer-events: none;
}

.webview-banner[hidden] {
  display: none;
}

.webview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 22, 23, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 240, 235, 0.16);
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.webview-banner.is-highlighted .webview-pill {
  border-color: rgba(226, 85, 107, 0.85);
  transform: scale(1.02);
}

.webview-text .dots {
  letter-spacing: 1px;
  color: #FFFFFF;
}

.webview-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(226, 85, 107, 0.22);
  color: #FF94A4;
  font-weight: 700;
  font-size: 13px;
  animation: nudgeUpRight 1.4s ease-in-out infinite;
}

@keyframes nudgeUpRight {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -3px);
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 14px 20px;
}

.shell.no-banner {
  padding-top: 20px;
}

.profile-card {
  width: 100%;
  max-width: 410px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 375;
  background: #141011;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 22, 23, 0.04) 40%, rgba(27, 22, 23, 0.96) 100%);
}

.card-body {
  position: relative;
  padding: 0 20px 18px;
  margin-top: -38px;
}

.avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar-frame {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, rgba(255, 240, 235, 0.26), rgba(226, 85, 107, 0.5));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card);
}

.online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid var(--card);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.24);
  color: #D9FCEB;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.profile-bio {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.48;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.14s ease, border-color 0.2s ease, filter 0.2s ease;
}

.cta-btn:active,
.cta-btn.is-holding {
  transform: scale(0.985);
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent-top), var(--accent-bottom));
  border: 1px solid rgba(255, 220, 225, 0.22);
  box-shadow: 0 10px 26px rgba(201, 59, 82, 0.34);
}

.cta-secondary {
  background: rgba(255, 240, 235, 0.05);
  border: 1px solid rgba(255, 240, 235, 0.14);
}

.cta-secondary:hover {
  border-color: rgba(255, 240, 235, 0.26);
}

.hold-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transition: width 0.12s linear;
}

.cta-btn.is-holding .hold-progress {
  width: 100%;
  transition: width 1.8s linear;
}

.cta-btn.is-hold-done .hold-progress {
  width: 100%;
  background: rgba(52, 211, 153, 0.28);
  transition: background-color 0.2s ease;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cta-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cta-sub {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 245, 242, 0.86);
}

.cta-secondary .cta-sub {
  color: var(--muted);
}

.cta-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 15px;
  font-weight: 600;
}

.cta-secondary .cta-arrow {
  background: rgba(255, 240, 235, 0.07);
}

.card-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(184, 170, 165, 0.72);
}

@media (max-width: 380px) {
  .card-body {
    padding: 0 16px 16px;
  }

  .avatar-frame {
    width: 80px;
    height: 80px;
  }

  .status-pill {
    font-size: 11px;
    padding: 5px 9px;
  }
}
