/* ==========================================================================
   TiviMate Player UK — CSS Stylesheet
   Design System: Premium Dark Mode with High-Tech Gradients
   ========================================================================== */

/* --- Fonts: loaded async via media=print swap in HTML <head> --- */
/* Google Fonts Inter + Outfit with display=swap to prevent layout shift */

/* --- Custom Variables & Theme Tokens --- */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Color Palette (HSL for consistency and smooth gradients - Depicting tivimate.com official light slate & blue) */
    --bg-main: hsl(0, 0%, 100%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-hover: hsl(210, 20%, 98%);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);

    --text-primary: hsl(220, 20%, 10%);
    --text-secondary: hsl(220, 10%, 40%);
    --text-muted: hsl(220, 10%, 60%);

    --accent-cyan: hsl(190, 100%, 45%);
    --accent-blue: hsl(205, 92%, 45%); /* Logo-matched TiviMate Blue: #0982db */
    --accent-darkblue: hsl(205, 92%, 30%);

    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(210, 20%, 98%) 0%, var(--bg-main) 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(9, 130, 219, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    background-image: var(--gradient-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Glow Effects */
.bg-glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.05; /* Made extremely soft for light theme */
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: 30%;
    left: -200px;
}

.bg-glow-3 {
    width: 700px;
    height: 700px;
    background: var(--accent-blue);
    bottom: -100px;
    right: 10%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.05rem; }
a { color: var(--text-primary); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

/* Prominent content link styling */
p a:not(.btn), 
li a:not(.nav-link):not(.dropdown-item):not(.footer-link):not(.btn),
td a:not(.btn) {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(9, 130, 219, 0.25);
    transition: var(--transition-fast);
}
p a:not(.btn):hover, 
li a:not(.nav-link):not(.dropdown-item):not(.footer-link):not(.btn):hover,
td a:not(.btn):hover {
    color: var(--accent-darkblue);
    border-bottom-color: var(--accent-darkblue);
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout Elements --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

main > section:first-of-type {
    padding-top: 40px;
}

.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition-fast);
}

.navbar-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

/* Dropdown styling */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    transition: var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
    z-index: 100;
}

@media (min-width: 992px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Navbar Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Buttons & Interactive Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px hsla(250, 100%, 65%, 0.4);
}

.btn-secondary {
    background: hsl(205, 92%, 96%);
    color: var(--accent-blue);
    border: 1.5px solid rgba(9, 130, 219, 0.2);
}

.btn-secondary:hover {
    background: hsl(205, 92%, 92%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 40px;
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.hero-features-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-feature-item svg {
    color: var(--accent-cyan);
}

/* Custom CSS TV/EPG Mockup for Visuals */
.tv-mockup {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: #000;
    border: 8px solid #1f2335;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), var(--shadow-glow);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.tv-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    background: #0d0f19;
}

/* Mockup EPG UI elements */
.tv-header {
    background: #161925;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tv-logo {
    font-weight: 800;
    color: var(--accent-cyan);
}

.tv-time {
    color: var(--text-secondary);
}

.tv-epg-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 80px 1fr;
    overflow: hidden;
}

.tv-channels {
    background: #11131c;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.tv-channel-row {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tv-channel-row img {
    width: 14px;
    height: 14px;
}

.tv-programs {
    display: flex;
    flex-direction: column;
}

.tv-program-row {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tv-program-cell {
    padding: 10px 12px;
    border-right: 1px solid rgba(255,255,255,0.02);
    flex-grow: 1;
    color: var(--text-secondary);
}

.tv-program-cell.active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}

/* --- Features Grid / Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: hsla(207, 100%, 54%, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    border: 1px solid hsla(207, 100%, 54%, 0.2);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    background: hsla(201, 98%, 41%, 0.04); /* Light blue tint matching theme */
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.price-card.popular .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gradient-glow);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.price-card.popular .price-title {
    color: var(--text-primary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.price-amount span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-feature-item svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.price-feature-item.disabled {
    color: var(--text-muted);
}

.price-feature-item.disabled svg {
    color: var(--text-muted);
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
}

.price-card.popular:hover {
    border-color: var(--accent-cyan);
}

/* --- FAQ Accordions --- */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-trigger {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-trigger svg {
    transition: var(--transition-fast);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-content-inner {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Active FAQ State */
.faq-item.active {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

.faq-item.active .faq-trigger svg {
    transform: rotate(45deg);
}

/* --- Sideload / Guide Steps --- */
.step-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.step-info {
    flex-grow: 1;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* --- Comparisons / Table UI --- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}

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

.comparison-table td:first-child, .comparison-table th:first-child {
    font-weight: 600;
}

/* --- Alert Boxes / Callouts --- */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.alert-info svg {
    color: var(--accent-indigo);
    flex-shrink: 0;
    margin-top: 3px;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.alert-warning svg {
    color: hsl(40, 100%, 50%);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Footer --- */
.footer {
    background: hsl(210, 20%, 98%); /* Clean light gray footer background */
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-disclaimer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}


/* --- Responsive Utility Grid System --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.downloader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.support-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

/* --- Mobile Menu / Responsive styles --- */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 40px 40px 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        border-top: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--text-primary) !important;
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .burger {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .nav-dropdown-trigger {
        width: 100%;
    }

    .nav-dropdown-trigger svg {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin-top: 10px;
        display: none;
    }

    .dropdown-item {
        color: var(--text-secondary) !important;
        font-size: 1rem;
        padding: 8px 12px;
    }

    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }

    .nav-dropdown.active .nav-dropdown-trigger svg {
        transform: rotate(180deg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features-list {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .downloader-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .downloader-grid > div:last-child {
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 30px !important;
        border-top: 1px solid var(--border-color) !important;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .step-card {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .card-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .card, .price-card {
        padding: 30px 20px !important;
    }

    .tv-mockup {
        width: 100% !important;
    }

    .downloader-grid {
        padding: 30px 20px !important;
    }
}

/* --- FAQ Hub Layout --- */
.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.faq-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

@media (max-width: 991px) {
    .faq-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .faq-sidebar {
        position: static !important;
        margin-bottom: 20px !important;
        top: auto !important;
    }
}


@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }
    body {
        padding-bottom: 76px;
    }
}





/* --- Ultra-Responsive IPTV Promo Modal --- */
#iptv-promo-modal.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 24, 0.92);
    backdrop-filter: blur(12px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px 10px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#iptv-promo-modal .modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 92%;
    max-width: 440px;
    padding: 32px 26px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-15px);
    transition: transform 0.3s ease;
    margin: auto !important;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
}

/* Mobile Optimization for TiviMate Support Modal */
@media (max-width: 576px) {
    #iptv-promo-modal.modal-overlay {
        padding: 12px 8px !important;
        align-items: center !important;
    }

    #iptv-promo-modal .modal-content {
        padding: 24px 18px !important;
        max-width: 360px !important;
        width: 95% !important;
        border-radius: 16px !important;
    }

    #iptv-promo-modal .promo-modal-close {
        top: 12px !important;
        right: 12px !important;
        font-size: 1.4rem !important;
    }

    #iptv-promo-modal .promo-title {
        font-size: 1.35rem !important;
        margin-bottom: 8px !important;
        line-height: 1.25 !important;
    }

    #iptv-promo-modal .promo-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 14px !important;
        line-height: 1.35 !important;
    }

    #iptv-promo-modal .promo-buttons-group {
        gap: 8px !important;
    }

    #iptv-promo-modal .promo-buttons-group .btn {
        padding: 12px 10px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }

    #iptv-promo-modal .promo-rejection-btn {
        font-size: 0.8rem !important;
    }
}

/* --- Cookie Banner & Consent Styling --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    padding: 20px 24px;
    z-index: 99990;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform: translateY(120%);
    opacity: 0;
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--accent-blue);
}

.cookie-banner-header strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}

.cookie-banner-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text p a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

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

.footer-legal-inline a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-legal-inline a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Modal Preference Toggle Switches */
.switch input:checked + .slider {
    background-color: var(--accent-blue);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 76px; /* Positioned right above the mobile sticky CTA */
        left: 12px;
        right: 12px;
        padding: 16px;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .cookie-banner-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Back to Top Floating Button --- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(2, 136, 209, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    z-index: 99999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0288d1 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(2, 136, 209, 0.5);
}

.back-to-top:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 85px; /* Positioned above mobile sticky CTA bar */
        right: 18px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
}

/* ==========================================================================
   Pixel-Perfect 30-Second TiviMate Problem Diagnosis Widget
   ========================================================================== */
.diag-container-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px 36px;
    margin: 28px 0 36px 0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    font-family: var(--font-sans);
    position: relative;
    box-sizing: border-box;
}

/* Header Top */
.diag-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.diag-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0284c7;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.diag-main-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.diag-subheading {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 30s Timer Graphic */
.diag-timer-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.diag-timer-circle {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diag-timer-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.diag-timer-val {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #0284c7;
}

.diag-timer-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
    white-space: nowrap;
}

/* Stepper Bar */
.diag-stepper-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 26px;
    gap: 10px;
}

.diag-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.diag-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.diag-step-item.active .diag-step-circle {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.diag-step-item.completed .diag-step-circle {
    background: #0284c7;
    color: #ffffff;
}

.diag-step-texts {
    display: flex;
    flex-direction: column;
}

.diag-step-num {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.2;
}

.diag-step-item.active .diag-step-num {
    color: #0284c7;
}

.diag-step-divider {
    flex: 0 0 30px;
    border-bottom: 2px dashed #cbd5e1;
    height: 1px;
}

/* Question Area */
.diag-screen-pane {
    display: none;
    animation: diagStepIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.diag-screen-pane.active {
    display: block;
}

@keyframes diagStepIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diag-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.diag-q-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.diag-q-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 18px 0;
}

.diag-back-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.diag-back-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Option List Items */
.diag-options-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.diag-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    text-align: left;
    gap: 14px;
    box-sizing: border-box;
}

.diag-option-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.diag-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diag-icon-blue { background: #eff6ff; color: #0284c7; }
.diag-icon-red { background: #fef2f2; color: #ef4444; }
.diag-icon-green { background: #f0fdf4; color: #16a34a; }
.diag-icon-orange { background: #fffbeb; color: #d97706; }
.diag-icon-purple { background: #faf5ff; color: #9333ea; }
.diag-icon-slate { background: #f8fafc; color: #64748b; }

.diag-opt-content {
    display: flex;
    flex-direction: column;
}

.diag-opt-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.diag-opt-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

.diag-opt-arrow {
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.diag-option-row:hover {
    border-color: #0284c7;
    background: #f8fafc;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.diag-option-row:hover .diag-opt-arrow {
    color: #0284c7;
    transform: translateX(4px);
}

.diag-option-row:active, .diag-option-row.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: scale(0.99);
}

/* Trust footer */
.diag-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    padding-top: 4px;
}

/* Loading / Analyzing State */
.diag-loading-box {
    text-align: center;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diag-loading-spinner {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
}

.diag-spin-svg {
    animation: diagRotate 1.4s linear infinite;
    width: 100%;
    height: 100%;
}

.diag-spin-path {
    stroke: #0284c7;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: diagDash 1.4s ease-in-out infinite;
}

@keyframes diagRotate {
    100% { transform: rotate(360deg); }
}

@keyframes diagDash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.diag-loading-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.diag-loading-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 20px 0;
}

.diag-loading-bar-wrap {
    width: 100%;
    max-width: 380px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.diag-loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #22c55e 100%);
    border-radius: 999px;
    transition: width 0.15s linear;
}

.diag-loading-status {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0284c7;
    font-family: var(--font-sans);
}

/* Result Box / Card */
.diag-result-container {
    animation: diagStepIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.diag-arrow-connector {
    display: flex;
    justify-content: center;
    margin: -10px 0 16px 0;
}

.diag-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.diag-result-card-inner {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.06);
}

.diag-result-header-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.diag-result-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid rgba(5, 150, 105, 0.25);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.diag-result-head {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.diag-result-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    max-width: 620px;
    margin: 0 auto;
}

/* Feature Checklist Box */
.diag-checklist-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto 24px auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.diag-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.diag-check-item svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* Single Full-Width Primary WhatsApp CTA Button */
.diag-single-cta-wrap {
    max-width: 540px;
    margin: 0 auto 16px auto;
}

.diag-btn-whatsapp-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #25D366;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff !important;
    padding: 16px 24px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.diag-btn-whatsapp-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.45);
    color: #ffffff !important;
    border-bottom: none !important;
}

.diag-btn-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.diag-btn-main-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.diag-btn-sub-text {
    font-size: 0.8rem;
    opacity: 0.92;
    line-height: 1.2;
    margin-top: 3px;
}

.diag-result-trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    flex-wrap: wrap;
}

.diag-restart-link {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.diag-restart-link:hover {
    color: #0369a1;
}

/* Mobile responsive breakpoints */
@media (max-width: 768px) {
    .diag-container-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .diag-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .diag-timer-badge {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        background: #f8fafc;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid #f1f5f9;
    }
    .diag-timer-circle {
        width: 36px;
        height: 36px;
    }
    .diag-timer-val {
        font-size: 0.85rem;
    }
    .diag-stepper-wrap {
        padding: 10px 12px;
        gap: 6px;
    }
    .diag-step-name {
        display: none; /* Hide sub-labels on small mobile for compactness */
    }
    .diag-step-divider {
        flex: 0 0 14px;
    }
    .diag-result-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .diag-two-ctas {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .diag-result-card-inner {
        padding: 20px 16px;
    }
    .diag-btn-whatsapp-primary {
        padding: 14px 18px;
    }
    .diag-btn-main-text {
        font-size: 0.98rem;
    }
}

/* ======================================================================
   TiviMate Player UK — visual refinement
   CSS-only update: original HTML, content, links, images and JavaScript
   are intentionally left untouched.
   ====================================================================== */

:root {
    --bg-main: #f6f8fb;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfdff;
    --border-color: rgba(24, 43, 67, 0.10);
    --border-color-hover: #cbd9e8;

    --text-primary: #172b43;
    --text-secondary: #53657a;
    --text-muted: #7b899a;

    /* Keep the site's existing TiviMate blue identity. */
    --accent-blue: #0982db;
    --accent-darkblue: #0765ad;
    --accent-cyan: #1599bd;

    --gradient-primary: linear-gradient(135deg, #0878cb 0%, #1598c2 100%);
    --gradient-glow: linear-gradient(135deg, #1598c2 0%, #0878cb 100%);
    --gradient-dark: linear-gradient(180deg, #f4f7fb 0%, #ffffff 42%, #f8fafc 100%);

    --shadow-sm: 0 2px 8px rgba(22, 48, 78, 0.045);
    --shadow-md: 0 10px 28px rgba(22, 48, 78, 0.085);
    --shadow-glow: 0 8px 22px rgba(9, 130, 219, 0.16);

    --radius-sm: 8px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    scroll-padding-top: 92px;
    text-rendering: optimizeLegibility;
}

body {
    color: var(--text-primary);
    background: var(--bg-main);
    background-image: var(--gradient-dark);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.35rem);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.65rem, 2.7vw, 2.2rem);
    line-height: 1.22;
    letter-spacing: -0.035em;
    margin-bottom: 1.1rem;
}

h3 {
    font-size: clamp(1.16rem, 1.8vw, 1.45rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

p a:not(.btn),
li a:not(.nav-link):not(.dropdown-item):not(.footer-link):not(.btn),
td a:not(.btn) {
    color: var(--accent-darkblue);
    border-bottom-width: 1px;
    border-bottom-color: rgba(9, 130, 219, 0.28);
}

p a:not(.btn):hover,
li a:not(.nav-link):not(.dropdown-item):not(.footer-link):not(.btn):hover,
td a:not(.btn):hover {
    color: var(--accent-blue);
    border-bottom-color: currentColor;
}

.container {
    max-width: 1200px;
    padding-left: 28px;
    padding-right: 28px;
}

section {
    padding-top: 76px;
    padding-bottom: 76px;
}

main > section:first-of-type {
    padding-top: 42px;
}

/* Header and navigation */
.navbar {
    padding: 13px 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(24, 43, 67, 0.085);
    box-shadow: 0 3px 16px rgba(22, 48, 78, 0.035);
}

.navbar-scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.975);
    box-shadow: 0 5px 20px rgba(22, 48, 78, 0.07);
}

.navbar .container {
    min-height: 42px;
    gap: 24px;
}

.logo {
    gap: 9px;
    font-size: 1.28rem;
    letter-spacing: -0.035em;
}

.logo img {
    height: 34px;
}

.nav-menu {
    gap: clamp(16px, 1.8vw, 26px);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #52647a;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-darkblue);
}

.dropdown-menu {
    margin-top: 8px;
    border-color: #e4ebf3;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 16px 38px rgba(20, 43, 70, 0.13);
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.88rem;
}

.dropdown-item:hover {
    background: #f0f6fc;
    color: var(--accent-darkblue);
}

/* Buttons */
.btn {
    padding: 12px 23px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.005em;
}

.btn-primary {
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 5px 14px rgba(9, 130, 219, 0.18);
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(9, 130, 219, 0.23);
}

.btn-secondary {
    color: var(--accent-darkblue);
    background: #f0f7fd;
    border: 1px solid #d7e9f7;
}

.btn-secondary:hover {
    background: #e7f2fb;
    border-color: #bfdbf1;
}

.btn-outline {
    border-width: 1.5px;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.86rem;
}

/* Homepage hero — retain its existing two-column composition. */
.hero {
    min-height: min(740px, calc(100vh - 76px));
    padding-top: 54px;
    padding-bottom: 58px;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.1vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.047em;
    margin-bottom: 18px;
}

.hero p {
    max-width: 610px;
    font-size: 1.02rem;
    line-height: 1.76;
}

.hero-grid {
    gap: clamp(34px, 5vw, 64px);
}

.hero-subtitle {
    color: var(--accent-darkblue);
    font-size: 0.78rem;
    letter-spacing: 1.6px;
    font-weight: 750;
}

.hero-feature-item {
    font-size: 0.88rem;
}

.tv-mockup {
    border: 7px solid #202b3a;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(17, 37, 61, 0.24), 0 0 0 1px rgba(9, 130, 219, 0.09);
}

/* Cards and feature panels */
.card-grid,
.pricing-grid {
    gap: 24px;
    margin-top: 36px;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    padding: 32px;
    border-color: #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(22, 48, 78, 0.035);
}

.card::before {
    background: linear-gradient(180deg, rgba(9, 130, 219, 0.025) 0%, transparent 42%);
}

.card:hover {
    transform: translateY(-3px);
    border-color: #ccdeed;
    box-shadow: 0 12px 28px rgba(22, 48, 78, 0.085);
}

.card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: var(--accent-blue);
    background: #edf6fd;
    border-color: #d7eafa;
    border-radius: 13px;
}

.card-title {
    font-size: 1.24rem;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.94rem;
}

.price-card {
    padding: 38px 32px;
    border-radius: 17px;
    border-color: #e2eaf2;
    box-shadow: 0 3px 12px rgba(22, 48, 78, 0.04);
}

.price-card.popular {
    background: linear-gradient(180deg, #f2f8fe 0%, #ffffff 68%);
    border-color: rgba(9, 130, 219, 0.48);
    box-shadow: 0 10px 26px rgba(9, 130, 219, 0.10);
}

.price-card.popular .badge {
    color: #ffffff;
    background: var(--gradient-primary);
}

.price-card:hover,
.price-card.popular:hover {
    transform: translateY(-3px);
    border-color: #bcd5e9;
}

/* FAQ, installation steps and comparison tables */
.faq-container {
    margin-top: 36px;
    gap: 12px;
}

.faq-item {
    border-color: #e3eaf2;
    border-radius: 13px;
    box-shadow: 0 2px 7px rgba(22, 48, 78, 0.025);
}

.faq-trigger {
    padding: 19px 22px;
    font-size: 1.04rem;
}

.faq-trigger svg {
    color: var(--accent-blue);
}

.faq-content-inner {
    padding: 0 22px 21px;
    line-height: 1.75;
}

.step-list {
    margin-top: 32px;
    gap: 20px;
}

.step-card {
    padding: 28px 30px;
    gap: 24px;
    border-color: #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 2px 9px rgba(22, 48, 78, 0.035);
}

.step-num {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    box-shadow: 0 5px 13px rgba(9, 130, 219, 0.17);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 9px;
}

.comparison-table-wrapper {
    margin-top: 34px;
    border-color: #e2eaf2;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(22, 48, 78, 0.035);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 18px;
    border-bottom-color: #e9eef4;
    vertical-align: middle;
}

.comparison-table th {
    background: #f0f5fa;
    color: #20364f;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.55;
}

.comparison-table tbody tr:nth-child(even) {
    background: #fafcfe;
}

.comparison-table tbody tr:hover {
    background: #f3f8fd;
}

.alert {
    padding: 18px 21px;
    border-radius: 13px;
}

.alert-info {
    background: #f0f7fd;
    border-color: #d6e9f8;
}

.alert-warning {
    background: #fff9ed;
    border-color: #f6e4bf;
}

/* Shared page imagery and embedded media */
main img {
    border-radius: 12px;
}

main iframe,
main video {
    max-width: 100%;
    border-radius: 12px;
}

/* Forms */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    max-width: 100%;
    border: 1px solid #d7e1eb;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);
    font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(9, 130, 219, 0.13);
    border-color: #78b8e7;
}

/* Footer — same content and columns, with clearer contrast and rhythm. */
.footer {
    background: #f0f4f8;
    border-top: 1px solid #e1e8f0;
    padding: 66px 0 32px;
    margin-top: 76px;
}

.footer-grid {
    gap: 32px;
    margin-bottom: 44px;
}

.footer-title {
    color: #20364f;
    font-size: 1rem;
    margin-bottom: 17px;
}

.footer-links {
    gap: 10px;
}

.footer-link {
    color: #586b80;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-darkblue);
}

.footer-bottom {
    border-top-color: #dce5ee;
    padding-top: 24px;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.84rem;
}

/* Keep visible keyboard focus without changing interaction behaviour. */
:focus-visible {
    outline: 3px solid rgba(9, 130, 219, 0.34);
    outline-offset: 3px;
}

/* Responsive refinements */
@media (max-width: 991px) {
    section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .navbar .container {
        gap: 16px;
    }

    .nav-menu {
        background: rgba(255, 255, 255, 0.985);
        padding: 92px 28px 32px;
    }

    .nav-link {
        font-size: 1.03rem;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 5.4vw, 3rem);
    }

    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    main > section:first-of-type {
        padding-top: 28px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.55rem);
    }

    h2 {
        font-size: 1.62rem;
    }

    p {
        font-size: 0.97rem;
    }

    .hero {
        padding-top: 34px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.55rem);
    }

    .hero-grid {
        gap: 28px;
    }

    .card-grid,
    .pricing-grid {
        margin-top: 28px;
        gap: 16px;
    }

    .card,
    .price-card {
        padding: 25px 21px !important;
    }

    .step-card {
        padding: 23px 20px;
        gap: 17px;
    }

    .faq-trigger {
        padding: 17px 18px;
        font-size: 0.98rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 13px;
        font-size: 0.86rem;
    }

    .footer {
        margin-top: 52px;
        padding: 48px 0 28px;
    }

    .footer-grid {
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


/* ========================================================================== 
   Requested finishing touches: Apple-style glass header + blue gradient footer
   CSS-only changes. Original HTML, content, links, images and scripts remain intact.
   ========================================================================== */

/* Apple-inspired translucent navigation glass */
.navbar {
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(26px);
    backdrop-filter: saturate(180%) blur(26px);
    border-bottom-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.065);
}

/* Footer uses exactly the same gradient token as the primary header buttons */
.footer {
    background: var(--gradient-primary);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer .footer-title {
    color: #ffffff !important;
}

.footer .footer-desc,
.footer .footer-link,
.footer .footer-copyright,
.footer .footer-legal-inline a,
.footer .footer-brand > div {
    color: rgba(255, 255, 255, 0.90) !important;
}

.footer a:not(.logo):not([aria-label]) {
    color: #ffffff !important;
}

.footer .footer-link:hover,
.footer .footer-legal-inline a:hover,
.footer a:not(.logo):not([aria-label]):hover {
    color: #ffffff !important;
    opacity: 0.78;
}

.footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.30);
}

/* Keep the social buttons legible as white circular controls on the gradient */
.footer .footer-brand > div a[aria-label] {
    color: var(--accent-darkblue) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
}

.footer .footer-brand > div a[aria-label]:hover {
    color: var(--accent-blue) !important;
    background: #ffffff !important;
    transform: translateY(-2px);
}

/* Recolour the location and email line icons for contrast on the gradient */
.footer .footer-brand > div svg:not([fill]) {
    stroke: rgba(255, 255, 255, 0.94) !important;
}

@media (prefers-reduced-transparency: reduce) {
    .navbar,
    .navbar-scrolled {
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}


/* ========================================================================== 
   Hero EPG showcase — richer product visual with a restrained live-preview animation
   ========================================================================== */
.tv-mockup.tv-guide-showcase {
    width: min(100%, 570px);
    max-width: 570px;
    aspect-ratio: 1.35 / 1;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.tv-guide-showcase .tv-showcase-aura {
    position: absolute;
    z-index: -1;
    inset: 8% 3% 7%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 48%, rgba(0, 145, 230, .22), rgba(12, 178, 197, .09) 42%, transparent 72%);
    filter: blur(24px);
    pointer-events: none;
}

.tv-guide-showcase .tv-guide-frame {
    position: absolute;
    inset: 4.5% 0 4%;
    overflow: hidden;
    border: 1px solid rgba(115, 153, 190, .22);
    border-radius: 21px;
    background: #0a101b;
    box-shadow: 0 34px 76px rgba(15, 35, 60, .27), 0 0 0 6px rgba(25, 43, 64, .96), 0 0 0 7px rgba(255,255,255,.72);
    transform: perspective(1500px) rotateY(-4deg) rotateX(1deg);
    transform-origin: center;
    animation: tvGuideFloat 7.5s ease-in-out infinite;
    will-change: transform;
}

.tv-guide-showcase .tv-guide-app {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    color: #eef5ff;
    background: linear-gradient(145deg, #111a2a 0%, #0b1220 65%, #0b1424 100%);
    font-family: var(--font-body, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    text-align: left;
}

.tv-guide-showcase .tv-guide-topbar {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 17px;
    border-bottom: 1px solid rgba(179, 203, 231, .09);
    background: rgba(19, 29, 45, .96);
}

.tv-guide-showcase .tv-guide-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 104px;
}

.tv-guide-showcase .tv-guide-brand-mark {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(140deg, #087fd3, #0cb8c5);
    box-shadow: 0 4px 12px rgba(0, 145, 220, .28);
    font-size: 13px;
    font-weight: 850;
}

.tv-guide-showcase .tv-guide-brand-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.tv-guide-showcase .tv-guide-brand-name strong {
    color: #f5f9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.tv-guide-showcase .tv-guide-brand-name small {
    color: #8295ae;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .18em;
}

.tv-guide-showcase .tv-guide-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(177, 201, 230, .07);
    border-radius: 9px;
    background: rgba(5, 11, 20, .34);
}

.tv-guide-showcase .tv-guide-nav span {
    padding: 6px 9px;
    border-radius: 6px;
    color: #8292a9;
    font-size: 8px;
    font-weight: 650;
    white-space: nowrap;
}

.tv-guide-showcase .tv-guide-nav span.is-active {
    color: #eaf7ff;
    background: rgba(20, 139, 213, .2);
    box-shadow: inset 0 0 0 1px rgba(60, 171, 238, .16);
}

.tv-guide-showcase .tv-guide-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #90a4bc;
    font-size: 8px;
    white-space: nowrap;
}

.tv-guide-showcase .tv-guide-online-dot,
.tv-guide-showcase .tv-guide-playlist-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27d69a;
    box-shadow: 0 0 0 3px rgba(39, 214, 154, .11), 0 0 10px rgba(39, 214, 154, .55);
}

.tv-guide-showcase .tv-guide-clock {
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid rgba(180, 205, 233, .14);
    color: #dce9f8;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.tv-guide-showcase .tv-guide-layout {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 105px minmax(0, 1fr);
}

.tv-guide-showcase .tv-guide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 9px 10px;
    border-right: 1px solid rgba(179, 203, 231, .075);
    background: rgba(14, 23, 37, .88);
}

.tv-guide-showcase .tv-guide-sidebar-caption {
    padding: 0 8px 7px;
    color: #60758f;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .17em;
}

.tv-guide-showcase .tv-guide-sidebar-link {
    display: flex;
    min-height: 27px;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #91a3ba;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.tv-guide-showcase .tv-guide-sidebar-link.is-active {
    border-color: rgba(56, 157, 229, .16);
    color: #eaf7ff;
    background: linear-gradient(100deg, rgba(14, 133, 212, .27), rgba(13, 177, 193, .11));
}

.tv-guide-showcase .tv-guide-sidebar-icon {
    display: grid;
    width: 14px;
    flex: 0 0 14px;
    place-items: center;
    color: #6eaad7;
    font-size: 12px;
    line-height: 1;
}

.tv-guide-showcase .tv-guide-sidebar-link.is-active .tv-guide-sidebar-icon { color: #48c7f1; }
.tv-guide-showcase .tv-guide-sidebar-divider { height: 1px; margin: 5px 5px 2px; background: rgba(179, 203, 231, .09); }
.tv-guide-showcase .tv-guide-sidebar-playlist { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: #71859e; font-size: 7px; }
.tv-guide-showcase .tv-guide-playlist-dot { width: 5px; height: 5px; background: #0da6d8; box-shadow: none; }

.tv-guide-showcase .tv-guide-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 13px 14px 10px;
    overflow: hidden;
    background: radial-gradient(ellipse at 84% 0%, rgba(24, 104, 156, .10), transparent 46%), #0c1422;
}

.tv-guide-showcase .tv-guide-heading {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tv-guide-showcase .tv-guide-heading > div { display: flex; flex-direction: column; gap: 3px; }
.tv-guide-showcase .tv-guide-kicker { color: #4c9dcc; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.tv-guide-showcase .tv-guide-heading strong { color: #f2f7ff; font-size: 13px; font-weight: 750; letter-spacing: -.025em; }
.tv-guide-showcase .tv-guide-date { color: #7489a4; font-size: 7px; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }
.tv-guide-showcase .tv-guide-date i { color: #31b7de; font-style: normal; }

.tv-guide-showcase .tv-guide-timeline {
    display: grid;
    min-height: 23px;
    grid-template-columns: 77px 1fr 1fr;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(171, 195, 222, .10);
    color: #687d96;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .07em;
}

.tv-guide-showcase .tv-guide-timeline > span:first-child { color: #536982; font-size: 6px; letter-spacing: .12em; }
.tv-guide-showcase .tv-guide-timeline .is-now { color: #40bce7; }
.tv-guide-showcase .tv-guide-timeline .is-now b { margin-left: 3px; color: #e2f6ff; font-size: 8px; letter-spacing: 0; }

.tv-guide-showcase .tv-guide-rows { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; justify-content: stretch; }
.tv-guide-showcase .tv-guide-row {
    display: grid;
    min-height: 33px;
    flex: 1 1 0;
    grid-template-columns: 77px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(171, 195, 222, .075);
}

.tv-guide-showcase .tv-guide-station { display: flex; min-width: 0; align-items: center; gap: 7px; }
.tv-guide-showcase .tv-station-logo {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: #fff;
    background: #263d61;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.tv-guide-showcase .tv-station-bbc { background: #f4f7fb; color: #202c3d; border-color: #dce6f2; }
.tv-guide-showcase .tv-station-itv { background: linear-gradient(135deg, #6c63d9, #e06f9d 53%, #e8b45c); font-size: 8px; font-style: italic; }
.tv-guide-showcase .tv-station-sky { background: linear-gradient(135deg, #1c416e, #167fba); font-size: 9px; font-style: italic; }
.tv-guide-showcase .tv-station-tnt { background: linear-gradient(135deg, #242b39, #48546a); font-size: 7px; }
.tv-guide-showcase .tv-guide-station > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tv-guide-showcase .tv-guide-station b { overflow: hidden; color: #dbe7f6; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tv-guide-showcase .tv-guide-station small { color: #60758e; font-size: 6px; font-weight: 600; white-space: nowrap; }

.tv-guide-showcase .tv-guide-track { display: grid; min-width: 0; grid-template-columns: 1.06fr .94fr; gap: 5px; }
.tv-guide-showcase .tv-guide-program {
    display: flex;
    min-width: 0;
    min-height: 31px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 5px 7px;
    overflow: hidden;
    border: 1px solid rgba(156, 184, 213, .09);
    border-radius: 6px;
    color: #9aacc2;
    background: rgba(25, 39, 59, .55);
    text-align: left;
    cursor: pointer;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease, color .35s ease;
    font-family: inherit;
}
.tv-guide-showcase .tv-guide-program strong { display: block; overflow: hidden; color: inherit; font-size: 7.5px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tv-guide-showcase .tv-guide-program small { color: #61768f; font-size: 6px; font-weight: 600; white-space: nowrap; }
.tv-guide-showcase .tv-guide-program em { margin-left: 3px; color: #45d9be; font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: .08em; }
.tv-guide-showcase .tv-guide-program:hover { border-color: rgba(45, 168, 224, .40); color: #e9f7ff; transform: translateY(-1px); }
.tv-guide-showcase .tv-guide-program.is-selected {
    border-color: rgba(41, 176, 232, .68);
    color: #ffffff;
    background: linear-gradient(112deg, rgba(8, 128, 210, .72), rgba(10, 177, 190, .43));
    box-shadow: 0 5px 17px rgba(0, 129, 207, .15), inset 0 1px 0 rgba(255,255,255,.13);
}
.tv-guide-showcase .tv-guide-program.is-selected small { color: rgba(235, 248, 255, .72); }
.tv-guide-showcase .tv-guide-program:focus-visible { outline: 2px solid #69d4fa; outline-offset: 2px; }

.tv-guide-showcase .tv-guide-playback {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    gap: 11px;
    padding: 9px 15px;
    border-top: 1px solid rgba(171, 195, 222, .10);
    background: linear-gradient(90deg, #111e30, #142238 60%, #102236);
}
.tv-guide-showcase .tv-playing-art {
    position: relative;
    display: grid;
    width: 55px;
    height: 45px;
    flex: 0 0 55px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(129, 199, 242, .22);
    border-radius: 8px;
    background: radial-gradient(circle at 70% 25%, rgba(30, 205, 216, .82), transparent 32%), linear-gradient(135deg, #075eaa, #142c64 58%, #091729);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .22);
}
.tv-guide-showcase .tv-playing-art-orbit { position: absolute; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; transform: translate(11px, 7px); }
.tv-guide-showcase .tv-playing-art-play { z-index: 1; display: grid; width: 21px; height: 21px; place-items: center; padding-left: 2px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.19); font-size: 9px; }
.tv-guide-showcase .tv-playing-art-live { position: absolute; left: 5px; top: 5px; padding: 2px 4px; border-radius: 3px; color: #fff; background: #ef5265; font-size: 5px; font-weight: 900; letter-spacing: .08em; }
.tv-guide-showcase .tv-playing-info { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 3px; }
.tv-guide-showcase .tv-playing-label { color: #61a9d2; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.tv-guide-showcase .tv-playing-label i { color: #56748f; font-style: normal; }
.tv-guide-showcase .tv-playing-channel { color: #9fc2dc; }
.tv-guide-showcase .tv-playing-title { overflow: hidden; color: #f5f9ff; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tv-guide-showcase .tv-playing-description { overflow: hidden; color: #8296ae; font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.tv-guide-showcase .tv-playing-progress { display: block; width: 100%; height: 3px; margin-top: 2px; overflow: hidden; border-radius: 9px; background: rgba(180, 206, 232, .15); }
.tv-guide-showcase .tv-playing-progress i { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #078cdb, #27c6d1); transition: width .6s ease; }
.tv-guide-showcase .tv-playing-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.tv-guide-showcase .tv-playing-controls span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(189, 214, 239, .13); border-radius: 50%; color: #bed0e4; background: rgba(255,255,255,.045); font-size: 10px; }

.tv-guide-showcase .tv-showcase-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(207, 224, 241, .86);
    border-radius: 12px;
    color: #20344c;
    background: rgba(255,255,255,.93);
    box-shadow: 0 12px 32px rgba(26, 58, 88, .13);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: tvBadgeFloat 6s ease-in-out infinite;
}
.tv-guide-showcase .tv-showcase-float-top { top: -1%; right: -3%; }
.tv-guide-showcase .tv-showcase-float-bottom { bottom: -1%; left: -4%; animation-delay: -3s; }
.tv-guide-showcase .tv-showcase-float > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.tv-guide-showcase .tv-showcase-float strong { color: #20344c; font-size: 8px; font-weight: 800; white-space: nowrap; }
.tv-guide-showcase .tv-showcase-float small { color: #71839a; font-size: 6.5px; font-weight: 600; white-space: nowrap; }
.tv-guide-showcase .tv-float-check { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #078bcb; background: #e7f6fd; font-size: 13px; font-weight: 900; }
.tv-guide-showcase .tv-float-4k { display: grid; width: 29px; height: 25px; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #087dd0, #0ab5bd); font-size: 8px; font-weight: 900; }

@keyframes tvGuideFloat {
    0%, 100% { transform: perspective(1500px) rotateY(-4deg) rotateX(1deg) translateY(0); }
    50% { transform: perspective(1500px) rotateY(-4deg) rotateX(1deg) translateY(-7px); }
}
@keyframes tvBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 991px) {
    .tv-mockup.tv-guide-showcase { width: min(100%, 590px); }
    .tv-guide-showcase .tv-guide-frame { transform: none; animation-name: tvGuideFloatFlat; }
    @keyframes tvGuideFloatFlat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

@media (max-width: 575px) {
    .tv-mockup.tv-guide-showcase { width: 100%; aspect-ratio: .95 / 1; }
    .tv-guide-showcase .tv-guide-frame { inset: 5% 0; border-radius: 15px; box-shadow: 0 22px 48px rgba(15,35,60,.24), 0 0 0 4px rgba(25,43,64,.96); }
    .tv-guide-showcase .tv-guide-topbar { flex-basis: 43px; padding: 0 10px; }
    .tv-guide-showcase .tv-guide-brand { min-width: 87px; gap: 6px; }
    .tv-guide-showcase .tv-guide-brand-mark { width: 23px; height: 23px; }
    .tv-guide-showcase .tv-guide-nav { display: none; }
    .tv-guide-showcase .tv-guide-layout { grid-template-columns: 77px minmax(0,1fr); }
    .tv-guide-showcase .tv-guide-sidebar { gap: 4px; padding: 11px 5px 7px; }
    .tv-guide-showcase .tv-guide-sidebar-link { min-height: 25px; gap: 5px; padding: 0 5px; font-size: 6.5px; }
    .tv-guide-showcase .tv-guide-sidebar-icon { width: 12px; flex-basis: 12px; font-size: 10px; }
    .tv-guide-showcase .tv-guide-main { padding: 9px 8px 7px; }
    .tv-guide-showcase .tv-guide-heading { min-height: 29px; }
    .tv-guide-showcase .tv-guide-heading strong { font-size: 11px; }
    .tv-guide-showcase .tv-guide-date { font-size: 6px; }
    .tv-guide-showcase .tv-guide-timeline { min-height: 19px; grid-template-columns: 61px 1fr 1fr; gap: 4px; }
    .tv-guide-showcase .tv-guide-row { min-height: 32px; grid-template-columns: 61px minmax(0,1fr); gap: 4px; }
    .tv-guide-showcase .tv-guide-station { gap: 4px; }
    .tv-guide-showcase .tv-station-logo { width: 20px; height: 20px; flex-basis: 20px; font-size: 7px; }
    .tv-guide-showcase .tv-guide-station b { font-size: 6.5px; }
    .tv-guide-showcase .tv-guide-station small { font-size: 5px; }
    .tv-guide-showcase .tv-guide-track { gap: 3px; }
    .tv-guide-showcase .tv-guide-program { min-height: 28px; padding: 4px 5px; }
    .tv-guide-showcase .tv-guide-program strong { font-size: 6.2px; }
    .tv-guide-showcase .tv-guide-program small { font-size: 5px; }
    .tv-guide-showcase .tv-guide-playback { flex-basis: 59px; gap: 7px; padding: 6px 9px; }
    .tv-guide-showcase .tv-playing-art { width: 42px; height: 36px; flex-basis: 42px; }
    .tv-guide-showcase .tv-playing-title { font-size: 8px; }
    .tv-guide-showcase .tv-playing-description { display: none; }
    .tv-guide-showcase .tv-playing-controls { display: none; }
    .tv-guide-showcase .tv-showcase-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tv-guide-showcase .tv-guide-frame,
    .tv-guide-showcase .tv-showcase-float { animation: none !important; }
    .tv-guide-showcase .tv-guide-program,
    .tv-guide-showcase .tv-playing-progress i { transition: none !important; }
}


/* Supplied TiviMate.club wordmark: proportional sizing across the site. */
.logo img {
    display: block;
    width: 174px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Keep the wordmark readable against the existing blue-gradient footer. */
.footer .logo img {
    filter: brightness(0) invert(1);
}

@media (max-width: 991px) {
    .logo img { width: 158px; }
}

@media (max-width: 575px) {
    .logo img { width: 142px; }
}


/* ======================================================================
   Site-wide offer bar — positioned above the fixed navigation
   ====================================================================== */
.offer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    background: linear-gradient(105deg, #075bb8 0%, #087fd3 48%, #08a9d0 100%);
    box-shadow: 0 3px 14px rgba(4, 70, 130, .18);
}

.offer-bar-link {
    width: min(100% - 32px, 1220px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: .015em;
    white-space: nowrap;
}

.offer-bar-link:hover,
.offer-bar-link:focus-visible {
    color: #fff;
    text-decoration: none;
}

.offer-bar-label {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.offer-bar-product {
    color: rgba(255,255,255,.94);
}

.offer-bar-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.offer-bar-price del {
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 600;
}

.offer-bar-price strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.offer-bar-detail {
    color: rgba(255,255,255,.9);
}

.offer-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
}

/* Leave room for the offer bar and the navigation below it. */
.navbar {
    top: 40px;
}

main {
    padding-top: 120px !important;
}

/* White TiviMate.club wordmark for clear contrast on the dark TV preview. */
.tv-guide-showcase .tv-guide-brand-logo {
    display: block;
    width: 100px;
    height: auto;
    max-width: none;
    padding: 0;
    box-sizing: content-box;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .2));
}

@media (max-width: 575px) {
    .offer-bar-link {
        width: calc(100% - 18px);
        min-height: 40px;
        gap: 8px;
        font-size: 10px;
    }

    .offer-bar-label,
    .offer-bar-cta {
        display: none;
    }

    .offer-bar-price strong {
        font-size: 12px;
    }

    .offer-bar-detail {
        font-size: 9px;
    }

    .tv-guide-showcase .tv-guide-brand-logo {
        width: 70px;
        padding: 0;
    }
}

@media (max-width: 360px) {
    .offer-bar-link { gap: 6px; font-size: 9px; }
    .offer-bar-price { gap: 4px; }
    .offer-bar-price del { font-size: 9px; }
    .offer-bar-price strong { font-size: 11px; }
    .offer-bar-detail { font-size: 8px; }
}

/* ======================================================================
   Compact mobile offer bar
   One-line layout keeps the offer visible without pushing the page down.
   ====================================================================== */
@media (max-width: 991px) {
    .offer-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1005 !important;
    }

    .offer-bar-link {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 7px !important;
        width: calc(100% - 24px) !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .offer-bar-label,
    .offer-bar-detail {
        display: none !important;
    }

    .offer-bar-product {
        display: block !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    .offer-bar-price {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: baseline !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }

    .offer-bar-price del {
        font-size: 9px !important;
        line-height: 1 !important;
    }

    .offer-bar-price strong {
        font-size: 13px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

    .offer-bar-cta {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 5px 8px !important;
        border: 1px solid rgba(255,255,255,.48) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.16) !important;
        color: #fff !important;
        font-size: 8px !important;
        line-height: 1 !important;
        font-weight: 850 !important;
        letter-spacing: .045em !important;
        white-space: nowrap !important;
    }

    .navbar {
        top: 38px !important;
    }

    main {
        padding-top: 120px !important;
    }

    html {
        scroll-padding-top: 130px;
    }
}

@media (max-width: 360px) {
    .offer-bar-link {
        width: calc(100% - 16px) !important;
        gap: 5px !important;
    }

    .offer-bar-product {
        font-size: 9px !important;
    }

    .offer-bar-price {
        gap: 4px !important;
    }

    .offer-bar-price del {
        font-size: 8px !important;
    }

    .offer-bar-price strong {
        font-size: 11px !important;
    }

    .offer-bar-cta {
        gap: 3px !important;
        padding: 5px 6px !important;
        font-size: 7px !important;
    }
}


/* ==========================================================================
   Desktop navigation layout refinement — full-width header, single-line links
   ========================================================================== */
@media (min-width: 1200px) {
    .navbar > .container {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding-left: clamp(24px, 4.2vw, 68px);
        padding-right: clamp(24px, 4.2vw, 68px);
        gap: clamp(18px, 2vw, 32px);
    }

    .navbar .logo {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .navbar > .container > nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar .nav-menu {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: clamp(10px, 1.15vw, 18px);
        white-space: nowrap;
    }

    .navbar .nav-menu > li {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .navbar .nav-link,
    .navbar .nav-dropdown-trigger {
        white-space: nowrap;
        font-size: clamp(0.78rem, 0.86vw, 0.9rem);
    }

    .navbar .nav-buttons {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .navbar .nav-buttons .btn {
        white-space: nowrap;
        padding-left: clamp(14px, 1.25vw, 20px);
        padding-right: clamp(14px, 1.25vw, 20px);
    }
}

/* Keep the logo, navigation and support button from shrinking into wrapped text. */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar > .container {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        padding-left: 22px;
        padding-right: 22px;
        gap: 14px;
    }
    .navbar .logo { flex: 0 0 auto; }
    .navbar .logo img { width: 145px; }
    .navbar > .container > nav { flex: 1 1 auto; min-width: 0; }
    .navbar .nav-menu { gap: 9px; flex-wrap: nowrap; justify-content: space-between; }
    .navbar .nav-menu > li,
    .navbar .nav-link,
    .navbar .nav-dropdown-trigger { white-space: nowrap; }
    .navbar .nav-link, .navbar .nav-dropdown-trigger { font-size: 0.76rem; }
    .navbar .nav-buttons { flex: 0 0 auto; }
    .navbar .nav-buttons .btn { white-space: nowrap; padding-left: 11px; padding-right: 11px; font-size: 0.76rem; }
}
