// i18n.jsx — translation system for Golazo TV
// 12 languages, curated translations of visible UI strings.

const LANGUAGES = [
  { code: 'en', name: 'English', native: 'English', flag: 'GB' },
  { code: 'de', name: 'German',  native: 'Deutsch', flag: 'DE' },
];

// Flag colors: simple horizontal/vertical stripe approximations.
const FLAGS = {
  GB: 'linear-gradient(180deg, #012169 33%, #fff 33% 66%, #C8102E 66%)',
  ES: 'linear-gradient(180deg, #AA151B 25%, #F1BF00 25% 75%, #AA151B 75%)',
  PT: 'linear-gradient(90deg, #006600 40%, #FF0000 40%)',
  FR: 'linear-gradient(90deg, #002654 33%, #fff 33% 66%, #ED2939 66%)',
  DE: 'linear-gradient(180deg, #000 33%, #DD0000 33% 66%, #FFCE00 66%)',
  IT: 'linear-gradient(90deg, #009246 33%, #fff 33% 66%, #CE2B37 66%)',
  NL: 'linear-gradient(180deg, #AE1C28 33%, #fff 33% 66%, #21468B 66%)',
  SA: 'linear-gradient(180deg, #006c35 100%)',
  RU: 'linear-gradient(180deg, #fff 33%, #0039A6 33% 66%, #D52B1E 66%)',
  TR: 'linear-gradient(90deg, #E30A17 100%)',
  JP: 'radial-gradient(circle at center, #BC002D 24%, #fff 25%)',
  CN: 'linear-gradient(180deg, #DE2910 100%)',
};

// Translation table — ALL keys must exist for each language.
const STRINGS = {
  en: {
    'nav.home': 'HOME', 'nav.plans': 'PLANS', 'nav.setup': 'SETUP',
    'nav.matches': 'MATCHES', 'nav.contact': 'CONTACT',
    'nav.referral': 'REFERRAL', 'nav.resellers': 'RESELLERS',
    'nav.live': 'LIVE NOW · 12', 'nav.client': 'CLIENT AREA',
    'wa.welcome': 'Welcome to 4K MAX.', 'wa.assist': 'How can we assist you today?', 'wa.openchat': 'Open Chat', 'wa.interestedMsg': 'Hi, I am interested in your service',
    'contact.eyebrow': 'GET IN TOUCH',
    'contact.title': 'WE\'RE HERE FOR YOU.',
    'contact.sub': 'Real people, fast replies. Pick the channel you actually use — we answer in minutes, not days.',
    'contact.emailSub': 'For activation help, billing questions, or anything technical. Average reply: under 20 minutes.',
    'contact.emailCta': 'SEND EMAIL',
    'contact.waSub': 'Quick questions, screenshots, voice notes. Same support team, fastest channel.',
    'contact.waCta': 'OPEN WHATSAPP',
    'contact.hours': 'SUPPORT 24/7',
    'contact.langs': 'EN · ES · PT · FR · DE · AR',
    'ref.eyebrow': 'REFER & EARN',
    'ref.title': 'BRING A FRIEND. WATCH FOR FREE.',
    'ref.sub': 'Refer anyone — friends, family, your group chat. The longer they sign up for, the more free months land in your account.',
    'ref.months': 'MONTHS',
    'ref.monthsFree': 'MONTHS FREE',
    'ref.tier24Desc': 'They commit to two full years of football. You get a full quarter on the house — extended automatically to your next renewal.',
    'ref.tier12Desc': 'They take the most popular annual plan. Two free months drop into your account the moment their payment clears.',
    'ref.step1': 'Share your unique code from the client area.',
    'ref.step2': 'Friend subscribes — 12 or 24 month plan.',
    'ref.step3': 'Your free months apply automatically.',
    'ref.uncapped': 'NO LIMIT ON REFERRALS',
    'ref.stack': 'STACKS WITH ANY ACTIVE PLAN',
    'hero.tagline': 'WATCH WORLD CUP · LIVE NOW · IN 4K',
    'hero.line1': 'EVERY MATCH', 'hero.line2': 'EVERY LEAGUE', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'FREE TEST', 'cta.trial.sub': 'FREE TEST', 'cta.trial.waMsg': 'Hi, I want a free test',
    'cta.packages': 'VIEW PACKAGES', 'cta.packages.sub': 'FROM $9/MO',
    'stat.channels': 'Live channels', 'stat.films': 'Films & series',
    'stat.uhd': 'Ultra HD pipeline', 'stat.uptime': 'Uptime SLA',
    'foot.devices': 'ANY DEVICE', 'foot.buffer': 'NO BUFFERING',
    'foot.activation': 'INSTANT ACTIVATION', 'foot.support': '24/7 SUPPORT',
    'matches.eyebrow': '01 / MATCHDAY', 'matches.title': "WHAT'S ON RIGHT NOW",
    'matches.sub': 'A live snapshot from the EPG. Click any match to jump to the channel.',
    'groups.eyebrow': '01 / ROAD TO 2026',
    'groups.title': 'EVERY GROUP. EVERY GAME.',
    'groups.sub': 'World Cup 2026 starts June 11. All 48 nations across 16 host cities — every group-stage match streamed live in 4K.',
    'wc.eyebrow': 'WORLD CUP 2026',
    'wc.title': 'FROM GROUPS TO GLORY.',
    'wc.sub': '48 nations. 104 matches. 16 cities across three countries. Every kick, every save, every final whistle — streamed in 4K.',
    'wc.gs': 'Group Stage',
    'wc.r32': 'Round of 32',
    'wc.r16': 'Round of 16',
    'wc.qf': 'Quarterfinals',
    'wc.sf': 'Semifinals',
    'wc.final': 'The Final',
    'wc.hosts': 'HOST CITIES',
    'wc.cities': 'CITIES',
    'setup.eyebrow': '02 / SETUP', 'setup.title': 'FROM ZERO TO MATCHDAY',
    'setup.sub': 'Four steps. Roughly the time it takes to make a coffee.',
    'setup.s1.t': 'Subscribe', 'setup.s1.b': 'Pick a plan. Pay with Paypal, crypto or Bank transfer.',
    'setup.s2.t': 'Receive credentials', 'setup.s2.b': 'You get an M3U link and Xtream login by WhatsApp or email — instantly.',
    'setup.s3.t': 'Install on any device', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Guides for each.',
    'setup.s4.t': 'Tune in', 'setup.s4.b': "EPG loads, channels sort by league. Match starts. You're in.",
    'plans.eyebrow': '03 / PLANS', 'plans.title': 'PICK YOUR LINEUP',
    'plans.sub': "No contracts. No hidden fees. Cancel anytime — but you won't.",
    'plans.devices': 'DEVICES', 'plans.featured': '★ FEATURED',
    'plans.eyebrow2': 'PRICING',
    'plans.h2a': 'One plan.',
    'plans.h2b': 'Four lengths.',
    'plans.lede2': 'Every plan unlocks the full library. Pay yearly to pay less. Add devices for less than buying separately.',
    'plans.device': 'device', 'plans.devicesPl': 'devices',
    'plans.trust1': '24-HOUR FREE TRIAL', 'plans.trust2': 'NO CARD REQUIRED', 'plans.trust3': '24-HOUR MONEY-BACK GUARANTEE',
    'tier.months': 'MONTHS', 'tier.month': 'month', 'tier.save': 'SAVE',
    'tier.best': 'BEST VALUE', 'tier.choose': 'SUBSCRIBE NOW',
    'tier.b1': 'Instant activation', 'tier.b2': 'Cancel anytime',
    'tier.b3': 'Secure checkout', 'tier.b4': 'CAP PLAYER not included',
    'tier.live': 'LIVE', 'tier.liveDesc': '+52,000 channels with anti-freeze technology, no VPN required, M3U/Xtream Code, free support, 24/7 assistance, 99.9% uptime guarantee',
    'tier.cinema': 'CINEMA', 'tier.cinemaDesc': '+200,000 movies and series in SD/HD/Full HD/4K quality, ultra-fast delivery and 30-day money-back guarantee',
    'tier.series': 'SERIES', 'tier.seriesDesc': 'EPG included, compatible with Smart TV, MAG, iOS, Android and works on all applications',
    'tier.sport': 'SPORT', 'tier.sportDesc': 'All sports channels included in your subscription',
    'movies.eyebrow': 'ON-DEMAND',
    'movies.title': 'When the match ends, the cinema starts.',
    'movies.sub': 'A 200,000-strong on-demand library — from Friday night football documentaries to Saturday-night blockbusters. New titles every week.',
    'movies.f.all': 'ALL', 'movies.f.sport': 'SPORT', 'movies.f.drama': 'DRAMA',
    'movies.f.action': 'ACTION', 'movies.f.series': 'SERIES',
    'movies.count': 'BROWSE THE FULL LIBRARY · 200,000+ TITLES',
    'plans.devicesQ': 'STEP 01 · DEVICES',
    'plans.devicesTitle': 'How many screens at once?',
    'plans.devicesHelp': 'Pick the number of devices that can stream simultaneously. Install the app on as many devices as you want — this controls concurrent streams.',
    'plans.screen': 'SCREEN', 'plans.screens': 'SCREENS',
    'plans.streams': 'CONCURRENT',
    'plan.kickoff.tag': 'FOR SUNDAY VIEWERS', 'plan.extra.tag': 'MOST POPULAR',
    'plan.golden.tag': 'FOR THE ULTRAS', 'plan.dynasty.tag': 'BEST VALUE · YEARLY',
    'plan.kickoff.cta': 'START', 'plan.extra.cta': 'GO PREMIUM',
    'plan.golden.cta': 'CLAIM', 'plan.dynasty.cta': 'GO YEARLY',
    'sect.live': 'LIVE',
    'sect.live.body': '+52,000 channels with anti-freeze technology, no VPN required, M3U / Xtream Code, free support, 24/7 help and 99.9% uptime guarantee.',
    'sect.cinema': 'CINEMA',
    'sect.cinema.body': '+200,000 movies and series in SD / HD / Full HD / 4K quality, ultra-fast delivery and a 30-day money-back guarantee.',
    'sect.series': 'SERIES',
    'sect.series.body': 'EPG included, compatible with Smart TV, MAG, iOS, Android and all popular apps.',
    'sect.sport': 'SPORT',
    'sect.sport.body': 'All sport channels are included in your streaming subscription.',
    'foot.tagline': 'Independent streaming service for football fans. Not affiliated with FIFA, UEFA, or any league.',
    'foot.product': 'PRODUCT', 'foot.support2': 'SUPPORT', 'foot.legal': 'LEGAL',
    'foot.copy': '© 2026 · ALL RIGHTS RESERVED',
    'lang.title': 'LANGUAGE', 'lang.search': 'Search language…',
    'plansp.eyebrow': 'PRICING · Q4 2026',
    'plansp.h1a': 'EVERY PLAN.',
    'plansp.h1b': 'EVERY MATCH.',
    'plansp.lede': 'Pick the package that fits how you watch. All tiers stream the same 52,000+ live channels and 200,000+ films & series — they differ in screens, devices, and length of commitment. No contracts. No hidden fees. Cancel any time.',
    'plansp.bullet1': '14-DAY MONEY BACK',
    'plansp.bullet2': 'INSTANT ACTIVATION',
    'plansp.bullet3': 'CARD · CRYPTO · PAYPAL',
    'plansp.bullet4': 'NO VPN REQUIRED',
    'faq.eyebrow': 'FREQUENTLY ASKED',
    'faq.title': 'Before you sign up.',
    'faq.q1': 'How fast does activation happen?',
    'faq.a1': 'Instantly. The moment your payment clears, your M3U link and Xtream credentials land in your inbox. Most subscribers are watching within 60 seconds.',
    'faq.q2': 'Can I watch on multiple devices?',
    'faq.a2': 'Yes — you can watch on multiple devices, but not at the same time.',
    'faq.q3': 'Do I need a VPN?',
    'faq.a3': 'No. Our delivery network handles geo-routing automatically. If your ISP throttles streaming, a VPN can help — but it is never required.',
    'faq.q4': 'What happens if I cancel?',
    'faq.a4': 'You keep your subscription until the end of the billing period you already paid for. After that, no further charges. Re-subscribe any time using the same email.',
    'faq.q5': 'Is there a free trial?',
    'faq.a5': 'Yes — a 24-hour trial is available on request via the chat bubble. We also back every paid plan with a 14-day money-back guarantee, no questions asked.',
    'faq.q6': 'Which devices are supported?',
    'faq.a6': 'Smart TVs (Samsung, LG, Sony), Amazon Firestick, Apple TV, iOS, Android, MAG boxes, Enigma2 receivers, Windows, macOS, and any media player that accepts an M3U URL or Xtream login.',
  },
  es: {
    'nav.home': 'INICIO', 'nav.plans': 'PLANES', 'nav.setup': 'INSTALAR',
    'nav.matches': 'PARTIDOS', 'nav.contact': 'CONTACTO',
    'nav.live': 'EN VIVO · 12', 'nav.client': 'ÁREA CLIENTE',
    'hero.tagline': 'DÍA DE PARTIDO · CADA DÍA · MUNDIAL',
    'hero.line1': 'CADA PARTIDO', 'hero.line2': 'CADA LIGA', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'PRUEBA GRATIS', 'cta.trial.sub': '24 HORAS', 'cta.trial.waMsg': 'Hola, quiero una prueba gratuita',
    'cta.packages': 'VER PAQUETES', 'cta.packages.sub': 'DESDE $9/MES',
    'stat.channels': 'Canales en vivo', 'stat.films': 'Películas y series',
    'stat.uhd': 'Tubería Ultra HD', 'stat.uptime': 'SLA de uptime',
    'foot.devices': 'CUALQUIER DISPOSITIVO', 'foot.buffer': 'SIN BUFFERING',
    'foot.activation': 'ACTIVACIÓN INSTANTÁNEA', 'foot.support': 'SOPORTE 24/7',
    'matches.eyebrow': '01 / PARTIDOS', 'matches.title': 'QUÉ HAY AHORA MISMO',
    'matches.sub': 'Una vista en vivo del EPG. Haz clic en cualquier partido para ir al canal.',
    'setup.eyebrow': '02 / INSTALACIÓN', 'setup.title': 'DE CERO AL PARTIDO',
    'setup.sub': 'Cuatro pasos. Lo que tardas en preparar un café.',
    'setup.s1.t': 'Suscríbete', 'setup.s1.b': 'Elige un plan. Paga con tarjeta, cripto o PayPal. Activación automática.',
    'setup.s2.t': 'Recibe credenciales', 'setup.s2.b': 'Recibes un enlace M3U y acceso Xtream por correo — al instante.',
    'setup.s3.t': 'Instala en cualquier dispositivo', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Guías para cada uno.',
    'setup.s4.t': 'Sintoniza', 'setup.s4.b': 'Carga el EPG, canales por liga. Empieza el partido. Estás dentro.',
    'plans.eyebrow': '03 / PLANES', 'plans.title': 'ELIGE TU ALINEACIÓN',
    'plans.sub': 'Sin contratos. Sin costes ocultos. Cancela cuando quieras — pero no querrás.',
    'plans.devices': 'DISPOSITIVOS', 'plans.featured': '★ DESTACADO',
    'plan.kickoff.tag': 'PARA EL DOMINGO', 'plan.extra.tag': 'MÁS POPULAR',
    'plan.golden.tag': 'PARA LOS ULTRAS', 'plan.dynasty.tag': 'MEJOR VALOR · ANUAL',
    'plan.kickoff.cta': 'EMPEZAR', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'OBTENER', 'plan.dynasty.cta': 'ANUAL',
    'sect.live': 'EN VIVO',
    'sect.live.body': '+52.000 canales con tecnología anti-freeze, sin VPN, M3U / Xtream Code, soporte gratis, ayuda 24/7 y garantía de 99,9% de uptime.',
    'sect.cinema': 'CINE',
    'sect.cinema.body': '+200.000 películas y series en calidad SD / HD / Full HD / 4K, entrega ultrarrápida y 30 días de garantía.',
    'sect.series': 'SERIES',
    'sect.series.body': 'EPG incluido, compatible con Smart TV, MAG, iOS, Android y todas las apps populares.',
    'sect.sport': 'DEPORTE',
    'sect.sport.body': 'Todos los canales deportivos están incluidos en tu suscripción.',
    'foot.tagline': 'Servicio de streaming independiente para aficionados al fútbol. No afiliado a FIFA, UEFA ni ninguna liga.',
    'foot.product': 'PRODUCTO', 'foot.support2': 'SOPORTE', 'foot.legal': 'LEGAL',
    'foot.copy': '© 2026 · TODOS LOS DERECHOS RESERVADOS',
    'lang.title': 'IDIOMA', 'lang.search': 'Buscar idioma…',
  },
  pt: {
    'nav.home': 'INÍCIO', 'nav.plans': 'PLANOS', 'nav.setup': 'INSTALAR',
    'nav.matches': 'JOGOS', 'nav.contact': 'CONTATO',
    'nav.live': 'AO VIVO · 12', 'nav.client': 'ÁREA CLIENTE',
    'hero.tagline': 'DIA DE JOGO · TODO DIA · MUNDIAL',
    'hero.line1': 'TODO JOGO', 'hero.line2': 'TODA LIGA', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'TESTE GRÁTIS', 'cta.trial.sub': '24 HORAS', 'cta.trial.waMsg': 'Olá, quero um teste gratuito',
    'cta.packages': 'VER PACOTES', 'cta.packages.sub': 'A PARTIR DE $9/MÊS',
    'stat.channels': 'Canais ao vivo', 'stat.films': 'Filmes e séries',
    'stat.uhd': 'Pipeline Ultra HD', 'stat.uptime': 'SLA de uptime',
    'foot.devices': 'QUALQUER DISPOSITIVO', 'foot.buffer': 'SEM BUFFERING',
    'foot.activation': 'ATIVAÇÃO INSTANTÂNEA', 'foot.support': 'SUPORTE 24/7',
    'matches.eyebrow': '01 / JOGOS', 'matches.title': 'O QUE ESTÁ ROLANDO AGORA',
    'matches.sub': 'Visão ao vivo do EPG. Clique em qualquer jogo para ir ao canal.',
    'setup.eyebrow': '02 / INSTALAÇÃO', 'setup.title': 'DO ZERO AO JOGO',
    'setup.sub': 'Quatro passos. O tempo de fazer um café.',
    'setup.s1.t': 'Assine', 'setup.s1.b': 'Escolha um plano. Pague com cartão, cripto ou PayPal. Ativação automática.',
    'setup.s2.t': 'Receba credenciais', 'setup.s2.b': 'Recebe um link M3U e login Xtream por email — na hora.',
    'setup.s3.t': 'Instale em qualquer dispositivo', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Guias para cada um.',
    'setup.s4.t': 'Sintonize', 'setup.s4.b': 'EPG carrega, canais por liga. Jogo começa. Você está dentro.',
    'plans.eyebrow': '03 / PLANOS', 'plans.title': 'ESCOLHA SUA ESCALAÇÃO',
    'plans.sub': 'Sem contratos. Sem taxas ocultas. Cancele quando quiser — mas não vai querer.',
    'plans.devices': 'DISPOSITIVOS', 'plans.featured': '★ DESTAQUE',
    'plan.kickoff.tag': 'PARA DOMINGO', 'plan.extra.tag': 'MAIS POPULAR',
    'plan.golden.tag': 'PARA OS ULTRAS', 'plan.dynasty.tag': 'MELHOR VALOR · ANUAL',
    'plan.kickoff.cta': 'COMEÇAR', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'OBTER', 'plan.dynasty.cta': 'ANUAL',
    'sect.live': 'AO VIVO',
    'sect.live.body': '+52.000 canais com tecnologia anti-freeze, sem VPN, M3U / Xtream Code, suporte gratuito, ajuda 24/7 e garantia de 99,9% de uptime.',
    'sect.cinema': 'CINEMA',
    'sect.cinema.body': '+200.000 filmes e séries em SD / HD / Full HD / 4K, entrega ultrarrápida e garantia de 30 dias.',
    'sect.series': 'SÉRIES',
    'sect.series.body': 'EPG incluso, compatível com Smart TV, MAG, iOS, Android e todos os apps populares.',
    'sect.sport': 'ESPORTE',
    'sect.sport.body': 'Todos os canais de esporte estão inclusos na sua assinatura.',
    'foot.tagline': 'Serviço de streaming independente para fãs de futebol. Não afiliado à FIFA, UEFA ou qualquer liga.',
    'foot.product': 'PRODUTO', 'foot.support2': 'SUPORTE', 'foot.legal': 'LEGAL',
    'foot.copy': '© 2026 · TODOS OS DIREITOS RESERVADOS',
    'lang.title': 'IDIOMA', 'lang.search': 'Buscar idioma…',
  },
  fr: {
    'nav.home': 'ACCUEIL', 'nav.plans': 'OFFRES', 'nav.setup': 'INSTALLER',
    'nav.matches': 'MATCHS', 'nav.contact': 'CONTACT',
    'nav.live': 'EN DIRECT · 12', 'nav.client': 'ESPACE CLIENT',
    'hero.tagline': 'JOUR DE MATCH · CHAQUE JOUR · MONDIAL',
    'hero.line1': 'TOUS LES MATCHS', 'hero.line2': 'TOUTES LES LIGUES', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'ESSAI GRATUIT', 'cta.trial.sub': '24 HEURES', 'cta.trial.waMsg': 'Bonjour, je veux un test gratuit',
    'cta.packages': 'VOIR LES OFFRES', 'cta.packages.sub': 'DÈS 9$/MOIS',
    'stat.channels': 'Chaînes en direct', 'stat.films': 'Films et séries',
    'stat.uhd': 'Pipeline Ultra HD', 'stat.uptime': 'SLA de disponibilité',
    'foot.devices': 'TOUT APPAREIL', 'foot.buffer': 'SANS BUFFERING',
    'foot.activation': 'ACTIVATION INSTANTANÉE', 'foot.support': 'SUPPORT 24/7',
    'matches.eyebrow': '01 / MATCHS', 'matches.title': "QU'EST-CE QUI PASSE",
    'matches.sub': "Aperçu en direct de l'EPG. Cliquez sur un match pour aller à la chaîne.",
    'setup.eyebrow': '02 / INSTALLATION', 'setup.title': 'DE ZÉRO AU MATCH',
    'setup.sub': 'Quatre étapes. Le temps de faire un café.',
    'setup.s1.t': 'Abonnez-vous', 'setup.s1.b': 'Choisissez un forfait. Carte, crypto ou PayPal. Activation automatique.',
    'setup.s2.t': 'Identifiants reçus', 'setup.s2.b': 'Vous recevez un lien M3U et un accès Xtream par email — instantané.',
    'setup.s3.t': 'Installez partout', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Guides pour chacun.',
    'setup.s4.t': 'Branchez-vous', 'setup.s4.b': "L'EPG charge, chaînes triées. Le match commence. Vous y êtes.",
    'plans.eyebrow': '03 / OFFRES', 'plans.title': 'CHOISISSEZ VOTRE COMPO',
    'plans.sub': 'Pas de contrat. Pas de frais cachés. Annulez quand vous voulez — mais vous ne voudrez pas.',
    'plans.devices': 'APPAREILS', 'plans.featured': '★ EN VEDETTE',
    'plan.kickoff.tag': 'POUR LE DIMANCHE', 'plan.extra.tag': 'PLUS POPULAIRE',
    'plan.golden.tag': 'POUR LES ULTRAS', 'plan.dynasty.tag': 'MEILLEUR PRIX · ANNUEL',
    'plan.kickoff.cta': 'DÉMARRER', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'OBTENIR', 'plan.dynasty.cta': 'ANNUEL',
    'sect.live': 'DIRECT',
    'sect.live.body': '+50 000 chaînes avec technologie anti-freeze, sans VPN, M3U / Xtream Code, support gratuit, aide 24/7 et garantie 99,9% de disponibilité.',
    'sect.cinema': 'CINÉMA',
    'sect.cinema.body': '+150 000 films et séries en SD / HD / Full HD / 4K, livraison ultra-rapide et garantie 30 jours.',
    'sect.series': 'SÉRIES',
    'sect.series.body': 'EPG inclus, compatible Smart TV, MAG, iOS, Android et toutes les apps populaires.',
    'sect.sport': 'SPORT',
    'sect.sport.body': 'Toutes les chaînes sport sont incluses dans votre abonnement.',
    'foot.tagline': 'Service de streaming indépendant pour les fans de football. Non affilié à la FIFA, UEFA ou toute ligue.',
    'foot.product': 'PRODUIT', 'foot.support2': 'SUPPORT', 'foot.legal': 'LÉGAL',
    'foot.copy': '© 2026 · TOUS DROITS RÉSERVÉS',
    'lang.title': 'LANGUE', 'lang.search': 'Rechercher une langue…',
  },
  de: {
    'nav.home': 'START', 'nav.plans': 'TARIFE', 'nav.setup': 'EINRICHTEN',
    'nav.matches': 'SPIELE', 'nav.contact': 'KONTAKT',
    'nav.referral': 'EMPFEHLUNG', 'nav.resellers': 'HÄNDLER',
    'nav.live': 'LIVE · 12', 'nav.client': 'KUNDENBEREICH',
    'hero.tagline': 'SPIELTAG · JEDEN TAG · WELTWEIT',
    'hero.line1': 'JEDES SPIEL', 'hero.line2': 'JEDE LIGA', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'GRATIS TESTEN', 'cta.trial.sub': 'GRATIS TESTEN', 'cta.trial.waMsg': 'Hallo, ich möchte kostenlos testen',
    'wa.welcome': 'Willkommen bei 4K MAX.', 'wa.assist': 'Wie können wir Ihnen helfen?', 'wa.openchat': 'Chat öffnen', 'wa.interestedMsg': 'Hallo, ich interessiere mich für Ihren Service',
    'cta.packages': 'PAKETE ANSEHEN', 'cta.packages.sub': 'AB 9$/MONAT',
    'stat.channels': 'Live-Kanäle', 'stat.films': 'Filme & Serien',
    'stat.uhd': 'Ultra HD Pipeline', 'stat.uptime': 'Uptime-SLA',
    'foot.devices': 'JEDES GERÄT', 'foot.buffer': 'KEIN BUFFERING',
    'foot.activation': 'SOFORT-AKTIVIERUNG', 'foot.support': '24/7 SUPPORT',
    'matches.eyebrow': '01 / SPIELTAG', 'matches.title': 'WAS LÄUFT GERADE',
    'matches.sub': 'Live-Schnappschuss aus dem EPG. Klick auf ein Spiel, um zum Sender zu springen.',
    'setup.eyebrow': '02 / EINRICHTUNG', 'setup.title': 'VON NULL ZUM SPIELTAG',
    'setup.sub': 'Vier Schritte. So lange wie ein Kaffee dauert.',
    'setup.s1.t': 'Abonnieren', 'setup.s1.b': 'Tarif wählen. Karte, Krypto oder PayPal. Automatische Aktivierung.',
    'setup.s2.t': 'Zugangsdaten erhalten', 'setup.s2.b': 'M3U-Link und Xtream-Login per E-Mail — sofort.',
    'setup.s3.t': 'Auf jedem Gerät installieren', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Anleitungen für jedes.',
    'setup.s4.t': 'Einschalten', 'setup.s4.b': 'EPG lädt, Kanäle nach Liga. Spiel startet. Du bist drin.',
    'plans.eyebrow': '03 / TARIFE', 'plans.title': 'WÄHLE DEINE AUFSTELLUNG',
    'plans.sub': 'Keine Verträge. Keine versteckten Kosten. Jederzeit kündbar — wirst du aber nicht.',
    'plans.devices': 'GERÄTE', 'plans.featured': '★ EMPFEHLUNG',
    'plan.kickoff.tag': 'FÜR SONNTAGE', 'plan.extra.tag': 'AM BELIEBTESTEN',
    'plan.golden.tag': 'FÜR ULTRAS', 'plan.dynasty.tag': 'BESTPREIS · JÄHRLICH',
    'plan.kickoff.cta': 'STARTEN', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'HOLEN', 'plan.dynasty.cta': 'JAHR',
    'sect.live': 'LIVE',
    'sect.live.body': '+52.000 Kanäle mit Anti-Freeze-Technologie, kein VPN erforderlich, M3U/Xtream Code, kostenloser Support, 24/7 Hilfe und 99,9% Uptime-Garantie.',
    'sect.cinema': 'KINO',
    'sect.cinema.body': '+200.000 Filme und Serien in SD/HD/Full HD/4K-Qualität, ultraschnelle Bereitstellung und 30 Tage Geld-zurück-Garantie.',
    'sect.series': 'SERIEN',
    'sect.series.body': 'EPG inklusive, kompatibel mit Smart TV, MAG, iOS, Android und allen gängigen Apps.',
    'sect.sport': 'SPORT',
    'sect.sport.body': 'Alle Sportkanäle sind in deinem Streaming-Abonnement enthalten.',
    'foot.tagline': 'Unabhängiger Streaming-Service für Fußballfans. Nicht mit FIFA, UEFA oder einer Liga verbunden.',
    'foot.product': 'PRODUKT', 'foot.support2': 'SUPPORT', 'foot.legal': 'RECHTLICH',
    'foot.copy': '© 2026 · ALLE RECHTE VORBEHALTEN',
    'lang.title': 'SPRACHE', 'lang.search': 'Sprache suchen…',
  },
  it: {
    'nav.home': 'HOME', 'nav.plans': 'PIANI', 'nav.setup': 'CONFIGURA',
    'nav.matches': 'PARTITE', 'nav.contact': 'CONTATTI',
    'nav.live': 'LIVE · 12', 'nav.client': 'AREA CLIENTI',
    'hero.tagline': 'GIORNATA · OGNI GIORNO · MONDIALE',
    'hero.line1': 'OGNI PARTITA', 'hero.line2': 'OGNI LEGA', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'PROVA GRATIS', 'cta.trial.sub': '24 ORE', 'cta.trial.waMsg': 'Ciao, voglio una prova gratuita',
    'cta.packages': 'VEDI PIANI', 'cta.packages.sub': 'DA 9$/MESE',
    'stat.channels': 'Canali live', 'stat.films': 'Film e serie',
    'stat.uhd': 'Pipeline Ultra HD', 'stat.uptime': 'SLA uptime',
    'foot.devices': 'OGNI DISPOSITIVO', 'foot.buffer': 'NIENTE BUFFERING',
    'foot.activation': 'ATTIVAZIONE IMMEDIATA', 'foot.support': 'SUPPORTO 24/7',
    'matches.eyebrow': '01 / PARTITE', 'matches.title': 'COSA C\'È ORA',
    'matches.sub': "Vista live dell'EPG. Clicca su una partita per andare al canale.",
    'setup.eyebrow': '02 / CONFIGURAZIONE', 'setup.title': 'DA ZERO ALLA PARTITA',
    'setup.sub': 'Quattro passi. Il tempo di un caffè.',
    'setup.s1.t': 'Iscriviti', 'setup.s1.b': 'Scegli un piano. Carta, cripto o PayPal. Attivazione automatica.',
    'setup.s2.t': 'Ricevi credenziali', 'setup.s2.b': 'Link M3U e accesso Xtream via email — istantaneo.',
    'setup.s3.t': 'Installa ovunque', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Guide per ognuno.',
    'setup.s4.t': 'Sintonizza', 'setup.s4.b': 'EPG carica, canali per lega. La partita inizia. Sei dentro.',
    'plans.eyebrow': '03 / PIANI', 'plans.title': 'SCEGLI LA FORMAZIONE',
    'plans.sub': 'Nessun contratto. Nessun costo nascosto. Cancella quando vuoi — ma non vorrai.',
    'plans.devices': 'DISPOSITIVI', 'plans.featured': '★ IN EVIDENZA',
    'plan.kickoff.tag': 'PER LA DOMENICA', 'plan.extra.tag': 'PIÙ POPOLARE',
    'plan.golden.tag': 'PER GLI ULTRÀ', 'plan.dynasty.tag': 'MIGLIOR PREZZO · ANNUALE',
    'plan.kickoff.cta': 'INIZIA', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'OTTIENI', 'plan.dynasty.cta': 'ANNUALE',
    'sect.live': 'LIVE',
    'sect.live.body': '+52.000 canali con tecnologia anti-freeze, senza VPN, M3U / Xtream Code, supporto gratuito, aiuto 24/7 e garanzia 99,9% di uptime.',
    'sect.cinema': 'CINEMA',
    'sect.cinema.body': '+200.000 film e serie in SD / HD / Full HD / 4K, consegna ultra-rapida e garanzia 30 giorni.',
    'sect.series': 'SERIE',
    'sect.series.body': 'EPG incluso, compatibile con Smart TV, MAG, iOS, Android e tutte le app popolari.',
    'sect.sport': 'SPORT',
    'sect.sport.body': 'Tutti i canali sportivi sono inclusi nel tuo abbonamento.',
    'foot.tagline': 'Servizio di streaming indipendente per appassionati di calcio. Non affiliato a FIFA, UEFA o leghe.',
    'foot.product': 'PRODOTTO', 'foot.support2': 'SUPPORTO', 'foot.legal': 'LEGALE',
    'foot.copy': '© 2026 · TUTTI I DIRITTI RISERVATI',
    'lang.title': 'LINGUA', 'lang.search': 'Cerca lingua…',
  },
  nl: {
    'nav.home': 'HOME', 'nav.plans': 'TARIEVEN', 'nav.setup': 'INSTELLEN',
    'nav.matches': 'WEDSTRIJDEN', 'nav.contact': 'CONTACT',
    'nav.live': 'LIVE · 12', 'nav.client': 'KLANTGEBIED',
    'hero.tagline': 'SPEELDAG · ELKE DAG · WERELDWIJD',
    'hero.line1': 'ELKE WEDSTRIJD', 'hero.line2': 'ELKE LIGA', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'GRATIS PROBEREN', 'cta.trial.sub': '24 UUR', 'cta.trial.waMsg': 'Hallo, ik wil een gratis test',
    'cta.packages': 'BEKIJK TARIEVEN', 'cta.packages.sub': 'VANAF 9$/MND',
    'stat.channels': 'Live kanalen', 'stat.films': 'Films & series',
    'stat.uhd': 'Ultra HD pipeline', 'stat.uptime': 'Uptime-SLA',
    'foot.devices': 'ELK APPARAAT', 'foot.buffer': 'GEEN BUFFERING',
    'foot.activation': 'DIRECTE ACTIVATIE', 'foot.support': '24/7 SUPPORT',
    'matches.eyebrow': '01 / SPEELDAG', 'matches.title': 'WAT ER NU IS',
    'matches.sub': 'Live overzicht van de EPG. Klik op een wedstrijd om naar het kanaal te gaan.',
    'setup.eyebrow': '02 / INSTALLATIE', 'setup.title': 'VAN NUL TOT SPEELDAG',
    'setup.sub': 'Vier stappen. De tijd van een koffie.',
    'setup.s1.t': 'Abonneer', 'setup.s1.b': 'Kies een tarief. Kaart, crypto of PayPal. Automatische activatie.',
    'setup.s2.t': 'Inloggegevens', 'setup.s2.b': 'M3U-link en Xtream-login per e-mail — direct.',
    'setup.s3.t': 'Installeer overal', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Handleidingen voor elk.',
    'setup.s4.t': 'Stem af', 'setup.s4.b': 'EPG laadt, kanalen per liga. Wedstrijd start. Je bent erbij.',
    'plans.eyebrow': '03 / TARIEVEN', 'plans.title': 'KIES JE OPSTELLING',
    'plans.sub': 'Geen contract. Geen verborgen kosten. Altijd opzegbaar — maar dat wil je niet.',
    'plans.devices': 'APPARATEN', 'plans.featured': '★ UITGELICHT',
    'plan.kickoff.tag': 'VOOR ZONDAG', 'plan.extra.tag': 'POPULAIRST',
    'plan.golden.tag': 'VOOR ULTRAS', 'plan.dynasty.tag': 'BESTE PRIJS · JAARLIJKS',
    'plan.kickoff.cta': 'START', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'CLAIM', 'plan.dynasty.cta': 'JAAR',
    'sect.live': 'LIVE',
    'sect.live.body': '+52.000 kanalen met anti-freeze technologie, geen VPN nodig, M3U / Xtream Code, gratis support, 24/7 hulp en 99,9% uptime-garantie.',
    'sect.cinema': 'CINEMA',
    'sect.cinema.body': '+200.000 films en series in SD / HD / Full HD / 4K, ultrasnelle levering en 30 dagen geld-terug-garantie.',
    'sect.series': 'SERIES',
    'sect.series.body': 'EPG inbegrepen, compatibel met Smart TV, MAG, iOS, Android en alle populaire apps.',
    'sect.sport': 'SPORT',
    'sect.sport.body': 'Alle sportkanalen zijn inbegrepen in je streaming-abonnement.',
    'foot.tagline': 'Onafhankelijke streamingdienst voor voetbalfans. Niet verbonden met FIFA, UEFA of enige liga.',
    'foot.product': 'PRODUCT', 'foot.support2': 'SUPPORT', 'foot.legal': 'LEGAL',
    'foot.copy': '© 2026 · ALLE RECHTEN VOORBEHOUDEN',
    'lang.title': 'TAAL', 'lang.search': 'Zoek taal…',
  },
  ar: {
    'nav.home': 'الرئيسية', 'nav.plans': 'الباقات', 'nav.setup': 'الإعداد',
    'nav.matches': 'المباريات', 'nav.contact': 'تواصل',
    'nav.live': 'مباشر · ١٢', 'nav.client': 'منطقة العميل',
    'hero.tagline': 'يوم المباراة · كل يوم · حول العالم',
    'hero.line1': 'كل مباراة', 'hero.line2': 'كل دوري', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'تجربة مجانية', 'cta.trial.sub': '٢٤ ساعة', 'cta.trial.waMsg': 'مرحباً، أريد اختباراً مجانياً',
    'cta.packages': 'عرض الباقات', 'cta.packages.sub': 'من ٩$/شهر',
    'stat.channels': 'قنوات مباشرة', 'stat.films': 'أفلام ومسلسلات',
    'stat.uhd': 'بث Ultra HD', 'stat.uptime': 'ضمان التشغيل',
    'foot.devices': 'أي جهاز', 'foot.buffer': 'بدون تقطيع',
    'foot.activation': 'تفعيل فوري', 'foot.support': 'دعم ٢٤/٧',
    'matches.eyebrow': '٠١ / المباريات', 'matches.title': 'ما يُعرض الآن',
    'matches.sub': 'لقطة مباشرة من الدليل. انقر على أي مباراة للانتقال إلى القناة.',
    'setup.eyebrow': '٠٢ / الإعداد', 'setup.title': 'من الصفر إلى المباراة',
    'setup.sub': 'أربع خطوات. وقت إعداد قهوة.',
    'setup.s1.t': 'اشترك', 'setup.s1.b': 'اختر باقة. ادفع ببطاقة أو عملة رقمية أو PayPal. تفعيل تلقائي.',
    'setup.s2.t': 'استلم بياناتك', 'setup.s2.b': 'رابط M3U ودخول Xtream عبر البريد — فوراً.',
    'setup.s3.t': 'ثبّت على أي جهاز', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. دليل لكل جهاز.',
    'setup.s4.t': 'اضبط القناة', 'setup.s4.b': 'يحمَّل الدليل، تُرتَّب القنوات. تبدأ المباراة. أنت بالداخل.',
    'plans.eyebrow': '٠٣ / الباقات', 'plans.title': 'اختر تشكيلتك',
    'plans.sub': 'بدون عقود. بدون رسوم خفية. ألغِ متى شئت — لكنك لن تفعل.',
    'plans.devices': 'الأجهزة', 'plans.featured': '★ مميّز',
    'plan.kickoff.tag': 'لمشاهدي الأحد', 'plan.extra.tag': 'الأكثر شعبية',
    'plan.golden.tag': 'للمشجعين المتعصبين', 'plan.dynasty.tag': 'أفضل قيمة · سنوي',
    'plan.kickoff.cta': 'ابدأ', 'plan.extra.cta': 'بريميوم',
    'plan.golden.cta': 'احصل', 'plan.dynasty.cta': 'سنوي',
    'sect.live': 'مباشر',
    'sect.live.body': 'أكثر من ٥٠٠٠٠ قناة بتقنية مضادة للتجميد، بدون VPN، M3U / Xtream Code، دعم مجاني، مساعدة ٢٤/٧ وضمان تشغيل ٩٩٫٩٪.',
    'sect.cinema': 'سينما',
    'sect.cinema.body': 'أكثر من ١٥٠٠٠٠ فيلم ومسلسل بجودة SD / HD / Full HD / 4K، تسليم فائق السرعة وضمان استرداد ٣٠ يوماً.',
    'sect.series': 'مسلسلات',
    'sect.series.body': 'يشمل الدليل الإلكتروني، يدعم Smart TV و MAG و iOS و Android وكل التطبيقات الشهيرة.',
    'sect.sport': 'رياضة',
    'sect.sport.body': 'جميع القنوات الرياضية مشمولة في اشتراكك.',
    'foot.tagline': 'خدمة بث مستقلة لعشاق كرة القدم. غير تابعة لـ FIFA أو UEFA أو أي دوري.',
    'foot.product': 'المنتج', 'foot.support2': 'الدعم', 'foot.legal': 'قانوني',
    'foot.copy': '© ٢٠٢٦ · جميع الحقوق محفوظة',
    'lang.title': 'اللغة', 'lang.search': 'ابحث عن لغة…',
  },
  ru: {
    'nav.home': 'ГЛАВНАЯ', 'nav.plans': 'ТАРИФЫ', 'nav.setup': 'НАСТРОЙКА',
    'nav.matches': 'МАТЧИ', 'nav.contact': 'КОНТАКТЫ',
    'nav.live': 'В ЭФИРЕ · 12', 'nav.client': 'ЛИЧНЫЙ КАБИНЕТ',
    'hero.tagline': 'МАТЧ-ДЕНЬ · КАЖДЫЙ ДЕНЬ · ПО ВСЕМУ МИРУ',
    'hero.line1': 'КАЖДЫЙ МАТЧ', 'hero.line2': 'КАЖДАЯ ЛИГА', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'БЕСПЛАТНО', 'cta.trial.sub': '24 ЧАСА', 'cta.trial.waMsg': 'Привет, я хочу бесплатный тест',
    'cta.packages': 'СМОТРЕТЬ ТАРИФЫ', 'cta.packages.sub': 'ОТ 9$/МЕС',
    'stat.channels': 'Прямые каналы', 'stat.films': 'Фильмы и сериалы',
    'stat.uhd': 'Ultra HD конвейер', 'stat.uptime': 'SLA доступности',
    'foot.devices': 'ЛЮБОЕ УСТРОЙСТВО', 'foot.buffer': 'БЕЗ БУФЕРИЗАЦИИ',
    'foot.activation': 'МГНОВЕННАЯ АКТИВАЦИЯ', 'foot.support': 'ПОДДЕРЖКА 24/7',
    'matches.eyebrow': '01 / МАТЧДЕЙ', 'matches.title': 'ЧТО ИДЁТ СЕЙЧАС',
    'matches.sub': 'Живая выборка из EPG. Нажмите на матч, чтобы перейти на канал.',
    'setup.eyebrow': '02 / НАСТРОЙКА', 'setup.title': 'ОТ НУЛЯ ДО МАТЧА',
    'setup.sub': 'Четыре шага. Как заварить кофе.',
    'setup.s1.t': 'Подпишитесь', 'setup.s1.b': 'Выберите тариф. Карта, крипта или PayPal. Активация автоматическая.',
    'setup.s2.t': 'Получите доступ', 'setup.s2.b': 'M3U-ссылка и Xtream-логин на почту — мгновенно.',
    'setup.s3.t': 'Установите везде', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Гайды для каждого.',
    'setup.s4.t': 'Включайте', 'setup.s4.b': 'EPG загружен, каналы по лигам. Матч начинается. Вы внутри.',
    'plans.eyebrow': '03 / ТАРИФЫ', 'plans.title': 'ВЫБЕРИТЕ СОСТАВ',
    'plans.sub': 'Без контрактов. Без скрытых платежей. Отмена в любой момент — но вы не захотите.',
    'plans.devices': 'УСТРОЙСТВА', 'plans.featured': '★ ХИТ',
    'plan.kickoff.tag': 'ДЛЯ ВОСКРЕСЕНЬЯ', 'plan.extra.tag': 'САМЫЙ ПОПУЛЯРНЫЙ',
    'plan.golden.tag': 'ДЛЯ УЛЬТРАС', 'plan.dynasty.tag': 'ЛУЧШАЯ ЦЕНА · ГОД',
    'plan.kickoff.cta': 'СТАРТ', 'plan.extra.cta': 'ПРЕМИУМ',
    'plan.golden.cta': 'ВЗЯТЬ', 'plan.dynasty.cta': 'ГОД',
    'sect.live': 'ПРЯМОЙ ЭФИР',
    'sect.live.body': 'Более 50 000 каналов с анти-фриз технологией, без VPN, M3U / Xtream Code, бесплатная поддержка, помощь 24/7 и гарантия аптайма 99,9%.',
    'sect.cinema': 'КИНО',
    'sect.cinema.body': 'Более 150 000 фильмов и сериалов в SD / HD / Full HD / 4K, сверхбыстрая доставка и гарантия возврата 30 дней.',
    'sect.series': 'СЕРИАЛЫ',
    'sect.series.body': 'EPG включён, совместим со Smart TV, MAG, iOS, Android и популярными приложениями.',
    'sect.sport': 'СПОРТ',
    'sect.sport.body': 'Все спортивные каналы включены в вашу подписку.',
    'foot.tagline': 'Независимый сервис для футбольных фанатов. Не аффилирован с FIFA, UEFA или какой-либо лигой.',
    'foot.product': 'ПРОДУКТ', 'foot.support2': 'ПОДДЕРЖКА', 'foot.legal': 'ПРАВО',
    'foot.copy': '© 2026 · ВСЕ ПРАВА ЗАЩИЩЕНЫ',
    'lang.title': 'ЯЗЫК', 'lang.search': 'Найти язык…',
  },
  tr: {
    'nav.home': 'ANASAYFA', 'nav.plans': 'PAKETLER', 'nav.setup': 'KURULUM',
    'nav.matches': 'MAÇLAR', 'nav.contact': 'İLETİŞİM',
    'nav.live': 'CANLI · 12', 'nav.client': 'MÜŞTERİ ALANI',
    'hero.tagline': 'MAÇ GÜNÜ · HER GÜN · DÜNYA ÇAPINDA',
    'hero.line1': 'HER MAÇ', 'hero.line2': 'HER LİG', 'hero.line3': '4K · 60FPS',
    'cta.trial': 'ÜCRETSİZ DENE', 'cta.trial.sub': '24 SAAT', 'cta.trial.waMsg': 'Merhaba, ücretsiz test istiyorum',
    'cta.packages': 'PAKETLERE BAK', 'cta.packages.sub': '9$/AY\'DAN',
    'stat.channels': 'Canlı kanal', 'stat.films': 'Film ve dizi',
    'stat.uhd': 'Ultra HD hattı', 'stat.uptime': 'Uptime SLA',
    'foot.devices': 'TÜM CİHAZLAR', 'foot.buffer': 'DONMA YOK',
    'foot.activation': 'ANINDA AKTİVASYON', 'foot.support': '7/24 DESTEK',
    'matches.eyebrow': '01 / MAÇ GÜNÜ', 'matches.title': 'ŞU AN NE VAR',
    'matches.sub': 'EPG canlı görüntüsü. Bir maça tıklayıp kanala atla.',
    'setup.eyebrow': '02 / KURULUM', 'setup.title': 'SIFIRDAN MAÇA',
    'setup.sub': 'Dört adım. Bir kahve süresi kadar.',
    'setup.s1.t': 'Abone ol', 'setup.s1.b': 'Paket seç. Kart, kripto veya PayPal. Otomatik aktivasyon.',
    'setup.s2.t': 'Bilgileri al', 'setup.s2.b': 'M3U linki ve Xtream girişi e-posta ile — anında.',
    'setup.s3.t': 'Her cihaza kur', 'setup.s3.b': 'Smart TV, Firestick, iOS, Android, MAG, Enigma. Her biri için kılavuz.',
    'setup.s4.t': 'Aç ve izle', 'setup.s4.b': 'EPG yüklenir, kanallar lige göre. Maç başlar. İçindesin.',
    'plans.eyebrow': '03 / PAKETLER', 'plans.title': 'KADRONI SEÇ',
    'plans.sub': 'Sözleşme yok. Gizli ücret yok. İstediğin zaman iptal — ama etmeyeceksin.',
    'plans.devices': 'CİHAZLAR', 'plans.featured': '★ ÖNE ÇIKAN',
    'plan.kickoff.tag': 'PAZAR İÇİN', 'plan.extra.tag': 'EN POPÜLER',
    'plan.golden.tag': 'ULTRALAR İÇİN', 'plan.dynasty.tag': 'EN İYİ FİYAT · YILLIK',
    'plan.kickoff.cta': 'BAŞLA', 'plan.extra.cta': 'PREMIUM',
    'plan.golden.cta': 'AL', 'plan.dynasty.cta': 'YILLIK',
    'sect.live': 'CANLI',
    'sect.live.body': '52.000+ kanal anti-freeze teknolojisiyle, VPN gerekmez, M3U / Xtream Code, ücretsiz destek, 7/24 yardım ve %99,9 uptime garantisi.',
    'sect.cinema': 'SİNEMA',
    'sect.cinema.body': '152.000+ film ve dizi SD / HD / Full HD / 4K kalitede, ultra hızlı teslim ve 30 gün para iade garantisi.',
    'sect.series': 'DİZİLER',
    'sect.series.body': 'EPG dahil, Smart TV, MAG, iOS, Android ve tüm popüler uygulamalarla uyumlu.',
    'sect.sport': 'SPOR',
    'sect.sport.body': 'Tüm spor kanalları aboneliğine dahildir.',
    'foot.tagline': 'Futbol tutkunları için bağımsız servis. FIFA, UEFA veya herhangi bir lige bağlı değildir.',
    'foot.product': 'ÜRÜN', 'foot.support2': 'DESTEK', 'foot.legal': 'YASAL',
    'foot.copy': '© 2026 · TÜM HAKLARI SAKLIDIR',
    'lang.title': 'DİL', 'lang.search': 'Dil ara…',
  },
  ja: {
    'nav.home': 'ホーム', 'nav.plans': 'プラン', 'nav.setup': 'セットアップ',
    'nav.matches': '試合', 'nav.contact': '連絡',
    'nav.live': 'ライブ · 12', 'nav.client': 'マイページ',
    'hero.tagline': '試合の日 · 毎日 · 世界中',
    'hero.line1': 'すべての試合', 'hero.line2': 'すべてのリーグ', 'hero.line3': '4K · 60FPS',
    'cta.trial': '無料トライアル', 'cta.trial.sub': '24時間', 'cta.trial.waMsg': 'こんにちは、無料テストを希望します',
    'cta.packages': 'プランを見る', 'cta.packages.sub': '$9/月から',
    'stat.channels': 'ライブチャンネル', 'stat.films': '映画とドラマ',
    'stat.uhd': 'Ultra HDパイプライン', 'stat.uptime': '稼働SLA',
    'foot.devices': 'すべての端末', 'foot.buffer': 'バッファなし',
    'foot.activation': '即時アクティベート', 'foot.support': '24時間サポート',
    'matches.eyebrow': '01 / 試合の日', 'matches.title': '今放送中',
    'matches.sub': 'EPGのライブスナップショット。試合をクリックでチャンネルへ。',
    'setup.eyebrow': '02 / セットアップ', 'setup.title': 'ゼロから試合まで',
    'setup.sub': '4ステップ。コーヒーを淹れる時間。',
    'setup.s1.t': '登録', 'setup.s1.b': 'プランを選び、カード、暗号通貨、PayPalで支払い。自動アクティベート。',
    'setup.s2.t': '認証情報を受信', 'setup.s2.b': 'M3UリンクとXtreamログインがメールで即届きます。',
    'setup.s3.t': 'どの端末にもインストール', 'setup.s3.b': 'Smart TV、Firestick、iOS、Android、MAG、Enigma。それぞれのガイドあり。',
    'setup.s4.t': 'チューニング', 'setup.s4.b': 'EPG読込、リーグ別チャンネル。試合開始。あなたは中にいます。',
    'plans.eyebrow': '03 / プラン', 'plans.title': 'ラインナップを選ぶ',
    'plans.sub': '契約なし、隠れた料金なし。いつでもキャンセル可能 — でもしないでしょう。',
    'plans.devices': '端末数', 'plans.featured': '★ おすすめ',
    'plan.kickoff.tag': '日曜の視聴に', 'plan.extra.tag': '最も人気',
    'plan.golden.tag': '熱狂派に', 'plan.dynasty.tag': 'お得な年間プラン',
    'plan.kickoff.cta': '開始', 'plan.extra.cta': 'プレミアム',
    'plan.golden.cta': '取得', 'plan.dynasty.cta': '年間',
    'sect.live': 'ライブ',
    'sect.live.body': '5万以上のチャンネル、アンチフリーズ技術、VPN不要、M3U / Xtream Code、無料サポート、24時間体制、99.9%の稼働保証。',
    'sect.cinema': '映画',
    'sect.cinema.body': '15万以上の映画とドラマ、SD / HD / Full HD / 4K画質、超高速配信、30日間返金保証。',
    'sect.series': 'シリーズ',
    'sect.series.body': 'EPG込み、Smart TV、MAG、iOS、Android、主要アプリに対応。',
    'sect.sport': 'スポーツ',
    'sect.sport.body': 'すべてのスポーツチャンネルがサブスクに含まれています。',
    'foot.tagline': 'サッカーファンのための独立サービス。FIFA、UEFA、リーグとは無関係。',
    'foot.product': '製品', 'foot.support2': 'サポート', 'foot.legal': '法的事項',
    'foot.copy': '© 2026 · 全著作権所有',
    'lang.title': '言語', 'lang.search': '言語を検索…',
  },
  zh: {
    'nav.home': '首页', 'nav.plans': '套餐', 'nav.setup': '设置',
    'nav.matches': '比赛', 'nav.contact': '联系',
    'nav.live': '直播 · 12', 'nav.client': '客户专区',
    'hero.tagline': '比赛日 · 每一天 · 全球',
    'hero.line1': '每场比赛', 'hero.line2': '每个联赛', 'hero.line3': '4K · 60FPS',
    'cta.trial': '免费试用', 'cta.trial.sub': '24小时', 'cta.trial.waMsg': '您好，我想要免费测试',
    'cta.packages': '查看套餐', 'cta.packages.sub': '每月$9起',
    'stat.channels': '直播频道', 'stat.films': '电影和剧集',
    'stat.uhd': '超高清管线', 'stat.uptime': '在线SLA',
    'foot.devices': '任何设备', 'foot.buffer': '无缓冲',
    'foot.activation': '即时开通', 'foot.support': '全天候支持',
    'matches.eyebrow': '01 / 比赛日', 'matches.title': '现在播什么',
    'matches.sub': 'EPG实时快照。点击任意比赛跳转到频道。',
    'setup.eyebrow': '02 / 设置', 'setup.title': '从零到比赛',
    'setup.sub': '四步。一杯咖啡的时间。',
    'setup.s1.t': '订阅', 'setup.s1.b': '选套餐，用卡、加密货币或PayPal支付。自动开通。',
    'setup.s2.t': '接收凭证', 'setup.s2.b': 'M3U链接和Xtream登录通过邮件即时送达。',
    'setup.s3.t': '任意设备安装', 'setup.s3.b': 'Smart TV、Firestick、iOS、Android、MAG、Enigma。每个都有教程。',
    'setup.s4.t': '调台', 'setup.s4.b': 'EPG加载，按联赛排序。比赛开始。您已就位。',
    'plans.eyebrow': '03 / 套餐', 'plans.title': '选择您的阵容',
    'plans.sub': '无合同。无隐藏费用。随时取消 — 但您不会想取消。',
    'plans.devices': '设备数', 'plans.featured': '★ 精选',
    'plan.kickoff.tag': '周日观众', 'plan.extra.tag': '最受欢迎',
    'plan.golden.tag': '铁杆球迷', 'plan.dynasty.tag': '最划算 · 年付',
    'plan.kickoff.cta': '开始', 'plan.extra.cta': '高级',
    'plan.golden.cta': '获取', 'plan.dynasty.cta': '年付',
    'sect.live': '直播',
    'sect.live.body': '5万+频道，防卡顿技术，无需VPN，M3U / Xtream Code，免费支持，24/7服务，99.9%在线率保证。',
    'sect.cinema': '影院',
    'sect.cinema.body': '15万+电影和剧集，SD / HD / Full HD / 4K画质，极速送达，30天退款保证。',
    'sect.series': '剧集',
    'sect.series.body': '含EPG，兼容Smart TV、MAG、iOS、Android及所有热门应用。',
    'sect.sport': '体育',
    'sect.sport.body': '所有体育频道均包含在订阅中。',
    'foot.tagline': '为足球迷打造的独立服务。与FIFA、UEFA或任何联赛无关。',
    'foot.product': '产品', 'foot.support2': '支持', 'foot.legal': '法律',
    'foot.copy': '© 2026 · 版权所有',
    'lang.title': '语言', 'lang.search': '搜索语言…',
  },
};

// Map ISO country codes → our supported language codes.
const COUNTRY_TO_LANG = {
  // Spanish-speaking
  ES: 'es', MX: 'es', AR: 'es', CL: 'es', CO: 'es', PE: 'es', VE: 'es',
  EC: 'es', UY: 'es', PY: 'es', BO: 'es', GT: 'es', HN: 'es', SV: 'es',
  NI: 'es', CR: 'es', PA: 'es', DO: 'es', CU: 'es', PR: 'es',
  // Portuguese
  PT: 'pt', BR: 'pt', AO: 'pt', MZ: 'pt', CV: 'pt',
  // French
  FR: 'fr', BE: 'fr', LU: 'fr', MC: 'fr', SN: 'fr', CI: 'fr', MA: 'fr',
  TN: 'fr', DZ: 'fr', CM: 'fr', CD: 'fr', GA: 'fr', BF: 'fr', ML: 'fr',
  // German
  DE: 'de', AT: 'de', LI: 'de', CH: 'de',
  // Italian
  IT: 'it', SM: 'it', VA: 'it',
  // Dutch
  NL: 'nl', SR: 'nl',
  // Arabic
  SA: 'ar', AE: 'ar', EG: 'ar', IQ: 'ar', JO: 'ar', KW: 'ar', LB: 'ar',
  LY: 'ar', OM: 'ar', QA: 'ar', SY: 'ar', YE: 'ar', BH: 'ar', PS: 'ar',
  SD: 'ar', SO: 'ar', MR: 'ar',
  // Russian
  RU: 'ru', BY: 'ru', KZ: 'ru', KG: 'ru', TJ: 'ru',
  // Turkish
  TR: 'tr',
  // Japanese
  JP: 'ja',
  // Chinese
  CN: 'zh', TW: 'zh', HK: 'zh', SG: 'zh', MO: 'zh',
};

function detectLangFromBrowser() {
  const supported = LANGUAGES.map((l) => l.code);
  const cands = (typeof navigator !== 'undefined' && (navigator.languages || [navigator.language])) || [];
  for (const raw of cands) {
    if (!raw) continue;
    const code = raw.toLowerCase().split('-')[0];
    if (supported.includes(code)) return code;
  }
  return null;
}

// Shared module-level store so every useI18n() consumer stays in sync.
const I18N_STORE = {
  code: (() => {
    try {
      const saved = localStorage.getItem('golazo:lang');
      if (saved) return saved;
    } catch {}
    // First visit: try browser language synchronously.
    return detectLangFromBrowser() || 'en';
  })(),
  manual: (() => { try { return !!localStorage.getItem('golazo:lang'); } catch { return false; } })(),
  listeners: new Set(),
  set(c, opts = {}) {
    if (this.code === c) return;
    this.code = c;
    if (opts.manual !== false) {
      this.manual = true;
      try { localStorage.setItem('golazo:lang', c); } catch {}
    }
    this.listeners.forEach((fn) => fn(c));
  },
  subscribe(fn) { this.listeners.add(fn); return () => this.listeners.delete(fn); },
};

// Geo-IP refinement: only runs if user has NOT manually picked a language.
// Uses ipapi.co (no key, CORS-enabled). Silently no-ops on failure.
(function geoDetect() {
  if (typeof window === 'undefined') return;
  if (I18N_STORE.manual) return;
  fetch('https://ipapi.co/json/', { cache: 'force-cache' })
    .then((r) => r.ok ? r.json() : null)
    .then((data) => {
      if (!data || I18N_STORE.manual) return;
      const cc = (data.country_code || data.country || '').toUpperCase();
      const lang = COUNTRY_TO_LANG[cc];
      if (lang && STRINGS[lang]) {
        I18N_STORE.set(lang, { manual: false });
      }
    })
    .catch(() => {});
})();

// Hook — provides current code, t(), and setLang. All consumers share state.
function useI18n() {
  const [code, setCode] = React.useState(I18N_STORE.code);
  React.useEffect(() => I18N_STORE.subscribe(setCode), []);
  const setLang = (c) => I18N_STORE.set(c);
  const t = (key) => {
    const dict = STRINGS[code] || STRINGS.en;
    return dict[key] ?? STRINGS.en[key] ?? key;
  };
  const lang = LANGUAGES.find((l) => l.code === code) || LANGUAGES[0];
  React.useEffect(() => {
    document.documentElement.dir = lang.rtl ? 'rtl' : 'ltr';
    document.documentElement.lang = code;
  }, [code, lang.rtl]);
  return { code, lang, t, setLang };
}

// Tiny flag chip (SVG-ish via gradients)
function Flag({ code, size = 22 }) {
  return (
    <img
      src={`https://flagcdn.com/w40/${code.toLowerCase()}.png`}
      alt={code}
      style={{
        width: size, height: size * 0.66,
        borderRadius: 3, objectFit: 'cover',
        flexShrink: 0, display: 'inline-block',
        boxShadow: 'inset 0 0 0 1px rgba(255,255,255,0.08)',
      }}
    />
  );
}

// Switcher — pill button + popup grid with search.
function LanguageSwitcher({ p, inline = false }) {
  const { code, lang, t, setLang } = useI18n();
  const [open, setOpen] = React.useState(false);
  const [query, setQuery] = React.useState('');
  const ref = React.useRef(null);

  React.useEffect(() => {
    if (!open) return;
    const onClick = (e) => { if (ref.current && !ref.current.contains(e.target)) setOpen(false); };
    const onKey = (e) => { if (e.key === 'Escape') setOpen(false); };
    document.addEventListener('mousedown', onClick);
    document.addEventListener('keydown', onKey);
    return () => {
      document.removeEventListener('mousedown', onClick);
      document.removeEventListener('keydown', onKey);
    };
  }, [open]);

  const filtered = LANGUAGES.filter((l) => {
    const q = query.trim().toLowerCase();
    if (!q) return true;
    return l.name.toLowerCase().includes(q) || l.native.toLowerCase().includes(q) || l.code.includes(q);
  });

  return (
    <div ref={ref} style={inline ? { position: 'relative' } : { position: 'fixed', bottom: 24, left: 24, zIndex: 60 }}>
      {/* Popup */}
      {open && (
        <div style={{
          position: 'absolute',
          ...(inline
            ? { top: 'calc(100% + 12px)', left: '50%', transform: 'translateX(-50%)' }
            : { bottom: 'calc(100% + 12px)', left: 0 }
          ),
          width: 'min(320px, calc(100vw - 40px))', background: p.bgSoft,
          border: `1px solid ${p.accent1}33`,
          borderRadius: 10, padding: 14,
          boxShadow: '0 24px 60px -10px #000c, 0 0 0 1px #fff0d',
          backdropFilter: 'blur(10px)',
        }}>
          <div className="mono" style={{
            fontSize: 9, letterSpacing: '0.28em', color: p.accent1,
            marginBottom: 10
          }}>{t('lang.title')} · {LANGUAGES.length}</div>

          <input
            value={query}
            onChange={(e) => setQuery(e.target.value)}
            placeholder={t('lang.search')}
            autoFocus
            style={{
              width: '100%', padding: '10px 12px',
              background: p.bg, color: p.ink,
              border: `1px solid ${p.ink}1a`,
              borderRadius: 6, fontSize: 13,
              fontFamily: 'inherit', outline: 'none',
              marginBottom: 10
            }}
          />

          <div style={{
            display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 6,
            maxHeight: 280, overflowY: 'auto'
          }}>
            {filtered.map((l) => {
              const active = l.code === code;
              return (
                <button key={l.code}
                  onClick={() => { setLang(l.code); setOpen(false); }}
                  style={{
                    display: 'flex', alignItems: 'center', gap: 10,
                    padding: '8px 10px',
                    background: active ? p.accent1 + '1a' : 'transparent',
                    border: `1px solid ${active ? p.accent1 + '66' : 'transparent'}`,
                    borderRadius: 6, cursor: 'pointer',
                    fontFamily: 'inherit', textAlign: 'left',
                    color: p.ink, transition: 'background 0.12s, border-color 0.12s'
                  }}
                  onMouseEnter={(e) => { if (!active) e.currentTarget.style.background = p.ink + '08'; }}
                  onMouseLeave={(e) => { if (!active) e.currentTarget.style.background = 'transparent'; }}
                >
                  <Flag code={l.flag} />
                  <div style={{ minWidth: 0, flex: 1 }}>
                    <div style={{ fontSize: 12, fontWeight: 600, color: p.ink, lineHeight: 1.2 }}>
                      {l.native}
                    </div>
                    <div className="mono" style={{
                      fontSize: 9, letterSpacing: '0.16em',
                      color: active ? p.accent1 : p.inkDim,
                      marginTop: 2
                    }}>{l.code.toUpperCase()} · {l.name}</div>
                  </div>
                  {active && <span style={{ color: p.accent1, fontSize: 14 }}>✓</span>}
                </button>
              );
            })}
            {filtered.length === 0 && (
              <div style={{
                gridColumn: '1 / -1', padding: 20, textAlign: 'center',
                color: p.inkDim, fontSize: 12
              }}>
                No match.
              </div>
            )}
          </div>
        </div>
      )}

      {/* Trigger */}
      <button onClick={() => setOpen((o) => !o)}
        style={{
          display: 'flex', alignItems: 'center', gap: 12,
          background: p.bgSoft,
          border: `1px solid ${open ? p.accent1 : p.accent1 + '33'}`,
          padding: '10px 16px 10px 12px',
          borderRadius: 8, cursor: 'pointer',
          fontFamily: 'inherit', color: p.ink,
          boxShadow: open ? `0 0 0 4px ${p.accent1}22` : 'none',
          transition: 'border-color 0.15s, box-shadow 0.2s'
        }}>
        <Flag code={lang.flag} size={24} />
        <div style={{ textAlign: 'left' }}>
          <div className="mono" style={{
            fontSize: 9, letterSpacing: '0.24em', color: p.inkDim
          }}>{t('lang.title')}</div>
          <div style={{ fontSize: 13, fontWeight: 600, color: p.ink, marginTop: 2 }}>
            {lang.native}
          </div>
        </div>
        <svg width="14" height="14" viewBox="0 0 24 24" fill="none"
          stroke={p.inkDim} strokeWidth="2"
          style={{ transition: 'transform 0.2s', transform: open ? 'rotate(180deg)' : 'rotate(0)' }}>
          <polyline points="6 9 12 15 18 9" />
        </svg>
      </button>
    </div>
  );
}

Object.assign(window, { useI18n, LanguageSwitcher, LANGUAGES });
