/* ═══════════════════════════════════════════════════════════════════
   Dahyana — Landing Page Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── JS Loading — hide until settings applied to prevent flash ── */
.js-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ── Base ───────────────────────────────────────────────────────── */
html { height: 100%; }

body {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Arial, sans-serif;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  background: #050510;
}

/* ── Background Video ──────────────────────────────────────────── */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 20%;
  z-index: -2;
  pointer-events: none;
}

/* Hide native play button & controls on iOS Safari */
#bgVideo::-webkit-media-controls,
#bgVideo::-webkit-media-controls-panel,
#bgVideo::-webkit-media-controls-play-button,
#bgVideo::-webkit-media-controls-start-playback-button,
#bgVideo::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

/* When autoplay fails (JS adds this class), hide video so image shows */
#bgVideo.autoplay-failed {
  display: none;
}

/* ── Background Image (fallback) ──────────────────────────────── */
#bgImage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 20%;
  z-index: -3;
  pointer-events: none;
}

/* ── Overlay ────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 16, 0.40) 0%,
    rgba(5, 5, 16, 0.65) 40%,
    rgba(5, 5, 16, 0.92) 75%,
    rgba(5, 5, 16, 1.00) 100%
  );
  z-index: -1;
}

/* ── Content Container ──────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 100svh;
  min-height: 100vh;
  padding: 60px 24px calc(48px + env(safe-area-inset-bottom, 0px));
  max-width: 440px;
  margin: 0 auto;
}

/* ── Language Switcher ──────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 6px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.lang-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.30);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a1a;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 0%, #94b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(160, 180, 255, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Live Section ──────────────────────────────────────────────── */
.live-section {
  width: 100%;
}

.live-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(160, 180, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.countdown {
  display: flex;
  gap: 8px;
  width: 100%;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px 8px 10px;
  flex: 1;
  gap: 4px;
}

.unit span {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.unit em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(160, 180, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Countdown Platform Indicator ─────────────────────────────── */
.countdown-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 0;
}

.countdown-platform img {
  height: 16px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.countdown-platform span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(160, 180, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hide countdown units when value is zero (JS toggles this) */
.unit.unit-hidden {
  display: none;
}

/* ── Platform Buttons Container ────────────────────────────────── */
.platform-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* When Chaturbate is live: reorder so CB goes on top + bigger */
.platform-buttons.cb-live {
  gap: 12px;
}

.platform-buttons.cb-live .link-cb {
  order: -1;
  width: 100%;
  padding: 14px 40px;
}

.platform-buttons.cb-live .link-cb .link-logo {
  height: 28px;
}

.platform-buttons.cb-live .links-featured {
  order: 1;
}

/* ── Featured OnlyFans Row ─────────────────────────────────────── */
.links-featured {
  display: flex;
  gap: 10px;
  width: 100%;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 16px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.link-card:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
}

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

.link-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.link-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
}

/* OnlyFans VIP */
.link-of {
  background: linear-gradient(90deg, rgba(0, 120, 255, 0.35) 0%, rgba(80, 40, 200, 0.30) 100%);
  border: 1.5px solid rgba(100, 140, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 100, 255, 0.15);
}
.link-of:hover {
  box-shadow: 0 6px 28px rgba(0, 100, 255, 0.25);
}

/* Chaturbate — centered below OF */
.link-cb {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.20) 0%, rgba(220, 120, 0, 0.15) 100%);
  border: 1.5px solid rgba(245, 166, 35, 0.25);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.08);
  width: auto;
  padding: 11px 36px;
  flex: none;
  gap: 8px;
}
.link-cb .link-logo {
  height: 24px;
}
.link-cb:hover {
  box-shadow: 0 6px 28px rgba(245, 166, 35, 0.18);
}

/* OnlyFans FREE */
.link-of-free {
  background: linear-gradient(90deg, rgba(0, 200, 150, 0.25) 0%, rgba(0, 150, 100, 0.20) 100%);
  border: 1.5px solid rgba(0, 200, 150, 0.3);
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.1);
}
.link-of-free:hover {
  box-shadow: 0 6px 28px rgba(0, 200, 150, 0.2);
}

/* ── Social Grid ──────────────────────────────────────────────── */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.links-grid .grid-btn {
  width: calc(33.333% - 6px);
}

.grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.grid-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

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

.grid-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.grid-btn span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Grid hover colors */
.grid-ig:hover { border-color: rgba(225, 48, 108, 0.4); }
.grid-tg:hover { border-color: rgba(0, 136, 204, 0.4); }
.grid-tk:hover { border-color: rgba(255, 255, 255, 0.3); }
.grid-tw:hover { border-color: rgba(29, 161, 242, 0.4); }
.grid-fb:hover { border-color: rgba(24, 119, 242, 0.4); }
.grid-rd:hover { border-color: rgba(255, 69, 0, 0.4); }
.grid-cb:hover { border-color: rgba(245, 166, 35, 0.4); }

/* ── Platform Live Highlight ──────────────────────────────────── */
.link-card.platform-live {
  animation: pulse-platform 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.3), 0 0 40px rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.5);
}

@keyframes pulse-platform {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 59, 59, 0.3), 0 0 40px rgba(255, 59, 59, 0.1); }
  50%      { box-shadow: 0 0 30px rgba(255, 59, 59, 0.5), 0 0 60px rgba(255, 59, 59, 0.2); }
}

/* ── EN VIVO — text badge above the OnlyFans buttons ──────────── */
.live-badge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff3b3b;
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.6);
  animation: pulse-live-text 1.6s ease-in-out infinite;
  padding: 4px 0;
}

.live-badge .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
  animation: pulse-live-dot 1.6s ease-in-out infinite;
}

.live-badge.visible {
  display: flex;
}

@keyframes pulse-live-text {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes pulse-live-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  50%      { box-shadow: 0 0 10px rgba(239, 68, 68, 0.9); }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .content { padding: 50px 18px calc(40px + env(safe-area-inset-bottom, 0px)); gap: 24px; }
  .unit span { font-size: 1.7rem; }
  .unit { padding: 10px 6px 8px; }
  .countdown { gap: 6px; }
  .link-card { padding: 12px 14px; }
  .grid-btn { padding: 12px 6px; }
}

@media (max-width: 340px) {
  .unit span { font-size: 1.4rem; }
  .countdown { gap: 4px; }
  .links-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  letter-spacing: 0.06em;
  /* Extra padding so content clears the Safari bottom bar on iPhone */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.credit {
  position: fixed;
  bottom: 12px;
  left: 14px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  font-family: 'Helvetica Neue', -apple-system, sans-serif;
  z-index: 5;
}
