/* ============================================================
   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-display);
  font-weight: 900; font-size: 20px; letter-spacing: .5px;
  line-height: 1;
}
.nav-logo-text .brand-sub {
  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;
  text-transform: uppercase; 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;
  text-transform: uppercase; 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; text-transform: uppercase;
  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-display); font-size: 22px; font-weight: 900;
  margin-bottom: 8px; display: block;
}
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; 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;
  text-transform: uppercase; 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;
  text-transform: uppercase; 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);
  text-transform: uppercase; 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;
  text-transform: uppercase;
  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;
  text-transform: uppercase;
  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; }
}
