/* ==========================================================================
   KY IPTV - Premium Dark & Blue Design System
   Modern, Accessible, High-Performance Stylesheet
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #070B14;
  --bg-secondary: #0D1424;
  --bg-card: #111A2D;
  --bg-card-hover: #15223C;
  --bg-card-subtle: #0F1829;
  --primary: #1677FF;
  --primary-hover: #0E62DA;
  --accent: #3B9CFF;
  --accent-glow: rgba(59, 156, 255, 0.12);
  --text-white: #FFFFFF;
  --text-secondary: #AAB6C8;
  --text-muted: #72829D;
  --border: #1E2B42;
  --border-focus: #3B9CFF;
  --border-subtle: rgba(30, 43, 66, 0.6);
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(22, 119, 255, 0.2);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(22, 119, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 156, 255, 0.05), transparent);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--primary);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.35rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

strong {
  color: var(--text-white);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  color: var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 880px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  width: 100%;
}

.site-header .container {
  max-width: 1420px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.25rem;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.brand-logo:hover {
  text-decoration: none;
}
.brand-logo img {
  height: 38px;
  width: auto;
  max-width: 135px;
  display: block;
  object-fit: contain;
}
.brand-logo span {
  white-space: nowrap !important;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(22, 119, 255, 0.35);
  flex-shrink: 0;
}

.brand-badge {
  display: none;
}

.site-header nav[aria-label="Main Navigation"],
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  flex-wrap: nowrap !important;
}

.nav-menu li {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.2rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap !important;
  display: inline-block;
  flex-shrink: 0 !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: auto;
}

.nav-actions .btn,
.nav-actions .btn-sm {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Mobile drawer action buttons must strictly never appear on desktop */
.mobile-nav-actions {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-white);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: rgba(59, 156, 255, 0.1);
  color: var(--text-white);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Hero Section - Cinematic Background */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5.5rem;
  background-color: #070B14;
  background-image: 
    linear-gradient(90deg, #070B14 0%, rgba(7, 11, 20, 0.95) 42%, rgba(7, 11, 20, 0.72) 68%, rgba(7, 11, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.6) 0%, transparent 40%, rgba(7, 11, 20, 0.85) 85%, #070B14 100%),
    url('../assets/kytv-iptv.webp');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 0%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(22, 119, 255, 0.12);
  border: 1px solid rgba(59, 156, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 650px;
}

/* Hero Special Offer Countdown Timer */
.hero-offer-timer {
  background: rgba(13, 20, 36, 0.88);
  border: 1px solid rgba(59, 156, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-offer-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3B9CFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-offer-deal {
  font-size: 0.9rem;
  color: var(--text-white);
  line-height: 1.35;
}

.hero-offer-deal strong {
  color: #10B981;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(59, 156, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  min-width: 50px;
}

.timer-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-mono);
  line-height: 1;
}

.timer-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.timer-colon {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

@media (max-width: 580px) {
  .hero-offer-timer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .timer-display {
    align-self: center;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Hero Firestick Downloader Card */
.hero-downloader-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(17, 26, 45, 0.96), rgba(21, 34, 60, 0.92));
  border: 1.5px solid rgba(255, 138, 0, 0.45);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 138, 0, 0.12);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.35rem;
  margin-bottom: 2rem;
  max-width: 660px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hero-downloader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #FF9900, #FF5500);
}

.hero-downloader-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.hero-downloader-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF9900, #FF5500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 138, 0, 0.4);
}

.hero-downloader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFA526;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-downloader-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF9900;
  box-shadow: 0 0 8px #FF9900;
  animation: pulse-glow 2s infinite ease-in-out;
}

.hero-downloader-text {
  font-size: 0.9rem;
  color: var(--text-white);
  margin-top: 0.15rem;
}

.hero-downloader-text strong {
  color: #FFB347;
}

.hero-downloader-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.downloader-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #070B14;
  border: 1.5px solid #FF9900;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.downloader-code-pill:hover,
.downloader-code-pill:focus-visible {
  border-color: #FFB84D;
  background: rgba(255, 153, 0, 0.08);
  box-shadow: 0 0 16px rgba(255, 153, 0, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.downloader-code-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.downloader-code-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  line-height: 1;
}

.downloader-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 153, 0, 0.18);
  color: #FFA526;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: var(--transition);
}

.downloader-code-pill:hover .downloader-code-copy {
  background: #FF9900;
  color: #070B14;
}

.hero-downloader-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59, 156, 255, 0.1);
  border: 1px solid rgba(59, 156, 255, 0.28);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.hero-downloader-guide-btn:hover {
  background: rgba(59, 156, 255, 0.2);
  border-color: var(--accent);
  color: var(--text-white);
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero-downloader-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
  }
  .hero-downloader-right {
    width: 100%;
    justify-content: space-between;
  }
  .downloader-code-pill {
    flex: 1;
    justify-content: center;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 43, 66, 0.7);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.hero-meta-item svg {
  color: #10B981;
  flex-shrink: 0;
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.15rem;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(59, 156, 255, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.hero-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-preview {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Section Common Styling */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header-left {
  text-align: left;
  margin: 0 0 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Card Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 156, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(22, 119, 255, 0.12);
  border: 1px solid rgba(59, 156, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-title {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.card-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Page Media & Feature Showcase Cards */
.showcase-media-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 156, 255, 0.35);
  box-shadow: var(--shadow-card), 0 8px 30px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition);
}

.showcase-media-card:hover {
  border-color: rgba(59, 156, 255, 0.6);
  transform: translateY(-2px);
}

.showcase-media-wrap {
  background: #050913;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.showcase-media-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-media-card:hover .showcase-media-img {
  transform: scale(1.015);
}

.showcase-media-badges {
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.showcase-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-white);
  font-weight: 500;
}

.showcase-badge-item svg {
  flex-shrink: 0;
  color: #10B981;
}

/* Steps / How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(59, 156, 255, 0.18);
  font-family: var(--font-mono);
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  padding-right: 1.5rem;
}

/* Device Badges / Device Grid */
.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  text-align: center;
}

.device-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.device-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  background: rgba(22, 119, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.device-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.device-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:focus-within {
  border-color: var(--accent);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-trigger svg {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-panel {
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-white);
  font-weight: 600;
}

/* Call To Action Box */
.cta-box {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.15), rgba(17, 26, 45, 0.95));
  border: 1px solid rgba(59, 156, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 156, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.4rem);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 156, 255, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Alert Boxes / Callouts */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.callout-info {
  border-left-color: var(--accent);
  background: rgba(59, 156, 255, 0.06);
  border: 1px solid rgba(59, 156, 255, 0.2);
  border-left-width: 4px;
}

.callout-warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left-width: 4px;
}

.callout-success {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left-width: 4px;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.callout-content {
  font-size: 0.925rem;
}

.callout-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Filter / Search Bar */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
  min-width: 260px;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 2.75rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Tab Component for Setup / Devices */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(59, 156, 255, 0.12);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

th {
  background: var(--bg-secondary);
  color: var(--text-white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Interactive Device Switcher */
.device-switcher-box {
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid rgba(59, 156, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.device-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.device-switcher-title-wrap {
  max-width: 480px;
}

.device-switcher-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.device-switcher-title {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.device-switcher-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.device-switcher-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-primary);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.device-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.device-tab:hover {
  color: var(--text-white);
  background: rgba(59, 156, 255, 0.1);
}

.device-tab.active {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(22, 119, 255, 0.4);
  border-color: rgba(59, 156, 255, 0.4);
}

.device-switcher-status {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.device-status-badge {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.device-status-badge strong {
  color: var(--text-white);
}

.plan-price, .plan-monthly {
  transition: all 0.2s ease;
}

.price-updating {
  opacity: 0.25;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .device-switcher-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .device-switcher-tabs {
    width: 100%;
    justify-content: center;
  }
  .device-tab {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-title {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1rem;
}

/* Interactive Notification Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--success);
}

/* Responsive Media Queries */
@media (max-width: 1340px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.835rem;
    padding: 0.35rem 0.15rem;
  }
  .nav-container {
    gap: 1rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.825rem;
  }
}

@media (max-width: 1180px) {
  .site-header nav[aria-label="Main Navigation"],
  .site-header nav {
    display: contents;
  }
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
    display: block;
  }
  .nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(30, 43, 66, 0.5);
    width: 100%;
    display: block;
  }
  .nav-menu .nav-link.active::after {
    display: none;
  }
  .nav-menu .nav-link.active {
    color: var(--accent);
    font-weight: 700;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(59, 156, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
  }
  .mobile-nav-actions {
    display: none !important;
  }
  .nav-menu.open .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .mobile-nav-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
    background-image: 
      linear-gradient(180deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.97) 100%),
      url('../assets/kytv-iptv.webp');
    background-position: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-stats-bar {
    gap: 0.75rem;
  }
  .hero-stat-pill {
    padding: 0.5rem 0.85rem;
  }
  .device-switcher-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .device-switcher-tabs {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet & Mobile Breakpoint (<= 840px): Clean header with hamburger toggle */
@media (max-width: 840px) {
  .nav-actions {
    display: none !important;
  }
}

/* Mobile Screens (<= 768px): Single-column pricing, touch-friendly UI */
@media (max-width: 768px) {
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-offer-timer {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1rem;
  }
  .hero-offer-header {
    align-items: center;
    text-align: center;
  }
  .timer-display {
    justify-content: center;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
  }
  .table-responsive table {
    min-width: 580px;
  }
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }
}

/* Small Mobile & Smartphones (<= 640px): Multi-device grid tabs */
@media (max-width: 640px) {
  .device-switcher-box {
    padding: 1.25rem 1rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-md);
  }
  .device-switcher-title {
    font-size: 1.15rem;
  }
  .device-switcher-desc {
    font-size: 0.82rem;
  }
  .device-switcher-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    border-radius: var(--radius-md);
    padding: 0.35rem;
    width: 100%;
  }
  .device-tab {
    flex: 1 1 auto;
    padding: 0.55rem 0.35rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .device-tab:nth-child(4) {
    grid-column: span 1;
  }
  .device-tab:nth-child(5) {
    grid-column: span 2;
  }
  .device-switcher-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .device-status-badge {
    font-size: 0.82rem;
  }
  .hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
    width: 100%;
  }
  .hero-stat-pill {
    padding: 0.5rem 0.65rem;
    justify-content: center;
    width: 100%;
  }
  .showcase-media-badges {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* Ultra-Compact Screens (<= 480px): Balanced spacing & touch targets */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .card {
    padding: 1.25rem 1rem;
  }
  .section {
    padding: 2.5rem 0;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .section-header {
    margin-bottom: 1.75rem;
  }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .brand-logo img {
    width: 115px;
    height: auto;
  }
  .device-tab svg {
    display: none;
  }
  .timer-segment {
    min-width: 44px;
    padding: 0.35rem 0.5rem;
  }
  .timer-num {
    font-size: 1.1rem;
  }
  .timer-label {
    font-size: 0.6rem;
  }
  .timer-colon {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Order Checkout Modal
   ========================================================================== */
.order-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.order-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.order-modal-dialog {
  background: #0D1322;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.order-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.order-modal-close:hover {
  color: #FFFFFF;
}
.order-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}



