/* ============================================================
   EASTSIDE LIVE NETWORK — Main Stylesheet
   Matches EPG App design system exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Barlow+Condensed:wght@700;900&display=swap');

:root {
  --bg:     #0b0c10;
  --panel:  #12141a;
  --panel2: #0f1116;
  --text:   #e7e8ee;
  --muted:  #a9adbb;
  --line:   #272a36;
  --accent: #4466ff;
  --accent2:#cfd2dc;
  --live:   #f87171;
  --danger: #fb7185;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
  --radius: 12px;
  --nav-h:  64px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base, 16px);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: .85; }

img { max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; letter-spacing: .5px; }
p { margin: 0 0 1em; line-height: 1.65; color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 60%, #fff 5%), var(--panel));
  border: 1px solid var(--line);
  color: var(--text); padding: 10px 20px; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-family: var(--font-body);
  font-weight: 600; white-space: nowrap; line-height: 1;
  transition: border-color .15s, transform .1s;
}
.btn:hover { border-color: color-mix(in srgb, var(--line) 60%, #fff 30%); opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn.primary {
  border-color: color-mix(in srgb, var(--line) 70%, #fff 20%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 70%, var(--accent) 20%), var(--panel2));
}
.btn.lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn.small { padding: 6px 12px; font-size: 12px; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(11,12,16,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: flex; align-items: center;
  /* Right padding fixed; left padding reduced by the logo offset setting */
  padding: 0 24px 0 calc(24px - var(--nav-logo-offset, 0px));
}
.nav-inner {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-logo img {
  height: 38px; width: auto; object-fit: contain;
}
.nav-logo-text {
  display: flex; flex-direction: column; gap: 1px;
}
.nav-logo-text .brand-title {
  font-family: var(--font-title, var(--font-display));
  font-weight: 900; font-size: 20px; letter-spacing: .5px;
  line-height: 1;
}
.nav-logo-text .brand-sub {
  font-family: var(--font-tagline, inherit);
  font-size: 11px; color: var(--muted); line-height: 1;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 7px 14px; border-radius: 8px; font-size: 14px;
  font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,.06); opacity: 1;
}
.nav-cta { margin-left: 8px; }
.nav-burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 9px; cursor: pointer; color: var(--text);
  font-size: 18px; line-height: 1;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--panel); border-bottom: 1px solid var(--line);
  z-index: 899; padding: 12px 16px; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  padding: 10px 14px; border-radius: 8px; font-size: 15px;
  font-weight: 600; color: var(--muted); display: block;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,.06); opacity:1; }
.mobile-menu.open { display: flex; }

/* ── Page Wrapper ───────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }
.iframe-body { margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative; width: 100%; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(68,102,255,.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(248,113,113,.08) 0%, transparent 60%),
              var(--bg);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .8px;
   color: var(--live);
  border: 1px solid rgba(248,113,113,.25); padding: 6px 14px;
  border-radius: 999px; background: rgba(248,113,113,.08);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: calc(clamp(48px, 6vw, 80px) * var(--font-size-scale, 1));
  font-weight: 900; line-height: 1.0;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px; color: var(--muted); margin-bottom: 32px;
  max-width: 520px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-top {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 8px;
}
.hero-card-dots span {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 5px;
}
.hero-card-dots .d1 { background: #f87171; }
.hero-card-dots .d2 { background: #fbbf24; }
.hero-card-dots .d3 { background: #34d399; }
.hero-card-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-stream-preview {
  aspect-ratio: 16/9; background: #000;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-stream-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 40% 50%, rgba(68,102,255,.3), transparent 70%);
}
.stream-icon {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.stream-icon svg { width: 28px; height: 28px; fill: #fff; }
.hero-card-info {
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-live-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--live);
}
.hero-live-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); animation: live-pulse 2s ease-in-out infinite;
}
.hero-viewers { font-size: 12px; color: var(--muted); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); margin-top: 16px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.hero-stat {
  background: var(--panel2); padding: 16px;
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  color: var(--text); display: block;
}
.hero-stat .lbl { font-size: 11px; color: var(--muted); }

/* ── Section Shared ─────────────────────────────────────── */
.section {
  width: 100%; padding: 80px 32px;
}
.section-inner {
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
   color: var(--accent);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: calc(clamp(32px, 4vw, 52px) * var(--font-size-scale, 1));
  font-weight: 900;
  margin-bottom: 16px; line-height: 1.05;
}
.section-desc {
  font-size: 17px; color: var(--muted); max-width: 600px;
  line-height: 1.7; margin-bottom: 48px;
}

/* ── Hero Video Player (vodplay/EPG exact match) ────────── */
.hv-player-wrap {
  padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hv-video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.07);
}
.hv-video-inner video {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 10px; background: #000; object-fit: contain;
}
.hv-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 10px; object-fit: contain; background: #000;
  z-index: 1; transition: opacity .4s ease;
}
.hv-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hv-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: opacity .4s ease;
}
.hv-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hv-play-btn:hover { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.35); }
.hv-play-btn svg { width: 28px; height: 28px; fill: #fff; }
.hv-fullscreen-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hv-fullscreen-btn:hover { border-color: rgba(255,255,255,.28); }
.hv-fullscreen-btn svg { width: 15px; height: 15px; fill: #fff; opacity: .85; }
.hv-loading {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 6; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.hv-loading.show { opacity: 1; pointer-events: auto; }
.hv-spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
  border-radius: 50%;
  animation: vod-spin .85s linear infinite;
}
@keyframes vod-spin { to { transform: rotate(360deg); } }
/* Controls bar — EPG exact */
.hv-controls-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 7px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.hv-ctrl-btn {
  background: none; border: none; cursor: pointer;
  padding: 3px; display: flex; align-items: center; flex-shrink: 0;
}
.hv-ctrl-btn svg { width: 19px; height: 19px; fill: var(--text); opacity: .82; }
.hv-ctrl-btn:hover svg { opacity: 1; }
.hv-progress-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 4px; cursor: pointer; overflow: hidden;
}
.hv-progress-fill {
  height: 100%; background: var(--accent2);
  width: 0; border-radius: 4px; transition: width .1s linear;
}
.hv-time-label { font-size: 11px; color: var(--muted); white-space: nowrap; min-width: 90px; text-align: right; }
.hv-vol-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hv-vol-track { width: 58px; height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; cursor: pointer; overflow: hidden; }
.hv-vol-fill { height: 100%; background: var(--accent2); width: 75%; border-radius: 4px; }

/* ── How It Works ───────────────────────────────────────── */
.section.alt { background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg); padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 900;
  color: rgba(255,255,255,.06); position: absolute; top: 12px; right: 16px;
  line-height: 1;
}
.step-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(68,102,255,.12); border: 1px solid rgba(68,102,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; margin: 0; }

/* ── Services / Cards Grid ──────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
.card-head {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h3 {
  font-size: 11px; letter-spacing: .5px; 
  color: var(--accent2); font-weight: 600; margin: 0;
}
.card-body { padding: 20px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(68,102,255,.1); border: 1px solid rgba(68,102,255,.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.card-body h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card-body p { font-size: 14px; margin: 0; line-height: 1.6; }

/* ── Feature list ───────────────────────────────────────── */
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.feature-list li::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
  border-radius: 50%; background: rgba(68,102,255,.12); border: 1px solid rgba(68,102,255,.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%234466ff' d='M13 4.5L6.5 11 3 7.5l.7-.7 2.8 2.8 5.8-5.8.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ── Iframe Pages ───────────────────────────────────────── */
/* iframe-body / iframe-page layout                                   */
/* The body is a flex column. Nav is fixed so we push content down    */
/* with margin-top. The iframe fills the viewport below the nav.      */
/* The footer sits naturally beneath in normal document flow.         */
.iframe-page {
  margin-top: var(--nav-h);
  padding: var(--iframe-pad, 0px);
  width: 100%;
}
.iframe-wrap {
  display: block;
  width: 100%;
  border: none;
  /* Fill the viewport height minus the nav bar */
  height: calc(100vh - var(--nav-h));
  min-height: 300px;
}
/* Fixed pixel height — overrides the calc height */
.iframe-page.iframe-fixed-height .iframe-wrap {
  height: auto;
  /* explicit height set inline on the element */
}

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(68,102,255,.15) 0%, rgba(248,113,113,.08) 100%);
  border-top: 1px solid rgba(68,102,255,.2); border-bottom: 1px solid rgba(68,102,255,.2);
  padding: 64px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; }
.cta-band p { font-size: 17px; color: var(--muted); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--panel2); border-top: 1px solid var(--line);
  padding: 48px 32px 24px;
}
/* Full-width mode: matches the nav bar edge-to-edge with same horizontal padding */
.footer.footer-fullwidth {
  padding-left: 0;
  padding-right: 0;
}
.footer.footer-fullwidth .footer-inner {
  padding: 0 32px;
}
.footer.footer-fullwidth .footer-bottom {
  padding-left: 0;
  padding-right: 0;
}
/* In full-width mode the footer-top switches from grid to flex so the
   brand sits on the far left and all link columns are pushed to the
   right — flush with the copyright text at the bottom-right edge.    */
.footer.footer-fullwidth .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer.footer-fullwidth .footer-brand {
  flex: 0 0 auto;
  max-width: 280px;
}
.footer.footer-fullwidth .footer-col {
  flex: 0 0 auto;
  text-align: left;
}
.footer-inner {
  /* max-width and margin set inline when in default mode */
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .brand-title {
  font-family: var(--font-title, var(--font-display)); font-size: 22px; font-weight: 900;
  margin-bottom: 8px; display: block;
}
.footer-brand p {
  font-family: var(--font-footer-tagline, inherit);
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
   color: var(--accent2);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: var(--muted); }
.footer-legal a:hover { color: var(--text); opacity: 1; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ── Cookie Bar ─────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 16px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-bar p { font-size: 13px; color: var(--muted); margin: 0; flex: 1; min-width: 200px; }
.cookie-bar p a { color: var(--accent2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-bar.hidden { display: none; }

/* ── Admin Styles ───────────────────────────────────────── */
.admin-layout {
  display: flex; min-height: 100vh;
}
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--panel2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: fixed;
  top: 0; bottom: 0; left: 0; z-index: 800; overflow-y: auto;
}
.admin-sidebar-head {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.admin-sidebar-head .brand-title { font-family: var(--font-display); font-size: 18px; font-weight: 900; display: block; }
.admin-sidebar-head .brand-sub { font-size: 11px; color: var(--muted); }
.admin-nav { padding: 12px 8px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  margin-bottom: 2px; transition: background .15s, color .15s;
}
.admin-nav a svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.06); color: var(--text); opacity: 1;
}
.admin-nav .nav-section {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
   color: var(--muted);
  padding: 12px 12px 4px; margin-top: 6px;
}
.admin-main {
  margin-left: 240px; flex: 1; padding: 0;
}
.admin-topbar {
  height: 56px; border-bottom: 1px solid var(--line);
  background: rgba(11,12,16,.95); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 700;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.admin-topbar h1 { font-size: 16px; font-weight: 700; }
.admin-content { padding: 24px; }
.admin-section { margin-bottom: 32px; }
.admin-section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
   color: var(--accent2);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.input {
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); padding: 9px 12px; border-radius: 9px;
  outline: none; font-size: 13px; font-family: var(--font-body);
  width: 100%; transition: border-color .15s;
}
.input:focus { border-color: color-mix(in srgb, var(--line) 60%, #fff 30%); }
textarea.input { resize: vertical; min-height: 80px; }
select.input { cursor: pointer; }
.input-color { padding: 4px; height: 36px; cursor: pointer; }
.admin-card {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.admin-card-head {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-head h2 {
  font-size: 13px; font-weight: 700; color: var(--accent2);
   letter-spacing: .4px; margin: 0;
}
.admin-card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.badge {
  font-size: 11px; color: var(--muted);
  border: 1px solid rgba(255,255,255,.07);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,.3);
}
.badge.live { color: var(--live); border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }
.notice { font-size: 12px; color: var(--muted); margin-top: 8px; }
.logo-preview { max-height: 80px; width: auto; margin-top: 8px; border-radius: 6px; }

/* Nav logo image — height-constrained only, preserves full resolution & aspect ratio */
.nav-logo-img {
  height: 42px;         /* display height — the file itself can be any size */
  width: auto;          /* never distort aspect ratio */
  max-width: 220px;     /* prevent very wide logos pushing nav content off */
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast; /* crisp on retina */
}

/* ── Flash messages ─────────────────────────────────────── */
.flash {
  padding: 12px 16px; border-radius: 9px; font-size: 13px;
  margin-bottom: 16px; border: 1px solid;
}
.flash.success { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); color: #34d399; }
.flash.error   { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); color: var(--danger); }

/* ── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
}
.login-box {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px; width: 100%; max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.login-box h1 { font-size: 24px; margin-bottom: 4px; }
.login-box p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }

/* ── Pricing Tables ─────────────────────────────────────── */
/* ── Pricing Tables ─────────────────────────────────────── */

/* Outer grid — 3 tier cards side by side */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media(max-width:860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .pricing-card { border-right: none !important; border-bottom: 1px solid var(--line); }
  .pricing-card:last-child { border-bottom: none; }
}

/* Each tier card */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel2);
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.pricing-card:last-child { border-right: none; }

/* Highlighted (featured) tier */
.pricing-highlight {
  background: linear-gradient(175deg, rgba(68,102,255,.12) 0%, var(--panel2) 60%);
  border-right-color: rgba(68,102,255,.25);
}
.pricing-highlight + .pricing-card {
  border-left: 1px solid rgba(68,102,255,.25);
  margin-left: -1px;
}

/* Top badge strip */
.pricing-badge-strip {
  height: 4px;
  background: var(--line);
}
.pricing-highlight .pricing-badge-strip {
  background: linear-gradient(90deg, var(--accent), #6685ff);
}

/* Header section inside each card */
.pricing-card-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.pricing-highlight .pricing-card-head {
  border-bottom-color: rgba(68,102,255,.2);
}

.pricing-badge {
  display: inline-block;
  background: rgba(68,102,255,.18);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(68,102,255,.3);
  margin-bottom: 10px;
}

.pricing-tier-name {
  font-size: 11px;
  font-weight: 700;
  
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.pricing-highlight .pricing-tier-name { color: var(--accent); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.pricing-amount {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.pricing-period {
  font-size: 13px;
  color: var(--muted);
  align-self: flex-end;
  padding-bottom: 4px;
}

/* Feature list — stacked rows matching the services card style */
.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pricing-features li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  min-height: 52px;
  transition: background .15s;
}
.pricing-features li:hover { background: rgba(255,255,255,.03); }
.pricing-features li:last-child { border-bottom: none; }
/* Feature title (bold first word / whole text) */
.pricing-feat-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 1px;
}
.pricing-feat-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* CTA footer area */
.pricing-card-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.pricing-highlight .pricing-card-foot {
  border-top-color: rgba(68,102,255,.2);
}
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Custom Pages ───────────────────────────────────────── */
.custom-page-wrap {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 48px 32px 80px;
}
@media(max-width:768px){ .custom-page-wrap { padding: 32px 20px 60px; } }

/* ── Legal Pages ────────────────────────────────────────── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 48px 32px 80px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .meta { font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.legal-page h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--muted); line-height: 1.75; }
.legal-page ul { padding-left: 20px; margin: 12px 0; }
.legal-page li { margin-bottom: 6px; }

/* ── Colour Swatch Grid ─────────────────────────────────── */
.colour-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.colour-item { display: flex; flex-direction: column; gap: 6px; }
.colour-item label { font-size: 11px; color: var(--muted); font-weight: 600; }
.colour-item .colour-swatch {
  width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  cursor: pointer; padding: 3px;
}
.colour-reset-info { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes live-pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(248,113,113,.6); }
  50%      { opacity:.7; box-shadow:0 0 0 4px rgba(248,113,113,0); }
}
@keyframes fade-up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-fade-up { animation: fade-up .5s ease forwards; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero-inner { padding: 40px 20px 40px; }
  .hero h1 { font-size: 42px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 20px; }
}

/* ── GLOBAL LEFT SIDEBAR — Default site chrome on every page ──── */
body { margin: 0; }
.site-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.site-sidebar {
    background: var(--bg);
    border-right: 1px solid var(--line);
    padding: 28px 22px;
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.site-brand { display: block; text-decoration: none; color: var(--text); margin-bottom: 4px; }
.site-brand .nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-brand .nav-logo-img {
    /* Logo image — 50% bigger than previous default */
    max-width: 100%;
    max-height: 90px;            /* was 60px → now 90px (50% larger) */
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
.site-brand .brand-title {
    font-family: var(--font-title, var(--font-display, 'Barlow Condensed', sans-serif));
    font-size: 30px;             /* was 20px → now 30px (50% larger) */
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1;
    color: var(--text);
}
.site-brand .brand-sub {
    font-family: var(--font-tagline, inherit);
    font-size: 13px;             /* was 11px → bumped to 13px proportionally */
    color: var(--muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* Sidebar nav links */
.site-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.site-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; border-radius: 8px;
    color: var(--text); text-decoration: none;
    font-size: 13px; font-weight: 600;
     letter-spacing: .4px;
    transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.05); }
.site-nav a.active { background: rgba(68,102,255,.12); color: var(--accent); }
.site-nav a::after { content: '›'; font-size: 18px; color: var(--muted); line-height: 1; transform: translateY(-1px); }
.site-nav a:hover::after, .site-nav a.active::after { color: inherit; }

/* Social row */
.site-social {
    display: flex; gap: 8px;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.site-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: all .15s; text-decoration: none;
}
.site-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-social svg { width: 14px; height: 14px; fill: currentColor; }

/* Main content area — pages render here */
.site-main {
    background: var(--bg); min-width: 0;
    display: flex; flex-direction: column;
}

/* Slim footer at bottom of main */
.site-footer {
    margin-top: auto;
    padding: 36px 40px 20px;
    background: var(--panel2);
    border-top: 1px solid var(--line);
}
.site-footer .footer-top { gap: 32px; margin-bottom: 24px; display: grid; }
.site-footer .footer-bottom {
    padding-top: 14px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: var(--muted);
}
.site-footer .footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .footer-legal a { color: var(--muted); text-decoration: none; }
.site-footer .footer-legal a:hover { color: var(--accent); }
.site-footer .footer-brand .brand-title {
    font-family: var(--font-title, var(--font-display, 'Barlow Condensed', sans-serif));
    font-size: 18px; font-weight: 800; display: block; margin-bottom: 6px;
}
.site-footer .footer-brand p {
    font-family: var(--font-footer-tagline, inherit);
    font-size: 13px; color: var(--muted); margin: 0 0 6px;
}
.site-footer .footer-col h4 {
    font-size: 11px; font-weight: 700; letter-spacing: .6px;
     color: var(--muted); margin: 0 0 10px;
}
.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-col li { margin-bottom: 6px; }
.site-footer .footer-col a {
    font-size: 13px; color: var(--text); text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--accent); }

/* Mobile burger toggle */
.site-burger {
    display: none;
    position: fixed; top: 14px; left: 14px; z-index: 200;
    width: 42px; height: 42px; border-radius: 8px;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text); font-size: 20px; cursor: pointer;
    align-items: center; justify-content: center;
}

/* Pages that need to override the existing top-nav margin (legacy pages
   used margin-top: var(--nav-h)). With sidebar, margin-top is no longer needed. */
.site-main .iframe-page { margin-top: 0; }
.site-main .iframe-wrap { height: 100vh; min-height: 0; }
.site-main .iframe-page.iframe-fixed-height .iframe-wrap { height: auto; }
.site-main .legal-page  { margin-top: 0; }

/* Reset old fixed nav styles that still get loaded via CSS — no nav rendered now */
nav.nav { display: none !important; }
.mobile-menu { display: none !important; }
.footer { display: none !important; }   /* old footer never rendered now */

/* iframe-body removes the body padding/grid for full-page iframe content.
   Now even iframe pages live inside .site-main, so they need the same shell.
   Keep the iframe filling main height but pad nothing. */
body.iframe-body .site-main { padding: 0; }
body.iframe-body .site-footer { display: block; }   /* footer appears on iframe pages too */
body.iframe-body .site-main .iframe-page { flex: 1; min-height: 100vh; }

/* Neutralise legacy top-nav margins inside the new site-main shell.
   Old layouts had margin-top:64px to clear the fixed nav — sidebar makes that wrong. */
.site-main > div[style*="margin-top:64px"],
.site-main > section[style*="margin-top:64px"] {
    margin-top: 0 !important;
}
.site-main > div[style*="min-height:calc(100vh - 64px)"] {
    min-height: 100vh !important;
}

/* Mobile responsive — sidebar slides in from left over content */
@media (max-width: 900px) {
    .site-shell { grid-template-columns: 1fr; }
    .site-sidebar {
        position: fixed; top: 0; left: 0;
        width: 280px; height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,.5);
    }
    .site-sidebar.open { transform: translateX(0); }
    .site-burger { display: flex; }
    .site-main { padding-top: 70px; }
}

/* ============================================================
   Responsive logo / iframe / footer fix
   ============================================================ */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
.site-shell { width:100%; max-width:100vw; overflow-x:hidden; }
.site-main { width:100%; max-width:100%; min-width:0; overflow-x:hidden; }
.site-sidebar { box-sizing:border-box; }
.site-brand, .site-brand .nav-logo { width:100%; max-width:100%; }
.site-brand .nav-logo { align-items:stretch; }
.site-brand .nav-logo-img {
    width:100%; max-width:100%; height:auto; max-height:125px;
    object-fit:contain; object-position:left center;
}
.site-burger { top:6px; left:8px; z-index:1000; }
.site-main .iframe-page, body.iframe-body .site-main .iframe-page {
    width:100%; max-width:100%; overflow:hidden; min-height:calc(100svh - 58px);
}
.site-main .iframe-wrap {
    display:block; width:100%; max-width:100%; min-width:0; border:0; overflow:hidden;
}
@media (max-width:900px) {
    .site-sidebar { width:min(280px, 86vw); }
    .site-main { padding-top:58px; }
    body.iframe-body .site-main { padding-top:58px; }
    body.iframe-body .site-main .iframe-wrap { height:calc(100svh - 58px); }
    .site-footer { padding:28px 18px 18px; }
    .site-footer .footer-top { grid-template-columns:1fr !important; }
}
@media (max-width:390px) {
    .site-burger { top:5px; left:6px; width:40px; height:40px; }
    .site-main { padding-top:54px; }
    body.iframe-body .site-main { padding-top:54px; }
    body.iframe-body .site-main .iframe-wrap { height:calc(100svh - 54px); }
}

/* ============================================================
   V7 SAFE UI FIXES — responsive sidebar/logo/iframe/footer
   Installer-safe: CSS-only layout fixes, no DB or route changes
   ============================================================ */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
.site-shell { width:100%; max-width:100vw; overflow-x:hidden; }
.site-main { width:100%; max-width:100%; min-width:0; overflow-x:hidden; }
.site-sidebar { box-sizing:border-box; }
.site-brand { width:100%; max-width:100%; display:block; }
.site-brand .nav-logo { width:100%; max-width:100%; align-items:stretch; gap:8px; }
.site-brand .nav-logo-img {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:120px !important;
    object-fit:contain !important;
    object-position:left center !important;
}
.site-nav a { text-transform:none !important; }
.site-burger {
    top:6px !important;
    left:8px !important;
    z-index:3000 !important;
}
.site-main .iframe-page,
body.iframe-body .site-main .iframe-page {
    width:100%; max-width:100%; overflow:hidden;
}
.site-main .iframe-wrap {
    display:block; width:100%; max-width:100%; min-width:0; overflow:hidden; border:0;
}
.site-main iframe,
.iframe-wrap iframe {
    max-width:100% !important;
}
@media (max-width:900px) {
    .site-shell { grid-template-columns:1fr !important; }
    .site-sidebar { width:min(280px,86vw) !important; }
    .site-main { padding-top:54px !important; }
    body.iframe-body .site-main { padding-top:54px !important; }
    body.iframe-body .site-main .iframe-page { min-height:calc(100svh - 54px) !important; }
    body.iframe-body .site-main .iframe-wrap { height:calc(100svh - 54px) !important; }
    .site-footer { padding:28px 18px 18px !important; }
    .site-footer .footer-top { grid-template-columns:1fr !important; }
}
@media (max-width:390px) {
    .site-burger { top:4px !important; left:6px !important; width:40px !important; height:40px !important; }
    .site-main { padding-top:50px !important; }
    body.iframe-body .site-main { padding-top:50px !important; }
    body.iframe-body .site-main .iframe-wrap { height:calc(100svh - 50px) !important; }
}


/* Admin configurable font controls added safely */
body { font-weight: var(--body-font-weight, 400); font-style: var(--body-font-style, normal); }
h1,h2,h3,h4,h5,h6,.hero h1,.section-title { font-weight: var(--display-font-weight, 700); font-style: var(--display-font-style, normal); }
.site-brand .brand-title,
.nav-logo-text .brand-title {
    font-family: var(--font-logo-text, var(--font-title, var(--font-display, 'Barlow Condensed', sans-serif))) !important;
    font-size: var(--logo-text-size, 30px) !important;
    font-weight: var(--logo-text-weight, 900) !important;
    font-style: var(--logo-text-style, normal) !important;
}
.site-footer .footer-brand .brand-title {
    font-family: var(--font-footer-title, var(--font-logo-text, var(--font-title, var(--font-display, 'Barlow Condensed', sans-serif)))) !important;
    font-size: var(--footer-title-size, 18px) !important;
    font-weight: var(--footer-title-weight, 800) !important;
    font-style: var(--footer-title-style, normal) !important;
}
.site-nav a {
    font-family: var(--font-nav, var(--font-body, 'Barlow', sans-serif)) !important;
    font-size: var(--nav-font-size, 13px) !important;
    font-weight: var(--nav-font-weight, 600) !important;
    font-style: var(--nav-font-style, normal) !important;
    text-transform: none !important;
}


/* ============================================================
   V9 iframe scrollbar + font size correction
   Scope: iframe embed behaviour and admin font-size controls only
   ============================================================ */
html, body { overflow-x: hidden !important; }
body.iframe-body { overflow-x: hidden !important; }
body.iframe-body .site-main {
    min-height: 100svh;
    overflow-x: hidden !important;
}
body.iframe-body .site-main .iframe-page,
.site-main .iframe-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: var(--iframe-pad, 0px) !important;
}
body.iframe-body .site-main .iframe-wrap,
.site-main .iframe-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    vertical-align: top !important;
}
body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
    height: calc(100svh - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    min-height: 360px !important;
}
@media (max-width: 900px) {
    body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
        height: calc(100svh - 54px - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    }
}
@media (max-width: 390px) {
    body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
        height: calc(100svh - 50px - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    }
}

/* Make admin font sizing controls predictable: lower values always shrink, higher values always enlarge. */
body { font-size: var(--font-size-base, 16px) !important; }
h1 { font-size: calc(clamp(34px, 5vw, 64px) * var(--font-size-scale, 1)) !important; }
h2 { font-size: calc(clamp(28px, 4vw, 48px) * var(--font-size-scale, 1)) !important; }
h3 { font-size: calc(clamp(22px, 3vw, 34px) * var(--font-size-scale, 1)) !important; }
h4 { font-size: calc(clamp(16px, 2vw, 24px) * var(--font-size-scale, 1)) !important; }
.hero h1 { font-size: calc(clamp(48px, 6vw, 80px) * var(--font-size-scale, 1)) !important; }
.section-title, .section h2 { font-size: calc(clamp(32px, 4vw, 52px) * var(--font-size-scale, 1)) !important; }
.site-brand .brand-title,
.nav-logo-text .brand-title {
    font-size: var(--logo-text-size, 30px) !important;
    line-height: 1 !important;
}
.site-footer .footer-brand .brand-title {
    font-size: var(--footer-title-size, 18px) !important;
    line-height: 1.1 !important;
}
.site-nav a { font-size: var(--nav-font-size, 13px) !important; }

/* ============================================================
   V10 FINAL CLEAN IFRAME SCROLL FIX
   Scope: iframe pages only. Prevents the parent app from adding
   a second browser scrollbar when an embedded page scrolls.
   ============================================================ */
body.iframe-body {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
}
body.iframe-body .site-shell {
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
}
body.iframe-body .site-sidebar {
    height: 100svh !important;
    max-height: 100svh !important;
}
body.iframe-body .site-main {
    height: 100svh !important;
    min-height: 0 !important;
    max-height: 100svh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
}
body.iframe-body .site-footer {
    display: none !important;
}
body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
    display: block !important;
    width: 100% !important;
    height: calc(100% - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    min-height: 0 !important;
    max-height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    vertical-align: top !important;
}
@media (max-width: 900px) {
    body.iframe-body .site-main {
        padding-top: 50px !important;
    }
    body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
        height: calc(100svh - 50px - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    }
}
@media (max-width: 390px) {
    body.iframe-body .site-main {
        padding-top: 46px !important;
    }
    body.iframe-body .site-main .iframe-page:not(.iframe-fixed-height) .iframe-wrap {
        height: calc(100svh - 46px - var(--iframe-pad, 0px) - var(--iframe-pad, 0px)) !important;
    }
}
