:root {
  --bg: #05050a;
  --card-bg: #05050a;
  /* Single red hue for all tints/halos/glass effects */
  --accent-rgb: 222, 37, 71;
  --accent: rgb(var(--accent-rgb));
  --accent-soft: rgba(var(--accent-rgb), 0.24);
  --text: #ffffff;
  --muted: #a0a3b1;
  --block-bg: #ffe9ee;
  --radius-xl: 16px;
  --radius-lg: 16px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

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

html {
  background: #000;
  min-height: 100%;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(circle at top, #3b0614 0, #05050a 55%, #000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  display: flex;
  justify-content: center;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  /* Let the body background show through instead of adding an extra dark panel */
  background: transparent;
  padding: 16px 16px 40px;
}

.profile-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  cursor: pointer;
  perspective: 1000px;
}

.profile-flip-container {
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.profile-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.profile-card.flipped .profile-flip-inner {
  transform: rotateY(180deg);
}

.profile-flip-front {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
}

.profile-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
  transform: rotateY(180deg);
}

.profile-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #000;
}

.profile-image-wrapper::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.85) 80%,
    #000 100%
  );
  pointer-events: none;
  z-index: 1;
}

.profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


.profile-flip-front .profile-logo,
.profile-flip-back .profile-logo {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


@media (max-width: 480px) {
  .profile-flip-front .profile-logo,
  .profile-flip-back .profile-logo {
    bottom: 80px;
  }
}

.profile-logo img {
  max-width: 70%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.9));
}

.profile-info {
  margin-top: 0;
  padding: 16px 20px 22px;
  background: #000;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.profile-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.profile-tagline {
  margin: 0;
  color: #d6d8e3;
  font-size: 16px;
}

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 22px 0 24px;
  min-height: 40px;
  position: relative;
}

#social-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px 0;
  min-height: 20px;
  width: 100%;
}

/* Loading text for social links */
.loading-text {
  display: block;
  text-align: center;
  color: rgba(var(--accent-rgb), 0.6);
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  opacity: 0.7;
  animation: loading-text-pulse 2s ease-in-out infinite;
  -webkit-animation: loading-text-pulse 2s ease-in-out infinite;
  position: relative;
}

@keyframes loading-text-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@-webkit-keyframes loading-text-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Loading indicator for social links (kept for backwards compatibility) */
.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.loading-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.5);
  animation: loading-pulse 1.4s ease-in-out infinite;
  -webkit-animation: loading-pulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
  -webkit-animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
  -webkit-animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
  -webkit-animation-delay: 0.4s;
}

@keyframes loading-pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

@-webkit-keyframes loading-pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    -webkit-transform: scale(0.8);
  }
  40% {
    opacity: 1;
    -webkit-transform: scale(1);
  }
}

/* Fade-in animation for links and blocks */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  -webkit-animation: fadeIn 0.6s ease-out forwards;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    -webkit-transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

/* Profile image placeholder (shown before verification) */
.profile-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(var(--accent-rgb), 0.15) 0%,
    rgba(var(--accent-rgb), 0.05) 40%,
    transparent 70%,
    #000 100%
  );
  z-index: 0;
}

.social-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.34),
      rgba(var(--accent-rgb), 0.08)
    );
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.4),
    0 8px 20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: 
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.5) 0%, transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.5) 0%, transparent 25%);
  pointer-events: none;
  z-index: 0;
  padding: 2px;
  box-sizing: border-box;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.social-icon {
  width: 26px;
  height: 26px;
  display: block;
  filter: invert(1);
  position: relative;
  z-index: 2;
}

.social-button:hover {
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.45),
      rgba(var(--accent-rgb), 0.15)
    );
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.5),
    0 12px 28px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
}

.block {
  position: relative;
  display: block;
  text-decoration: none;
  color: #000;
  border-radius: var(--radius-lg);
  background: var(--card-bg); /* match surrounding card/background tone */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  outline: none; /* avoid extra light focus ring on rounded corners */
  overflow: visible; /* allow border to show outside */
}

/* White gradient border for big image blocks using box-shadow */
.block-large,
.block-medium {
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.65);
}

/* Gradient highlights at top-left and bottom-right corners */
.block-large::before,
.block-medium::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: 
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.5) 0%, transparent 25%);
  pointer-events: none;
  z-index: 1;
  padding: 2px;
  box-sizing: border-box;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.block-large {
  width: calc(100% - 4px);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.block-medium {
  width: calc(100% - 4px);
  aspect-ratio: 3 / 2;
  overflow: visible;
}

.block-small {
  height: 120px;
}

/* Horizontal row-style blocks with square thumbnail (subtle red liquid glass) */
.block-row {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  padding: 10px 10px 10px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.34),
      rgba(var(--accent-rgb), 0.08)
    );
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.4),
    0 8px 20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
}

.block-row::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: 
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.5) 0%, transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.5) 0%, transparent 25%);
  pointer-events: none;
  z-index: 0;
  padding: 2px;
  box-sizing: border-box;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}


.block-thumb {
  flex: 0 0 110px;
  height: 110px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  background: #000;
}

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

.block-row-text {
  margin-left: 18px;
  color: #fdf2f6;
  position: relative;
  z-index: 2;
}

.block-row-text h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.block-row-text p {
  margin: 0;
  font-size: 14px;
}

.block-image,
.block-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg); /* keep image corners aligned with card */
  overflow: hidden; /* clip image to rounded corners */
  position: relative;
  z-index: 0;
}

.block-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  background: radial-gradient(
    circle at top left,
    #ffe1ea 0,
    #ffafc5 40%,
    #de2547 90%
  );
}

.block-text {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.block-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.block-text p {
  margin: 6px 0 0;
  font-size: 14px;
}

/* Darken bottom area of image blocks so white text stays legible */
.block:not(.block-row)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 1;
}

.block:not(.block-row):not(.block-large):not(.block-medium):hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.block-large:hover,
.block-medium:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.75);
}

.block-row:hover {
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.45),
      rgba(var(--accent-rgb), 0.15)
    );
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.5),
    0 12px 28px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.block:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

@media (min-width: 520px) {
  .page {
    margin: 24px 0;
    border-radius: 32px;
  }
}

/* ============================================
   SENSITIVE CONTENT WALL
   ============================================ */

.content-wall {
  position: fixed;
  inset: 0;
  /* Let body background show through - same as main page */
  background: transparent;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.content-wall .page {
  /* Use exact same styling as main page */
}


.content-wall-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-wall-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

.content-wall-description {
  margin: 0 0 32px;
  font-size: 16px;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  line-height: 1.5;
}

.content-wall-turnstile {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.content-wall-button {
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.content-wall-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.content-wall-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.content-wall-back {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.content-wall-back:hover {
  opacity: 0.7;
}

.content-wall-continue {
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  text-decoration: none;
  display: block;
  pointer-events: auto;
  border: none;
  padding: 0;
  background: none;
  font-family: inherit;
}

.content-wall-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.content-wall-continue .block-row-text {
  width: 100%;
  text-align: center;
  margin-left: 0;
  padding: 0 16px;
  justify-content: center;
  display: flex;
  align-items: center;
  height: 100%;
}

.content-wall-continue .block-row-text h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  width: 100%;
}


