:root {
  --card-bg: #08080a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --card-radius: 26px;
  --tile-radius: 16px;
}

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

html,
body {
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0b0b0d;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fullscreen blurred backdrop */
.page-backdrop {
  position: fixed;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.65);
  transform: scale(1.06);
  z-index: 0;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.68) 100%
  );
  z-index: 1;
}

/* Centering wrapper */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  gap: 14px;
}

/* Main dark card */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  padding-bottom: 14px;
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.lang-btn:hover {
  background: rgba(20, 20, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.8;
  transition: transform 0.18s ease;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  list-style: none;
  background: rgba(16, 16, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.lang-option.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

.lang-option-code {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Hero image + fade */
.hero {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: #141418;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0) 38%,
    rgba(8, 8, 10, 0.72) 76%,
    var(--card-bg) 100%
  );
  pointer-events: none;
}

.hero-identity {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-handle {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Socials + follower counter */
.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 16px;
  gap: 12px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.social-btn:active {
  transform: scale(0.95);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Followers dropdown */
.followers-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.followers-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.followers-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.followers-toggle .chevron {
  width: 13px;
  height: 13px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.followers-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.followers-panel {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 8px 12px;
}

.followers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.followers-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.followers-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}

.link-tile {
  position: relative;
  display: block;
  border-radius: var(--tile-radius);
  overflow: hidden;
  text-decoration: none;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 4.4;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.link-tile.is-full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10.5;
}

.link-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
}

.link-tile:active {
  transform: scale(0.985);
}

.link-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.35s ease;
}

.link-tile:hover .link-tile-img {
  transform: scale(1.04);
}

.link-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.link-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.link-tile-badge svg {
  width: 13px;
  height: 13px;
  display: block;
}

.link-tile-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Footer attribution pill */
.page-footer {
  display: flex;
  justify-content: center;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.footer-pill:hover {
  background: rgba(28, 28, 34, 0.95);
  color: #ffffff;
}

/* 18+ Age Gate Modal */
.age-modal-backdrop[hidden] {
  display: none;
}

.age-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.18s ease-out;
}

.age-modal {
  width: 100%;
  max-width: 340px;
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 59, 92, 0.16);
  border: 1px solid rgba(255, 59, 92, 0.4);
  color: #ff5c77;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.age-modal-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.age-modal-desc {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.age-modal-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.age-btn:active {
  transform: scale(0.98);
}

.age-btn-confirm {
  background: #ffffff;
  color: #0b0b0d;
}

.age-btn-confirm:hover {
  background: rgba(255, 255, 255, 0.9);
}

.age-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.age-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 440px) {
  .page-container {
    padding: 12px 10px 24px;
  }

  .hero {
    height: 280px;
  }
}

