@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

/* ============================================================
   RAJAMODS7 — Aurora 3D Premium Theme
   A single visual layer shared by every page.
   ============================================================ */
:root {
  --rm-void: #05060a;
  --rm-ink: #0a0d16;
  --rm-panel: #111625;
  --rm-panel-2: #0b0f1b;
  --rm-line: rgba(255, 255, 255, 0.09);
  --rm-line-strong: rgba(255, 255, 255, 0.16);
  --rm-text: #f6f8ff;
  --rm-muted: #97a3c2;
  --rm-violet: #8b5cf6;
  --rm-indigo: #4f46e5;
  --rm-cyan: #22d3ee;
  --rm-pink: #fb7185;
  --rm-gold: #fbbf24;
  --rm-green: #34d399;
  --rm-radius: 22px;
  --rm-radius-sm: 15px;
  --rm-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  --rm-glow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 16px 45px rgba(0, 0, 0, 0.35);
  --rm-gradient: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 42%, #06b6d4 100%);
  --rm-gradient-hot: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
  --rm-font: "Manrope", "Inter", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --rm-display: "Sora", "Outfit", "Manrope", system-ui, sans-serif;
}

html {
  background-color: var(--rm-void) !important;
  background-image:
    radial-gradient(1100px 760px at 8% -8%, rgba(124, 58, 237, 0.20), transparent 56%),
    radial-gradient(1000px 700px at 100% 4%, rgba(34, 211, 238, 0.13), transparent 52%),
    radial-gradient(900px 700px at 50% 105%, rgba(251, 113, 133, 0.08), transparent 58%),
    linear-gradient(180deg, #05060a 0%, #080b14 42%, #05060a 100%) !important;
  background-attachment: fixed !important;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: transparent !important;
  color: var(--rm-text);
  font-family: var(--rm-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -35%;
  z-index: -2;
  pointer-events: none;
  background:
    conic-gradient(from 110deg at 50% 50%,
      rgba(139, 92, 246, 0.26),
      transparent 22%,
      rgba(34, 211, 238, 0.18) 48%,
      transparent 70%,
      rgba(251, 113, 133, 0.16) 88%,
      rgba(139, 92, 246, 0.26));
  filter: blur(95px);
  opacity: 0.52;
  animation: rmAurora 28s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.30;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.65px, transparent 0.65px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}

::selection {
  background: rgba(139, 92, 246, 0.55);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.75) rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.025); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0.75));
  border-radius: 99px;
  border: 2px solid #05060a;
}

/* ---------- ambient 3D layer ---------- */
.rm-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.rm-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.40;
  transform-style: preserve-3d;
  animation: rmOrbFloat 18s ease-in-out infinite alternate;
}

.rm-orb-1 {
  width: 280px; height: 280px;
  left: 4%; top: 18%;
  background: radial-gradient(circle at 35% 30%, rgba(139, 92, 246, 0.65), rgba(79, 70, 229, 0.05) 68%);
}

.rm-orb-2 {
  width: 220px; height: 220px;
  right: 6%; top: 34%;
  background: radial-gradient(circle at 40% 35%, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.02) 70%);
  animation-delay: -6s;
}

.rm-orb-3 {
  width: 340px; height: 340px;
  left: 40%; bottom: -12%;
  background: radial-gradient(circle at 50% 40%, rgba(251, 113, 133, 0.32), rgba(251, 113, 133, 0.01) 72%);
  animation-delay: -11s;
}

/* ---------- top progress ---------- */
.rm-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 999999;
  background: var(--rm-gradient);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
  pointer-events: none;
  transition: width 0.12s linear;
}

/* ---------- cursor glow ---------- */
.rm-cursor {
  position: fixed;
  width: 380px;
  height: 380px;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13), rgba(34, 211, 238, 0.05) 38%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

@media (pointer: fine) {
  body.rm-has-cursor .rm-cursor { opacity: 1; }
}

/* ---------- typography ---------- */
h1, h2, h3, h4, .hero-title, .section-title, .batch-head h1 {
  font-family: var(--rm-display);
  letter-spacing: -0.035em;
}

.section-title,
.page-title,
.ltv-section-title {
  background: linear-gradient(105deg, #ffffff 0%, #d8ccff 34%, #8be9f7 66%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rmTextShimmer 9s linear infinite;
}

.section-accent {
  background: var(--rm-gradient) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
}

a { transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { color: #c4b5fd; }

/* ---------- navbar ---------- */
.navbar,
header.top,
header.topbar,
.topbar,
.site-head,
.header {
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.94) 0%, rgba(6, 8, 14, 0.66) 100%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  backdrop-filter: blur(26px) saturate(1.45);
  border-bottom: 1px solid var(--rm-line) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42) !important;
}

.navbar::after,
header.top::after,
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.74) 28%, rgba(34, 211, 238, 0.70) 70%, transparent 100%);
}

.nav-link {
  position: relative;
  border-radius: 999px;
  padding: 7px 11px !important;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.12)) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.28) inset, 0 7px 24px rgba(79, 70, 229, 0.18);
}

.navbar .brand,
.brand,
.dbrand,
.f-brand {
  font-family: var(--rm-display);
  letter-spacing: -0.03em;
}

.navbar .brand b,
.brand b,
.dbrand b,
.f-brand b {
  background: linear-gradient(100deg, #fff, #c4b5fd 52%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-bottom-nav {
  background: rgba(7, 9, 16, 0.91) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border-top: 1px solid var(--rm-line) !important;
  box-shadow: 0 -18px 55px rgba(0, 0, 0, 0.48);
}

/* ---------- buttons / pills / fields ---------- */
.btn-primary,
.btn-secondary,
.ltv-btn,
.enroll,
.batch-enroll,
.cta,
.go,
.launch,
.ofc-tg-go,
.pw-v2-enroll-btn,
.pw-v2-study-btn,
.pw-v2-wa-btn,
.nf-cat-trigger,
.hero-arrow,
.scroll-btn,
.share,
.iconbtn,
button[type="submit"] {
  border-radius: 999px !important;
  border: 1px solid var(--rm-line-strong) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
}

.btn-primary,
.cta,
.go,
.launch,
.ofc-tg-go,
.pw-v2-enroll-btn,
.ltv-btn.primary,
.enroll,
button[type="submit"] {
  background: var(--rm-gradient) !important;
  background-size: 180% 180% !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 13px 34px rgba(79, 70, 229, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

.btn-primary:hover,
.cta:hover,
.go:hover,
.launch:hover,
.ofc-tg-go:hover,
.pw-v2-enroll-btn:hover,
.ltv-btn.primary:hover,
.enroll:hover,
button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.015) !important;
  background-position: 100% 50% !important;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.46), 0 0 32px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.btn-secondary,
.ltv-btn,
.hero-arrow,
.scroll-btn,
.share,
.iconbtn,
.pw-v2-study-btn,
.pw-v2-wa-btn {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #eef2ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-secondary:hover,
.ltv-btn:hover,
.hero-arrow:hover,
.scroll-btn:hover,
.share:hover,
.iconbtn:hover,
.pw-v2-study-btn:hover,
.pw-v2-wa-btn:hover {
  border-color: rgba(34, 211, 238, 0.48) !important;
  background: rgba(34, 211, 238, 0.09) !important;
  transform: translateY(-2px);
}

.pill,
.genre-pill,
.ltv-cat-pill,
.chip,
.tab,
.pw-v2-new-tag,
.pw-v2-discount-badge {
  border-radius: 999px !important;
  border: 1px solid var(--rm-line) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #dbe3ff !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ltv-cat-pill.on,
.ltv-cat-pill.active,
.chip.on,
.tab.on,
.genre-pill.active,
.genre-pill:hover {
  background: var(--rm-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 9px 26px rgba(79, 70, 229, 0.34);
}

input,
textarea,
select,
.search-input,
.nf-search-input,
.ltv-search {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: 999px !important;
  color: var(--rm-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
textarea:focus,
select:focus,
.search-input:focus,
.nf-search-input:focus,
.ltv-search:focus {
  outline: none !important;
  border-color: rgba(34, 211, 238, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10), 0 0 30px rgba(34, 211, 238, 0.10) !important;
  background: rgba(255, 255, 255, 0.075) !important;
}

/* ---------- hero ---------- */
.hero-section,
.hero {
  position: relative;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.96) 0%, rgba(5, 6, 10, 0.66) 42%, rgba(5, 6, 10, 0.06) 78%),
    linear-gradient(0deg, #05060a 0%, rgba(5, 6, 10, 0.05) 48%, rgba(5, 6, 10, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.hero-title {
  font-family: var(--rm-display);
  font-weight: 900;
  letter-spacing: -0.055em;
  background: linear-gradient(105deg, #ffffff 0%, #d8ccff 32%, #8be9f7 68%, #ffffff 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 18px 55px rgba(79, 70, 229, 0.26));
  animation: rmTextShimmer 8s linear infinite;
}

.hero-overview,
.hero p {
  color: #b9c3dd !important;
  line-height: 1.7;
}

.hero-meta-row .nf-match-tag,
.nf-match-tag {
  color: var(--rm-green) !important;
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.38);
}

.hero-dot {
  background: rgba(255, 255, 255, 0.16);
  transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-dot.active {
  background: linear-gradient(90deg, #8b5cf6, #22d3ee) !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.65);
}

.hero-slide .hero-backdrop {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.02);
  translate: calc(var(--rm-mx, 0) * 11px) calc(var(--rm-my, 0) * 11px);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), translate 0.45s ease-out;
}

@media (hover: hover) {
  .hero-section:hover .hero-slide.is-front .hero-backdrop { transform: scale(1.055); }
}

/* ---------- cards & posters ---------- */
.media-card,
.nf-top10-card,
.ltv-tile,
.tile,
.platform-card,
.soon-card,
.batch-card,
.folder,
.result-card,
.pw-v2-batch-card,
.pw-v2-cohort-card,
.ofc-class-card,
.ofc-study-pack-card,
.ss-content-card,
.card {
  border-radius: var(--rm-radius) !important;
  border: 1px solid var(--rm-line) !important;
  background:
    linear-gradient(155deg, rgba(24, 30, 50, 0.84) 0%, rgba(11, 15, 27, 0.94) 58%, rgba(7, 9, 16, 0.97) 100%) !important;
  box-shadow: var(--rm-glow) !important;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s ease, border-color 0.42s ease !important;
}

.media-card,
.nf-top10-card,
.ltv-tile,
.tile,
.pw-v2-batch-card,
.pw-v2-cohort-card,
.ofc-class-card,
.ofc-study-pack-card,
.ss-content-card {
  overflow: hidden;
}

.media-card:hover,
.nf-top10-card:hover,
.ltv-tile:hover,
.tile:hover,
.platform-card:hover,
.soon-card:hover,
.batch-card:hover,
.folder:hover,
.result-card:hover,
.pw-v2-batch-card:hover,
.pw-v2-cohort-card:hover,
.ofc-class-card:hover,
.ofc-study-pack-card:hover,
.ss-content-card:hover,
.card:hover {
  border-color: rgba(139, 92, 246, 0.46) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58), 0 0 42px rgba(124, 58, 237, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.poster-wrap,
.card-poster-wrap,
.thumb,
.cover,
.ltv-thumb,
.batch-thumb,
.ofc-class-thumb {
  border-radius: var(--rm-radius-sm) !important;
  overflow: hidden;
  background: linear-gradient(145deg, #151a2a, #0a0d16);
}

.poster-img,
.card-poster,
.thumb img,
.cover img,
.ltv-thumb img,
.batch-thumb img,
.ofc-class-thumb img {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease !important;
}

.media-card:hover .poster-img,
.media-card:hover .card-poster,
.ltv-tile:hover .ltv-thumb img,
.tile:hover img,
.batch-card:hover .thumb img,
.pw-v2-batch-card:hover .thumb img,
.ofc-class-card:hover .ofc-class-thumb img {
  transform: scale(1.065) !important;
  filter: saturate(1.12) contrast(1.04);
}

.card-title,
.card-sub,
.card-info,
.ltv-tile-name,
.batch-name {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.card-hover-overlay,
.ltv-tile-overlay {
  background: linear-gradient(180deg, transparent 12%, rgba(5, 6, 10, 0.86) 100%) !important;
}

.play-circle {
  background: var(--rm-gradient) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 12px 34px rgba(79, 70, 229, 0.46) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.media-card:hover .play-circle,
.ltv-tile:hover .play-circle {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 0 36px rgba(34, 211, 238, 0.42) !important;
}

.section-header {
  position: relative;
}

.section-title {
  font-weight: 900;
}

.view-all-link {
  color: #8be9f7 !important;
  font-weight: 800;
}

.view-all-link:hover {
  color: #fff !important;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
}

.catalog-section {
  scroll-margin-top: 90px;
}

/* ---------- 3D tilt ---------- */
.rm-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .rm-tilt:hover {
    transform: perspective(1100px) rotateX(var(--rm-rx, 0deg)) rotateY(var(--rm-ry, 0deg)) translateY(-7px) scale(1.014) !important;
  }
}

/* ---------- reveal ---------- */
.rm-reveal {
  opacity: 0;
  translate: 0 24px;
  scale: 0.985;
  transition: opacity 0.75s ease, translate 0.75s cubic-bezier(0.16, 1, 0.3, 1), scale 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-delay: var(--rm-delay, 0ms) !important;
}

.rm-reveal.rm-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* ---------- live TV ---------- */
.ltv-tile {
  position: relative;
}

.ltv-badge-live,
.ltv-tile-live::before {
  background: var(--rm-gradient-hot) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.55) !important;
  animation: rmPulse 1.9s ease-in-out infinite;
}

.ltv-pulse-dot {
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.9);
  animation: rmPulse 1.6s ease-in-out infinite;
}

#ltvPlayerContainer,
.ltv-player-shell,
.ltv-player,
.player-shell,
.player-wrap {
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: linear-gradient(160deg, rgba(16, 21, 36, 0.9), rgba(4, 6, 12, 0.98)) !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), 0 0 70px rgba(124, 58, 237, 0.13) !important;
  overflow: hidden;
}

.ltv-hero,
.ltv-head {
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(20, 26, 44, 0.82), rgba(8, 11, 20, 0.92)) !important;
  border: 1px solid var(--rm-line);
  box-shadow: var(--rm-shadow);
}

.ltv-error-box,
.ltv-center-overlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ltv-error-box {
  border-radius: 20px;
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: rgba(15, 9, 16, 0.78);
}

.ltv-q-pill,
.ltv-q-tag,
.ltv-epg24-tab,
.ltv-ctrl-group {
  border-radius: 999px !important;
  border: 1px solid var(--rm-line) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

/* ---------- study / PW / nexttoppers ---------- */
.hero,
.batch-head,
.dhead {
  border-radius: 30px !important;
  border: 1px solid var(--rm-line) !important;
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(139, 92, 246, 0.18), transparent 65%),
    linear-gradient(155deg, rgba(20, 26, 44, 0.82), rgba(8, 11, 20, 0.94)) !important;
  box-shadow: var(--rm-shadow) !important;
}

.hero h1,
.hero h1 span,
.batch-head h1,
.dhead h1 {
  font-family: var(--rm-display);
  letter-spacing: -0.045em;
  background: linear-gradient(105deg, #ffffff, #d8ccff 42%, #8be9f7 78%, #ffffff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rmTextShimmer 9s linear infinite;
}

.tile .mark,
.mark,
.pill.hot,
.pill.free,
.pill.live,
.ofc-class-badge,
.pw-v2-new-tag,
.pw-v2-discount-badge {
  background: var(--rm-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.32);
}

.tile img,
.batch-head .cover img,
.thumb img,
.ofc-class-thumb img {
  filter: saturate(1.08) contrast(1.03);
}

.pw-v2-batch-card,
.ofc-class-card,
.ofc-study-pack-card,
.ss-content-card {
  position: relative;
}

.ofc-study-pack-card::after,
.pw-v2-batch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%);
  opacity: 0.75;
}

.site-foot,
footer {
  border-top: 1px solid var(--rm-line) !important;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 10, 0.72)) !important;
  color: var(--rm-muted) !important;
}

/* ---------- modals / dialogs ---------- */
.nf-qv-dialog,
.modal,
.ltv-modal,
.nf-modal-content,
.dialog {
  border-radius: 26px !important;
  border: 1px solid var(--rm-line-strong) !important;
  background: linear-gradient(155deg, rgba(20, 26, 44, 0.96), rgba(6, 8, 14, 0.98)) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 80px rgba(124, 58, 237, 0.15) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}

.nf-modal-backdrop,
.modal-backdrop {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(2, 3, 7, 0.74) !important;
}

/* ---------- loading / skeleton ---------- */
.spinner,
.loader,
.loading-spinner {
  border-color: rgba(139, 92, 246, 0.16) !important;
  border-top-color: #8b5cf6 !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
}

/* ---------- footer / floating extras ---------- */
.rm-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rm-line-strong);
  background: rgba(12, 16, 28, 0.82);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.rm-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rm-to-top:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}

/* ---------- motion ---------- */
@keyframes rmAurora {
  to { transform: rotate(360deg); }
}

@keyframes rmTextShimmer {
  to { background-position: 220% center; }
}

@keyframes rmOrbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(22px, -28px, 70px) scale(1.08); }
}

@keyframes rmPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.04); }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .rm-orb,
  .hero-title,
  .section-title,
  .hero h1,
  .hero h1 span,
  .batch-head h1,
  .dhead h1 {
    animation: none !important;
  }
  .rm-reveal { opacity: 1; translate: 0 0; scale: 1; transition: none !important; }
  .rm-tilt:hover { transform: none !important; }
}

/* ---------- mobile polish ---------- */
@media (max-width: 760px) {
  body::before { filter: blur(70px); opacity: 0.38; }
  body::after { opacity: 0.20; }
  .rm-cursor { display: none; }
  .rm-to-top { right: 14px; bottom: 86px; }
  .hero-section::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 10, 0.35) 0%, rgba(5, 6, 10, 0.62) 44%, #05060a 100%),
      linear-gradient(90deg, rgba(5, 6, 10, 0.72), transparent 80%);
  }
  .media-card,
  .nf-top10-card,
  .ltv-tile,
  .tile,
  .card { border-radius: 18px !important; }
}

/* ---------- light-mode safety ---------- */
html[data-theme="light"] {
  background-color: #eef2ff !important;
  background-image:
    radial-gradient(900px 650px at 10% -5%, rgba(124, 58, 237, 0.14), transparent 58%),
    radial-gradient(800px 600px at 95% 2%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, #f5f7ff 0%, #e9edfb 100%) !important;
  color-scheme: light;
}

html[data-theme="light"] body { color: #11172a; }
html[data-theme="light"] body::before { opacity: 0.20; }
html[data-theme="light"] .navbar,
html[data-theme="light"] header.top,
html[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(17, 23, 42, 0.09) !important;
}
html[data-theme="light"] .nav-link { color: #3b4560 !important; }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: #11172a !important; background: rgba(124, 58, 237, 0.10) !important; }
html[data-theme="light"] .media-card,
html[data-theme="light"] .nf-top10-card,
html[data-theme="light"] .ltv-tile,
html[data-theme="light"] .tile,
html[data-theme="light"] .card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(239, 243, 255, 0.96)) !important;
  border-color: rgba(17, 23, 42, 0.09) !important;
  box-shadow: 0 18px 50px rgba(38, 51, 92, 0.12) !important;
}
html[data-theme="light"] .hero-overview,
html[data-theme="light"] .hero p { color: #52607f !important; }
html[data-theme="light"] .site-foot,
html[data-theme="light"] footer { background: rgba(255, 255, 255, 0.7) !important; }


/* Hide IPTV / Smart TV Export Modal and Buttons containing ofcmovies */
#ltvIptvModalBtn,
#ltvIptvModal,
.ltv-iptv-modal,
[onclick*="openIptvExportModal"],
[onclick*="ltvIptvModal"],
a[href*="api.ofcmovies.com"],
a[href*="/portal"],
.api-developers-option,
.developer-api-link {
  display: none !important;
}

/* ---------- ads preference pill ---------- */
.rm-ads-pill {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--rm-line-strong);
  background: rgba(12, 16, 28, 0.82);
  color: var(--rm-muted);
  font: 800 10.5px/1 var(--rm-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rm-ads-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.rm-ads-switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
  transition: background 0.2s ease;
}
.rm-ads-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #9ca3af;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.rm-ads-pill[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.13);
}
.rm-ads-pill[aria-pressed="true"] .rm-ads-switch { background: rgba(16, 185, 129, 0.4); }
.rm-ads-pill[aria-pressed="true"] .rm-ads-switch i {
  transform: translateX(13px);
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}
.rm-ads-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 120;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(9, 12, 22, 0.92);
  border: 1px solid var(--rm-line-strong);
  color: #fff;
  font: 700 12px/1.2 var(--rm-font);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rm-ads-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Ad-free mode: hide common third-party ad slots without touching real content. */
html.rm-ad-free .adsbygoogle,
html.rm-ad-free [id^="ad-"],
html.rm-ad-free [id*="-ad-"],
html.rm-ad-free [class^="ad-slot"],
html.rm-ad-free [class*=" ad-slot"],
html.rm-ad-free .ad-container,
html.rm-ad-free .ads-container,
html.rm-ad-free iframe[src*="doubleclick"],
html.rm-ad-free iframe[src*="googlesyndication"],
html.rm-ad-free iframe[src*="adservice"],
html.rm-ad-free [data-ad-slot] { display: none !important; }
