:root {
  color-scheme: dark;
  --bg: #05050b;
  --bg-soft: #0e1021;
  --surface: rgba(11, 12, 28, 0.84);
  --surface-strong: rgba(8, 9, 20, 0.94);
  --surface-light: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(247, 0, 173, 0.36);
  --text: #f7f8ff;
  --muted: rgba(232, 234, 255, 0.72);
  --muted-2: rgba(232, 234, 255, 0.56);
  --pink: #ff0fb3;
  --pink-soft: #ff4ccc;
  --violet: #8a5bff;
  --blue: #4aa3ff;
  --green-1: #1ecb79;
  --green-2: #0e8d56;
  --green-3: #0b5e3d;
  --red: #f24a6a;
  --yellow: #ffc857;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  --container: min(1220px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(79, 90, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #04040a 0%, #070812 44%, #05050b 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.btn,
.mini-button,
.tool-chip,
.session-chip,
.status-badge {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn,
.mini-button {
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover,
.mini-button:hover,
.btn:focus-visible,
.mini-button:focus-visible {
  transform: translateY(-1px);
}

.btn {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-primary-pink {
  background: linear-gradient(90deg, #d9009d 0%, #ff34bf 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(217, 0, 157, 0.28);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
  background: rgba(10, 10, 18, 0.4);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-success {
  background: linear-gradient(180deg, #29d97c, #0f9f5b);
  color: #02170d;
  box-shadow: 0 16px 34px rgba(15, 159, 91, 0.24);
}

.btn-warning {
  background: linear-gradient(180deg, #ffd15d, #e8a81d);
  color: #261500;
}

.btn-danger {
  background: linear-gradient(180deg, #ff7a9f, #f03761);
  color: #27010c;
}

.btn-call {
  background: linear-gradient(180deg, #6ab7ff, #3f70ff);
  color: #f7faff;
}

.mini-button {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-button.is-success {
  background: rgba(29, 207, 120, 0.18);
  border-color: rgba(29, 207, 120, 0.34);
  color: #8ff7bd;
}

.mini-button.is-warning {
  background: rgba(255, 200, 87, 0.18);
  border-color: rgba(255, 200, 87, 0.34);
  color: #ffe3a1;
}

.mini-button.is-danger {
  background: rgba(242, 74, 106, 0.18);
  border-color: rgba(242, 74, 106, 0.34);
  color: #ffadc0;
}

.mini-button.is-call {
  background: rgba(74, 163, 255, 0.16);
  border-color: rgba(74, 163, 255, 0.3);
  color: #9fd2ff;
}

.site-header,
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 4, 10, 0.82);
  backdrop-filter: blur(16px);
}

.afterglow-nav,
.portal-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.afterglow-brand,
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.brand-port {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(95, 50, 255, 0.24);
}

.afterglow-brand-top,
.brand-english {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 0.9;
}

.afterglow-brand-bottom,
.brand-sub,
.brand-micro {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  color: var(--muted);
}

.afterglow-links,
.afterglow-header-actions,
.portal-nav-links,
.form-actions,
.action-row,
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.afterglow-links a,
.portal-nav-links a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
}

.afterglow-links a:hover,
.portal-nav-links a:hover,
.portal-nav-links a.is-active,
.afterglow-links a:focus-visible,
.portal-nav-links a:focus-visible {
  color: #fff;
}

.menu-spark {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.26rem;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-spark span {
  width: 1.3rem;
  height: 2px;
  margin-left: auto;
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

.afterglow-landing {
  background:
    radial-gradient(circle at top, rgba(80, 79, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #030308 0%, #060714 42%, #040409 100%);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: 8.5rem 0 2rem;
}

.hero-backdrop,
.hero-lights,
.hero-crown {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.98) 0%, rgba(3, 4, 12, 0.92) 34%, rgba(3, 4, 12, 0.58) 60%, rgba(3, 4, 12, 0.82) 100%),
    url("https://images.pexels.com/photos/14925309/pexels-photo-14925309.jpeg?cs=srgb&dl=pexels-derio-14925309.jpg&fm=jpg")
      center/cover no-repeat;
  transform: scale(1.03);
}

.hero-lights {
  background:
    radial-gradient(circle at 24% 36%, rgba(135, 89, 255, 0.34), transparent 21%),
    radial-gradient(circle at 39% 33%, rgba(80, 167, 255, 0.28), transparent 16%),
    linear-gradient(120deg, transparent 0 40%, rgba(96, 123, 255, 0.24) 41%, transparent 43%),
    linear-gradient(104deg, transparent 0 46%, rgba(255, 40, 182, 0.18) 47%, transparent 50%);
  mix-blend-mode: screen;
}

.hero-crown {
  inset: 8rem 10vw auto auto;
  width: min(36vw, 540px);
  height: min(36vw, 540px);
  border-radius: 50%;
  border: 4px solid rgba(110, 131, 255, 0.8);
  box-shadow:
    0 0 42px rgba(110, 131, 255, 0.24),
    inset 0 0 42px rgba(110, 131, 255, 0.12);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(120, 142, 255, 0.02) 0 8px,
      rgba(255, 255, 255, 0.38) 8px 9px,
      rgba(120, 142, 255, 0.02) 9px 18px
    );
  opacity: 0.92;
  filter: drop-shadow(0 0 26px rgba(92, 112, 255, 0.4));
}

.hero-crown::after {
  content: "";
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) 220px;
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  padding-top: 4rem;
}

.hero-copy h1,
.section-headline h2,
.panel-copy h2,
.reality-copy h2,
.mailing-copy h2,
.page-hero h1,
.surface-card h1,
.surface-card h2,
.surface-card h3,
.print-brand {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  max-width: 320px;
  font-size: clamp(6.2rem, 13vw, 10.4rem);
  line-height: 0.83;
}

.hero-kicker,
.section-tag,
.mini-kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
}

.hero-kicker,
.section-tag,
.mini-kicker {
  color: rgba(255, 255, 255, 0.84);
}

.hero-body,
.panel-copy p,
.reality-copy,
.page-lead,
.surface-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-event-card {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 1.4rem 1.2rem;
  border-left: 2px solid rgba(255, 15, 179, 0.4);
  background: linear-gradient(180deg, rgba(6, 7, 18, 0.28), rgba(6, 7, 18, 0.12));
  text-align: left;
}

.event-label,
.event-day,
.event-date,
.event-time {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
}

.event-label {
  color: var(--pink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.event-day,
.event-date {
  font-size: 1.75rem;
}

.event-time {
  color: var(--muted);
  font-size: 1.2rem;
}

.pulse-line {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  padding: 1.1rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1.2rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.pulse-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.pulse-wave {
  height: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 72%, transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18'%3E%3Cpath d='M0 9h240l10-6 8 12 8-12 8 12 8-12 8 12 8-12 8 6h44' fill='none' stroke='%23ff0fb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      right center/contain no-repeat;
}

.afterglow-panel {
  position: relative;
}

.panel-standard {
  padding: 0 0 1.5rem;
}

.panel-grid,
.district-grid,
.reality-grid,
.mailing-grid,
.footer-grid,
.page-hero,
.dual-grid,
.three-grid,
.four-grid,
.stats-grid,
.module-grid,
.client-shell,
.portal-grid {
  display: grid;
  gap: 1.15rem;
}

.panel-grid-wide {
  grid-template-columns: 1.05fr 1.2fr;
  min-height: 540px;
}

.panel-copy,
.surface-card,
.district-copy,
.reality-copy {
  position: relative;
  overflow: hidden;
}

.panel-copy {
  padding: 4.5rem 0 4rem;
}

.panel-copy h2,
.section-headline h2,
.reality-copy h2 {
  margin: 0 0 1rem;
  max-width: 520px;
  font-size: clamp(3.1rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.panel-visual {
  min-height: 540px;
  border-radius: 0;
}

.panel-visual-lasers {
  background:
    radial-gradient(circle at 38% 24%, rgba(120, 153, 255, 0.45), transparent 12%),
    radial-gradient(circle at 62% 42%, rgba(255, 53, 181, 0.36), transparent 28%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.5), rgba(5, 6, 15, 0.3)),
    url("https://images.pexels.com/photos/15204413/pexels-photo-15204413.jpeg?cs=srgb&dl=pexels-derio-15204413.jpg&fm=jpg")
      center/cover no-repeat;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
}

.text-link::after {
  content: "";
  width: 92px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), rgba(255, 255, 255, 0.16));
}

.panel-district {
  background:
    linear-gradient(180deg, rgba(4, 4, 10, 0.44), rgba(4, 4, 10, 0.86)),
    url("https://images.pexels.com/photos/15201190/pexels-photo-15201190.jpeg?cs=srgb&dl=pexels-summer-419902836-15201190.jpg&fm=jpg")
      center/cover no-repeat;
}

.district-grid {
  grid-template-columns: 1.6fr 0.7fr;
  align-items: end;
  min-height: 380px;
}

.district-title-wrap {
  padding: 4rem 0 3rem;
}

.district-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 226, 255, 0.4);
}

.district-copy {
  padding: 3rem 0 3rem;
  max-width: 220px;
}

.section-accent {
  width: 36px;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.district-copy h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.district-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.panel-access {
  padding: 2rem 0 2.25rem;
}

.section-headline {
  margin-bottom: 1.5rem;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-card {
  min-height: 300px;
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(6, 7, 16, 0.88), rgba(5, 6, 12, 0.96));
}

.access-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
}

.access-card p {
  max-width: 220px;
  color: var(--muted);
  line-height: 1.7;
}

.vip-card {
  background:
    linear-gradient(180deg, rgba(6, 7, 16, 0.72), rgba(5, 6, 12, 0.92)),
    radial-gradient(circle at 60% 40%, rgba(255, 247, 214, 0.12), transparent 20%),
    url("https://images.pexels.com/photos/3858810/pexels-photo-3858810.jpeg?cs=srgb&dl=pexels-energepic-com-27411-3858810.jpg&fm=jpg")
      center/cover no-repeat;
}

.dj-card {
  position: relative;
}

.dj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 16, 0.3), rgba(6, 7, 16, 0.78)),
    url("https://images.pexels.com/photos/15204413/pexels-photo-15204413.jpeg?cs=srgb&dl=pexels-derio-15204413.jpg&fm=jpg")
      center/cover no-repeat;
  z-index: -1;
}

.events-card {
  background:
    linear-gradient(180deg, rgba(6, 7, 16, 0.68), rgba(6, 7, 16, 0.92)),
    radial-gradient(circle at 78% 30%, rgba(118, 130, 255, 0.14), transparent 24%);
}

.panel-reality {
  padding: 2rem 0 2.5rem;
}

.reality-grid {
  grid-template-columns: 1.15fr 1fr 0.9fr 0.8fr;
}

.reality-copy {
  padding: 2rem 0;
}

.reality-image {
  min-height: 330px;
  background-position: center;
  background-size: cover;
}

.crowd-image {
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.18), rgba(7, 8, 18, 0.66)),
    url("https://images.pexels.com/photos/14925309/pexels-photo-14925309.jpeg?cs=srgb&dl=pexels-derio-14925309.jpg&fm=jpg")
      center/cover no-repeat;
}

.people-image {
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.15), rgba(7, 8, 18, 0.55)),
    url("https://images.pexels.com/photos/9993909/pexels-photo-9993909.jpeg?cs=srgb&dl=pexels-vasily-baranov-3661417-9993909.jpg&fm=jpg")
      center/cover no-repeat;
}

.lights-image {
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.15), rgba(7, 8, 18, 0.58)),
    url("https://images.pexels.com/photos/15201190/pexels-photo-15201190.jpeg?cs=srgb&dl=pexels-summer-419902836-15201190.jpg&fm=jpg")
      center/cover no-repeat;
}

.panel-mailing {
  padding: 0.75rem 0 0;
}

.mailing-grid {
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mailing-form {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
}

.mailing-form input {
  min-height: 3.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 1rem;
}

.mailing-form button {
  border-radius: 0;
}

.afterglow-footer {
  padding: 1.5rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(4, 4, 10, 0.3), rgba(4, 4, 10, 0.8)),
    radial-gradient(circle at 30% 10%, rgba(76, 122, 255, 0.18), transparent 28%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.8fr;
  align-items: start;
}

.footer-grid h3 {
  margin: 0 0 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-symbol {
  width: 68px;
  height: 78px;
  margin-bottom: 0.8rem;
  clip-path: polygon(50% 0, 100% 100%, 75% 100%, 50% 40%, 24% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.24));
}

.district-page {
  background:
    radial-gradient(circle at top, rgba(114, 72, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #05050b 0%, #0a0b18 100%);
}

.portal-main {
  padding: 2rem 0 3rem;
}

.portal-grid,
.client-shell {
  gap: 1.25rem;
}

.page-hero {
  grid-template-columns: 1.1fr 0.9fr;
}

.surface-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
}

.surface-card.padded {
  padding: 1.45rem;
}

.hero-surface::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 15, 179, 0.24), transparent 68%);
  pointer-events: none;
}

.surface-card h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.94;
}

.surface-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.surface-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-head p {
  max-width: 360px;
  margin: 0;
}

.form-stack,
.list-grid,
.chart-grid {
  display: grid;
  gap: 0.9rem;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.field-label textarea {
  min-height: 120px;
  resize: vertical;
}

.status-line {
  margin: 0;
  color: var(--muted);
}

.status-line.is-muted,
.field-help,
.meta-item {
  color: var(--muted-2);
}

.tool-chip,
.session-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.tool-chip,
.session-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

.status-badge {
  border: 1px solid transparent;
}

.status-badge.is-done {
  color: #8ef5ba;
  background: rgba(30, 203, 121, 0.18);
  border-color: rgba(30, 203, 121, 0.32);
}

.status-badge.is-warn {
  color: #ffe49f;
  background: rgba(255, 200, 87, 0.18);
  border-color: rgba(255, 200, 87, 0.3);
}

.status-badge.is-call {
  color: #a7d3ff;
  background: rgba(74, 163, 255, 0.18);
  border-color: rgba(74, 163, 255, 0.3);
}

.status-badge.is-new {
  color: #ffc1f1;
  background: rgba(255, 15, 179, 0.16);
  border-color: rgba(255, 15, 179, 0.28);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.module-card,
.list-card,
.history-card,
.invoice-card {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.metric-card .value,
.list-card .value,
.invoice-card .value {
  margin-top: 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.module-grid,
.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-row,
.month-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.time-display {
  margin-bottom: 1rem;
}

.timer-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 6vw, 4.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.schedule-board {
  display: grid;
  gap: 0.85rem;
}

.schedule-row {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-row-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.toggle-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.toggle-row button {
  min-width: 82px;
}

.toggle-row [data-status='Off'] {
  background: rgba(242, 74, 106, 0.18);
  border: 1px solid rgba(242, 74, 106, 0.34);
  color: #ffbbca;
}

.toggle-row [data-status='On'] {
  background: rgba(30, 203, 121, 0.18);
  border: 1px solid rgba(30, 203, 121, 0.34);
  color: #8ef5ba;
}

.toggle-row [data-status='On Call'] {
  background: rgba(74, 163, 255, 0.18);
  border: 1px solid rgba(74, 163, 255, 0.34);
  color: #a7d3ff;
}

.toggle-row button.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.map-shell {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-shell iframe {
  width: 100%;
  height: 460px;
  border: 0;
  filter: saturate(0.6) hue-rotate(170deg) contrast(1.1) brightness(0.92);
}

.tracking-overlay {
  position: absolute;
  inset: 0;
}

.tracking-pin {
  position: absolute;
  min-width: 120px;
  padding: 0.55rem 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 18, 0.84);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.34);
}

.tracking-pin::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -10px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(5, 7, 18, 0.84);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.chart-grid {
  gap: 1rem;
}

.month-row {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.bar-stack {
  margin-top: 0.6rem;
}

.bar-track {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-fill.sales {
  background: linear-gradient(90deg, var(--pink), var(--pink-soft));
}

.bar-fill.delivery {
  background: linear-gradient(90deg, var(--blue), #8ad2ff);
}

.bar-fill.payroll {
  background: linear-gradient(90deg, var(--violet), #bca1ff);
}

.table-shell {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.actions-cell {
  min-width: 240px;
}

.client-shell {
  grid-template-columns: 1fr;
}

.client-sticky-nav {
  position: sticky;
  top: 92px;
  z-index: 30;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.client-sticky-nav a {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.invoice-grid,
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.print-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.print-invoice-card {
  padding: 2rem;
  border-radius: 28px;
  background: #fff;
  color: #0a0d1b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.print-invoice-head,
.print-dual {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.print-brand {
  font-size: 2.8rem;
  letter-spacing: 0.08em;
}

.print-meta,
.print-note {
  color: #445;
  line-height: 1.6;
}

.print-badge {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #171a36, #5f32ff);
  color: #fff;
  font-weight: 700;
}

.print-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #d9dce8;
  text-align: left;
}

.aibiz-return-cta {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 900;
  max-width: calc(100% - 2rem);
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-1), var(--green-2) 55%, var(--green-3));
  color: #f5fff8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  box-shadow: 0 18px 42px rgba(30, 203, 121, 0.24);
}

.aibiz-return-cta:hover {
  box-shadow: 0 22px 48px rgba(30, 203, 121, 0.3);
}

@media (max-width: 1180px) {
  .hero-grid,
  .panel-grid-wide,
  .district-grid,
  .reality-grid,
  .mailing-grid,
  .footer-grid,
  .page-hero,
  .dual-grid,
  .stats-grid,
  .module-grid,
  .three-grid,
  .four-grid,
  .invoice-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .hero-crown {
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    inset: 10rem 2rem auto auto;
  }

  .hero-grid {
    padding-bottom: 6rem;
  }
}

@media (max-width: 900px) {
  .afterglow-nav,
  .portal-nav,
  .afterglow-header-actions,
  .afterglow-links,
  .portal-nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .afterglow-header-actions,
  .afterglow-links,
  .portal-nav-links {
    width: 100%;
  }

  .hero-shell {
    padding-top: 13rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .pulse-line {
    grid-template-columns: 1fr;
  }

  .hero-crown {
    opacity: 0.5;
  }

  .client-sticky-nav {
    top: 134px;
  }

  .split-fields,
  .mailing-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1220px);
  }

  .hero-shell {
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .surface-card.padded,
  .access-card {
    padding: 1.1rem;
  }

  .hero-copy h1 {
    font-size: clamp(4.9rem, 24vw, 7rem);
  }

  .aibiz-return-cta {
    left: 0.7rem;
    right: 0.7rem;
    max-width: none;
    bottom: 0.7rem;
  }
}

@media print {
  .print-toolbar,
  .aibiz-return-cta {
    display: none !important;
  }

  .print-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .print-invoice-card {
    border-radius: 0;
    box-shadow: none;
  }
}
