/*
Theme Name: Techiptv
Theme URI: https://techiptv.eu
Author: Techiptv
Author URI: https://techiptv.eu
Description: Dark, boxed, premium theme for selling IPTV subscriptions. Brand site for techiptv.eu.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techiptv
Tags: dark, boxed, iptv, commercial, responsive
*/

:root {
  --bg: #07090d;
  --panel: #11151c;
  --panel-2: #181e28;
  --line: #2a3342;
  --text: #e8edf5;
  --muted: #9aa6b8;
  --blue: #3d8bfd;
  --blue-2: #1d6fe8;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(61, 139, 253, 0.22), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 40px;
  background: linear-gradient(180deg, #10151d 0%, #0c1016 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  padding: 50px 36px;
}

.section {
  padding: 80px 36px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.55);
  position: relative;
}

.topbar-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), #0b3f96);
  color: #fff;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  list-style: none;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav .current-menu-item > a {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost,
.btn-login,
#loginform .button-primary {
  background: transparent;
  color: var(--text);
  border: 1px solid #c5d0de;
}

.btn-signup {
  background: #fff;
  color: #0c121b;
  border: 1px solid #fff;
}

.btn-signup:hover {
  background: var(--blue);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 108px 48px 82px;
  text-align: left;
  background:
  radial-gradient(720px 380px at 0% 0%, rgba(61, 139, 253, 0.55), transparent 62%), radial-gradient(520px 280px at 78% 110%, rgba(29, 111, 232, 0.28), transparent 60%), linear-gradient(118deg, #004fbe 0%, #113270 42%, #020b1c 100%);
  border-bottom: 1px solid var(--line);
}

.hero-explain {
  background:
    radial-gradient(640px 280px at 100% 0%, rgba(61, 139, 253, 0.35), transparent 60%),
    linear-gradient(118deg, #07111f 0%, #10284a 55%, #071018 100%);
}

.hero-explain h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

.live-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.55);
  border: 1px solid rgba(61, 255, 150, 0.45);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff8a;
  box-shadow: 0 0 0 0 rgba(61, 255, 138, 0.7);
  animation: live-pulse 1.6s ease infinite;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(61, 255, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 138, 0);
  }
}

.hero-art {
  justify-self: end;
  width: min(100%, 440px);
}

.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-perks li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 9, 13, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  letter-spacing: -0.035em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero h1.hero-title {
  max-width: none;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.28;
}

.hero-line {
  display: block;
}

.hero-line-sub {
  margin-top: 0.12em;
  font-size: 0.78em;
}

.ticker {
  display: inline-block;
  position: relative;
  height: 1.28em;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ticker-view {
  display: block;
  height: 1.28em;
  position: relative;
}

.ticker-word {
  display: block;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.28;
}

.ticker-word.is-on {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ticker-word.is-next {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(100%);
  opacity: 1;
  transition: none;
}

.ticker-word.is-gone {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.ticker-probe {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  font-weight: 800;
  pointer-events: none;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
  margin-top: 28px;
}

.hero-stats .stat {
  background: rgba(7, 9, 13, 0.35);
  border: 1px solid rgba(197, 208, 222, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
}

.kicker {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-card,
.card,
.plan {
  background: #1b4ca2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card {
  padding: 22px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head {
  margin-bottom: 22px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid-3,
.plans {
  display: grid;
  gap: 16px;
}

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

.plans {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.plan {
  padding: 22px;
}

.card h3,
.plan h3 {
  margin-bottom: 8px;
}

.card p,
.plan p,
.plan li {
  color: #fff;
}

.plan {
  position: relative;
}

.plan.featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, #162033, var(--panel));
  transform: translateY(-6px);
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 8px 0;
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.plan ul {
  padding-left: 18px;
  margin: 0 0 18px;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channels span {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: block;
  padding: 48px 36px 0;
  color: var(--muted);
  background: #090c11;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-links,
.footer-about {
  min-width: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.footer-links h2,
.footer-about h2 {
  flex: 0 0 100%;
}

.site-footer li {
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  font-weight: 600;
}

.footer-about p {
  margin: 0 0 14px;
  max-width: 42rem;
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-side {
  grid-template-columns: 1fr;
}

.link-grid,
.split {
  display: grid;
  gap: 16px;
}

.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.link-grid .card {
  color: inherit;
}

.link-grid .card:hover,
.card:hover {
  border-color: #3d5f8f;
}

.reseller-points {
  grid-template-columns: 1fr;
}

.note-card {
  margin-top: 18px;
}

.plain {
  color: var(--muted);
  padding-left: 18px;
}

.steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.steps p {
  color: var(--muted);
  margin: 6px 0 0;
}

.form label,
#loginform label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea,
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: #0c1016;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  background: #12301f;
  border: 1px solid #1f7a45;
  color: #d8ffe8;
  border-radius: 12px;
  padding: 12px 14px;
}

.notice-error {
  background: #2a1214;
  border-color: #8a3038;
  color: #ffd6d6;
}

.auth-card {
  max-width: 460px;
  margin: 12px auto 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.auth-switch {
  color: var(--muted);
}

#loginform .login-remember label {
  font-weight: 600;
}

#loginform .button-primary {
  width: auto;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle,
.drawer-close {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 30;
  opacity: 0;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tutorial-grid .card {
  color: inherit;
}

.entry {
  padding: 8px 0 24px;
}

.entry-content {
  color: var(--text);
}

.entry-content a {
  color: var(--blue);
}

.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.device-list a,
.link-grid .card {
  color: var(--text);
}

.device-list a {
  background: var(--panel);
  border: 1px solid #4471bc;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 0.92rem;
}

.device-list a:hover {
  border-color: var(--blue);
  color: #fff;
  background: #1c3b70;
}

.device-searchbar {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 560px;
}

.device-searchbar label {
  font-weight: 800;
}

.device-searchbar input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: #0c1016;
  border: 1px solid #4471bc;
  border-radius: 12px;
  font: inherit;
}

.device-status {
  margin: 0;
  color: var(--muted);
  min-height: 1.4em;
}

.device-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.device-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 118px;
  padding: 18px 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid #4471bc;
  border-radius: 16px;
}

.device-card strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.device-card span {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.device-card:hover {
  color: #fff;
  background: #1c3b70;
  border-color: var(--blue);
}

.device-card[hidden] {
  display: none;
}

.reseller-list {
  margin-top: 16px;
}

.device-guides {
  margin-top: 42px;
}

.closing {
  background:
  radial-gradient(480px 180px at 0% 0%, rgba(61, 139, 253, 0.82), #2f217300 70%), #153154;
}

@media (max-width: 900px) {
  .hero,
  .grid-3,
  .plans,
  .link-grid,
  .split,
  .tutorial-grid,
  .footer-grid,
  .device-cards {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
  }

  .plan.featured {
    transform: none;
  }

  .topbar-row {
    display: flex;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 0.95rem;
    white-space: nowrap;
    gap: 8px;
  }

  .menu-toggle,
  .nav.is-open .drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-login,
  .btn-signup {
    padding: 8px 14px;
    white-space: nowrap;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: min(320px, 86vw);
    height: 100vh;
    margin: 0;
    padding: 22px 20px;
    gap: 16px;
    background: #0d1420;
    border-left: 1px solid var(--line);
    border-radius: 0;
    transform: translateX(105%);
    overflow: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav li,
  .nav a {
    width: 100%;
  }

  .nav a {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .topbar,
  .site-footer,
  .section,
  .hero,
  .nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .shell {
    width: min(var(--max), calc(100% - 16px));
    margin-top: 10px;
    border-radius: 16px;
  }
}

html.js main .hero,
html.js main > .section,
html.js main.section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js main .hero.is-in,
html.js main > .section.is-in,
html.js main.section.is-in {
  opacity: 1;
  transform: none;
}

html.js main .section.is-in .card,
html.js main .section.is-in .plan,
html.js main .section.is-in .steps > li,
html.js main.section.is-in .card {
  animation: techiptv-rise 0.45s ease both;
}

html.js main .section.is-in .card:nth-child(2),
html.js main .section.is-in .plan:nth-child(2),
html.js main .section.is-in .steps > li:nth-child(2) {
  animation-delay: 0.06s;
}

html.js main .section.is-in .card:nth-child(3),
html.js main .section.is-in .plan:nth-child(3),
html.js main .section.is-in .steps > li:nth-child(3) {
  animation-delay: 0.12s;
}

html.js main .section.is-in .card:nth-child(4),
html.js main .section.is-in .plan:nth-child(4) {
  animation-delay: 0.18s;
}

html.js main .section.is-in .card:nth-child(5) {
  animation-delay: 0.22s;
}

html.js main .section.is-in .card:nth-child(6) {
  animation-delay: 0.26s;
}

.device-list,
.tutorial-grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

@keyframes techiptv-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js main .hero,
  html.js main > .section,
  html.js main.section,
  html.js main .section.is-in .card,
  html.js main .section.is-in .plan,
  html.js main .section.is-in .steps > li,
  html.js main.section.is-in .card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
