:root {
  --bg-color: #050406;
  --surface-color: #141414;
  --accent-color: #d8508e; /* matching the pink/magenta in screenshot */
  --accent-gradient: linear-gradient(135deg, #d44d8b 0%, #c93b7b 100%);
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --radius-xl: 20px;
  --radius-l: 14px;
  --transition: all 0.25s ease;
}

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

body {
  background-color: var(--bg-color);
  background-image: url("assets3/chat-pattern.svg");
  background-size: 74px 49px;
  background-repeat: repeat;
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* App container */
.app-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  padding: 20px 16px;
  z-index: 5;
}

/* Main Page Heading */
.main-title {
  font-family: 'Nunito', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* Top bar title container */
.topbar {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* Title Badge */
.title-badge {
  width: 100%;
  max-width: 580px;
  height: 54px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.title-badge h3 {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.title-badge span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* Main Content Area */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Cards Grid Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 580px;
  align-items: center;
}

/* Styled Cards */
.style-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 65vh;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-color);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.style-card-image,
.style-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: var(--transition);
  pointer-events: none;
}

/* Dimming Overlay for non-selected cards */
.style-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 1;
  transition: var(--transition);
}

/* Radial Vignette Gradient */
.style-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(20, 20, 20, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Scrim under bottom label */
.style-card-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0) 100%);
  z-index: 3;
}

.style-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-family: 'Nunito', 'Inter', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  z-index: 4;
  letter-spacing: 0.2px;
}

/* Checkmark Icon badge */
.card-checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f472b6; /* matching pink checkmark circle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 4;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.card-checkmark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Selected state modifications */
.style-card.selected {
  border: 2px solid #f472b6;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.25);
}

.style-card.selected::before {
  background: rgba(20, 20, 20, 0);
}

.style-card.selected .card-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Horizontal Segment Indicator */
.slider-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 120px;
  margin: 20px auto 24px;
}

.slider-segment {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.slider-segment.active {
  background: #f472b6;
}

/* Bottom CTA buttons row */
.footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 580px;
  z-index: 10;
}

/* Custom layout buttons */
.btn-secondary {
  flex: 4;
  height: 48px;
  border-radius: var(--radius-l);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 30, 0.8);
}

.btn-primary {
  flex: 6;
  height: 48px;
  border-radius: var(--radius-l);
  border: none;
  background: #c74e84; /* exact color matching 'Next step' button */
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.btn-primary:hover:not(:disabled) {
  background: #d85b93;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Fullscreen Redirection Spinner Overlay */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.redirect-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-left-color: #c74e84;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

.redirect-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* ============================================================
   Age Gate / Over 18 Verification Modal
   ============================================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 11, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.age-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

.age-gate-content {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: #141414;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate.hidden .age-gate-content {
  transform: scale(0.95);
}

.age-gate-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px rgba(199, 78, 132, 0.3));
}

.age-gate-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.age-gate-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-gate-yes {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-l);
  border: none;
  background: #c74e84;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-gate-no {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-l);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-gate-no:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .cards-grid {
    gap: 12px;
  }
  .style-card-label {
    font-size: 13px;
    bottom: 12px;
  }
}
