/**
 * IPTV Trial Funnel Frontend Stylesheet
 * Scoped to .iptv-tf-funnel-wrapper
 * Uses site design tokens: #1A4053 (brand), #0F172A (dark), #F59E0B (WhatsApp/accent), #334155 (text)
 */

:root {
    --iptv-primary: #0F172A;
    --iptv-brand: #1A4053;
    --iptv-brand-hover: #13303F;
    --iptv-brand-light: #E8F1F5;
    --iptv-brand-border: #B8D5E5;
    --iptv-accent: #F59E0B;
    --iptv-accent-hover: #D97706;
    --iptv-accent-light: #FEF3C7;
    --iptv-accent-border: #FDE68A;
    --iptv-text: #334155;
    --iptv-text-muted: #64748B;
    --iptv-border: #E2E8F0;
    --iptv-bg: #FFFFFF;
    --iptv-bg-subtle: #F8FAFC;
    --iptv-danger: #DC2626;
    --iptv-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --iptv-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --iptv-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.iptv-tf-funnel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--iptv-text);
}

.iptv-tf-funnel-wrapper *,
.iptv-tf-funnel-wrapper *::before,
.iptv-tf-funnel-wrapper *::after {
    box-sizing: border-box;
}

/* --- HERO SPLIT LAYOUT (2 COLUMNS ON DESKTOP) --- */
.iptv-tf-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 72px;
}

/* Left Hero Column */
.iptv-tf-hero-left {
    padding-top: 8px;
}

.iptv-tf-offer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--iptv-accent-light);
    color: #b45309;
    border: 1px solid var(--iptv-accent-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.iptv-tf-offer-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--iptv-accent);
}

.iptv-tf-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--iptv-primary);
    margin: 0 0 18px;
}

.iptv-tf-hero-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--iptv-text-muted);
    margin: 0 0 32px;
    max-width: 500px;
}

/* 3 Concise Steps List */
.iptv-tf-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.iptv-tf-step-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iptv-tf-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--iptv-brand);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.iptv-tf-step-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--iptv-primary);
}

/* Returning Testers Note */
.iptv-tf-returning-box {
    border-top: 1px solid var(--iptv-border);
    padding-top: 24px;
    max-width: 490px;
}

.iptv-tf-returning-box strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--iptv-primary);
    margin-bottom: 4px;
}

.iptv-tf-returning-box p {
    font-size: 13.5px;
    color: var(--iptv-text-muted);
    margin: 0;
    line-height: 1.55;
}

.iptv-tf-returning-box a {
    color: var(--iptv-brand);
    text-decoration: none;
    font-weight: 600;
}

.iptv-tf-returning-box a:hover {
    text-decoration: underline;
}

/* --- RIGHT HERO COLUMN: FORM / CONFIRMATION CARD --- */
.iptv-tf-card {
    background: var(--iptv-bg);
    border: 1px solid var(--iptv-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--iptv-shadow-lg);
    box-sizing: border-box;
    position: relative;
    scroll-margin-top: 80px;
}

/* Compact Progress Header */
.iptv-tf-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.iptv-tf-prog-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
}

.iptv-tf-prog-step.active {
    color: var(--iptv-brand);
}

.iptv-tf-prog-step.completed {
    color: var(--iptv-accent);
}

.iptv-tf-prog-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.iptv-tf-prog-step.active .iptv-tf-prog-circle {
    background: var(--iptv-brand);
    color: #FFFFFF;
}

.iptv-tf-prog-step.completed .iptv-tf-prog-circle {
    background: var(--iptv-accent);
    color: #FFFFFF;
}

.iptv-tf-prog-line {
    flex-grow: 1;
    height: 2px;
    background: #F1F5F9;
    margin: 0 12px;
}

.iptv-tf-prog-line.completed {
    background: var(--iptv-accent-border);
}

/* Form Titles */
.iptv-tf-form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--iptv-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.iptv-tf-form-subtitle {
    font-size: 14px;
    color: var(--iptv-text-muted);
    margin: 0 0 24px;
}

/* Field Groups */
.iptv-tf-field {
    margin-bottom: 22px;
}

.iptv-tf-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--iptv-primary);
    margin-bottom: 10px;
}

/* Device Selector Cards (4 columns) */
.iptv-tf-device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.iptv-tf-device-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.iptv-tf-device-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.iptv-tf-device-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 6px;
    min-height: 76px;
    background: var(--iptv-bg);
    border: 1.5px solid var(--iptv-border);
    border-radius: 12px;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.iptv-tf-device-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    color: #64748B;
    transition: color 0.15s ease;
}

.iptv-tf-device-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.iptv-tf-device-option:hover .iptv-tf-device-box {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.iptv-tf-device-option input[type="radio"]:focus-visible + .iptv-tf-device-box {
    outline: 2px solid var(--iptv-brand);
    outline-offset: 2px;
}

.iptv-tf-device-option input[type="radio"]:checked + .iptv-tf-device-box {
    border-color: var(--iptv-brand);
    background: var(--iptv-brand-light);
    box-shadow: 0 0 0 1px var(--iptv-brand);
}

.iptv-tf-device-option input[type="radio"]:checked + .iptv-tf-device-box .iptv-tf-device-icon {
    color: var(--iptv-brand);
}

.iptv-tf-device-option input[type="radio"]:checked + .iptv-tf-device-box .iptv-tf-device-text {
    color: var(--iptv-brand);
}

.iptv-tf-device-other-wrap {
    text-align: right;
    margin-top: 4px;
}

/* Phone Input */
.iptv-tf-phone-field {
    display: flex;
    border: 1.5px solid var(--iptv-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--iptv-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iptv-tf-phone-field:focus-within {
    border-color: var(--iptv-brand);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.iptv-tf-phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: #F8FAFC;
    border-right: 1px solid var(--iptv-border);
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    user-select: none;
    flex-shrink: 0;
}

.iptv-tf-phone-input {
    flex-grow: 1;
    border: none;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--iptv-primary);
    font-family: inherit;
    outline: none;
    background: transparent;
    min-width: 0;
}

.iptv-tf-phone-input::placeholder {
    color: #94A3B8;
}

.iptv-tf-field-hint {
    display: block;
    font-size: 12px;
    color: var(--iptv-text-muted);
    margin-top: 6px;
}

/* Previous Trial Radios (3 pills) */
.iptv-tf-radios-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.iptv-tf-pill-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.iptv-tf-pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.iptv-tf-pill-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1.5px solid var(--iptv-border);
    border-radius: 10px;
    background: var(--iptv-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: all 0.15s ease;
    text-align: center;
}

.iptv-tf-pill-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #94A3B8;
    box-sizing: border-box;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.iptv-tf-pill-option:hover .iptv-tf-pill-box {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.iptv-tf-pill-option input[type="radio"]:focus-visible + .iptv-tf-pill-box {
    outline: 2px solid var(--iptv-brand);
    outline-offset: 2px;
}

.iptv-tf-pill-option input[type="radio"]:checked + .iptv-tf-pill-box {
    border-color: var(--iptv-brand);
    background: var(--iptv-brand-light);
    color: var(--iptv-brand);
}

.iptv-tf-pill-option input[type="radio"]:checked + .iptv-tf-pill-box .iptv-tf-pill-circle {
    border-color: var(--iptv-brand);
    background: var(--iptv-brand);
    box-shadow: inset 0 0 0 3px #FFFFFF;
}

/* Expandable Optional Email */
.iptv-tf-email-expand {
    margin-bottom: 22px;
}

.iptv-tf-email-collapse {
    display: none;
    margin-top: 10px;
}

.iptv-tf-email-collapse.open {
    display: block;
}

.iptv-tf-email-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--iptv-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14.5px;
    color: var(--iptv-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iptv-tf-email-input:focus {
    border-color: var(--iptv-brand);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

/* Privacy Text */
.iptv-tf-privacy-text {
    font-size: 12.5px;
    color: var(--iptv-text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.iptv-tf-privacy-text a {
    color: var(--iptv-text-muted);
    text-decoration: underline;
}

.iptv-tf-privacy-text a:hover {
    color: var(--iptv-brand);
}

.iptv-tf-card-footnote {
    text-align: center;
    font-size: 12px;
    color: var(--iptv-text-muted);
    margin: 12px 0 0;
}

/* --- CONFIRMATION CARD --- */
.iptv-tf-confirmation-card {
    text-align: center;
}

.iptv-tf-success-badge-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--iptv-accent-light);
    color: var(--iptv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.iptv-tf-success-badge-circle svg {
    width: 32px;
    height: 32px;
}

.iptv-tf-conf-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--iptv-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.iptv-tf-conf-subtitle {
    font-size: 15px;
    color: var(--iptv-text-muted);
    margin: 0 0 24px;
}

.iptv-tf-ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    border: 1px solid var(--iptv-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 24px;
}

.iptv-tf-ref-pill strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14.5px;
    color: var(--iptv-primary);
}

/* Device Summary Card */
.iptv-tf-device-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--iptv-bg-subtle);
    border: 1px solid var(--iptv-border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: left;
}

.iptv-tf-dev-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
}

.iptv-tf-dev-summary-icon {
    font-size: 20px;
}

.iptv-tf-dev-summary-left strong {
    color: var(--iptv-primary);
}

/* Preparation Box */
.iptv-tf-prep-box {
    background: #F8FAFC;
    border: 1px solid var(--iptv-border);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 26px;
    text-align: left;
}

.iptv-tf-prep-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--iptv-primary);
    margin: 0 0 14px;
}

.iptv-tf-prep-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iptv-tf-prep-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}

.iptv-tf-prep-check {
    width: 18px;
    height: 18px;
    color: var(--iptv-accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.iptv-tf-wa-helper {
    font-size: 12.5px;
    color: var(--iptv-text-muted);
    line-height: 1.5;
    margin: 14px 0 20px;
}

.iptv-tf-conf-legal {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--iptv-border);
    font-size: 12px;
    color: #94A3B8;
}

.iptv-tf-conf-legal a {
    color: #64748B;
    text-decoration: none;
}

.iptv-tf-conf-legal a:hover {
    text-decoration: underline;
}

/* --- BELOW THE HERO: "NÄIN TESTI ETENEE" --- */
.iptv-tf-below-section {
    margin-top: 40px;
    padding-top: 48px;
    border-top: 1px solid var(--iptv-border);
}

.iptv-tf-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--iptv-primary);
    margin: 0 0 28px;
    text-align: left;
}

.iptv-tf-etenee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.iptv-tf-etenee-card {
    background: var(--iptv-bg);
    border: 1px solid var(--iptv-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--iptv-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iptv-tf-etenee-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--iptv-shadow-md);
}

.iptv-tf-etenee-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--iptv-brand);
    background: var(--iptv-brand-light);
    border: 1px solid var(--iptv-brand-border);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.iptv-tf-etenee-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--iptv-primary);
    margin: 0 0 8px;
}

.iptv-tf-etenee-card p {
    font-size: 14px;
    color: var(--iptv-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* --- FAQ ACCORDION --- */
.iptv-tf-faq-container {
    max-width: 900px;
}

.iptv-tf-faq-item {
    border: 1px solid var(--iptv-border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--iptv-bg);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.iptv-tf-faq-item:hover {
    border-color: #CBD5E1;
}

.iptv-tf-faq-icon {
    width: 18px;
    height: 18px;
    color: #64748B;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.iptv-tf-faq-content {
    display: none;
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
}

.iptv-tf-faq-content.open {
    display: block;
}

/* Error Alert */
.iptv-tf-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.iptv-tf-alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--iptv-danger);
}

/* ========================================================
   HIGH SPECIFICITY BUTTON OVERRIDES (DEFEND AGAINST THEME)
   ======================================================== */
.iptv-tf-funnel-wrapper button.iptv-tf-submit-btn,
.iptv-tf-funnel-wrapper #iptv-tf-submit-btn {
    width: 100% !important;
    background: var(--iptv-brand) !important;
    background-color: var(--iptv-brand) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.28) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    height: auto !important;
    transition: all 0.15s ease !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-submit-btn:hover,
.iptv-tf-funnel-wrapper #iptv-tf-submit-btn:hover {
    background: var(--iptv-brand-hover) !important;
    background-color: var(--iptv-brand-hover) !important;
    box-shadow: 0 6px 18px rgba(0, 82, 204, 0.35) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-submit-btn:active,
.iptv-tf-funnel-wrapper #iptv-tf-submit-btn:active {
    transform: translateY(0) !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-submit-btn:disabled,
.iptv-tf-funnel-wrapper #iptv-tf-submit-btn:disabled {
    background: #94A3B8 !important;
    background-color: #94A3B8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.iptv-tf-funnel-wrapper a.iptv-tf-btn-wa,
.iptv-tf-funnel-wrapper #iptv-tf-wa-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--iptv-accent) !important;
    background-color: var(--iptv-accent) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 182, 122, 0.35) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    height: auto !important;
    transition: all 0.15s ease !important;
}

.iptv-tf-funnel-wrapper a.iptv-tf-btn-wa:hover,
.iptv-tf-funnel-wrapper #iptv-tf-wa-btn:hover {
    background: var(--iptv-accent-hover) !important;
    background-color: var(--iptv-accent-hover) !important;
    box-shadow: 0 6px 20px rgba(0, 182, 122, 0.45) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-email-toggle,
.iptv-tf-funnel-wrapper #iptv-tf-email-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--iptv-brand) !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    height: auto !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-email-toggle:hover,
.iptv-tf-funnel-wrapper #iptv-tf-email-toggle:hover {
    text-decoration: underline !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--iptv-brand-hover) !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-edit-btn,
.iptv-tf-funnel-wrapper #iptv-tf-edit-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--iptv-brand) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    text-decoration: underline !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    height: auto !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-edit-btn:hover,
.iptv-tf-funnel-wrapper #iptv-tf-edit-btn:hover {
    color: var(--iptv-brand-hover) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-back-link,
.iptv-tf-funnel-wrapper #iptv-tf-back-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 13px !important;
    color: var(--iptv-brand) !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    height: auto !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-back-link:hover,
.iptv-tf-funnel-wrapper #iptv-tf-back-btn:hover {
    color: var(--iptv-brand-hover) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-device-other-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: var(--iptv-text-muted) !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-family: inherit !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    height: auto !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-device-other-btn:hover {
    color: var(--iptv-brand) !important;
    background: transparent !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-faq-trigger {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 22px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    text-align: left !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--iptv-primary) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    height: auto !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-faq-trigger:focus-visible {
    outline: 2px solid var(--iptv-brand) !important;
    outline-offset: -2px !important;
}

.iptv-tf-funnel-wrapper button.iptv-tf-faq-trigger[aria-expanded="true"] .iptv-tf-faq-icon {
    transform: rotate(180deg);
    color: var(--iptv-brand);
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 991px) {
    .iptv-tf-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .iptv-tf-hero-title {
        font-size: 34px;
    }

    .iptv-tf-card {
        padding: 24px 20px;
    }

    .iptv-tf-etenee-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .iptv-tf-funnel-wrapper {
        padding: 20px 16px 60px;
    }

    .iptv-tf-hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .iptv-tf-hero-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .iptv-tf-device-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .iptv-tf-device-box {
        min-height: 70px;
        padding: 12px 6px;
    }

    .iptv-tf-radios-pills {
        grid-template-columns: 1fr;
    }

    .iptv-tf-pill-box {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .iptv-tf-progress-bar {
        font-size: 11.5px;
    }

    .iptv-tf-prog-line {
        margin: 0 6px;
    }

    .iptv-tf-funnel-wrapper button.iptv-tf-submit-btn,
    .iptv-tf-funnel-wrapper a.iptv-tf-btn-wa {
        font-size: 15px !important;
        padding: 14px 18px !important;
    }
}

/* --- DIRECT EMAIL INPUT & 5-SECOND GENERATION MODAL --- */
.iptv-tf-field-email {
    margin-bottom: 18px;
}

.iptv-tf-text-input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    border: 1.5px solid var(--iptv-border);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--iptv-primary);
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iptv-tf-text-input:focus {
    border-color: var(--iptv-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

.iptv-tf-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    animation: iptvTfFadeIn 0.25s ease-out;
}

.iptv-tf-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 440px;
    width: 100%;
    padding: 36px 28px 28px;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    animation: iptvTfScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.iptv-tf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: #64748B;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.iptv-tf-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.iptv-tf-gen-circle-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iptv-tf-gen-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid #E2E8F0;
    border-top-color: #1A4053;
    border-right-color: #F59E0B;
    animation: iptvTfSpin 1s linear infinite;
}

.iptv-tf-gen-timer-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1A4053;
    line-height: 1;
}

.iptv-tf-modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.iptv-tf-modal-sub {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 20px;
    line-height: 1.45;
}

.iptv-tf-modal-progress-track {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.iptv-tf-modal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1A4053 0%, #F59E0B 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.iptv-tf-modal-status-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
    max-width: 100%;
    box-sizing: border-box;
}

.iptv-tf-modal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F59E0B;
    flex-shrink: 0;
    animation: iptvTfPulse 1.2s infinite;
}

.iptv-tf-modal-status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iptv-tf-modal-footnote {
    font-size: 11.5px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Phase 2 Ready */
.iptv-tf-ready-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #FEF3C7;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: iptvTfBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.iptv-tf-ready-badge svg {
    width: 36px;
    height: 36px;
}

.iptv-tf-ready-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.iptv-tf-ready-sub {
    font-size: 14px;
    color: #475569;
    margin: 0 0 18px;
    line-height: 1.45;
}

.iptv-tf-ready-code-card {
    background: #FFFBEB;
    border: 1.5px dashed #FDE68A;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.iptv-tf-ready-code-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #D97706;
    margin-bottom: 3px;
}

.iptv-tf-ready-code-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 24px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: 0.05em;
}

/* --- MODAL ACTION BUTTONS (SHIELDED AGAINST HELLO ELEMENTOR) --- */
.iptv-tf-funnel-wrapper .iptv-tf-modal-card a.iptv-tf-modal-wa-btn,
.iptv-tf-modal-card a.iptv-tf-modal-wa-btn,
#iptv-tf-modal-wa-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #F59E0B !important;
    background-color: #F59E0B !important;
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0, 182, 122, 0.35) !important;
    cursor: pointer !important;
    margin: 0 0 10px 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.iptv-tf-funnel-wrapper .iptv-tf-modal-card a.iptv-tf-modal-wa-btn:hover,
.iptv-tf-modal-card a.iptv-tf-modal-wa-btn:hover,
#iptv-tf-modal-wa-btn:hover {
    background: #00A36D !important;
    background-color: #00A36D !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 22px rgba(0, 182, 122, 0.45) !important;
}

.iptv-tf-funnel-wrapper .iptv-tf-modal-card button.iptv-tf-modal-view-prep,
.iptv-tf-modal-card button.iptv-tf-modal-view-prep,
button#iptv-tf-modal-view-prep,
#iptv-tf-modal-view-prep {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 10px !important;
    color: #334155 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 11px 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.iptv-tf-funnel-wrapper .iptv-tf-modal-card button.iptv-tf-modal-view-prep:hover,
.iptv-tf-modal-card button.iptv-tf-modal-view-prep:hover,
button#iptv-tf-modal-view-prep:hover,
#iptv-tf-modal-view-prep:hover {
    background: #F1F5F9 !important;
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}

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

@keyframes iptvTfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes iptvTfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes iptvTfScaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes iptvTfBounce {
    0% { transform: scale(0.6); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .iptv-tf-modal-card {
        padding: 30px 20px 24px;
        border-radius: 16px;
    }

    .iptv-tf-modal-title,
    .iptv-tf-ready-title {
        font-size: 20px;
    }

    .iptv-tf-gen-circle-wrap {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .iptv-tf-gen-timer-num {
        font-size: 28px;
    }

    .iptv-tf-modal-wa-btn {
        font-size: 15px !important;
        padding: 14px 16px !important;
    }
}
