:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#445065;
  --brand:#5b21b6;
  --brand2:#0891b2;
  --card:#f5f7ff;
  --border:#e6ebf5;
  --max:1100px;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.55;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:220px}
.brand img{width:140px;height:auto;display:block}
.nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.nav a{
  text-decoration:none;
  font-size:14px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
}
.nav a:hover{border-color:#cfd8ee;color:var(--text)}
.hero{
  padding:26px 0 12px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .brand img{width:132px}
}
h1{margin:0 0 10px;font-size:34px;line-height:1.12;letter-spacing:-.2px}
.lead{margin:0 0 14px;color:var(--muted);max-width:70ch}
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.badge{
  font-size:13px;color:var(--muted);
  background:var(--card);
  border:1px solid var(--border);
  padding:6px 10px;border-radius:999px;
}
.code-badge{
  font-size:14px;
  background:#fff;
  border:1px dashed var(--brand);
  padding:8px 10px;
  border-radius:12px;
  color:var(--text);
}
.cta-row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.btn{
  display:inline-block;
  text-decoration:none;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
}
.btn:hover{background:var(--brand2);border-color:var(--brand2)}
.btn.secondary{background:#fff;color:var(--brand)}
.btn.secondary:hover{background:#f1f5ff}
.note{font-size:13px;color:var(--muted);margin:10px 0 0}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
}
.card h2{margin:0 0 10px;font-size:18px}
.section{padding:22px 0;border-top:1px solid var(--border)}
.section h2{margin:0 0 8px;font-size:22px}
.section p{margin:0 0 12px;color:var(--muted);max-width:80ch}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:12px;
}
.route{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
}
.route h3{margin:0 0 6px;font-size:16px}
.route ul{margin:0;padding-left:18px;color:var(--muted);font-size:14px}
.route .actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.route a.small{
  font-size:14px;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:2px;
  color:var(--brand);
}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:10px}
.kpi{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:12px;
}
.kpi .t{font-size:13px;color:var(--muted)}
.kpi .v{font-size:18px;font-weight:700;margin-top:4px}
.faq details{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:12px 14px;margin:10px 0;
}
.faq summary{cursor:pointer;font-weight:700}
footer{
  border-top:1px solid var(--border);
  padding:22px 0 40px;
  color:var(--muted);
  font-size:14px;
}
.footer-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.footer-links a{color:var(--muted);text-decoration:none;border-bottom:1px dotted #c6cfdf;padding-bottom:2px}
.footer-links a:hover{color:var(--text)}
.aff-box iframe{max-width:100%;border:0}
.banner img{max-width:100%;height:auto;display:block}


/* Affiliate widgets */
.aff-box { border: 1px solid #e7e7e7; border-radius: 14px; padding: 14px; background: #fff; }
.aff-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; flex-wrap: wrap; }
.aff-actions { display:flex; gap: 10px; flex-wrap: wrap; }
.muted { color:#555; font-size: 14px; }
.frame-wrap { margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 12px; }
.frame-wrap iframe { width: 100%; height: 520px; border: 1px solid #eee; border-radius: 12px; }
.frame-note { font-size: 13px; color:#666; margin-bottom: 8px; }

/* Visual upgrades */
.hero-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}
.hero-photos img{width:100%;height:140px;object-fit:cover;border-radius:14px;border:1px solid var(--border)}
@media (max-width: 920px){.hero-photos img{height:160px}}

.mini-list{display:grid;gap:10px}
.mini-item{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px}
.mini-title{font-weight:700;margin:0 0 4px}
.mini-meta{color:var(--muted);font-size:13px}
.mini-desc{color:var(--muted);font-size:13px;margin-top:6px}
.mini-img{margin-top:10px;width:100%;height:auto;border-radius:12px;border:1px solid var(--border)}
.mini-link{display:inline-block;margin-top:10px;color:var(--brand);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px;font-weight:600}
.mini-link:hover{color:var(--brand2)}


/* Brand logo */
.brand-logo{height:44px;width:auto;display:block}
@media (min-width:900px){.brand-logo{height:52px}}

/* ===== PWA install bar (Add to Home Screen) ===== */
.pwa-bar{
  position:fixed;
  left:12px; right:12px; bottom:12px;
  z-index:9999;
  display:flex;
  gap:12px;
  align-items:center;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px 14px;
  box-shadow:0 16px 40px rgba(11,18,32,.18);
}
.pwa-icon{border-radius:12px;flex:0 0 auto}
.pwa-text{font-size:13px;line-height:1.35;color:var(--text)}
.pwa-text strong{font-weight:800}
.pwa-actions{margin-left:auto;display:flex;gap:10px;align-items:center;flex:0 0 auto}
.pwa-install{
  background:var(--brand);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.pwa-install:hover{filter:brightness(.95)}
.pwa-close{
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:22px;
  line-height:1;
  padding:8px 10px;
  cursor:pointer;
}
.pwa-close:hover{color:var(--text)}
@media (min-width:900px){
  .pwa-bar{left:auto;right:18px;bottom:18px;max-width:560px}
}


/* Travelpayouts homepage widgets */
.widget-hero{
  margin-top:18px;
  background:linear-gradient(180deg,#f7f9ff 0%,#eef4ff 100%);
}
.widget-hero-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.widget-hero-head h2,
.widget-card-head h3{margin:0 0 6px}
.widget-hero-head p,
.widget-card-head p{margin:0}
.widget-eyebrow{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--brand);
}
.widget-shell{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  overflow:hidden;
}
.widget-shell-top{padding:10px}
.widget-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
}
.widget-card{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.london-widgets{scroll-margin-top:90px}
@media (max-width:920px){
  .widget-grid{grid-template-columns:1fr}
  .widget-hero{padding:14px}
  .widget-shell,
  .widget-shell-top{padding:8px}
}


/* Premium London refresh */
.featured-london{
  margin-top:18px;
  background:linear-gradient(135deg,#f8fbff 0%,#eef3ff 52%,#f9f2ff 100%);
  border-radius:24px;
  padding:18px;
}
.featured-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.featured-head h2{margin:0 0 6px;font-size:28px}
.featured-head p{margin:0;color:var(--muted);max-width:70ch}
.featured-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:14px;
}
.featured-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(17,34,102,.06);
}
.featured-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}
.featured-card-large img{height:100%}
.featured-card-large{display:grid;grid-template-columns:1.05fr .95fr;min-height:250px}
.featured-content{padding:16px}
.featured-content h3{margin:0 0 8px;font-size:20px}
.featured-content p{margin:0;color:var(--muted)}
.featured-tag{
  display:inline-block;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#eef2ff;
  color:var(--brand);
}
.premium-widget-grid{align-items:start}
.featured-widget-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-radius:22px;
}
.featured-mini-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}
.mini-pick{
  background:#fff;
  border-radius:18px;
}
.mini-pick h3{margin:0 0 6px;font-size:17px}
.mini-pick p{margin:0;color:var(--muted);font-size:14px}

/* Mobile header optimization */
@media (max-width:920px){
  header{top:0;transition:transform .25s ease, box-shadow .25s ease}
  header.header-hidden{transform:translateY(calc(-100% + 10px))}
  .header-inner{padding:8px 0;align-items:flex-start;gap:10px;flex-direction:column}
  .brand{min-width:0;flex:0 0 auto}
  .brand img,.brand-logo{height:34px;width:auto}
  .nav{
    gap:6px;
    overflow-x:auto;
    flex-wrap:nowrap;
    justify-content:flex-start;
    width:100%;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav a{
    white-space:nowrap;
    padding:6px 9px;
    font-size:12px;
  }
  .hero{padding-top:18px}
  .featured-grid{grid-template-columns:1fr}
  .featured-card-large{grid-template-columns:1fr}
  .featured-card img,
  .featured-card-large img{height:180px}
  .featured-head h2{font-size:24px}
  .featured-mini-grid{grid-template-columns:1fr}
}


/* ===== Premium sports + lead form refresh ===== */
.hero-split{display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:stretch}
.hero-panel{background:linear-gradient(135deg,#ffffff 0%,#f7f8ff 52%,#eef8ff 100%)}
.hero-panel h1{margin-bottom:12px}
.hero-kicker{display:inline-block;margin-bottom:10px;padding:7px 12px;border-radius:999px;background:#efe8ff;color:var(--brand);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.hero-media{position:relative;overflow:hidden;min-height:100%}
.hero-media img{width:100%;height:100%;min-height:320px;object-fit:cover;display:block;border-radius:20px}
.hero-media .media-overlay{position:absolute;inset:auto 16px 16px 16px;padding:14px 16px;border-radius:18px;background:rgba(11,18,32,.74);color:#fff;backdrop-filter:blur(5px)}
.hero-media .media-overlay p{margin:6px 0 0;color:rgba(255,255,255,.86);font-size:14px}
.sport-grid{display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:14px}
.sport-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:16px;box-shadow:0 10px 22px rgba(11,18,32,.05)}
.sport-card h3{margin:0 0 8px;font-size:21px}
.sport-card p{margin:0 0 12px;color:var(--muted)}
.sport-card.large{padding:0;overflow:hidden;display:grid;grid-template-columns:1.02fr .98fr}
.sport-card.large img{width:100%;height:100%;min-height:320px;object-fit:cover;display:block}
.sport-card .card-body{padding:18px}
.logo-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:#f6f7ff;border:1px solid var(--border);font-size:12px;font-weight:800;color:var(--brand);text-transform:uppercase;letter-spacing:.03em}
.info-list,.trust-list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.info-list li,.trust-list li{margin:6px 0}
.stack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stack-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px}
.stack-card h3{margin:0 0 8px;font-size:17px}
.media-banner{overflow:hidden;padding:0}
.media-banner img{width:100%;height:260px;object-fit:cover;display:block}
.form-shell{background:linear-gradient(180deg,#ffffff 0%,#f6f7ff 100%)}
.form-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:16px;align-items:start}
.form-panel,.form-side{background:#fff;border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:0 10px 22px rgba(11,18,32,.05)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:14px;color:var(--text)}
.form-grid label.full{grid-column:1/-1}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:12px 13px;border:1px solid #d9e0ef;border-radius:14px;background:#fff;color:var(--text);font:inherit;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#b79cff;box-shadow:0 0 0 4px rgba(91,33,182,.08)}
.form-grid textarea{min-height:130px;resize:vertical}
.form-grid .checkbox-row{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#f9fbff}
.form-grid .checkbox-row input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.form-grid .checkbox-row span{font-weight:500;color:var(--muted)}
.form-note-box{margin-top:14px;padding:14px 16px;border-radius:18px;background:#f9fbff;border:1px dashed #ccd8f0;color:var(--muted);font-size:14px}
.step-list{display:grid;gap:12px;margin-top:12px}
.step-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;background:#f8faff;border:1px solid var(--border)}
.step-number{width:32px;height:32px;border-radius:999px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}
.notice-card{padding:16px;border-radius:18px;background:#fff6ec;border:1px solid #f8d9ae;color:#6a4a18}
.success-panel{max-width:840px;margin:0 auto}
.success-panel .card{padding:22px}
.quick-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
@media (max-width:920px){
  .hero-split,.form-layout,.sport-grid,.sport-card.large,.stack-grid{grid-template-columns:1fr}
  .hero-media img,.sport-card.large img{min-height:220px}
  .form-grid{grid-template-columns:1fr}
}

/* Premium clarity tweaks */
.code-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:linear-gradient(135deg,#fff7e8,#ffefc9);border:1px solid #f4d79b;color:#6c4b12;font-weight:800}
.stack-card .muted{margin:0}
.sport-card .cta-row,.stack-card .cta-row{margin-top:auto}



/* ===== Homepage conversion + SEO refresh ===== */
.home-hero{padding-bottom:18px}
.home-hero-grid{
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:18px;
  align-items:start;
}
.home-hero-copy{
  padding:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f7f7ff 50%,#eef9ff 100%);
  box-shadow:0 14px 34px rgba(11,18,32,.06);
}
.home-hero-panel{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(11,18,32,.05);
}
.home-hero-panel h2{margin:0 0 8px;font-size:24px}
.home-intent-list{
  display:grid;
  gap:12px;
  margin-top:14px;
}
.home-intent-item{
  display:grid;
  gap:4px;
  text-decoration:none;
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px 15px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.home-intent-item:hover{
  transform:translateY(-2px);
  border-color:#cfd8ee;
  box-shadow:0 12px 24px rgba(11,18,32,.06);
}
.home-intent-item strong{font-size:18px}
.home-intent-item span:last-child{color:var(--muted);font-size:14px}
.secondary-item{background:linear-gradient(180deg,#fff 0%,#fcf7ff 100%)}
.intent-tag{
  display:inline-flex;
  width:max-content;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.home-category-grid{
  display:grid;
  grid-template-columns:1.15fr .95fr .95fr .95fr;
  gap:14px;
}
.category-card{
  background:#fff;
  min-height:100%;
}
.category-card h3{margin:0 0 8px;font-size:21px}
.category-card p{margin:0;color:var(--muted)}
.category-featured{
  background:linear-gradient(135deg,#ffffff 0%,#f7f8ff 52%,#eef8ff 100%);
  box-shadow:0 12px 28px rgba(11,18,32,.05);
}
.trust-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.trust-card,
.seo-copy-card{
  background:#fff;
  box-shadow:0 12px 28px rgba(11,18,32,.05);
}
.trust-card h2{font-size:24px}
.seo-copy-card h3{margin:0 0 10px;font-size:22px}
.add-event-cta{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  background:linear-gradient(135deg,#0f1f54 0%,#112266 58%,#1a2f80 100%);
  color:#fff;
  padding:22px;
  box-shadow:0 18px 40px rgba(17,34,102,.18);
}
.add-event-cta h2{margin:0 0 8px;font-size:28px;color:#fff}
.add-event-cta p{margin:0;color:rgba(255,255,255,.84);max-width:68ch}
.add-event-cta .btn.secondary{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.28);
}
.add-event-cta .btn.secondary:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.4);
}
@media (max-width:920px){
  .home-hero-grid,
  .home-category-grid,
  .trust-grid,
  .add-event-cta{
    grid-template-columns:1fr;
    display:grid;
  }
  .add-event-cta{padding:18px}
  .home-hero-copy,.home-hero-panel{padding:18px}
  .home-hero-panel h2{font-size:22px}
}
