:root {
  --ink: #17201d;
  --muted: #5f6b66;
  --paper: #f8f7f2;
  --soft: #f2f0e8;
  --white: #ffffff;
  --line: #dedbd1;
  --gold: #d8a83b;
  --gold-deep: #9a6d12;
  --teal: #127c77;
  --coral: #b95d48;
  --charcoal: #111715;
  --shadow: 0 22px 60px rgba(23, 32, 29, 0.12);
  --container-max: 1320px;
  --container-gutter: clamp(16px, 2vw, 24px);
  --container-inline: max(var(--container-gutter), calc((100vw - var(--container-max)) / 2 + var(--container-gutter)));
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px var(--container-inline);
  background: rgba(248, 247, 242, 0.86);
  border-bottom: 1px solid rgba(222, 219, 209, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.hero-facts {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(148px, 14vw, 184px);
  height: auto;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: transparent;
  background:
    url("/assets/airoquad-mark.svg") center / cover no-repeat,
    linear-gradient(135deg, #f4d174, #c59529 62%, #70c4bd);
  box-shadow: 0 8px 18px rgba(17, 23, 21, 0.14);
  font-size: 0;
  font-weight: 900;
  overflow: hidden;
}

.main-nav {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 900;
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle strong {
  font-size: 0.9rem;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.user-pill {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.button,
.ghost {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(18, 124, 119, 0.22);
}

.button:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button.small,
.ghost.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.button.large,
.ghost.large {
  min-height: 52px;
  padding: 0 22px;
}

.button.full,
.ghost.full {
  width: 100%;
}

.ghost.tiny {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.84rem;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.hero {
  min-height: min(82vh, 780px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 9vw, 110px) var(--container-inline);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 14, 13, 0.94) 0%, rgba(10, 14, 13, 0.74) 42%, rgba(10, 14, 13, 0.22) 100%),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 0.48fr) minmax(420px, 0.52fr);
  gap: clamp(34px, 7vw, 120px);
  align-items: center;
}

.hero-main {
  max-width: 720px;
}

.hero-details {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 4.4vw, 4.9rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-profit-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(242, 212, 123, 0.34);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 124, 119, 0.88), rgba(9, 17, 16, 0.78)),
    rgba(9, 17, 16, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.hero-profit-card span,
.hero-profit-card em {
  color: #f2d47b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-profit-card strong {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
}

.hero-profit-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.hero-profit-card em {
  margin-top: 4px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hero-proof-grid article {
  display: grid;
  gap: 6px;
  min-height: 138px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 18px;
  background: rgba(9, 17, 16, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-proof-grid strong {
  color: var(--white);
  font-size: 0.98rem;
}

.hero-proof-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.hero-risk-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.band {
  padding: clamp(56px, 8vw, 96px) var(--container-inline);
}

.band.compact {
  padding-top: clamp(44px, 7vw, 82px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p,
.pricing-copy p,
.auth-copy p,
.portal-heading p {
  font-size: 1.04rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-card,
.panel,
.pricing-panel,
.license-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 245px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.feature-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--gold), var(--teal)),
    radial-gradient(circle at 60% 40%, var(--white), transparent 42%);
}

.workflow-band {
  background: #eef3ee;
}

.transparency-band {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  min-height: 250px;
  padding: 28px;
  background: var(--paper);
}

.timeline span {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--coral);
  font-weight: 900;
}

.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: var(--charcoal);
}

.pricing-band h2,
.pricing-band li,
.pricing-band .billing {
  color: var(--white);
}

.pricing-band p {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-copy li {
  padding-left: 28px;
  position: relative;
}

.pricing-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 13px;
  height: 2px;
  background: var(--gold);
}

.pricing-panel {
  padding: 28px;
}

.pricing-panel p,
.pricing-panel .form-note,
.pricing-panel .terms-note,
.pricing-panel .billing {
  color: var(--muted);
}

.pricing-panel label,
.pricing-panel .price {
  color: var(--ink);
}

.checkout-panel-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(18, 124, 119, 0.18);
  border-radius: 8px;
  background: #eef7f4;
}

.demo-checkout-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(216, 168, 59, 0.32);
  border-radius: 8px;
  color: var(--gold-deep);
  background: #fff8e4;
}

.demo-checkout-banner strong {
  color: var(--ink);
}

.demo-checkout-banner span {
  color: var(--muted);
  line-height: 1.45;
}

.checkout-panel-head strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.checkout-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.secure-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(18, 124, 119, 0.22);
}

.secure-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 18px;
  height: 13px;
  border: 3px solid var(--white);
  border-radius: 4px;
}

.secure-icon::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 9px;
  width: 10px;
  height: 13px;
  border: 3px solid var(--white);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.secure-icon.test {
  background: var(--gold-deep);
}

.checkout-trust {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.checkout-trust span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-trust i {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 124, 119, 0.1);
}

.checkout-trust i::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg) translate(1px, -1px);
}

.embedded-checkout {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.embedded-checkout[hidden] {
  display: none;
}

.checkout-loading {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.embedded-checkout-active > label,
.embedded-checkout-active > .checkline,
.embedded-checkout-active > button[type="submit"] {
  display: none;
}

.checkout-success-hero {
  min-height: clamp(300px, 38vh, 430px);
}

.checkout-success-hero h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
}

.demo-access-band {
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(180deg, #eef3ee 0%, #f7f8f4 100%);
}

.demo-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(18, 124, 119, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 56px rgba(23, 32, 29, 0.1);
}

.demo-access-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.demo-access-card p {
  max-width: 700px;
  margin-bottom: 0;
}

.demo-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.demo-license-chip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(216, 168, 59, 0.22);
  border-radius: 8px;
  background: #fbf6e8;
}

.demo-license-chip span {
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-license-chip strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.94rem;
}

.demo-license-chip em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.product-catalog {
  display: grid;
  gap: 20px;
}

.product-card-large,
.future-products {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card-large {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.product-card-copy h2,
.future-products h2 {
  max-width: 680px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.future-products h2 {
  max-width: 620px;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.product-card-meta span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
}

.future-products {
  max-width: 860px;
  padding: 24px;
}

.future-products p {
  max-width: 720px;
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 0.95fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
  padding: clamp(62px, 8vw, 108px) var(--container-inline);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 23, 21, 0.96) 0%, rgba(17, 23, 21, 0.78) 52%, rgba(17, 23, 21, 0.3) 100%),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
}

.sales-copy {
  max-width: 760px;
}

.sales-copy h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

.sales-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.sales-copy .product-card-meta span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.myfxbook-panel {
  min-height: 430px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.myfxbook-panel h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.myfxbook-link {
  margin-top: 12px;
}

.myfxbook-version-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.myfxbook-version-list > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myfxbook-version-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
}

.myfxbook-version-list a:hover {
  border-color: rgba(18, 124, 119, 0.34);
  background: #eef7f4;
}

.myfxbook-version-list strong {
  font-size: 0.95rem;
}

.myfxbook-version-list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.myfxbook-widget-card {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 242, 0.98));
}

.myfxbook-widget-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.myfxbook-panel.widget-mini .myfxbook-widget-card {
  min-height: 170px;
}

.myfxbook-panel.widget-small .myfxbook-widget-card,
.myfxbook-panel.widget-medium .myfxbook-widget-card {
  min-height: 230px;
}

.broker-grid,
.historical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.broker-card,
.historical-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.broker-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.broker-logo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(222, 219, 209, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 124, 119, 0.22), transparent 34%),
    linear-gradient(135deg, #111715 0%, #17201d 58%, #24322e 100%);
  overflow: hidden;
}

.broker-thumbnail {
  display: block;
  width: auto;
  max-width: 82%;
  max-height: 78%;
  object-fit: contain;
}

.broker-card h3 {
  margin-bottom: 0;
}

.broker-card p {
  flex: 1;
  margin-bottom: 4px;
}

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

.historical-image-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(18, 124, 119, 0.22);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 23, 21, 0.88), rgba(18, 124, 119, 0.56)),
    url("/assets/airoquad-gold-hero.png") center / cover no-repeat;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.historical-results-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.historical-results-panel h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.historical-results-panel a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.historical-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.historical-metric-card,
.historical-graph-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.historical-metric-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
}

.historical-metric-card span,
.historical-graph-card span {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.historical-metric-card strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.08;
}

.historical-metric-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.historical-graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.historical-graph-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.historical-graph-card h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.historical-graph-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
}

.historical-panel-head,
.historical-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.historical-panel-head {
  margin-bottom: 18px;
}

.historical-panel-head h2 {
  margin-bottom: 0;
}

.historical-report-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.contact-form {
  width: 100%;
  margin: 0;
}

.contact-info-card {
  display: grid;
  gap: 18px;
}

.contact-info-card h2 {
  margin-bottom: 0;
}

.contact-info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-info-card dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.contact-info-card dt {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-info-card dd {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.contact-info-card a {
  color: var(--teal);
  font-weight: 900;
}

.contact-confirmation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(18, 124, 119, 0.22);
  border-radius: 8px;
  background: rgba(18, 124, 119, 0.08);
}

.contact-confirmation[hidden] {
  display: none;
}

.confirmation-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(18, 124, 119, 0.24);
}

.confirmation-mark::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(-45deg);
}

.contact-confirmation span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-confirmation h3 {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.contact-confirmation p {
  margin-bottom: 12px;
}

.contact-confirmation dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contact-confirmation dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(18, 124, 119, 0.14);
  padding-top: 8px;
}

.contact-confirmation dt {
  color: var(--muted);
}

.contact-confirmation dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.myfxbook-placeholder {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(18, 124, 119, 0.45);
  border-radius: 8px;
  background: #eef3ee;
  text-align: center;
}

.myfxbook-placeholder strong {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.myfxbook-placeholder p {
  max-width: 430px;
  margin: 0;
}

.product-sales-section {
  background: var(--paper);
}

.gold-feature-band {
  background: var(--white);
}

.gold-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gold-feature-grid span {
  min-height: 86px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fbfaf5;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.06);
}

.gold-system-band,
.gold-audience-band {
  background: #eef3ee;
}

.gold-system-grid,
.gold-info-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.gold-system-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
}

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

.gold-text-panel,
.gold-risk-panel,
.gold-info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.08);
}

.gold-text-panel h2,
.gold-risk-panel h2,
.gold-info-grid h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
}

.gold-info-grid ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.gold-info-grid li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.gold-info-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.risk-profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.risk-profile-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(18, 124, 119, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal);
  background: rgba(18, 124, 119, 0.08);
  font-size: 0.9rem;
  font-weight: 900;
}

.sales-detail-grid,
.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sales-detail-grid article,
.requirement-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.sales-detail-grid h3,
.requirement-grid h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

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

.requirement-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--coral);
  font-weight: 900;
}

.requirements-band,
.sales-flow-band {
  background: #eef3ee;
}

.price {
  display: block;
  margin-bottom: 4px;
  color: var(--charcoal);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.billing {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

.checkline {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.checkline input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkline a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

.checkline input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

textarea {
  resize: vertical;
}

input[readonly] {
  color: var(--gold-deep);
  background: #fbf6e8;
}

.form-note,
.notice {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.notice.error {
  color: #a8332a;
}

.terms-note {
  margin-top: 12px;
  font-size: 0.9rem;
}

.terms-note a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  position: relative;
  min-height: clamp(340px, 43vh, 470px);
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) var(--container-inline);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 23, 21, 0.96) 0%, rgba(17, 23, 21, 0.82) 48%, rgba(17, 23, 21, 0.32) 100%),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 209, 116, 0.16), transparent 44%),
    linear-gradient(0deg, rgba(17, 23, 21, 0.18), transparent 42%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #f2d47b;
}

.page-hero.slim h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--white);
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.page-hero.slim p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.risk-hero {
  min-height: clamp(240px, 31vh, 330px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.page-hero.slim.risk-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  line-height: 1;
}

.page-hero.slim.risk-hero p {
  max-width: 820px;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.check-list,
.setup-steps {
  display: grid;
  gap: 12px;
}

.check-list span,
.setup-steps span {
  display: block;
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.08);
}

.detailed-setup {
  padding-top: clamp(48px, 7vw, 78px);
  padding-bottom: clamp(58px, 8vw, 96px);
  background: #eef3ee;
}

.detailed-setup > .section-heading,
.detailed-setup > .setup-guide,
.detailed-setup > .setup-warning {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.detailed-setup > .section-heading {
  max-width: 1180px;
  margin-bottom: 26px;
}

.detailed-setup > .section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  line-height: 1.02;
}

.detailed-setup > .section-heading p:last-child {
  max-width: 720px;
}

.setup-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.setup-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.08);
}

.step-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--charcoal);
  background: #f2d47b;
  font-size: 0.82rem;
  font-weight: 900;
}

.setup-step h3 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.setup-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.setup-step ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.setup-step a,
.setup-warning a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.setup-warning,
.portal-alert {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(185, 93, 72, 0.32);
  background: #fff4ef;
}

.setup-warning {
  margin-top: 18px;
  box-shadow: 0 12px 30px rgba(185, 93, 72, 0.08);
}

.setup-warning strong {
  display: block;
  margin-bottom: 8px;
}

.setup-warning p,
.portal-alert {
  color: #704034;
}

.disclosure {
  background: var(--charcoal);
}

.product-disclosure {
  background: #18302d;
}

.disclosure-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.disclosure-copy {
  max-width: 680px;
}

.disclosure-copy h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 0.98;
}

.disclosure-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.disclosure-points {
  display: grid;
  gap: 12px;
}

.disclosure-points article {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(170px, 0.55fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.disclosure-points span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.disclosure-points strong {
  color: var(--white);
  line-height: 1.25;
}

.disclosure-points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.5;
}

.purchase-terms {
  background: #eef3ee;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.term-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.term-grid article h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.legal-band {
  background: var(--white);
}

.legal-copy {
  max-width: 920px;
}

.legal-copy a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  color: var(--gold-deep);
  font-weight: 900;
}

.legal-copy h2 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.12;
}

.legal-copy h2:first-of-type {
  margin-top: 18px;
}

.legal-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 0.72fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  width: min(1360px, 100%);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(248, 247, 242, 0) 0%, rgba(238, 243, 238, 0.62) 100%);
}

.auth-copy {
  align-self: center;
  max-width: 560px;
}

.auth-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1;
}

.portal-heading h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
}

.auth-copy > p {
  max-width: 520px;
  font-size: 1.02rem;
}

.auth-summary {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-summary span {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(222, 219, 209, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.45;
}

.auth-summary strong {
  color: var(--ink);
}

.admin-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.auth-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-content: center;
}

.panel.auth-panel {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.09);
}

.primary-auth {
  border-top: 4px solid var(--teal);
}

.panel-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-subcopy {
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.auth-panel label {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.auth-panel input {
  min-height: 44px;
}

.panel,
.license-panel {
  padding: 24px;
}

.panel h2,
.license-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.portal-shell,
.admin-shell,
.test-checkout-shell {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 6vw, 72px);
}

.customer-portal {
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 56px) 0;
  background: #eef3ee;
}

.customer-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  width: min(1360px, 100%);
  margin: 0 auto 18px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 23, 21, 0.96), rgba(18, 124, 119, 0.78)),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
  box-shadow: 0 22px 58px rgba(23, 32, 29, 0.16);
}

.customer-portal-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.98;
}

.customer-portal-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portal-hero-status {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-hero-status span {
  color: #f2d47b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-hero-status strong {
  color: var(--white);
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.portal-hero-status p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.portal-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1360px, 100%);
  margin: 0 auto 28px;
}

.portal-metric,
.customer-license-card,
.portal-action-card,
.portal-account-card,
.portal-empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 29, 0.08);
}

.portal-metric {
  padding: 18px;
}

.portal-metric span,
.license-card-meta span,
.portal-account-card > div:first-child span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.04;
}

.portal-metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.portal-metric.tone-green {
  border-color: rgba(11, 111, 67, 0.18);
}

.portal-metric.tone-teal {
  border-color: rgba(18, 124, 119, 0.18);
}

.portal-metric.tone-gold {
  border-color: rgba(216, 168, 59, 0.28);
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
  width: min(1360px, 100%);
  margin: 0 auto;
}

.portal-main-column,
.portal-side-column,
.portal-section-block {
  display: grid;
  gap: 18px;
}

.portal-side-column {
  position: sticky;
  top: 92px;
}

.portal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.portal-section-heading h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.04;
}

.portal-section-heading p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.customer-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-license-card,
.portal-action-card,
.portal-account-card,
.portal-empty-card {
  padding: 22px;
}

.customer-license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.customer-license-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-license-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.license-key-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(18, 124, 119, 0.14);
  border-radius: 8px;
  background: #eef7f4;
}

.license-key-box span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.license-key-box strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.license-key-box small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.license-key-box input {
  min-height: 42px;
  border-color: rgba(18, 124, 119, 0.18);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.license-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.license-card-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.license-card-meta strong {
  overflow-wrap: anywhere;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.disabled-link {
  opacity: 0.62;
  pointer-events: none;
}

.portal-action-card h2,
.portal-support-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.portal-action-card p {
  font-size: 0.94rem;
}

.portal-action-card .embedded-checkout {
  margin-top: 14px;
}

.portal-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-account-card {
  display: grid;
  gap: 14px;
}

.portal-account-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.portal-account-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-account-details p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.portal-account-details strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.portal-empty-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.portal-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.portal-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  background:
    linear-gradient(180deg, rgba(244, 246, 244, 0.96), rgba(238, 243, 238, 0.96)),
    url("/assets/airoquad-gold-hero.png") center top / cover fixed no-repeat;
}

.portal-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 74px);
  padding: 22px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(17, 23, 21, 0.98), rgba(10, 38, 35, 0.98)),
    url("/assets/airoquad-gold-hero.png") center / cover no-repeat;
}

.portal-brand-panel {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-brand-panel strong,
.portal-user-panel strong {
  display: block;
  color: var(--white);
}

.portal-brand-panel p,
.portal-user-panel p,
.portal-sidebar-note p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.35;
}

.portal-user-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.portal-user-panel span,
.portal-sidebar-note > span {
  color: #f2d47b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-sidebar nav {
  display: grid;
  gap: 8px;
}

.portal-sidebar nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a.active {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.portal-sidebar-note {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.portal-topbar h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.portal-topbar p {
  max-width: 790px;
  margin-bottom: 0;
}

.portal-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-console .portal-metric-grid,
.portal-console .portal-workspace {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.portal-console .portal-metric-grid {
  margin-bottom: 18px;
}

.portal-console .portal-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
}

.portal-console .portal-metric,
.portal-console .customer-license-card,
.portal-console .portal-action-card,
.portal-console .portal-account-card,
.portal-console .portal-empty-card,
.portal-empty-state {
  border-color: rgba(222, 219, 209, 0.86);
  box-shadow: 0 16px 42px rgba(23, 32, 29, 0.08);
}

.portal-console .portal-metric {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.portal-console .portal-metric strong {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.portal-console .portal-section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.portal-console .portal-section-heading h2 {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.portal-console .portal-section-heading p:last-child {
  max-width: 720px;
  font-size: 0.98rem;
}

.portal-console .customer-license-card,
.portal-console .portal-action-card,
.portal-console .portal-account-card,
.portal-console .portal-empty-card,
.portal-empty-state {
  background: rgba(255, 255, 255, 0.94);
}

.portal-console .customer-license-head h2,
.portal-console .portal-action-card h2,
.portal-console .portal-support-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.portal-console .license-key-box,
.portal-console .license-card-meta div,
.portal-console .portal-account-details p {
  background: #f7faf7;
}

.portal-console .portal-side-column {
  top: 96px;
}

.portal-console .portal-action-card {
  padding: 20px;
}

.portal-console .detailed-setup {
  padding: 28px 0 0;
  background: transparent;
}

.portal-console .detailed-setup > .section-heading,
.portal-console .detailed-setup > .setup-guide,
.portal-console .detailed-setup > .setup-warning {
  width: 100%;
}

.portal-console .detailed-setup > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.5fr);
  gap: 18px;
  align-items: end;
  max-width: none;
  margin-bottom: 16px;
}

.portal-console .detailed-setup > .section-heading h2 {
  max-width: 700px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.portal-console .detailed-setup > .section-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.portal-console .setup-step {
  min-height: 0;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.07);
}

.portal-console .setup-warning {
  width: 100%;
  margin-top: 18px;
  background: #fff7f1;
}

.portal-empty-state {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 820px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-empty-state h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.portal-empty-state p {
  margin-bottom: 0;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-dashboard-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(222, 219, 209, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(23, 32, 29, 0.08);
}

.portal-dashboard-card:hover {
  border-color: rgba(18, 124, 119, 0.26);
  transform: translateY(-1px);
}

.portal-dashboard-card span {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-dashboard-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.1;
}

.portal-dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.portal-page-grid {
  width: 100%;
}

.portal-form-page {
  width: min(760px, 100%);
}

.portal-form-page .portal-action-card {
  padding: clamp(22px, 4vw, 32px);
}

.portal-setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 23, 21, 0.96), rgba(18, 124, 119, 0.78)),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.14);
}

.portal-setup-hero h1 {
  max-width: 860px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.portal-setup-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.74);
}

.portal-setup-summary {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-setup-summary span,
.portal-setup-requirements span,
.portal-step-heading span,
.portal-risk-panel span {
  color: #f2d47b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-setup-summary strong {
  color: var(--white);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.08;
}

.portal-setup-summary p {
  margin-bottom: 0;
}

.portal-setup-requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.portal-setup-requirements article,
.portal-setup-step,
.portal-risk-panel {
  border: 1px solid rgba(222, 219, 209, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(23, 32, 29, 0.08);
}

.portal-setup-requirements article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
}

.portal-setup-requirements span,
.portal-step-heading span {
  color: var(--gold-deep);
}

.portal-setup-requirements strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.portal-setup-requirements p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.portal-setup-timeline {
  display: grid;
  gap: 14px;
}

.portal-setup-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 3vw, 30px);
}

.portal-step-number {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: var(--charcoal);
  background: linear-gradient(135deg, #f4d174, #d8a83b);
  font-weight: 900;
}

.portal-step-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.portal-step-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.08;
}

.portal-setup-step p {
  max-width: 880px;
  color: var(--muted);
  font-size: 1rem;
}

.portal-setup-step ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.portal-setup-step a:not(.button):not(.ghost) {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-risk-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  padding: 22px;
  border-color: rgba(185, 93, 72, 0.24);
  background: #fff7f1;
}

.portal-risk-panel span {
  color: #a8332a;
}

.portal-risk-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.portal-risk-panel p {
  margin-bottom: 0;
  color: #704239;
}

.portal-console {
  grid-template-columns: 292px minmax(0, 1fr);
  background: #f5f7fb;
}

.portal-sidebar {
  gap: 18px;
  padding: 22px 18px;
  color: #64748b;
  border-right: 1px solid #e6ebf2;
  background: #ffffff;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.04);
}

.portal-brand-panel {
  grid-template-columns: 42px 1fr;
  padding: 2px 4px 18px;
  border-bottom-color: #edf1f7;
}

.portal-brand-panel strong,
.portal-user-panel strong {
  color: #111827;
}

.portal-brand-panel p,
.portal-user-panel p,
.portal-sidebar-note p {
  color: #64748b;
}

.portal-user-panel {
  gap: 7px;
  padding: 16px;
  border-color: #e6ebf2;
  background: #f8fafc;
}

.portal-user-panel span,
.portal-sidebar-note > span {
  color: #0f766e;
  font-size: 0.72rem;
}

.portal-sidebar nav {
  gap: 6px;
}

.portal-sidebar nav a {
  gap: 11px;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 10px;
  color: #64748b;
  font-weight: 800;
}

.portal-nav-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-sidebar nav a:hover,
.portal-sidebar nav a.active {
  color: #0f766e;
  border-color: #dbeafe;
  background: #eef6ff;
}

.portal-sidebar nav a:hover .portal-nav-icon,
.portal-sidebar nav a.active .portal-nav-icon {
  color: #ffffff;
  background: #0f766e;
}

.portal-sidebar-note {
  gap: 8px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #f8fafc;
}

.portal-content {
  padding: clamp(22px, 3vw, 34px);
}

.portal-topbar {
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.portal-topbar h1 {
  margin-bottom: 8px;
  color: #111827;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.portal-topbar p {
  color: #64748b;
}

.portal-topbar .eyebrow {
  color: #0f766e;
}

.portal-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.22);
}

.portal-overview-hero span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-overview-hero h2 {
  max-width: 760px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.portal-overview-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.portal-overview-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-overview-status strong {
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

.portal-overview-status span {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}

.portal-console .portal-metric-grid {
  gap: 16px;
}

.portal-console .portal-metric,
.portal-console .customer-license-card,
.portal-console .portal-action-card,
.portal-console .portal-account-card,
.portal-console .portal-empty-card,
.portal-dashboard-card,
.portal-empty-state,
.portal-setup-requirements article,
.portal-setup-step,
.portal-risk-panel {
  border-color: #e6ebf2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.portal-console .portal-metric {
  min-height: 128px;
  padding: 20px;
}

.portal-console .portal-metric span,
.portal-dashboard-card span,
.customer-license-head span,
.license-card-meta span,
.portal-account-card > div:first-child span {
  color: #64748b;
}

.portal-console .portal-metric strong {
  color: #111827;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.portal-console .portal-metric small {
  color: #94a3b8;
}

.portal-dashboard-grid {
  gap: 16px;
}

.portal-dashboard-card {
  min-height: 178px;
  border-radius: 18px;
}

.portal-dashboard-card span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-dashboard-card span em {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #0f766e;
  background: #e8f7f4;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-dashboard-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.license-key-box,
.portal-console .license-key-box {
  border-color: #d9f0ec;
  background: #f0fdfa;
}

.license-card-meta div,
.portal-console .license-card-meta div,
.portal-console .portal-account-details p {
  border-color: #e6ebf2;
  background: #f8fafc;
}

.portal-form-page {
  width: min(860px, 100%);
}

.portal-setup-hero {
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #111827, #0f766e);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.portal-setup-summary {
  border-radius: 16px;
}

.portal-step-number {
  border-radius: 14px;
  background: #e8f7f4;
  color: #0f766e;
}

.portal-risk-panel {
  border-color: #fed7aa;
  background: #fff7ed;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
}

.panel-topline strong {
  color: var(--teal);
}

.account-band,
.admin-table {
  padding-left: 0;
  padding-right: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8e5dc;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-card strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-form {
  grid-row: span 2;
}

.test-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.test-card-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.test-card-number {
  margin: 10px 0 14px;
  padding: 18px;
  border: 1px dashed rgba(18, 124, 119, 0.45);
  border-radius: 8px;
  color: var(--teal);
  background: #eef3ee;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.admin-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f6f4;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: 100vh;
  padding: 22px;
  color: rgba(255, 255, 255, 0.78);
  background: #111715;
}

.admin-brand-panel {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand-panel strong {
  display: block;
  color: var(--white);
}

.admin-brand-panel p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-note {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-note > span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.84rem;
}

.admin-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.admin-topbar p {
  max-width: 780px;
  margin-bottom: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-metrics article,
.admin-card,
.admin-record-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 29, 0.08);
}

.admin-metrics article {
  padding: 18px;
}

.admin-metrics span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  line-height: 1.05;
}

.admin-metrics small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-hero-grid,
.dashboard-insight-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.7fr);
}

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

.dashboard-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 23, 21, 0.96), rgba(18, 124, 119, 0.82)),
    url("/assets/airoquad-gold-hero.png") center right / cover no-repeat;
}

.dashboard-hero-copy span,
.dashboard-health-card .admin-card-heading span {
  color: #f2d47b;
}

.dashboard-hero-copy h2 {
  margin: 10px 0;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.dashboard-hero-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.74);
}

.dashboard-hero-stats,
.dashboard-health-grid {
  display: grid;
  gap: 10px;
}

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

.dashboard-hero-stats div {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-hero-stats strong {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.dashboard-health-card {
  background: #18302d;
}

.dashboard-health-card h2,
.dashboard-health-card .admin-card-heading h2 {
  color: var(--white);
}

.dashboard-health-grid div {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-health-grid span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.dashboard-progress-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-progress-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-progress-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-progress-row strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.dashboard-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7dc;
}

.dashboard-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.tone-green .dashboard-progress-track i {
  background: #0b6f43;
}

.tone-gold .dashboard-progress-track i {
  background: var(--gold);
}

.tone-red .dashboard-progress-track i {
  background: var(--coral);
}

.tone-muted .dashboard-progress-track i {
  background: #8a918d;
}

.dashboard-percent {
  color: var(--teal);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.dashboard-activity-card {
  margin-bottom: 16px;
}

.dashboard-activity-list {
  display: grid;
  gap: 10px;
}

.dashboard-activity-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.dashboard-activity-list article > span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.dashboard-activity-list strong {
  display: block;
  margin-bottom: 3px;
}

.dashboard-activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-activity-list time {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-overview-grid,
.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.7fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.admin-card {
  padding: 22px;
}

.admin-card + .admin-card {
  margin-top: 16px;
}

.admin-card-heading,
.admin-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-card-heading span,
.admin-record-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card-heading h2,
.admin-record-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.admin-record-head p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.admin-action-grid {
  display: grid;
  gap: 10px;
}

.admin-action-row {
  display: grid;
  gap: 4px;
  min-height: 82px;
  align-content: center;
  border: 1px solid rgba(222, 219, 209, 0.9);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfaf5;
}

.admin-action-row:hover {
  border-color: rgba(18, 124, 119, 0.35);
  background: #eef7f4;
}

.admin-action-row span,
.admin-health-list span,
.admin-detail-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-health-list {
  display: grid;
  gap: 10px;
}

.admin-health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-health-list div:last-child {
  border-bottom: 0;
}

.admin-health-list a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-integration-note {
  margin-bottom: 16px;
  border: 1px solid rgba(212, 159, 35, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(212, 159, 35, 0.08);
}

.admin-integration-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.admin-integration-note p {
  margin: 0;
  font-size: 0.94rem;
}

.admin-integration-note code {
  background: rgba(255, 255, 255, 0.68);
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal);
  border: 1px solid rgba(18, 124, 119, 0.2);
  background: rgba(18, 124, 119, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-paid,
.status-active,
.status-demo-paid,
.status-configured,
.status-admin,
.status-live-checkout-ready,
.status-test-checkout-ready,
.status-licenses-active {
  color: #0b6f43;
  border-color: rgba(11, 111, 67, 0.22);
  background: rgba(11, 111, 67, 0.08);
}

.status-pending,
.status-paused,
.status-no-license,
.status-missing-keys,
.status-customer,
.status-live-checkout-missing,
.status-test-checkout-missing,
.status-no-active-licenses {
  color: var(--gold-deep);
  border-color: rgba(154, 109, 18, 0.24);
  background: rgba(244, 209, 116, 0.2);
}

.status-revoked,
.status-failed {
  color: #a8332a;
  border-color: rgba(168, 51, 42, 0.22);
  background: rgba(168, 51, 42, 0.08);
}

.admin-table-card {
  margin-top: 16px;
}

.admin-record-list,
.admin-record-grid,
.admin-stack {
  display: grid;
  gap: 14px;
}

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

.admin-record-card,
.admin-empty {
  padding: 20px;
}

.admin-row-actions,
.admin-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.social-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.social-composer-card,
.social-config-card,
.social-history-card {
  min-width: 0;
}

.social-flash {
  min-height: 0;
  border: 1px solid rgba(18, 124, 119, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--teal);
  background: rgba(18, 124, 119, 0.08);
  font-weight: 800;
}

.social-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 14px;
  align-items: start;
}

.social-composer-grid .wide {
  margin-bottom: 0;
}

.social-upload-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf5;
}

.social-upload-panel label {
  margin-bottom: 0;
}

.social-upload-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.social-image-preview {
  display: grid;
  gap: 8px;
}

.social-image-preview[hidden] {
  display: none;
}

.social-image-preview strong {
  color: var(--gold-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.social-image-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

.social-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.social-destination-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 82px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf5;
}

.social-destination-option.ready {
  border-color: rgba(18, 124, 119, 0.22);
  background: rgba(18, 124, 119, 0.07);
}

.social-destination-option.missing {
  opacity: 0.72;
}

.social-destination-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.social-destination-option strong,
.social-channel-card strong {
  display: block;
  margin-bottom: 3px;
}

.social-destination-option small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.social-destination-option em {
  color: var(--teal);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.social-channel-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.social-channel-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf5;
}

.social-channel-card.ready {
  border-color: rgba(18, 124, 119, 0.22);
  background: rgba(18, 124, 119, 0.07);
}

.social-channel-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.social-channel-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.social-channel-card.missing .social-channel-icon {
  background: #8a918d;
}

.social-channel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.social-env-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.social-env-list code {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

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

.social-post-card {
  display: grid;
  gap: 12px;
}

.social-result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.social-result-tag {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(18, 124, 119, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.social-result-tag.result-failed {
  color: #a8332a;
  background: rgba(168, 51, 42, 0.09);
}

.social-result-tag.result-not-configured {
  color: var(--gold-deep);
  background: rgba(212, 159, 35, 0.12);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.admin-detail-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.admin-customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.admin-customer-table-card {
  min-width: 0;
}

.admin-table-total {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(18, 124, 119, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal);
  background: rgba(18, 124, 119, 0.08);
  font-size: 0.88rem;
  white-space: nowrap;
}

.admin-customer-tools {
  margin-bottom: 14px;
}

.admin-customer-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.admin-customer-search label {
  margin-bottom: 0;
}

.customer-table-wrap {
  border-radius: 8px;
}

.customer-table {
  min-width: 1180px;
}

.customer-table tbody tr.selected td {
  background: #eef7f4;
}

.customer-table td {
  color: var(--ink);
}

.customer-cell-main {
  display: grid;
  gap: 5px;
  min-width: 220px;
}

.customer-cell-main strong {
  font-size: 0.98rem;
}

.customer-cell-main span,
.customer-subtext {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.customer-cell-main code {
  width: fit-content;
  color: var(--teal);
  font-size: 0.74rem;
}

.customer-subtext {
  display: block;
  margin-top: 4px;
}

.customer-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 170px;
}

.customer-chip-list .status-pill {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.admin-customer-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.admin-customer-pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-customer-pagination p strong {
  color: var(--ink);
}

.admin-customer-pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.admin-customer-pagination span,
.admin-customer-pagination a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: #fbfaf5;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-customer-pagination span.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.admin-customer-edit-card {
  position: sticky;
  top: 96px;
}

.admin-inline-user-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-inline-user-form label {
  margin-bottom: 0;
}

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

.admin-order-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.38fr);
}

.admin-order-layout.is-table-only {
  grid-template-columns: 1fr;
}

.order-table {
  min-width: 1380px;
}

.order-cell-main,
.order-payment-cell {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.order-row-value {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.order-cell-main span:not(.order-row-value),
.order-payment-cell span:not(.order-row-value) {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-cell-main code {
  width: fit-content;
  color: var(--teal);
  font-size: 0.74rem;
}

.order-cell-main em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold-deep);
  background: rgba(244, 209, 116, 0.2);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.order-payment-cell {
  min-width: 250px;
}

.admin-license-layout {
  grid-template-columns: 1fr;
}

.admin-license-layout.is-table-only {
  grid-template-columns: 1fr;
}

.license-table {
  min-width: 1080px;
}

.license-cell-main {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.license-row-value {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
}

.license-cell-main span:not(.license-row-value) {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.license-cell-main code {
  width: fit-content;
  color: var(--teal);
  font-size: 0.74rem;
}

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

.admin-license-detail-card .admin-inline-form {
  grid-template-columns: minmax(180px, 0.35fr) minmax(140px, 0.22fr) auto;
  max-width: 760px;
}

.admin-license-detail-card .account-edit-row {
  grid-template-columns: minmax(190px, 0.32fr) minmax(240px, 0.4fr) auto;
  max-width: 920px;
}

.admin-license-detail-card {
  position: static;
}

.admin-license-detail-card .admin-card-heading {
  align-items: flex-start;
}

.admin-license-detail-card .admin-card-heading h2 {
  max-width: 760px;
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.08;
}

.license-detail-key {
  display: inline-flex;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  color: var(--teal);
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.account-date-meta {
  display: grid;
  gap: 4px;
  min-height: 48px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.account-date-meta span,
.account-date-meta em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.account-date-meta strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.license-order-panel {
  margin-top: 14px;
}

.admin-order-detail-card .admin-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-panel {
  padding: 14px;
  border: 1px solid rgba(18, 124, 119, 0.15);
  border-radius: 8px;
  background: #eef7f4;
}

.evidence-panel p {
  margin: 6px 0 12px;
  font-size: 0.92rem;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-inline-form,
.account-edit-row,
.admin-form-grid {
  display: grid;
  gap: 12px;
}

.admin-inline-form {
  grid-template-columns: minmax(160px, 0.7fr) minmax(130px, 0.4fr) auto;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.admin-inline-form .notice,
.account-edit-row .notice {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-subrecords {
  display: grid;
  gap: 10px;
}

.admin-subrecords h4 {
  margin: 0;
}

.account-edit-row {
  grid-template-columns: minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-edit-row label,
.admin-inline-form label {
  margin-bottom: 0;
}

.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost.danger {
  color: #a8332a;
  border-color: rgba(168, 51, 42, 0.28);
  background: #fff4ef;
}

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

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

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

.community-shell {
  padding: clamp(48px, 7vw, 86px) var(--container-inline);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 20px;
  align-items: start;
}

.community-thread {
  min-width: 0;
}

.community-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.community-toolbar h2 {
  margin-bottom: 0;
}

.community-toolbar span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.message-list {
  display: grid;
  gap: 12px;
}

.community-message,
.community-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.message-meta strong {
  color: var(--ink);
}

.message-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.message-body {
  margin-bottom: 0;
  white-space: normal;
}

.community-image,
.admin-message-image {
  display: block;
  width: min(520px, 100%);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.community-side {
  display: grid;
  gap: 16px;
}

.community-composer textarea {
  min-height: 150px;
  resize: vertical;
}

.community-rules ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.reviews-shell {
  padding: clamp(34px, 5vw, 58px) clamp(20px, 6vw, 72px) clamp(58px, 8vw, 96px);
  background:
    linear-gradient(180deg, #eef3ee 0%, var(--paper) 36%, var(--paper) 100%);
}

.reviews-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 12%, rgba(242, 212, 123, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(17, 23, 21, 0.98), rgba(18, 124, 119, 0.82)),
    url("/assets/airoquad-gold-hero.png") center / cover no-repeat;
  box-shadow: 0 22px 54px rgba(17, 23, 21, 0.16);
}

.reviews-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.reviews-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
}

.reviews-hero .eyebrow {
  color: var(--gold);
}

.reviews-hero .ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.reviews-hero-score {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.reviews-hero-score span {
  color: #f2d47b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reviews-hero-score strong {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.reviews-hero-score p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 20px;
  align-items: start;
}

.review-thread,
.review-side {
  min-width: 0;
}

.review-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.review-summary article,
.review-breakdown-panel,
.review-card,
.review-empty,
.review-form-panel,
.review-rules {
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.review-summary article {
  padding: 20px;
}

.review-summary span,
.review-meta span,
.review-product {
  color: #64748b;
  font-size: 0.88rem;
}

.review-summary strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.review-breakdown-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  padding: 22px;
}

.review-breakdown-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.review-breakdown {
  display: grid;
  gap: 10px;
}

.review-breakdown-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.review-breakdown-row span,
.review-breakdown-row strong {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
}

.review-breakdown-row strong {
  text-align: right;
}

.review-breakdown-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.review-breakdown-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #70c4bd);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.review-pagination p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
}

.review-pagination p strong {
  color: var(--ink);
}

.review-pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.review-pagination a,
.review-pagination span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 0 11px;
  color: #475569;
  background: #fffdf7;
  font-size: 0.86rem;
  font-weight: 900;
}

.review-pagination a:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.review-pagination span {
  color: #94a3b8;
  background: #f8fafc;
}

.review-pagination .active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 10px 20px rgba(18, 124, 119, 0.18);
}

.review-pagination .ellipsis {
  min-width: 28px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.review-card,
.review-empty {
  padding: clamp(22px, 3vw, 30px);
}

.review-card {
  border-left: 4px solid rgba(18, 124, 119, 0.52);
}

.review-card-top,
.review-card-top > div,
.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-card-top {
  justify-content: space-between;
  margin-bottom: 18px;
}

.review-rating,
.verified-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.review-rating {
  color: var(--charcoal);
  background: #f2d47b;
}

.verified-badge {
  color: var(--teal);
  border: 1px solid rgba(18, 124, 119, 0.2);
  background: rgba(18, 124, 119, 0.08);
}

.review-card h3,
.review-empty h2,
.review-form-panel h2,
.review-rules h2 {
  margin-bottom: 10px;
}

.review-card h3 {
  max-width: 760px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.12;
}

.review-card p,
.review-empty p,
.review-form-panel p {
  color: var(--muted);
}

.review-card > p {
  max-width: 880px;
  margin-bottom: 0;
}

.review-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e6ebf2;
}

.review-meta strong {
  color: var(--ink);
}

.review-empty {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 210px;
}

.review-empty .brand-mark {
  width: 52px;
  height: 52px;
}

.review-form-panel,
.review-rules {
  padding: 22px;
}

.review-form-panel {
  border-top: 4px solid var(--teal);
}

.review-form-panel textarea {
  min-height: 170px;
  resize: vertical;
}

.review-rules ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  padding: clamp(44px, 6vw, 72px) var(--container-inline) 24px;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(17, 23, 21, 0.98), rgba(24, 48, 45, 0.98)),
    url("/assets/airoquad-gold-hero.png") center / cover no-repeat;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-brand-block {
  display: grid;
  gap: 18px;
  max-width: 420px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
}

.footer-brand-block p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-address {
  display: grid;
  gap: 5px;
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-address strong {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.footer-column {
  display: grid;
  gap: 11px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  font-weight: 700;
}

.footer-column a:hover {
  color: #f2d47b;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 13px 0 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-social a:hover {
  border-color: rgba(242, 212, 123, 0.44);
  background: rgba(255, 255, 255, 0.11);
}

.social-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.footer-social a[data-social="facebook"] .social-icon {
  background: #1877f2;
}

.footer-social a[data-social="telegram"] .social-icon {
  background: #229ed9;
}

.footer-social a[data-social="twitter"] .social-icon {
  background: #050505;
}

.footer-risk {
  max-width: 1320px;
  margin: clamp(28px, 5vw, 54px) auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.footer-risk strong {
  display: block;
  margin-bottom: 8px;
  color: #f2d47b;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-risk p {
  max-width: 1180px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  max-width: 1320px;
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 700;
}

.loading-screen {
  display: grid;
  min-height: 60vh;
  place-items: center;
  align-content: center;
  gap: 14px;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.menu-open .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding-top: 8px;
  }

  .site-header.menu-open .main-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    font-weight: 800;
  }

  .site-header.menu-open .header-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 2px;
  }

  .feature-grid,
  .feature-grid.three,
  .gold-feature-grid,
  .timeline,
  .stat-grid,
  .setup-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-band,
  .two-column,
  .product-card-large,
  .sales-hero,
  .customer-portal-hero,
  .portal-setup-hero,
  .portal-setup-requirements,
  .portal-risk-panel,
  .historical-graph-grid,
  .hero-content,
  .portal-workspace,
  .portal-console,
  .admin-console,
  .admin-overview-grid,
  .admin-product-layout,
  .social-admin-layout,
  .social-composer-grid,
  .social-post-list,
  .admin-customer-layout,
  .dashboard-hero-grid,
  .dashboard-hero-card,
  .dashboard-insight-grid,
  .auth-layout,
  .portal-grid,
  .admin-grid,
  .test-checkout-grid,
  .community-layout,
  .review-layout,
  .reviews-hero,
  .review-breakdown-panel,
  .disclosure-layout,
  .gold-system-grid,
  .gold-info-grid,
  .term-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .demo-access-card,
  .demo-license-chip {
    grid-template-columns: 1fr;
  }

  .demo-access-actions {
    justify-content: flex-start;
  }

  .hero-main,
  .hero-details {
    max-width: 760px;
  }

  .hero-details {
    justify-self: start;
  }

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

  .footer-brand-block {
    max-width: none;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-customer-edit-card {
    position: static;
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
  }

  .review-side {
    position: static;
  }

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

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

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

  .admin-record-grid,
  .admin-detail-grid,
  .admin-order-detail-card .admin-detail-grid,
  .customer-edit-stats,
  .admin-inline-form,
  .account-edit-row,
  .customer-license-grid,
  .portal-account-grid,
  .portal-account-details,
  .broker-grid,
  .historical-grid,
  .historical-summary-grid,
  .dashboard-hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .portal-side-column {
    position: static;
  }

  .portal-console .detailed-setup > .section-heading {
    grid-template-columns: 1fr;
  }

  .disclosure-points article {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .auth-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-logo {
    width: 146px;
  }

  .site-header.menu-open .main-nav {
    grid-template-columns: 1fr;
  }

  .site-header.menu-open .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header.menu-open .user-pill {
    max-width: none;
  }

  .customer-portal {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 760px;
    align-items: flex-start;
    padding-top: 78px;
    background:
      linear-gradient(180deg, rgba(10, 14, 13, 0.95) 0%, rgba(10, 14, 13, 0.78) 48%, rgba(10, 14, 13, 0.34) 100%),
      url("/assets/airoquad-gold-hero.png") center bottom / cover no-repeat;
  }

  .page-hero {
    min-height: 430px;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(17, 23, 21, 0.96) 0%, rgba(17, 23, 21, 0.82) 54%, rgba(17, 23, 21, 0.54) 100%),
      url("/assets/airoquad-gold-hero.png") center bottom / cover no-repeat;
  }

  h1 {
    font-size: 3rem;
  }

  .feature-grid,
  .timeline,
  .hero-proof-grid,
  .stat-grid,
  .portal-metric-grid,
  .customer-license-grid,
  .portal-account-grid,
  .portal-account-details,
  .admin-metrics,
  .admin-form-grid,
  .admin-customer-search,
  .admin-checkbox-grid,
  .social-destination-grid,
  .social-channel-head,
  .dashboard-insight-grid,
  .portal-dashboard-grid,
  .portal-setup-requirements,
  .broker-grid,
  .historical-grid,
  .historical-summary-grid,
  .historical-graph-grid,
  .myfxbook-version-list,
  .gold-feature-grid,
  .gold-system-grid,
  .gold-info-grid,
  .contact-grid,
  .contact-confirmation,
  .setup-guide,
  .setup-step,
  .portal-setup-hero,
  .portal-setup-step,
  .portal-risk-panel,
  .sales-detail-grid,
  .requirement-grid,
  .review-summary,
  .review-empty,
  .auth-panels {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 18px;
  }

  .portal-content {
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .portal-sidebar nav {
    grid-template-columns: 1fr;
  }

  .admin-license-detail-card .admin-inline-form,
  .admin-license-detail-card .account-edit-row,
  .license-detail-stats {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .portal-topbar {
    flex-direction: column;
  }

  .historical-panel-head,
  .historical-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-heading,
  .admin-record-head {
    flex-direction: column;
  }

  .account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-activity-list article {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .dashboard-activity-list time {
    grid-column: 2;
    white-space: normal;
  }

  .step-number {
    width: 48px;
    height: 48px;
  }

  .timeline article {
    min-height: 190px;
  }

  .timeline span {
    margin-bottom: 24px;
  }

  .button,
  .ghost {
    width: 100%;
  }

  .admin-customer-pagination .ghost {
    width: auto;
  }

  .review-pagination {
    align-items: stretch;
    padding: 12px;
  }

  .review-pagination div {
    justify-content: flex-start;
    width: 100%;
  }

  .review-pagination a,
  .review-pagination span {
    flex: 1 0 auto;
    min-width: 42px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .portal-card-actions,
  .portal-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .disclosure-points article {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
