
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111111;
  --muted: #5d6470;
  --line: #e3e6ea;
  --accent: #111111;
  --shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

main.portal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-card {
  width: min(540px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.profile-image {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0f1f3;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-bio {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.social-link:hover {
  background: #f4f5f7;
}

.exclusive-card {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 30;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

.exclusive-card-inner {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  pointer-events: none;
}

.exclusive-card-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  border: 0;
  background: #f0f1f3;
  pointer-events: none;
}

.exclusive-card-label {
  display: block;
  margin: 12px 12px 12px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  font-size: 16px;
  line-height: 44px;
  text-align: center;
  pointer-events: none;
}

.exclusive-card:active {
  transform: scale(0.985);
  opacity: 0.92;
}

@media (max-width: 420px) {
  .exclusive-card {
    max-width: 100%;
  }

  .exclusive-card-image {
    height: 160px;
  }
}

.portal-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.modal-card p,
.modal-card label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.modal-card label {
  display: block;
  text-align: left;
}

.modal-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.modal-actions button,
.external-secondary button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  min-height: 44px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.modal-actions button:first-child,
.external-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.external-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.external-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.secondary {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.form-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .profile-card {
    border-radius: 20px;
    padding: 22px;
  }

  .modal-card {
    padding: 20px;
  }

  .modal-actions,
  .external-secondary {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }
}
