:root {
  --brand: #6c3ee8;
  --brand-d: #5228cc;
  --brand-l: #8b5cf6;
  --brand-bg: #f0ebff;
  --accent-bg: #fff8ec;
  --dark: #0c0a18;
  --bg: #f5f3fb;
  --card: #ffffff;
  --muted: #4e4a6a;
  --subtle: #8e8aaa;
  --border: #e2ddf5;
  --border2: #cdc8eb;
  --pill: 100px;
  --r: 14px;
  --r2: 20px;
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  height: auto;
}

#viewDash {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  background: linear-gradient(180deg, #f0ecff 0, var(--bg) 260px);
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.logo-name em {
  color: var(--brand);
  font-style: normal;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--ease);
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-l));
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 62, 232, 0.28);
}
.btn-brand:hover,
.btn-brand:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 62, 232, 0.4);
}
.btn-brand:active {
  transform: translateY(0);
}
/* reward pills */
.reward-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.rp {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--ease);
}
.rp:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.rp .rp-val {
  color: var(--brand-d);
  font-weight: 800;
  font-size: 0.88rem;
}
.rp svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}

/* ── DASH NAV ─────────────────────────────── */
.dash-nav {
  display: flex;
  height: var(--nav-h);
  padding: 0 max(5vw, 16px);
  padding-left: max(5vw, calc(16px + var(--safe-left)));
  padding-right: max(5vw, calc(16px + var(--safe-right)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px 5px 7px;
  border-radius: var(--pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.pts-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--dark);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
.pts-chip .coin {
  font-size: 0.95rem;
}
.pts-chip .up {
  background: var(--brand-bg);
  color: var(--brand-d);
  padding: 2px 8px;
  border-radius: var(--pill);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 2px;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) max(5vw, 20px);
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(168, 85, 247, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 90%,
      rgba(108, 62, 232, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #120d2b 0%, #241450 52%, #5b2fc9 130%);
  color: #fff;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.hero::before {
  width: 430px;
  height: 430px;
  right: -170px;
  top: -190px;
}
.hero::after {
  width: 270px;
  height: 270px;
  left: -115px;
  bottom: -165px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7df1ad;
  box-shadow: 0 0 0 4px rgba(125, 241, 173, 0.14);
}
.hero h1 {
  max-width: 650px;
  margin: 17px 0;
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 span {
  color: #c8b8ff;
}
.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.94rem, 1.8vw, 1.08rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.hero .btn {
  padding: 13px 20px;
  font-size: 0.9rem;
}
.hero .btn-brand {
  background: #fff;
  color: var(--brand-d);
  box-shadow: 0 8px 24px rgba(7, 4, 22, 0.25);
}
.hero .btn-brand:hover,
.hero .btn-brand:focus-visible {
  background: #f1edff;
  box-shadow: 0 12px 30px rgba(7, 4, 22, 0.35);
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pill);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--ease);
}
.hero-secondary:hover,
.hero-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.hero-secondary svg {
  width: 16px;
  height: 16px;
}

.hero-preview {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 64px rgba(6, 3, 21, 0.28);
  backdrop-filter: blur(10px);
}
.hero-preview-screen {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(9, 5, 25, 0.08), rgba(9, 5, 25, 0.8)),
    url("https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=900&q=85")
      center / cover;
}
.hero-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 5, 25, 0.08),
    rgba(9, 5, 25, 0.8)
  );
  pointer-events: none;
}
.hero-preview-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--pill);
  background: rgba(11, 7, 28, 0.58);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hero-preview-info {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
}
.hero-preview-info span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}
.hero-preview-info strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}
.hero-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 10px 26px rgba(8, 4, 25, 0.32);
  transform: translate(-50%, -50%);
  transition:
    opacity var(--ease),
    transform var(--ease);
}
.hero-preview-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
.hero-preview-screen:hover .hero-preview-play,
.hero-preview-screen:focus-visible .hero-preview-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

/* ── DASH BODY ────────────────────────────── */
.dash-body {
  padding: 52px max(5vw, 16px) 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* TABS — scrollable on mobile */
.tabs-row {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-row::-webkit-scrollbar {
  display: none;
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--subtle);
  transition: var(--ease);
  position: relative;
  bottom: -2px;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
}
.tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.tab:hover {
  color: var(--brand);
  background: var(--brand-bg);
}
.tab.on {
  color: var(--brand);
  background: var(--brand-bg);
  border-bottom-color: var(--brand);
}
.pane {
  display: none;
  animation: fadeUp 0.2s ease;
}
.pane.on {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── VIDEO GRID ───────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.video-rotator {
  margin-bottom: 20px;
}
.video-rotator .vcard.is-changing {
  opacity: 0.18;
  transform: translateY(4px);
}
.video-rotator .vcard {
  animation: videoCardIn 620ms ease both;
}
@keyframes videoCardIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.vcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition:
    transform var(--ease),
    opacity 520ms ease-in-out,
    box-shadow var(--ease),
    border-color var(--ease);
}
.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(108, 62, 232, 0.16);
  border-color: var(--border2);
}

.thumb {
  aspect-ratio: 16/9;
  background: #d8d3f0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.thumb-ov {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 24, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  cursor: pointer;
}
.vcard:hover .thumb-ov {
  opacity: 1;
}

.vbody {
  padding: 14px 16px 16px;
}
.vtop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}
.vtitle {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  flex: 1;
}
.pbadge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--pill);
  color: var(--muted);
  white-space: nowrap;
}
.vmeta {
  font-size: 0.73rem;
  color: var(--subtle);
  margin-bottom: 12px;
  line-height: 1.5;
}
.vfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 11px;
  gap: 8px;
}
.reward-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-bg);
  color: #7a4e00;
  padding: 4px 10px;
  border-radius: var(--pill);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #fde68a;
  flex-shrink: 0;
}
.reward-badge svg {
  width: 12px;
  height: 12px;
}
.btn-watch {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-l));
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.77rem;
  transition: all var(--ease);
  box-shadow: 0 3px 12px rgba(108, 62, 232, 0.25);
  touch-action: manipulation;
}
.btn-watch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 62, 232, 0.38);
}
.btn-watch:active {
  transform: translateY(0);
}
.btn-watch svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.views-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: var(--pill);
  font-size: 0.64rem;
  font-weight: 700;
  color: #15803d;
  margin-left: 4px;
}

/* ── GATE ─────────────────────────────────── */
.gate {
  background: linear-gradient(145deg, var(--bg), var(--brand-bg));
  border: 1.5px dashed rgba(108, 62, 232, 0.22);
  border-radius: var(--r2);
  padding: 48px 20px;
  text-align: center;
  margin-top: 4px;
}
.gate-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--brand-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(108, 62, 232, 0.08);
}
.gate-icon svg {
  width: 30px;
  height: 30px;
}
.browse-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 470px;
  margin: 0 auto;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px -20px rgba(49, 26, 123, 0.7);
}
.browse-more-copy strong {
  display: block;
  color: var(--dark);
  font-size: 0.92rem;
  line-height: 1.3;
}
.browse-more-copy span {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.76rem;
}
.browse-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--ease);
}
.browse-more-link:hover,
.browse-more-link:focus-visible {
  background: var(--brand-d);
  transform: translateY(-1px);
}
.browse-more-link svg {
  width: 13px;
  height: 13px;
}
.gate p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto 22px;
}
.gate-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.gate-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: var(--pill);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
}
.gate-perk svg {
  width: 12px;
  height: 12px;
  color: #22c55e;
  flex-shrink: 0;
}

/* ── SKELETON ─────────────────────────────── */
/* ── POST FORM ────────────────────────────── */
.form-wrap {
  max-width: 600px;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: clamp(20px, 5vw, 32px);
}
.form-card h3 {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.form-card .sub {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 24px;
}
.fg {
  margin-bottom: 14px;
}
.fg label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fg input,
.fg select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--bg);
  transition:
    border-color var(--ease),
    background var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.fg input:focus,
.fg select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.fg-row {
  display: flex;
  gap: 12px;
}
.fg-row .fg {
  flex: 1;
}
.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--brand-bg);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 16px;
  border: 1px solid rgba(108, 62, 232, 0.15);
}
.form-note svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-note p {
  font-size: 0.81rem;
  color: var(--brand-d);
  font-weight: 500;
  line-height: 1.55;
}

/* post button loading */
.btn-post-submit {
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.btn-post-submit.loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn-post-submit.loading .btn-post-text {
  opacity: 0;
}
.btn-post-submit.loading .btn-post-spinner {
  opacity: 1;
}
.btn-post-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
.btn-post-spinner .spin-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.btn-post-spinner .spin-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── EMPTY ────────────────────────────────── */
.empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg);
  border-radius: var(--r2);
  border: 1px dashed var(--border2);
}
.empty svg {
  width: 40px;
  height: 40px;
  color: var(--subtle);
  margin-bottom: 12px;
}
.empty h4 {
  font-weight: 700;
  margin-bottom: 6px;
}
.empty p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 340px;
  margin: 0 auto 16px;
}

/* ── LOADING OVERLAY ──────────────────────── */
#loadOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 6, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
#loadOverlay.show {
  display: flex;
  animation: fadeInOv 0.18s ease;
}
@keyframes fadeInOv {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(168, 139, 250, 0.18);
  border-top-color: #a855f7;
  animation: spin 0.85s linear infinite;
}
.loader-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-pulse {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(108, 62, 232, 0.15);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
.loader-icon {
  position: absolute;
  font-size: 1.1rem;
}
.loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.loader-dots span {
  display: inline-block;
  animation: dotPulse 1.4s ease-in-out infinite;
  opacity: 0.3;
}
.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotPulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ── MODAL ────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 6, 24, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-backdrop.open {
  display: flex;
  animation: fadeInOv 0.2s ease;
}
.modal {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px calc(32px + var(--safe-bottom));
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 -16px 60px rgba(108, 62, 232, 0.2);
  animation: sheetUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 1px solid var(--border);
}
@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border2);
  margin: 0 auto 24px;
}
.modal-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: var(--brand-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(108, 62, 232, 0.09);
}
.modal-icon svg {
  width: 28px;
  height: 28px;
}
.modal h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.modal p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-close {
  background: none;
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--pill);
  transition: color var(--ease);
  margin-top: 2px;
  touch-action: manipulation;
}
.modal-close:hover {
  color: var(--muted);
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 90;
  gap: 4px;
  justify-content: stretch;
}
.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--subtle);
  transition: var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bnav-btn svg {
  width: 20px;
  height: 20px;
}
.bnav-btn.on {
  color: var(--brand);
  background: var(--brand-bg);
}
.bnav-btn:active {
  transform: scale(0.94);
}
/* ── FOOTER ── */
.footer {
  background: linear-gradient(135deg, #0a0f1a 0%, #141b2b 50%, #1a2335 100%);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(50px, 6vw, 70px) 0 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(139, 92, 246, 0.04) 30%,
    transparent 60%
  );
  animation: footerGlow 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes footerGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 5%) scale(1.2);
  }
}

.footer .container {
  position: relative;
  z-index: 1;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 700px;
}

.ft-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ft-logo img {
  height: 30px;
  width: auto;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.ft-logo:hover img {
  filter: brightness(1.3);
}

.ft-logo-name {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
}

.ft-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 600px;
}

.ft-desc strong {
  color: rgba(255, 255, 255, 0.7);
}

.ft-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.ft-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.ft-contact:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.ft-contact a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ft-contact a:hover {
  color: #c7d2fe;
}

.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.ft-copy a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ft-copy a:hover {
  color: #93c5fd;
}

/* Responsive */
@media (max-width: 768px) {
  .ft-grid {
    max-width: 100%;
  }

  .ft-desc {
    max-width: 100%;
  }

  .ft-contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 20px;
  }

  .ft-grid {
    gap: 24px;
    padding-bottom: 30px;
  }

  .ft-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .ft-logo img {
    height: 24px;
  }

  .ft-logo-name {
    font-size: 1rem;
  }

  .ft-contact {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* ── MOBILE BOTTOM NAV SPACING ─────────────── */
@media (max-width: 640px) {
  .dash-body {
    padding-bottom: calc(80px + var(--safe-bottom));
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-h: 58px;
  }

  .reward-pills {
    gap: 7px;
  }
  .rp {
    padding: 7px 13px;
    font-size: 0.77rem;
  }

  /* Dash nav */
  .dash-nav {
    padding: 0 14px;
    gap: 8px;
  }
  .dash-body {
    padding-top: 38px;
  }
  .hero {
    padding: 52px 18px 58px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-preview {
    max-width: 470px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-preview-screen {
    min-height: 230px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero .btn,
  .hero-secondary {
    justify-content: center;
  }
  .pts-chip {
    display: none;
  }

  .tabs-row {
    display: none;
  }
  .bottom-nav {
    display: flex;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  /* Cards */
  .vbody {
    padding: 12px 14px 14px;
  }
  .vtitle {
    font-size: 0.86rem;
  }
  .btn-watch {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  /* Gate */
  .gate {
    padding: 36px 16px;
  }
  .browse-more {
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
  }
  .gate-perks {
    gap: 6px;
  }
  .gate-perk {
    font-size: 0.74rem;
    padding: 5px 11px;
  }

  /* Form */
  .form-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .fg-row {
    flex-direction: column;
    gap: 0;
  }
  .fg-row .fg:last-child {
    max-width: 100% !important;
  }
  .form-card h3 {
    font-size: 1.1rem;
  }
}

@media (hover: none) {
  .vcard:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
  .vcard:hover .thumb-ov {
    opacity: 0;
  }
  .btn-brand:hover,
  .btn-watch:hover {
    transform: none;
    box-shadow: 0 4px 18px rgba(108, 62, 232, 0.28);
  }
  .btn-brand:active {
    opacity: 0.85;
  }
  .btn-watch:active {
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-rotator,
  .video-rotator .vcard {
    animation: none;
    transition: none;
  }
}
