* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  max-width: 100%;
}

:root {
  --bg: #06070b;
  --bg-soft: #0c0d14;
  --card: #0d0f17;
  --card-2: #1a1a1e;
  --accent: #0088ff;
  /* Vibrant Electric Blue */
  --accent-hover: #33aaff;
  --yellow: #FFD700;
  /* Vivid Yellow Accent */
  --yellow-glow: rgba(255, 215, 0, 0.28);
  --text: #ffffff;
  --muted: #dadbe0;
  /* More vibrant off-white for secondary text */
  --border: rgba(255, 255, 255, 0.08);
  --shadow-accent: 0 0 28px rgba(0, 136, 255, 0.18);
  --shadow-yellow: 0 0 24px rgba(255, 215, 0, 0.22);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

html {
  background-color: #05060a;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 136, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 136, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #05060a 0%, #070910 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
  font-size: 16px;
  max-width: 100%;
}

button,
a,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
label,
summary,
.clickable,
.content-card,
.gallery-video-card,
.content-image,
.keyword-pills .pill,
.menu-grid-card,
.icon-button,
.primary-button,
.secondary-button,
.submit-button,
.account-button,
.notification-button,
.mobile-menu-overlay,
.mobile-menu-panel,
.access-option-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.clickable {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3000; /* Increased to stay above menu overlay */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 20px;
  background: rgba(6, 7, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand-text-logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-drain {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0, 136, 255, 0.4);
}

.t-me {
  color: #FFD700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.profile-button,
.square-icon-button,
.segment,
.floating-circle,
.comment-float-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-button {
  background: transparent;
  color: #fff;
  border-radius: 18px;
  width: 50px;
  height: 50px;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.icon-button:hover {
  background: rgba(0, 136, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
  transform: translateY(-2px);
}

.icon-button:active {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
}

.notification-wrap,
.account-wrap {
  position: relative;
  flex-shrink: 0;
}

.account-wrap.is-account-visible {
  display: block !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.topbar-actions .menu-button {
  flex-shrink: 0;
}

.account-button {
  background: rgba(10, 13, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 136, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 12px rgba(0, 136, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.account-letter {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 200px;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 136, 255, 0.15);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.account-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.account-dropdown-item:hover {
  background: rgba(0, 136, 255, 0.12);
  color: var(--accent);
}

.account-dropdown-item--logout:hover {
  color: #ff8a8a;
  background: rgba(255, 80, 80, 0.08);
}

.notification-button {
  position: relative;
  background: rgba(10, 13, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

/* Removed badge-count CSS */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: -60px;
  width: 320px;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 136, 255, 0.15);
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.notification-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.notif-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.notif-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notif-pref-text h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.notif-pref-text p {
  color: #dadbe0;
  font-weight: 500;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.premium-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.premium-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: #aaa;
  transition: .4s;
  border-radius: 50%;
}

.premium-toggle input:checked+.toggle-slider {
  background-color: rgba(0, 136, 255, 0.15);
  border-color: rgba(0, 136, 255, 0.4);
}

.premium-toggle input:checked+.toggle-slider:before {
  transform: translateX(19px);
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
}

@media (max-width: 400px) {
  .notification-dropdown {
    width: 280px;
    right: -80px;
  }
}

.profile-button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 136, 255, 0.12), rgba(0, 136, 255, 0.04));
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  box-shadow: var(--shadow-accent);
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.profile-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.6);
}

/* Hamburger / close icon */
.menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 100;
  /* keep above overlay */
}

.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: opacity 0.12s ease;
  transform-origin: center;
}

body.menu-open .menu-button {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.45);
}

body.menu-open .menu-button span {
  opacity: 0;
  transform: none;
}

body.menu-open .menu-button::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .menu-button::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ───────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  top: 86px; /* Measured header height to prevent blurring the top bar */
  left: 0;
  width: 100%;
  height: calc(100vh - 86px);
  padding-top: 0; /* Removed padding now that top is offset */
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.menu-open,
html.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open .mobile-menu-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  background: #111;
  padding: 24px 16px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.mobile-menu-panel.is-menu-resolving .menu-grid {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-panel.is-menu-resolving .menu-grid-card {
  display: none !important;
}

.mobile-menu-panel.is-menu-resolving .menu-grid::before {
  content: "Checking admin access…";
  color: rgba(178, 222, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 136, 255, 0.28);
}

body.admin-menu-mode #menuLogoutBtn,
.mobile-menu-panel.is-admin-menu #menuLogoutBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.menu-open .mobile-menu-panel {
  transform: translateY(0);
  opacity: 1;
}

.menu-search-container {
  display: flex;
  align-items: center;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 24px;
  gap: 10px;
}

.search-icon-svg {
  color: #88a0b5;
  flex-shrink: 0;
}

.menu-search-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.menu-search-input::placeholder {
  color: #88a0b5;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 400px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-grid-card {
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  outline: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .menu-grid-card:hover {
    background:
      radial-gradient(circle at top left, rgba(255, 215, 0, 0.16), transparent 34%),
      linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(10, 13, 20, 0.98));
    border-color: rgba(255, 215, 0, 0.66);
    color: var(--yellow);
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.55),
      0 0 18px rgba(0, 136, 255, 0.22),
      0 0 14px rgba(255, 215, 0, 0.18);
    transform: translateY(-1px);
  }
}

.menu-grid-card:active {
  background: rgba(0, 136, 255, 0.14);
  transform: translateY(0);
  transition: all 0.1s ease-out;
}

.menu-grid-card:focus,
.menu-grid-card:focus-visible {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ── DM ME notification badge ────────────────────────── */
.menu-grid-card.menu-dm-btn {
  position: relative;
  overflow: visible;
}

.dm-menu-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: linear-gradient(135deg, #ff3b3b, #ff6b00);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255,59,59,0.7), 0 0 24px rgba(255,59,59,0.35);
  animation: badgePulse 2s ease-in-out infinite;
  pointer-events: none;
  letter-spacing: 0;
  line-height: 1;
  border: 1.5px solid rgba(5,6,10,0.8);
}

.dm-menu-badge.hidden {
  display: none;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,59,59,0.65), 0 0 22px rgba(255,59,59,0.3); }
  50%       { box-shadow: 0 0 18px rgba(255,59,59,0.95), 0 0 36px rgba(255,59,59,0.5); }
}

.page-content {
  padding: 20px 16px calc(64px + env(safe-area-inset-bottom, 0px));
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

.view-section {
  padding-top: 10px; /* Bring headings closer to the top for a fresh landing position */
  animation: fadeIn 0.4s ease-out;
}

.glow-card {
  position: relative;
  /* Removed overflow: hidden to allow badges and glows to breathe */
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 136, 255, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(0, 136, 255, 0.10), transparent 32%);
  pointer-events: none;
  border-radius: inherit;
  /* Ensure glow respects card corners */
  z-index: 0;
}

.hero-card,
.premium-panel,
.auth-card,
.content-card,
.stat-card,
.comment-box {
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
  border: 1px solid var(--border);
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
  border-radius: 20px;
}

.content-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 136, 255, 0.1);
}

.content-card:active {
  transform: translateY(-2px) scale(0.98);
}

.hero-card {
  border-radius: 34px;
  padding: 28px;
  margin-top: 18px;
}

.eyebrow {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 136, 255, 0.4);
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.3);
}

.auth-form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
}

.auth-form-error.is-validation {
  color: #b8d9ff;
  background: rgba(0, 136, 255, 0.1);
  border-color: rgba(0, 136, 255, 0.32);
}

.auth-form-error.is-success {
  color: #8fe8b0;
  border-color: rgba(80, 200, 120, 0.35);
  background: rgba(20, 60, 40, 0.35);
}

.auth-form-error.is-lockout {
  color: #ffe08a;
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.38);
}

.auth-form-error.hidden {
  display: none;
}

.auth-form-success {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #b8f5c8;
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(100, 220, 140, 0.35);
}

.auth-form-success.hidden {
  display: none;
}

.auth-forgot-row {
  margin: 8px 0 0;
  text-align: right;
}

.auth-link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--accent, #4da3ff);
  cursor: pointer;
  text-decoration: underline;
}

.auth-link-button:hover {
  color: #7bb8ff;
}

.auth-reset-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

/* Password recovery from email link — show login overlay, hide homepage until password saved */
html.drain-recovery-active #appShell {
  display: none !important;
}

html.drain-recovery-active #loginScreen {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

html.drain-recovery-active #loginScreen.hidden {
  display: flex !important;
}

html.drain-recovery-active #signinForm,
html.drain-recovery-active #signupForm,
html.drain-recovery-active #signupPrompt {
  display: none !important;
}

html.drain-recovery-active #passwordRecoveryScreen {
  display: block !important;
}

html.drain-recovery-active #passwordRecoveryScreen.hidden {
  display: block !important;
}

#passwordRecoveryScreen {
  margin-top: 0;
}

#passwordRecoveryScreen .auth-subtitle {
  margin-bottom: 16px;
  color: rgba(200, 220, 255, 0.85);
  font-size: 14px;
  line-height: 1.45;
}

#passwordRecoveryScreen .submit-button {
  margin-top: 8px;
}

.home-login-success {
  margin: 0 0 16px;
  max-width: 100%;
}

.auth-error-actions {
  margin: 10px 0 4px;
  display: flex;
  justify-content: center;
}

.auth-error-actions.hidden {
  display: none;
}

.auth-error-actions .secondary-button {
  min-width: 140px;
}

.input-wrap.field-highlight-error {
  border-color: rgba(255, 120, 120, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.2);
}

.signup-dev-reset {
  display: none;
  width: 100%;
  margin: 10px 0 0;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: rgba(180, 200, 230, 0.45);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-dev-reset:hover,
.signup-dev-reset:focus-visible {
  color: rgba(200, 220, 255, 0.75);
}

.signup-dev-reset.hidden {
  display: none !important;
}

.signup-dev-reset.is-visible {
  display: block;
}

.signup-dev-hint {
  display: none;
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: rgba(160, 190, 230, 0.55);
}

.signup-dev-hint.is-visible {
  display: block;
}

.signup-dev-hint.hidden {
  display: none !important;
}

#createAccountBtn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.auth-gate-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.35);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.15);
}

.browse-status-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.75);
}

.browse-status-message p {
  margin: 0 0 16px;
  font-size: 16px;
}

.browse-gate-message {
  text-align: center;
  padding: 32px 20px;
}

.browse-gate-message p {
  margin-bottom: 16px;
  color: var(--muted);
}

.profile-empty-text {
  color: var(--muted);
  margin-bottom: 12px;
}

.auth-subtitle,
.hero-subtext,
.panel-subtext,
.view-subtitle {
  color: var(--muted);
  font-weight: 500;
}

.stat-label,
.auth-brand-subtitle,
textarea,
input {
  color: var(--muted);
  font-weight: 500;
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 540px;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.submit-button,
.auth-tab {
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.primary-button,
.submit-button,
.auth-tab.active {
  background: linear-gradient(135deg, #0057B7, #33aaff);
  color: #111;
  box-shadow: 0 0 24px rgba(0, 136, 255, 0.22);
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
}

.primary-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 136, 255, 0.45);
  filter: brightness(1.1);
}

.primary-button:active,
.submit-button:active {
  transform: translateY(0) scale(0.97);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.secondary-button:hover {
  background: rgba(0, 136, 255, 0.15);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
  transform: translateY(-2px);
}

.secondary-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
}

#showSignupBtn {
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
  border-color: rgba(0, 136, 255, 0.4);
  background: rgba(0, 136, 255, 0.08);
  /* slight tint to complement glow */
}

.button-icon {
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 18px 0 32px;
}

.stat-card {
  border-radius: 28px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 136px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.stat-card:hover {
  border-color: var(--accent);
  background: rgba(0, 136, 255, 0.04);
  transform: translateY(-2px);
}

.stat-card:active {
  transform: translateY(0) scale(0.97);
}

.stat-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 136, 255, 0.10);
  color: #fff;
  font-size: 30px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  line-height: 1.1;
}

.stat-label {
  font-size: 16px;
  margin-top: 6px;
}

.section-heading {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.comment-section h2,
.premium-panel h2,
.auth-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.8px;
}

h1,
h2,
h3 {
  text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
  color: var(--accent);
}

.segment-control {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segment {
  width: 58px;
  height: 54px;
  border-radius: 18px;
  background: transparent;
  color: #dadbe0;
  font-weight: 500;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.segment:hover {
  background: rgba(255, 255, 255, 0.05);
}

.segment:active {
  transform: scale(0.94);
}

.segment.active {
  background: linear-gradient(135deg, #0057B7, #0088ff);
  color: #111;
  box-shadow: 0 0 18px rgba(0, 136, 255, 0.18);
}

.accent-line,
.mini-accent-line {
  background: linear-gradient(90deg, var(--accent), rgba(0, 136, 255, 0.05));
  border-radius: var(--radius-pill);
}

.accent-line {
  width: 230px;
  height: 7px;
  margin: 18px 0 26px;
}

.content-list,
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0 2px;
  box-sizing: border-box;
}

#videosViewGrid {
  min-height: 0;
  overflow: visible;
}

.gallery-video-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .content-list,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .content-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Video Thumbnail Area */
.content-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--card-2);
  box-sizing: border-box;
  overflow: hidden;
}

.content-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.content-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%); /* slightly offset to center the triangle */
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(0, 136, 255, 0.8)) drop-shadow(0 0 24px rgba(255, 204, 0, 0.5));
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 2;
  pointer-events: none;
}

.content-card:hover .content-image::before {
  background: rgba(0, 0, 0, 0.1);
}

.content-card:hover .content-image::after {
  transform: translate(-40%, -50%) scale(1.15);
  border-left-color: #fff;
  filter: drop-shadow(0 0 20px rgba(0, 136, 255, 1)) drop-shadow(0 0 36px rgba(255, 204, 0, 0.8));
}

/* Bottom right duration badge */
.duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 136, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.content-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #c8a200, #FFD700);
  color: #111;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
}

/* Card Info Area */
.content-info {
  padding: 16px;
}

.content-info h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.3);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.card-actions .primary-button,
.card-actions .secondary-button {
  flex: 1;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.4px;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

.profile-purchases-area {
  margin-top: 2rem;
}

.profile-purchases-area h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text);
}

.profile-purchases-line {
  margin: 0 0 20px;
  width: 48px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.profile-logout-btn {
  margin-top: 12px;
  width: 100%;
  max-width: 200px;
  padding: 10px 18px;
  font-size: 12px;
}

.content-category-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(0, 136, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 136, 255, 0.2);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, opacity 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 16px;
  color: var(--yellow);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
}

/* ── Footer ─────────────────────────────────────────── */
.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 16px 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-link {
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s;
  border: 0;
  background: transparent;
  padding: 0;
}

.footer-link:hover {
  color: var(--text);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

.footer-copyright {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  opacity: 0.6;
}

.legal-footer {
  width: 100%;
  margin-top: auto;
}

body.legal-footer-ready {
  min-height: 100vh;
}

body.legal-compact-page {
  flex-direction: column;
  gap: 24px;
  height: auto;
  min-height: 100vh;
}

.legal-inline-button,
.legal-inline-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0 1px;
  margin: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 136, 255, 0.25);
  border-radius: 2px;
}

a.legal-inline-link,
button.legal-inline-link {
  display: inline;
  -webkit-appearance: none;
  appearance: none;
}

.legal-inline-button:hover,
.legal-inline-link:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.legal-inline-button:focus-visible,
.legal-inline-link:focus-visible {
  color: var(--accent-hover);
  outline: 2px solid rgba(0, 136, 255, 0.55);
  outline-offset: 3px;
}

.legal-inline-button:active,
.legal-inline-link:active {
  color: #5eb8ff;
  opacity: 0.92;
}

.legal-confirm-row {
  margin: 14px 0 4px;
  cursor: default;
  align-items: flex-start;
}

.legal-confirm-row .auth-checkbox-control {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
  width: 28px;
  min-height: 28px;
}

.legal-confirm-row .auth-checkbox-control input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  margin: 0;
  z-index: 2;
}

.legal-confirm-row .auth-checkbox-text {
  flex: 1;
  min-width: 0;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.login-screen .legal-confirm-row {
  position: relative;
  z-index: 12;
}

.login-screen .legal-inline-link {
  position: relative;
  z-index: 30;
  pointer-events: auto !important;
  display: inline;
  line-height: 1.45;
  padding: 6px 3px;
  margin: -6px -3px;
  vertical-align: baseline;
}

.login-screen .auth-checkbox-control {
  position: relative;
  z-index: 11;
  width: 28px;
  flex-shrink: 0;
}

.login-screen .auth-checkbox-control input[type="checkbox"] {
  width: 28px;
  height: 28px;
  left: 0;
  top: 0;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-modal.hidden {
  display: none;
}

body.legal-modal-open,
body.disclosure-modal-open {
  overflow: hidden;
  position: relative;
  touch-action: none;
}

html.legal-modal-open,
html.disclosure-modal-open {
  overflow: hidden;
}

.legal-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(0, 136, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 34px rgba(0, 136, 255, 0.16);
  padding: 24px;
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.legal-modal-brand {
  font-size: 24px;
  margin-bottom: 14px;
}

.legal-modal-panel h2 {
  margin: 0 48px 16px 0;
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.7px;
}

.legal-modal-body {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.legal-modal-body h3 {
  margin: 20px 0 6px;
  color: var(--yellow);
  font-size: 17px;
}

.legal-modal-body p {
  margin: 0 0 12px;
}


.premium-panel {
  border-radius: 32px;
  margin: 0;
  padding: 26px 20px 22px;
  text-align: center;
}

.panel-crown {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.panel-subtext {
  font-size: 17px;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 460px;
}

.feature-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.feature-pill {
  border-radius: 20px;
  padding: 16px 14px;
  text-align: center;
  background: rgba(0, 136, 255, 0.05);
  border: 1px solid rgba(0, 136, 255, 0.14);
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.3);
  font-weight: 700;
}

.panel-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.comment-section {
  margin-top: 34px;
}

.comment-box {
  position: relative;
  border-radius: 30px;
  padding: 24px;
  margin-top: 16px;
  min-height: 190px;
}

.comment-box textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 24px;
  padding-right: 110px;
}

.comment-float-button {
  border: none;
}

/* ── PREMIUM MODAL OVERLAY ───────────────────────── */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.premium-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal-overlay .premium-panel {
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.premium-modal-overlay.show .premium-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Login screen overlay ─────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background:
    radial-gradient(circle at top left, rgba(0, 136, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 136, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #05060a 0%, #070910 100%);
  box-shadow: inset 0 0 120px rgba(0, 136, 255, 0.15);
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.4s ease;
  pointer-events: auto;
  isolation: isolate;
}

.login-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.login-screen.hidden {
  pointer-events: none !important;
}

.login-inner {
  width: 100%;
  max-width: 600px;
  padding: 40px 16px 60px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.hidden {
  display: none !important;
  pointer-events: none !important;
}

.auth-section {
  margin-top: 50px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand-wrap {
  justify-content: center;
}

.mini-accent-line {
  width: 110px;
  height: 5px;
  margin: 18px auto 16px;
}

.auth-brand-subtitle {
  margin: 0;
  font-size: 18px;
}


.auth-card {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 87, 183, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.auth-card.mini-card {
  padding: 20px 24px;
  margin-top: 0;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.auth-card.mini-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.auth-card.mini-card button {
  margin: 0;
  padding: 10px 20px;
  width: auto;
  font-size: 14px;
}

.auth-card.hidden {
  display: none;
}

.auth-card h2 {
  text-align: center;
  font-size: 50px;
  margin-bottom: 10px;
}

.auth-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 500;
  opacity: 0.8;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 18px;
  margin-left: 4px;
}

.input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  height: 66px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 18px 0 8px; /* Room for left-aligned icon box */
  gap: 14px;
  margin-bottom: 12px;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(0, 136, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.15);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.auth-input-icon {
  display: block;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.input-wrap:focus-within .auth-input-icon {
  color: var(--accent);
}

.auth-eye-icon {
  display: block;
  color: rgba(255, 255, 255, 0.65);
}

.auth-eye-icon--hide {
  display: none;
}

.toggle-box.is-visible .auth-eye-icon--show {
  display: none;
}

.toggle-box.is-visible .auth-eye-icon--hide {
  display: block;
}

.verify-refresh-btn svg {
  display: block;
  color: inherit;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  height: 100%;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: text;
}

.input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Keep autofill from flashing pale yellow on dark login inputs (mobile Safari/Chrome) */
.login-screen .input-wrap input:-webkit-autofill,
.login-screen .input-wrap input:-webkit-autofill:hover,
.login-screen .input-wrap input:-webkit-autofill:focus,
.login-screen .input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1a1a22 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #1a1a22 inset !important;
  transition: background-color 99999s ease-out 0s;
}

.toggle-box {
  background: transparent;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  pointer-events: auto;
}

.toggle-box:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Unified Verification Group */
.verification-group {
  margin-bottom: 24px;
}

.verify-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.verify-code-display {
  flex: 1;
  height: 66px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 8px;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.verify-refresh-btn {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.verify-refresh-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.input-wrap.mini-wrap {
  height: 56px;
  margin-bottom: 0;
  padding: 0 16px;
}




.square-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  border-radius: 26px;
  background: var(--card-2);
  color: #dadbe0;
  font-weight: 500;
  font-size: 30px;
}

.verification-row {
  margin-bottom: 14px;
}

.verification-code {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 42px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 10px;
}

.submit-button {
  width: 100%;
  margin-top: 22px;
  min-height: 82px;
  font-size: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-button:hover {
  box-shadow: 0 0 30px rgba(0, 136, 255, 0.4);
  transform: translateY(-2px);
  border-color: rgba(0, 136, 255, 0.5);
}

.submit-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 28px;
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .brand-text-logo {
    font-size: 28px;
    letter-spacing: -1px;
    gap: 6px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .account-button {
    border-radius: 14px;
  }

  .account-letter {
    font-size: 18px;
  }

  .notification-dropdown {
    right: -40px;
    width: min(300px, calc(100vw - 28px));
  }

  .account-dropdown {
    right: 0;
    min-width: 180px;
    width: max-content;
    max-width: calc(100vw - 28px);
  }

  .page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-pill-grid,
  .panel-actions,
  .stats-grid {
    grid-template-columns: 1fr;
  }


  .comment-box textarea {
    padding-right: 0;
    padding-bottom: 110px;
    font-size: 20px;
  }

  .comment-float-button {
    right: 20px;
    bottom: 20px;
  }

  .auth-card h2 {
    font-size: 38px;
  }
}

@media (min-width: 900px) {
  .page-content {
    padding-top: 30px;
  }

  .hero-card,
  .premium-panel,
  .auth-card {
    padding-left: 34px;
    padding-right: 34px;
  }
}

/* ── Clickable browse cards ─────────────────────────── */
.content-card[data-video-id] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.content-card[data-video-id]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(215, 171, 74, 0.15);
}

.content-card[data-video-id]:active {
  transform: scale(0.98);
}

/* ── Video detail screen ────────────────────────────── */
.vd-screen {
  margin-top: 0;
}

.vd-screen.hidden {
  display: none;
}

.vd-back-row {
  display: flex;
  align-items: center;
  padding: 6px 0 18px;
}

.vd-back-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.vd-back-btn:hover {
  opacity: 1;
}

.vd-premium-card {
  border-radius: 28px;
  padding: 28px 22px 24px;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.85), rgba(8, 10, 18, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 136, 255, 0.12);
}

.vd-premium-title {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--accent);
  font-weight: 800;
}

.vd-premium-subtext {
  font-size: 15px;
  margin: 0 auto 20px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  max-width: 320px;
}

.vd-login-buy-btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: auto;
  touch-action: manipulation;
}

.vd-player-wrap {
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.vd-player-wrap.hidden {
  display: none;
}

.vd-full-player {
  display: block;
  width: 100%;
  max-height: min(56vw, 420px);
  background: #000;
}

@media (max-width: 640px) {
  .page-content:has(#videoDetail:not(.hidden)) {
    padding-top: 10px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }

  .vd-screen {
    margin-top: -4px;
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }

  .vd-back-row {
    padding: 0 0 12px;
  }

  .vd-premium-card {
    padding: 22px 18px 20px;
    margin-bottom: 12px;
  }

  .vd-premium-title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .vd-premium-subtext {
    margin-bottom: 16px;
  }

  .vd-info-card {
    padding: 18px 18px 22px;
    margin-bottom: 18px;
  }
}

.card-meta {
  font-size: 13px;
  color: var(--muted, #999);
  margin: 4px 0 10px;
  line-height: 1.35;
}

.card-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 136, 255, 0.92);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}

.gallery-video-card .content-image {
  position: relative;
}

.card-action-btn {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.my-videos-page {
  padding-bottom: 48px;
}

.my-videos-page .video-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 2px;
}

@media (min-width: 600px) {
  .my-videos-page .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
  }
}

@media (min-width: 900px) {
  .my-videos-page .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.my-videos-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 18px;
  text-align: center;
}

.my-videos-empty.hidden {
  display: none;
}

.my-videos-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.my-videos-empty p {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
}

.my-videos-empty .primary-button,
.my-videos-empty .primary-button:visited,
.my-videos-empty .primary-button:hover,
.my-videos-empty .primary-button:focus {
  text-decoration: none;
}

.my-video-card {
  cursor: pointer;
}

.my-video-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.my-video-player-overlay.hidden {
  display: none;
}

.my-video-player-card {
  position: relative;
  width: min(920px, 100%);
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
  border: 1px solid rgba(0, 136, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 136, 255, 0.16);
  padding: 18px;
}

.my-video-player-card h2 {
  margin: 0 46px 14px 0;
  font-size: 22px;
  line-height: 1.25;
}

.my-video-player-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.my-video-player-card video {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  border-radius: 18px;
  background: #000;
}

.my-videos-loading {
  text-align: center;
  color: var(--muted, #999);
  padding: 32px 16px;
  grid-column: 1 / -1;
}

/* Video info card */
.vd-info-card {
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.98), rgba(8, 9, 14, 0.98));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px 18px 18px;
  margin-bottom: 24px;
}

.vd-title-row {
  margin-bottom: 12px;
}

.vd-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 800;
  flex: 1;
}

.gallery-video-card {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  border: 2px solid rgba(0, 136, 255, 0.62);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 136, 255, 0.14), 0 0 18px rgba(0, 136, 255, 0.18);
}

.gallery-video-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-video-card .content-image {
  pointer-events: none;
}

.gallery-video-card .content-info {
  pointer-events: none;
}

/* Main browse gallery — thumbnail-forward cards */
.gallery-video-card .content-image {
  height: 200px;
  min-height: 160px;
  background-color: #0a0b10;
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 0 18px rgba(0, 136, 255, 0.12);
}

.gallery-video-card .gallery-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  border-radius: inherit;
}

.gallery-video-card .gallery-owned-tag {
  color: var(--yellow);
  font-weight: 700;
}

.gallery-video-card .content-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.gallery-card-description {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 16px 16px;
  pointer-events: auto;
}

.gallery-card-btn {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  touch-action: manipulation;
}

.card-price-badge--gallery {
  z-index: 3;
  top: 10px;
  right: 10px;
  left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--accent);
  border: 1px solid rgba(0, 136, 255, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.gallery-video-card .duration-badge {
  z-index: 3;
}

@media (max-width: 599px) {
  .gallery-video-card .content-image {
    height: 200px;
    min-height: 180px;
  }

  .gallery-video-card .content-info h3 {
    font-size: 18px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .video-grid,
  #videosViewGrid {
    gap: 18px;
    margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 900px) {
  .gallery-video-card .content-image {
    height: 210px;
  }
}

.vd-description {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.vd-age-tag {
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 136, 255, 0.45);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  letter-spacing: 0.5px;
}

.vd-meta-icon {
  flex-shrink: 0;
  opacity: 0.75;
  color: var(--yellow);
}

.vd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 16px;
}

.vd-meta-item {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vd-category {
  background: transparent;
  border: 1px solid rgba(215, 171, 74, 0.55);
  border-radius: var(--radius-pill);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
}

/* Creator row */
.vd-creator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.vd-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99a3d, #e4bc59);
  color: #111;
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.vd-creator-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vd-creator-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* Comments within detail */
.vd-comments {
  margin-top: 28px;
}

.vd-comments h2 {
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
  color: var(--accent);
}

.vd-comment-list {
  display: grid;
  gap: 12px;
  width: min(680px, 100%);
  margin: 0 auto 16px;
}

.vd-comment-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 17, 25, 0.82), rgba(8, 9, 14, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: commentFadeIn 0.38s ease both;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vd-comment-card:hover {
  border-color: rgba(0, 136, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 20px rgba(0, 136, 255, 0.12);
  transform: translateY(-1px);
}

.vd-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.vd-comment-user {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.vd-comment-meta {
  color: rgba(218, 219, 224, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.vd-comment-text {
  margin: 0;
  color: #f3f5fb;
  font-size: 14px;
  line-height: 1.45;
}

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

.vd-comments .comment-box {
  width: 50%;
  max-width: 400px;
  min-width: 240px;
  margin: 0 auto;
  min-height: auto;
  padding: 14px 18px;
  border-radius: 20px;
}

.vd-comments .comment-box textarea {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.45;
  padding: 0;
  resize: vertical;
}

@media (max-width: 768px) {
  .vd-comments {
    margin-top: 22px;
  }

  .vd-comment-list {
    width: 100%;
    gap: 10px;
  }

  .vd-comment-card {
    padding: 13px 14px;
    border-radius: 16px;
  }

  .vd-comment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .vd-comment-meta {
    white-space: normal;
  }

  .vd-comments .comment-box {
    width: 88%;
    max-width: none;
    min-width: 0;
  }
}

/* ── Purchase sign-up screen (Login to Buy) ───────────── */
.purchase-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: linear-gradient(180deg, #05060a 0%, #070910 100%);
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

.purchase-auth-screen.hidden {
  display: none !important;
}

.purchase-auth-inner {
  width: 100%;
  max-width: 520px;
}

.purchase-back-link {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 0 0 20px;
  cursor: pointer;
  opacity: 0.9;
  pointer-events: auto;
  touch-action: manipulation;
}

.purchase-back-link:hover {
  opacity: 1;
  color: var(--accent);
}

.purchase-auth-brand {
  margin-bottom: 20px;
}

.purchase-auth-card h2 {
  color: var(--accent);
}

.purchase-field {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.purchase-field:focus {
  border-color: rgba(0, 136, 255, 0.6);
}

.purchase-password-row {
  position: relative;
  margin-bottom: 16px;
}

.purchase-password-row .purchase-field {
  margin-bottom: 0;
  padding-right: 72px;
}

.purchase-show-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  pointer-events: auto;
  touch-action: manipulation;
}

.purchase-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 22px;
}

.auth-checkbox-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding-left: 2px;
}

.auth-checkbox-row input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
  opacity: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
}

.auth-checkbox-ui {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.auth-checkbox-row input:checked + .auth-checkbox-ui {
  background: var(--accent);
  border-color: var(--accent);
}

.auth-checkbox-row input:checked + .auth-checkbox-ui::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-checkbox-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.purchase-continue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.purchase-continue-btn:not(:disabled) {
  pointer-events: auto;
  touch-action: manipulation;
}

/* ── VIDEOS DIRECTORY PAGE ────────────────────────────── */
.videos-header-area h2 {
  font-size: 32px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
  padding-top: 10px; /* Slight top padding for the starting section */
}

#videosAnchor,
.videos-header-area {
  scroll-margin-top: 98px;
}

@media (max-width: 480px) {
  #videosAnchor,
  .videos-header-area {
    scroll-margin-top: 88px;
  }
}

.view-icon {
  color: #fff;
  font-size: 28px;
}

/* Free Previews — solid yellow underline matches title width only */
.free-previews-header {
  margin-bottom: 24px;
}

.free-previews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.free-previews-heading-text {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  color: inherit;
}

.free-previews-heading-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: none;
}

.free-previews-count {
  background: rgba(255, 255, 255, 0.05);
  color: #999;
  font-size: 12px;
  border: none;
  padding: 4px 8px;
  align-self: center;
}

@media (max-width: 599px) {
  .free-previews-heading {
    font-size: 28px;
  }

  .free-previews-heading-text {
    padding-bottom: 10px;
  }

  .free-previews-heading-text::after {
    height: 3px;
  }
}

.view-subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 24px;
}

.search-sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex-grow: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.2);
}

.search-icon {
  color: var(--muted);
  font-size: 18px;
  margin-right: 12px;
}

.search-input-wrap input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.popular-toggle-btn {
  background: var(--card-2);
  border: 1px solid var(--border);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
  color: var(--muted);
  /* Mobile Interaction Optimizations */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.popular-toggle-btn .fire-icon {
  pointer-events: none;
}

.popular-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 165, 0, 0.4);
  background: rgba(255, 165, 0, 0.05);
}

.popular-toggle-btn:active {
  transform: translateY(0) scale(0.94);
}

.popular-toggle-btn.active {
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.25), rgba(0, 87, 183, 0.15));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 
    0 0 25px rgba(0, 136, 255, 0.5), 
    inset 0 0 15px rgba(0, 136, 255, 0.2),
    0 0 40px rgba(0, 136, 255, 0.2);
  text-shadow: 0 0 12px rgba(0, 136, 255, 0.8);
  transform: translateY(-2px) scale(1.1);
  animation: popularPulse 2s infinite ease-in-out;
}

@keyframes popularPulse {
  0% { transform: translateY(-2px) scale(1.1); box-shadow: 0 0 20px rgba(0, 136, 255, 0.4); }
  50% { transform: translateY(-2px) scale(1.15); box-shadow: 0 0 35px rgba(0, 136, 255, 0.6); }
  100% { transform: translateY(-2px) scale(1.1); box-shadow: 0 0 20px rgba(0, 136, 255, 0.4); }
}

.popular-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 136, 255, 0.08), rgba(0, 87, 183, 0.04), transparent);
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-left: 3px solid var(--accent);
  color: #FFD700;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.06);
  animation: badgeFadeIn 0.35s ease-out forwards;
}

.pop-fire {
  font-size: 16px;
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.keyword-scroll-container {
  display: block; /* Removed flex to prevent clipping; handle centering within the container */
  width: 100%;
  margin-bottom: 24px;
  overflow: visible;
}

.filter-icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.keyword-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Momentum scrolling for iOS */
  padding: 0 18px 8px; /* Added horizontal padding for 'breathe' at ends */
  margin: 0 -18px; /* Negative margin to bleed to edges if within container */
  
  /* Hide scrollbar for Chrome/Safari/Edge */
  &::-webkit-scrollbar {
    display: none;
  }
  
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
  
  /* IE/Edge legacy */
  -ms-overflow-style: none;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0; /* Important: prevents squashing in horizontal scroll */
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.pill:active {
  transform: scale(0.95);
}

.pill.active {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.pill:not(.active):hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* ── FREE PREVIEWS VIEW ──────────────────────────────────── */
.free-video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.free-video-card {
  background: var(--card-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.free-video-card:active {
  transform: scale(0.97);
}

.free-video-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.06);
}

.free-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.free-video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.free-video-thumb video::-webkit-media-controls,
.free-video-thumb video::-webkit-media-controls-enclosure,
.free-video-thumb video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

.free-volume-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.free-volume-btn:hover {
  background: rgba(8, 10, 18, 0.9);
  border-color: rgba(255, 215, 0, 0.45);
}

.free-volume-btn:active {
  transform: scale(0.94);
}

.free-volume-icon {
  display: block;
}

.free-volume-icon--off {
  display: none;
}

.free-volume-btn.is-muted .free-volume-icon--on {
  display: none;
}

.free-volume-btn.is-muted .free-volume-icon--off {
  display: block;
}

.free-video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.free-video-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%); /* slightly offset to center the triangle */
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(0, 136, 255, 0.8)) drop-shadow(0 0 24px rgba(255, 204, 0, 0.5));
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 2;
  pointer-events: none;
}

.free-video-card:hover .free-video-thumb::before {
  background: rgba(0, 0, 0, 0.1);
}

.free-video-card:hover .free-video-thumb::after {
  transform: translate(-40%, -50%) scale(1.15);
  border-left-color: #fff;
  filter: drop-shadow(0 0 20px rgba(0, 136, 255, 1)) drop-shadow(0 0 36px rgba(255, 204, 0, 0.8));
}

.free-video-thumb.is-playing::before,
.free-video-thumb.is-playing::after {
  opacity: 0;
  pointer-events: none;
}

.free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
  pointer-events: none;
  background: rgba(255, 215, 0, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.thumb-placeholder-logo {
  font-size: 60px;
  font-weight: 900;
  color: rgba(0, 136, 255, 0.15);
}

.free-card-info {
  padding: 20px;
}

.free-card-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text);
}

.free-card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CHAT VIEW ───────────────────────────────────────────── */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px);
  /* subtract topbar height */
  overflow: hidden;
}

.chat-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.room-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-icon {
  font-size: 20px;
}

.room-status {
  font-size: 13px;
  color: #10B981;
  /* Emerald green */
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chat-msg {
  display: flex;
  gap: 16px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.chat-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-stat-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.profile-stat-mini .stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-mini .stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.tap-to-change {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

.chat-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.chat-text {
  font-size: 15px;
  color: #ddd;
  line-height: 1.5;
}

.chat-input-bar {
  padding: 16px 20px;
  background: rgba(8, 10, 18, 0.95);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Save space for iPhone home indicator */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.chat-input-field {
  flex-grow: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 20px;
  height: 48px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-field:focus {
  border-color: #fff;
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  background: var(--accent);
  color: #111;
}

.premium-badge {
  color: var(--yellow);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* ── PREMIUM / PACKAGES VIEW ────────────────────────────── */
.premium-header-area {
  text-align: center;
  margin-bottom: 32px;
}

.premium-welcome {
  font-size: 32px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.premium-subtitle {
  color: #aaa;
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.4;
}

.premium-toggle-group {
  display: flex;
  gap: 12px;
  background: var(--card-1);
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
}

.p-toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  color: #888;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.p-toggle-btn.active {
  background: var(--card-2);
  border-color: rgba(255, 215, 0, 0.45);
  color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.p-toggle-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.premium-card {
  background: var(--card-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
}

.p-card-header {
  padding: 32px 24px;
  text-align: center;
}

.p-card-header h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
}

.p-card-header p {
  color: #888;
  font-size: 14px;
  margin: 0 0 24px;
}

.p-card-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.p-card-banner {
  background: rgba(255, 215, 0, 0.06);
  border-top: 1px solid rgba(255, 215, 0, 0.18);
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  text-align: center;
  padding: 16px;
  font-weight: 800;
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.p-card-body {
  padding: 32px 24px;
}

.p-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  font-size: 15px;
}

.p-card-features svg {
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.p-card-buy-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.p-card-buy-btn svg {
  color: var(--yellow);
}

.p-card-buy-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* ── PROFILE DROPDOWN MENU ─────────────────────────────── */
.profile-menu-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  width: 250px;
  background: rgba(6, 8, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 136, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 136, 255, 0.05);
  border-radius: 20px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.p-drop-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #f1f1f1;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.p-drop-item svg {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.p-drop-item:hover {
  background: rgba(255, 215, 0, 0.07);
  color: var(--yellow);
}

.p-drop-item:hover svg {
  color: var(--yellow);
}

.p-drop-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.p-drop-lang {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
}

.lang-pills {
  display: flex;
  gap: 8px;
}

.lang-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-pill.active {
  background: rgba(0, 136, 255, 0.15);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.2);
}

.lang-pill:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
}

.logout-item {
  color: #ef4444;
}

.logout-item svg {
  color: #ef4444;
}

.logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── SUPPORT FLOATING MENU ─────────────────────────────── */
.support-fab-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* Let clicks pass through to content below */
}

.support-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 136, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  pointer-events: auto; /* Re-enable clicks for the button itself */
}

.support-fab:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 136, 255, 0.3);
}

.support-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  margin-right: 4px;
  align-items: flex-end;
  pointer-events: none;
}

.support-menu-item {
  display: flex;
  align-items: center;
  width: 210px;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 136, 255, 0.15);
  border-radius: 18px;
  padding: 12px 18px 12px 12px;
  gap: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.support-menu-item:hover {
  background: rgba(0, 136, 255, 0.12);
  border-color: rgba(0, 136, 255, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 136, 255, 0.25);
  transform: translateX(-6px) scale(1.02) !important;
}

.support-menu-item:active {
  background: rgba(0, 136, 255, 0.18);
  border-color: rgba(0, 136, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 136, 255, 0.4);
  transform: translateX(-2px) scale(0.98) !important;
  transition: all 0.15s ease-out;
}

.support-menu-item:hover .s-icon-box {
  background: rgba(0, 136, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.4);
}

.support-menu-item:active .s-icon-box {
  background: rgba(0, 136, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.6);
}

.support-menu-item:hover .s-title {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.support-menu.open .support-menu-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered animation */
.support-menu.open .support-menu-item:nth-child(1) {
  transition-delay: 0.15s;
}

.support-menu.open .support-menu-item:nth-child(2) {
  transition-delay: 0.10s;
}

.support-menu.open .support-menu-item:nth-child(3) {
  transition-delay: 0.05s;
}

.support-menu.open .support-menu-item:nth-child(4) {
  transition-delay: 0s;
}

.s-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 136, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.s-title {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-sub {
  color: #aaa;
  font-size: 13px;
  margin-top: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── MY PROFILE PAGE VIEW ──────────────────────────────── */
.profile-card {
  padding: 60px 40px;
  background: var(--card-1);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  min-height: 360px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 24px;
}

.profile-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-avatar-circle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.profile-badge-free {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.profile-username-wrap {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.profile-username-wrap h3 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.5px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tap-to-change {
  color: #777;
  font-size: 13px;
  margin: 0;
}

.profile-stats {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: #aaa;
  font-size: 15px;
}

.stat-val {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.profile-referral {
  width: 100%;
}

.ref-label {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 10px;
}

.ref-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ref-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: 12px;
  height: 48px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.ref-copy-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ref-copy-btn:hover {
  background: var(--accent);
  color: #111;
  border-color: #fff;
}

.ref-helper {
  color: #666;
  font-size: 12px;
  margin: 0;
}

/* ── Mobile: spacious sign-in / unlock screen ──────────────── */
@media (max-width: 480px) {
  .login-screen {
    align-items: flex-start;
    min-height: 100dvh;
    min-height: 100svh;
    overflow-y: auto;
  }

  .login-screen .login-inner {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh + 44px);
    min-height: calc(100svh + 44px);
    box-sizing: border-box;
    padding:
      max(26px, env(safe-area-inset-top, 0px))
      16px
      max(88px, calc(env(safe-area-inset-bottom, 0px) + 52px));
    max-width: 100%;
  }

  .login-screen .auth-brand {
    margin-bottom: 20px;
    flex-shrink: 0;
  }

  .login-screen .auth-brand .brand-text-logo {
    font-size: 28px;
    letter-spacing: -1.5px;
    gap: 6px;
  }

  .login-screen .mini-accent-line {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
  }

  .login-screen .auth-brand-subtitle {
    font-size: 14px;
    line-height: 1.4;
  }

  .login-screen .auth-card:not(.mini-card) {
    padding: 30px 20px 32px;
    border-radius: 22px;
    margin-bottom: 34px;
    max-width: 100%;
  }

  .login-screen .auth-card h2 {
    font-size: 30px;
    margin: 0 0 20px;
    line-height: 1.15;
  }

  .login-screen .auth-gate-message {
    margin: 0 0 22px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 12px;
  }

  .login-screen .auth-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.45;
  }

  .login-screen .auth-form-error {
    margin: 14px 0 4px;
  }

  .login-screen .field-label {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.85px;
  }

  .login-screen .field-label:first-of-type {
    margin-top: 4px;
  }

  .login-screen .input-wrap {
    height: 52px;
    padding: 0 12px 0 6px;
    gap: 10px;
    margin-bottom: 8px;
    border-radius: 16px;
  }

  .login-screen .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    pointer-events: none;
  }

  .login-screen .auth-input-icon {
    width: 19px;
    height: 19px;
  }

  .login-screen .input-wrap input {
    font-size: 16px;
    pointer-events: auto;
    z-index: 2;
  }

  .login-screen .toggle-box {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .login-screen .auth-eye-icon {
    width: 21px;
    height: 21px;
  }

  .login-screen .verification-group {
    margin-bottom: 16px;
  }

  .login-screen .verify-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .login-screen .verify-code-display {
    height: 54px;
    font-size: 28px;
    letter-spacing: 5px;
    border-radius: 16px;
  }

  .login-screen .verify-refresh-btn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 16px;
    padding: 0;
  }

  .login-screen .verify-refresh-btn svg {
    width: 21px;
    height: 21px;
  }

  .login-screen .input-wrap.mini-wrap {
    height: 50px;
    padding: 0 14px;
  }

  .login-screen .submit-button {
    margin-top: 26px;
    min-height: 54px;
    font-size: 17px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
  }

  .login-screen .auth-card.mini-card {
    padding: 18px 18px;
    margin-top: 8px;
    margin-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    border-radius: 20px;
  }

  .login-screen .auth-card.mini-card p {
    font-size: 14px;
    line-height: 1.35;
  }

  .login-screen .auth-card.mini-card button {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 44px;
  }
}

/* ── PREMIUM SUBSCRIBE PAGE ────────────────────────── */
#subscribeView {
  padding-top: 0;
  padding-bottom: 80px;
}

.subscribe-container {
  max-width: 500px;
  margin: -10px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-header {
  margin-bottom: 40px;
}

.subscribe-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
  margin-bottom: 12px;
}

.subscribe-subtext {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

.pricing-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.95), rgba(10, 13, 22, 0.98));
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 32px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-top: 20px;
  /* Space for the badge above */
  margin-bottom: 24px;
}

.pricing-card.active-plan {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.12), 0 0 60px rgba(0, 136, 255, 0.08);
}

.pricing-card.active-plan.blue {
  border-color: rgba(0, 136, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 136, 255, 0.12), 0 0 60px rgba(0, 136, 255, 0.15);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c8a200, #FFD700);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
  letter-spacing: 0.5px;
}

.plan-badge.blue {
  background: linear-gradient(135deg, #0057B7, #33aaff);
  box-shadow: 0 0 18px rgba(0, 136, 255, 0.5);
  color: #fff;
}

.plan-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.plan-price {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  align-self: flex-start;
  margin-top: 4px;
}

.plan-price .amount {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.plan-price .period {
  font-size: 18px;
  color: var(--muted);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.benefit-item svg {
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.benefit-item.blue-check svg {
  color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(0, 136, 255, 0.4));
}

.subscribe-now-btn {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c8a200, #FFD700);
  color: #111;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.3);
}

.subscribe-now-btn.blue {
  background: linear-gradient(135deg, #0057B7, #33aaff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 136, 255, 0.3);
}

.subscribe-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.45);
  filter: brightness(1.08);
}

.subscribe-now-btn:active {
  transform: translateY(1px) scale(0.98);
}

.secondary-button.go-back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.secondary-button.go-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 600px) {
  .subscribe-header h1 {
    font-size: 32px;
  }

  .plan-price .amount {
    font-size: 48px;
  }
}

/* ── Payment View ─────────────────────────────────── */
/* ── AGE VERIFICATION OVERLAY ───────────────────────── */
/* Inert by default — only .is-active blocks the page (prevents invisible click traps) */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  visibility: hidden;
  display: none;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate.is-active {
  z-index: 100003;
  pointer-events: auto;
  visibility: visible;
  display: flex;
  opacity: 1;
}

/* Closing animation only while gate is still active — never override .hidden */
.age-gate.is-active.is-closing:not(.hidden),
.age-gate.is-active.fade-out:not(.hidden) {
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate.is-closing .age-modal {
  transform: scale(0.97) translateY(6px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0.92;
}

.age-modal {
  position: relative;
  z-index: 100001;
  pointer-events: auto;
  background: rgba(20, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 50px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 136, 255, 0.15);
  animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.age-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(220, 225, 235, 0.6) 50%, var(--yellow) 100%);
  margin: 0 auto 24px;
  border-radius: 10px;
  box-shadow: -15px 0 12px -2px rgba(0, 136, 255, 0.5), 15px 0 12px -2px rgba(255, 215, 0, 0.5);
}

.age-content p {
  font-size: 18px;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 10px;
  font-weight: 500;
}

.age-subtext {
  font-size: 15px !important;
  color: var(--muted) !important;
  opacity: 0.7 !important;
  margin-bottom: 32px !important;
}

.age-actions {
  position: relative;
  z-index: 100002;
  display: flex;
  gap: 16px;
  justify-content: center;
  pointer-events: auto;
}

.age-btn-yes,
.age-btn-no {
  position: relative;
  z-index: 100003;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.age-btn-yes {
  flex: 1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease,
    color 0.25s ease;
  box-shadow: none;
}

.age-btn-yes .age-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.age-btn-yes .age-btn-check {
  display: none;
  font-size: 20px;
  line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.85);
}

.age-btn-yes .age-btn-check.is-visible {
  display: inline-block;
  animation: ageCheckPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ageCheckPop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.age-btn-yes:hover:not(:disabled):not(.is-selected) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0088ff 0%, #0057b7 100%);
  border-color: rgba(0, 136, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 136, 255, 0.45);
}

.age-btn-yes.is-pressed:not(.is-selected) {
  transform: scale(0.96);
}

.age-btn-yes.is-selected {
  background: linear-gradient(135deg, #33b5ff 0%, #0088ff 45%, #0066dd 100%) !important;
  border-color: rgba(120, 200, 255, 0.95) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 2px rgba(0, 136, 255, 0.45),
    0 0 28px rgba(0, 136, 255, 0.65),
    0 14px 36px rgba(0, 136, 255, 0.5) !important;
  transform: scale(1) !important;
  cursor: default;
}

.age-btn-yes:disabled {
  cursor: default;
}

.age-actions.is-locked .age-btn-no {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.age-btn-no {
  flex: 1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.age-btn-no:hover {
  background: linear-gradient(135deg, #0088ff 0%, #0057b7 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0, 136, 255, 0.3);
}

@media (max-width: 480px) {
  .age-modal {
    padding: 40px 24px;
    border-radius: 24px;
  }
  
  .age-content h1 {
    font-size: 26px;
  }
  
  .age-content p {
    font-size: 16px;
  }
}

/* ── PAGE UNAVAILABLE STYLES ───────────────────────── */
.age-gate.hidden,
.age-gate:not(.is-active),
.age-gate.hidden.fade-out,
.age-gate.hidden.is-closing {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body.age-popup-open {
  overflow: hidden;
}

.restricted-icon {
  margin: 0 auto 24px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(0, 136, 255, 0.5));
  display: flex;
  justify-content: center;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
}

.unavailable-modal {
  border-color: rgba(0, 136, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 136, 255, 0.1);
}

/* ── ACCESS OPTIONS SCREEN ────────────────────────── */
#optionsView {
  animation: fadeIn 0.4s ease-out;
}

.view-header-area {
  text-align: center;
  margin-bottom: 40px;
}

.view-header-area .view-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(0, 136, 255, 0.35), 0 0 12px rgba(0, 136, 255, 0.2);
}

.view-header-area .view-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.access-option-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(13, 15, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.access-option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.access-option-card:hover {
  transform: translateY(-5px);
  background: rgba(13, 15, 23, 0.8);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 136, 255, 0.2);
}

.access-option-card:active {
  transform: translateY(-2px) scale(0.98);
}

.access-option-card--instant {
  border: 2px solid rgba(255, 215, 0, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 215, 0, 0.18);
  cursor: not-allowed;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .access-option-card--instant {
    grid-column: 1 / -1;
  }
}

.access-option-card--instant:hover,
.access-option-card--instant:active {
  transform: none;
  border-color: rgba(255, 215, 0, 0.85);
  background: rgba(13, 15, 23, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 215, 0, 0.18);
}

.access-option-card--instant:hover .option-icon-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.instant-video-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.instant-video-icon svg {
  margin-left: 3px;
}

.option-subtitle--muted {
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 500;
}

.option-icon-box {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.access-option-card:hover .option-icon-box {
  background: rgba(0, 136, 255, 0.1);
  border-color: var(--accent);
  color: #fff !important;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}

/* Specific Icon Colors */
.cashapp-icon { color: #00D64F; }
.venmo-icon { color: #3D95CE; }
.throne-icon { color: #8A2BE2; }
.card-icon { color: var(--accent); }

.option-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  text-shadow: none;
}

.option-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.option-subtitle {
  font-size: 14px;
  color: #dadbe0;
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
}

.option-bullets li {
  font-size: 14px;
  color: #dadbe0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.option-bullets li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
}

#optCard {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(13, 15, 23, 0.8), rgba(0, 136, 255, 0.05));
}

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

/* ── PROMO POPUP STYLES ──────────────────────────────── */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.promo-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.promo-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(10, 13, 20, 0.95);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0, 136, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 136, 255, 0.25), inset 0 0 20px rgba(0, 136, 255, 0.1);
  animation: promoPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes promoPopIn {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.promo-close:hover,
.promo-close:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.promo-top-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.promo-line {
  height: 1px;
  width: 24px;
  background: var(--yellow);
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.promo-eyebrow {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  text-align: center;
  display: block;
  width: 100%;
}

.promo-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.promo-headline {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.promo-highlight-blue {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 136, 255, 0.4);
}

.promo-highlight-yellow {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.promo-divider {
  width: 100%;
  max-width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.6), transparent);
  margin: 0 auto 30px;
  position: relative;
}

.promo-divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 14px;
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.6);
  background: rgba(10, 13, 20, 0.95);
  padding: 0 8px;
}

.promo-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0057B7, #33aaff);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  margin-bottom: 20px;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 136, 255, 0.6);
  filter: brightness(1.1);
}

.promo-btn:active {
  transform: translateY(0) scale(0.98);
}

.promo-later {
  background: transparent;
  border: none;
  color: #88a0b5;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(136, 160, 181, 0.5);
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
}

.promo-later:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.promo-disclaimer {
  margin: 12px auto 0;
  font-size: 11.5px;
  color: rgba(180, 190, 200, 0.65);
  text-align: center;
  line-height: 1.5;
  max-width: 280px;
  font-style: italic;
  letter-spacing: 0.1px;
}

/* ── Adult fantasy disclosure popup ───────────────────── */
.adult-disclosure-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: rgba(4, 6, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.adult-disclosure-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.adult-disclosure-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.adult-disclosure-overlay.hidden {
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden;
}

.adult-disclosure-card {
  width: min(92vw, 440px);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 136, 255, 0.55);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(10, 14, 26, 0.98) 0%, rgba(5, 7, 14, 0.99) 55%, rgba(8, 10, 18, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 136, 255, 0.12),
    0 0 56px rgba(0, 136, 255, 0.28),
    0 24px 48px rgba(0, 0, 0, 0.65),
    inset 0 0 32px rgba(0, 136, 255, 0.06);
  padding: 30px 26px 22px;
  text-align: center;
  animation: promoPopIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.adult-disclosure-title {
  flex-shrink: 0;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(22px, 5.8vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
  text-shadow: 0 0 22px rgba(0, 136, 255, 0.45), 0 0 8px rgba(255, 215, 0, 0.2);
}

.adult-disclosure-title .accent-blue {
  color: var(--blue, #0088ff);
}

.adult-disclosure-title .accent-gold {
  color: var(--yellow, #ffd700);
}

.adult-disclosure-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(85vh - 10.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 13px;
  margin-bottom: 16px;
  padding-right: 4px;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 3.8vw, 16px);
  line-height: 1.5;
  text-align: center;
}

.adult-disclosure-body p {
  margin: 0;
}

.adult-disclosure-body p strong,
.adult-disclosure-body em {
  color: rgba(255, 215, 0, 0.95);
  font-style: normal;
  font-weight: 600;
}

.adult-disclosure-btn {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 136, 255, 0.35), rgba(0, 90, 200, 0.55));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(0, 136, 255, 0.45),
    0 0 12px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.adult-disclosure-btn:hover,
.adult-disclosure-btn:focus-visible {
  background: linear-gradient(180deg, rgba(0, 150, 255, 0.5), rgba(0, 100, 220, 0.65));
  box-shadow:
    0 0 32px rgba(0, 136, 255, 0.55),
    0 0 16px rgba(255, 215, 0, 0.25);
  outline: none;
}

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

@media (max-width: 420px) {
  .adult-disclosure-overlay {
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  }

  .adult-disclosure-card {
    width: min(94vw, 430px);
    max-height: min(88vh, 640px);
    padding: 18px 16px 16px;
  }

  .adult-disclosure-title {
    font-size: clamp(20px, 5.4vw, 26px);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
  }

  .adult-disclosure-body {
    gap: 8px;
    font-size: 15px;
    line-height: 1.44;
    margin-bottom: 12px;
    max-height: calc(85vh - 8.5rem);
  }

  .adult-disclosure-btn {
    margin-top: 2px;
  }
}
/* End of File */
