:root {
  --wine: #6b2f3f;
  --wine-dark: #4f1f2d;
  --rose: #d99aa7;
  --cream: #fff8f1;
  --white: #ffffff;
  --text: #3c2930;
  --muted: #806b72;
  --shadow: 0 18px 50px rgba(78, 31, 45, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(160deg, #fff7f2 0%, #f8e8e5 45%, #efd4d8 100%);
  color: var(--text);
  overflow-x: hidden;
}

.background-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .45;
  z-index: 0;
}

.shape-one {
  width: 260px;
  height: 260px;
  background: #e6a8b3;
  top: -90px;
  right: -70px;
}

.shape-two {
  width: 220px;
  height: 220px;
  background: #f2c9a5;
  bottom: -80px;
  left: -70px;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
}

.profile-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.logo-wrap {
  width: 118px;
  height: 118px;
  margin: 2px auto 16px;
  border-radius: 50%;
  padding: 6px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}

.logo, .logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
  place-items: center;
  background: linear-gradient(145deg, var(--wine), var(--rose));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 8vw, 43px);
  color: var(--wine-dark);
  letter-spacing: 1px;
}

.subtitle {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-bottom: 21px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.72);
  box-shadow: 0 7px 18px rgba(78,31,45,.08);
}

.status.open::before, .status.closed::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.open::before { background: #28a745; }
.status.closed::before { background: #d9534f; }

.links {
  display: grid;
  gap: 13px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(107,47,63,.08);
  border-radius: 19px;
  box-shadow: 0 10px 26px rgba(80,36,49,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 32px rgba(80,36,49,.16);
  border-color: rgba(107,47,63,.24);
}

.link-card.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: rgba(217,154,167,.18);
  border-radius: 13px;
  font-size: 22px;
}

.primary .icon { background: rgba(255,255,255,.14); }

.link-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: left;
}

.link-text strong { font-size: 15px; }
.link-text small { margin-top: 2px; font-size: 11px; opacity: .72; }
.arrow { font-size: 29px; line-height: 1; opacity: .6; }

.share-button {
  margin-top: 18px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wine-dark);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(78,31,45,.08);
}

footer {
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
}

footer p { margin: 3px 0; }
.footer-note { opacity: .72; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 5;
  transform: translate(-50%, 20px);
  padding: 10px 15px;
  border-radius: 12px;
  color: #fff;
  background: var(--wine-dark);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 390px) {
  .page { padding-inline: 12px; }
  .link-card { padding: 13px 14px; }
  .link-text strong { font-size: 14px; }
}
