/* ==========================================================================
   IPTVM3U — Dark Premium Tech theme
   ========================================================================== */

:root {
  --iptvm3u-bg: #0A0A0F;
  --iptvm3u-bg-alt: #0F0F17;
  --iptvm3u-surface: rgba(255, 255, 255, 0.04);
  --iptvm3u-border: rgba(255, 255, 255, 0.08);
  --iptvm3u-text: #F5F5F7;
  --iptvm3u-text-muted: #9CA3AF;
  --iptvm3u-brand-start: #6366F1;
  --iptvm3u-brand-mid: #A855F7;
  --iptvm3u-brand-end: #22D3EE;
  /* Lighter stops used only for text-on-dark (background-clip: text). The
     background-oriented stops above are individually too dark to hit 4.5:1
     against our near-black page background when used as flat text color. */
  --iptvm3u-brand-text-start: #A5B4FC;
  --iptvm3u-brand-text-mid: #D8B4FE;
  --iptvm3u-brand-text-end: #67E8F9;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--iptvm3u-bg);
  color: var(--iptvm3u-text) !important;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .16), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(168, 85, 247, .12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, .08), transparent 40%);
  background-attachment: fixed;
}

/* main.css (the purchased theme) hard-codes h1-h6 to near-black (#020626) and
   p to a mid-grey (#707481) via bare element selectors. Those rules have no
   competition on the `color` property from our own rules below, so they win
   by default and render every heading/paragraph unreadable on our dark
   background. Force them explicitly here, !important, so no future include
   order or specificity accident can silently reintroduce the same bug. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--iptvm3u-text) !important;
}

p {
  color: var(--iptvm3u-text-muted) !important;
}

a { color: inherit; }

/* Brand gradient utilities */
.iptvm3u-text-brand {
  background: linear-gradient(90deg, var(--iptvm3u-brand-text-start), var(--iptvm3u-brand-text-mid), var(--iptvm3u-brand-text-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.iptvm3u-bg-gradient,
.iptvm3u-hero,
.iptvm3u-plan-highlight {
  background: linear-gradient(90deg, var(--iptvm3u-brand-start), var(--iptvm3u-brand-mid));
}

.iptvm3u-btn-gradient {
  background: linear-gradient(90deg, var(--iptvm3u-brand-start), var(--iptvm3u-brand-mid));
  border: none;
  box-shadow: 0 0 30px -8px rgba(139, 92, 246, .6);
  transition: box-shadow .25s ease, transform .25s ease;
}

.iptvm3u-btn-gradient:hover {
  opacity: 1;
  color: #fff;
  box-shadow: 0 0 45px -4px rgba(139, 92, 246, .9);
  transform: translateY(-1px);
}

.iptvm3u-plan-highlight {
  transform: scale(1.03);
  box-shadow: 0 0 60px -12px rgba(139, 92, 246, .5);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.iptvm3u-testimonials-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .3);
}

.iptvm3u-testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--iptvm3u-brand-mid);
}

/* ---- Glassmorphism surfaces (navbar, cards, accordion, footer) ---- */

.navbar,
.card,
.iptvm3u-glass,
.accordion-item,
.dropdown-menu,
.iptvm3u-cat-card {
  background: var(--iptvm3u-surface) !important;
  border: 1px solid var(--iptvm3u-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--iptvm3u-text) !important;
}

.iptvm3u-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, .4) !important;
  box-shadow: 0 0 30px -8px rgba(168, 85, 247, .35) !important;
}

/* Subtle full-bleed section band, distinct from the glass card treatment */
.iptvm3u-section-alt {
  background: var(--iptvm3u-bg-alt);
  border-top: 1px solid var(--iptvm3u-border);
  border-bottom: 1px solid var(--iptvm3u-border);
}

.bg-dark {
  background: var(--iptvm3u-bg-alt) !important;
}

.text-dark {
  color: var(--iptvm3u-text) !important;
}

.text-muted {
  color: var(--iptvm3u-text-muted) !important;
}

.card,
.iptvm3u-cat-card,
.iptvm3u-glass,
.accordion-item {
  border-radius: 1rem !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover,
.iptvm3u-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, .4) !important;
  box-shadow: 0 0 30px -8px rgba(168, 85, 247, .35) !important;
}

/* Bootstrap accordion dark overrides */
.accordion-button {
  background: transparent !important;
  color: var(--iptvm3u-text) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: invert(1) grayscale(1) brightness(2);
}

.accordion-button:not(.collapsed) {
  color: var(--iptvm3u-brand-end) !important;
}

.accordion-body {
  color: var(--iptvm3u-text-muted) !important;
}

/* Dropdown (language switcher) */
.dropdown-item {
  color: var(--iptvm3u-text) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
}

/* Navbar links */
.navbar .nav-link {
  color: var(--iptvm3u-text-muted) !important;
}

.navbar .nav-link:hover {
  color: var(--iptvm3u-text) !important;
}

.navbar-brand {
  color: var(--iptvm3u-text) !important;
}

/* Buttons on dark surfaces */
.btn-outline-secondary {
  color: var(--iptvm3u-text-muted) !important;
  border-color: var(--iptvm3u-border) !important;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  border-color: var(--iptvm3u-border) !important;
}

hr {
  border-color: var(--iptvm3u-border) !important;
  opacity: 1;
}

/* Form controls (pricing calculator selects) */
.form-select,
.form-control {
  background-color: var(--iptvm3u-bg-alt) !important;
  border-color: var(--iptvm3u-border) !important;
  color: var(--iptvm3u-text) !important;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--iptvm3u-brand-mid) !important;
  box-shadow: 0 0 0 .25rem rgba(168, 85, 247, .25) !important;
}

.form-label {
  color: var(--iptvm3u-text-muted) !important;
}

/* Pagination (blog list) */
.page-link {
  background-color: var(--iptvm3u-surface) !important;
  border-color: var(--iptvm3u-border) !important;
  color: var(--iptvm3u-text) !important;
}

.page-link:hover {
  background-color: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.page-item.active .page-link {
  background: linear-gradient(90deg, var(--iptvm3u-brand-start), var(--iptvm3u-brand-mid)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.page-item.disabled .page-link {
  background-color: transparent !important;
  color: var(--iptvm3u-text-muted) !important;
  opacity: .5;
}

/* Grid texture used behind the hero */
.iptvm3u-grid-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Applied by the site-wide broken-image fallback script */
.iptvm3u-img-fallback {
  object-fit: cover;
}

/* Comparison table (home page) */
.iptvm3u-compare-table {
  color: var(--iptvm3u-text) !important;
  border-color: var(--iptvm3u-border) !important;
  margin-bottom: 0;
}

.iptvm3u-compare-table > :not(caption) > * > * {
  background-color: transparent !important;
  border-color: var(--iptvm3u-border) !important;
  color: var(--iptvm3u-text) !important;
  vertical-align: middle;
}

.iptvm3u-compare-table thead th {
  color: var(--iptvm3u-text-muted) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .04em;
}

.iptvm3u-compare-table tbody th {
  color: var(--iptvm3u-text) !important;
  font-weight: 500;
}

.iptvm3u-compare-col-highlight {
  background: rgba(99, 102, 241, .12) !important;
  border-left: 1px solid rgba(168, 85, 247, .35) !important;
  border-right: 1px solid rgba(168, 85, 247, .35) !important;
}

/* Reviews grid (home page) */
.iptvm3u-rating-badge {
  font-size: 2.25rem;
  line-height: 1;
}
