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

:root {
  --accent: #e91e8c;
  --accent-glow: rgba(233, 30, 140, 0.3);
  --accent-shadow: rgba(233, 30, 140, 0.25);
  --bg: #0a0a0a;
  --bg-from: #0a0a0a;
  --bg-to: #1a1a2e;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --overlay: rgba(0, 0, 0, 0.6);
}

html, body {
  min-height: 100vh;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background types ── */
body.bg-solid {
  background: var(--bg);
}

body.bg-gradient {
  background: linear-gradient(160deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
}

body.bg-image {
  background: var(--bg);
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem 4rem;
}

/* ── Loading ── */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 40vh;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Profile ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease;
}

.profile-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}

.profile-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

/* ── Links ── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  border: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Button style: filled */
.btn-filled .link-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-filled .link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Button style: outline */
.btn-outline .link-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline .link-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Button style: glass */
.btn-glass .link-btn {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-glass .link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.link-btn svg,
.cta-btn svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

/* ── CTA Button ── */
.cta-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px var(--accent-shadow);
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 24px var(--accent-glow);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.cta-btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.powered-by:hover {
  color: rgba(255, 255, 255, 0.45);
}

.powered-logo {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.powered-by:hover .powered-logo {
  opacity: 0.75;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.links .link-btn,
.links .cta-btn {
  animation: fadeIn 0.4s ease both;
}

.links > :nth-child(1) { animation-delay: 0.05s; }
.links > :nth-child(2) { animation-delay: 0.1s; }
.links > :nth-child(3) { animation-delay: 0.15s; }
.links > :nth-child(4) { animation-delay: 0.2s; }
.links > :nth-child(5) { animation-delay: 0.25s; }
.links > :nth-child(6) { animation-delay: 0.3s; }
.links > :nth-child(7) { animation-delay: 0.35s; }
.links > :nth-child(8) { animation-delay: 0.4s; }

/* ── Link Animations ── */
@keyframes anim-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.04; }
}

@keyframes anim-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 4px var(--accent-glow)); }
  50% { filter: brightness(1.15) drop-shadow(0 0 16px var(--accent-glow)) drop-shadow(0 0 32px var(--accent-shadow)); }
}

@keyframes anim-shake {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  15% { translate: -3px 0; rotate: -1deg; }
  30% { translate: 3px 0; rotate: 1deg; }
  45% { translate: -2px 0; rotate: 0deg; }
  60% { translate: 2px 0; rotate: 0deg; }
  75% { translate: 0 0; rotate: 0deg; }
}

@keyframes anim-bounce {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -6px; }
  60% { translate: 0 -3px; }
}

@keyframes anim-shimmer-sweep {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.link-btn.anim-active.anim-pulse, .cta-btn.anim-active.anim-pulse {
  animation: anim-pulse 2s ease-in-out infinite !important;
}

.link-btn.anim-active.anim-glow, .cta-btn.anim-active.anim-glow {
  animation: anim-glow 2s ease-in-out infinite !important;
}

.link-btn.anim-active.anim-shake, .cta-btn.anim-active.anim-shake {
  animation: anim-shake 3s ease-in-out infinite !important;
}

.link-btn.anim-active.anim-bounce, .cta-btn.anim-active.anim-bounce {
  animation: anim-bounce 2s ease-in-out infinite !important;
}

.link-btn.anim-shimmer, .cta-btn.anim-shimmer {
  position: relative;
  overflow: hidden;
}

.link-btn.anim-shimmer::after, .cta-btn.anim-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  background-size: 200% 100%;
  pointer-events: none;
  background-position: -200% center;
}

.link-btn.anim-active.anim-shimmer::after, .cta-btn.anim-active.anim-shimmer::after {
  animation: anim-shimmer-sweep 3s linear infinite;
}

/* ── Age Gate ── */
.cg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

.cg-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cg-icon {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent);
}

.cg-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.cg-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.cg-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cg-confirm {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cg-confirm:hover {
  opacity: 0.9;
}

.cg-deny {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cg-deny:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ── Browser Prompt (Instagram WebView) ── */
.browser-prompt {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

.browser-prompt-arrow {
  position: fixed;
  top: 2px;
  right: 2px;
  z-index: 1002;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 0.8s ease-in-out infinite;
  pointer-events: none;
}

.browser-prompt-arrow svg {
  width: 52px;
  height: 52px;
  stroke: var(--accent);
  filter: drop-shadow(0 0 16px var(--accent)) drop-shadow(0 0 40px var(--accent-glow));
}

.browser-prompt-arrow-ring {
  position: absolute;
  inset: -4px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  animation: ringPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px var(--accent-glow);
}

.browser-prompt-arrow-ring2 {
  position: absolute;
  inset: -16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ringPulse 1.2s ease-in-out 0.3s infinite;
  opacity: 0.5;
}

@keyframes arrowBounce {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4px, -4px) scale(1.08); }
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.browser-prompt-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2.5rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.browser-prompt-dots {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.browser-prompt-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.browser-prompt-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.browser-prompt-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.browser-prompt-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.browser-prompt-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow);
}

.browser-prompt-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px var(--accent-shadow);
}

.browser-prompt-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Second screen - "Almost there" */
.browser-prompt-almost {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.browser-prompt-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.browser-prompt-highlight svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

/* ── Media Block ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Placement ── */
.container.layout-bottom .profile {
  margin-top: auto;
}

.container.layout-bottom .footer {
  margin-top: 1.5rem;
}

/* ── Gradient direction ── */
body.bg-gradient.grad-down {
  background: linear-gradient(180deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
}

body.bg-gradient.grad-up {
  background: linear-gradient(0deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
}

.bg-overlay.grad-down {
  background: linear-gradient(180deg, var(--overlay-top) 0%, var(--overlay-bot) 100%) !important;
}

.bg-overlay.grad-up {
  background: linear-gradient(0deg, var(--overlay-top) 0%, var(--overlay-bot) 100%) !important;
}

/* ── Age Gate / Browser Prompt — Light mode ── */
.cg.mode-light {
  background: rgba(255, 255, 255, 0.88);
}

.cg.mode-light .cg-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cg.mode-light .cg-text {
  color: #666;
}

.cg.mode-light .cg-deny {
  color: #666;
  border-color: rgba(0, 0, 0, 0.12);
}

.cg.mode-light .cg-deny:hover {
  background: rgba(0, 0, 0, 0.04);
}

.browser-prompt.mode-light {
  background: rgba(255, 255, 255, 0.88);
}

.browser-prompt.mode-light .browser-prompt-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.browser-prompt.mode-light .browser-prompt-text {
  color: #666;
}

.browser-prompt.mode-light .browser-prompt-highlight {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

/* ── Coming Soon ── */
.cs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FAEA00;
  background: rgba(250, 234, 0, 0.08);
  border: 1px solid rgba(250, 234, 0, 0.15);
  margin-bottom: 1.25rem;
}

.cs-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fafafa 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-subtitle {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.cs-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #2AABEE;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(42, 171, 238, 0.2);
}

.cs-tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(42, 171, 238, 0.3);
}

.cs-tg-btn:active {
  transform: translateY(0);
}

.cs-divider {
  width: 100%;
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.cs-features {
  width: 100%;
  text-align: left;
  animation: fadeIn 0.6s ease 0.15s both;
}

.cs-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--text);
}

.cs-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.cs-feature:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cs-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FAEA00;
}

.cs-feature-icon svg {
  width: 18px;
  height: 18px;
}

.cs-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cs-feature-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cs-bottom {
  text-align: center;
  animation: fadeIn 0.6s ease 0.3s both;
}

.cs-bottom-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem 3rem;
  }
  .profile-photo {
    width: 88px;
    height: 88px;
  }
  .profile-name {
    font-size: 1.25rem;
  }
  .cs-title {
    font-size: 2rem;
  }
  .cs-subtitle {
    font-size: 0.9375rem;
  }
}

@media (max-width: 360px) {
  .profile-photo {
    width: 76px;
    height: 76px;
  }
  .cs-title {
    font-size: 1.75rem;
  }
}
