:root {
  --bg: #06111d;
  --bg-deep: #040c15;
  --panel: #0d1a28;
  --panel-2: #112235;
  --panel-3: #142940;
  --line: #26384b;
  --line-bright: #38536d;
  --text: #f4f8fb;
  --muted: #9eb0c3;
  --cyan: #45d5ea;
  --cyan-soft: #9aeaf4;
  --blue: #2e6ba5;
  --teal: #176f73;
  --teal-bright: #1f8d91;
  --purple: #57417e;
  --amber: #8c641f;
  --red: #8b3040;
  --green: #1f7355;
  --page-width: 1460px;
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
a { color: #70dff1; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.topbar {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  background: #07121e;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: white;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 254px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.brand-product {
  min-height: 42px;
  border-left: 1px solid #3b5065;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  letter-spacing: .17em;
}
.brand-product b { color: var(--cyan); font-size: 13px; }
.brand-product small { color: #8ea5b9; font-size: 8px; letter-spacing: .15em; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #dce8f2; font-size: 14px; }
.nav-cta {
  background: var(--teal);
  border: 1px solid #2d9396;
  padding: 12px 17px;
  font-weight: 650;
}
.inline { display: inline; }
.link-button, .text-button {
  border: 0;
  background: none;
  color: #70dff1;
  cursor: pointer;
  padding: 0;
}
.text-button.danger { color: #ff8e99; }
.flash {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 13px 16px;
  border-left: 5px solid var(--cyan);
  background: #102235;
}
.flash.success { border-color: #42d49d; }
.flash.warning { border-color: #e4a83b; }
.flash.error { border-color: #f15d70; }
.site-main {
  width: min(1260px, calc(100% - 60px));
  margin: 0 auto;
  padding: 46px 0 80px;
  flex: 1;
}
.landing-body {
  background:
    linear-gradient(90deg, rgba(69, 213, 234, .025) 1px, transparent 1px),
    linear-gradient(rgba(69, 213, 234, .018) 1px, transparent 1px),
    linear-gradient(135deg, #06111d, #081827 52%, #06111d);
  background-size: 72px 72px, 72px 72px, auto;
}
.landing-body .site-main {
  width: 100%;
  padding: 0;
}
.landing-shell {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan);
  font-weight: 750;
  margin-bottom: 15px;
}
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
  align-items: center;
  gap: clamp(54px, 7vw, 110px);
  padding: 74px 0 70px;
}
.hero-copy { max-width: 730px; }
.hero h1, .page-head h1 {
  font-size: clamp(52px, 5.3vw, 82px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 28px;
  font-weight: 300;
}
.hero h1 span { color: var(--cyan-soft); }
.hero-lead, .page-head p {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
  color: #acbfd0;
  max-width: 700px;
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-actions { margin-top: 32px; }
.button {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  text-decoration: none;
  border-radius: 0;
}
.button:hover { text-decoration: none; filter: brightness(1.09); }
.button.large { min-height: 50px; padding: 13px 22px; }
.button.primary { background: var(--teal-bright); border-color: #37a6aa; }
.button.secondary { background: #253d55; border-color: #36536e; }
.button.disabled, .button:disabled { background: #293543; color: #7f91a2; cursor: not-allowed; }
.text-link { padding: 12px 2px; font-weight: 650; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 24px;
}
.hero-proof span { padding: 0 18px; border-left: 1px solid var(--line); }
.hero-proof span:first-child { border-left: 0; padding-left: 0; }
.hero-proof b, .hero-proof small { display: block; }
.hero-proof b { font-size: 13px; color: #e5eff7; }
.hero-proof small { font-size: 11px; color: #8298ac; margin-top: 5px; line-height: 1.35; }

.hero-preview {
  border: 1px solid var(--line-bright);
  background: #091624;
  box-shadow: 22px 22px 0 rgba(1, 8, 15, .4);
  min-width: 0;
}
.preview-titlebar {
  min-height: 52px;
  background: #122439;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 750;
  color: #dbe9f3;
}
.preview-titlebar span { display: flex; align-items: center; gap: 9px; }
.preview-titlebar i, .preview-status i {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #50d99e;
  box-shadow: 0 0 12px rgba(80, 217, 158, .5);
}
.preview-titlebar small { color: #8fa5ba; letter-spacing: 0; font-size: 12px; }

.test-preview-titlebar {
  background: #312812;
  border-bottom-color: #67582b;
}
.test-preview-titlebar span,
.test-preview-titlebar small { color: #ffe795; }
.test-preview-titlebar i,
.test-preview-status i {
  background: #f4c84c;
  box-shadow: 0 0 12px rgba(244, 200, 76, .45);
}
.discord-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 22px 20px;
  background: #0e1c2c;
}
.bot-avatar {
  width: 44px;
  height: 44px;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.message-author { font-size: 14px; font-weight: 700; margin: 1px 0 9px; }
.message-author time { color: #788da1; font-size: 11px; font-weight: 400; margin-left: 5px; }
.bot-badge {
  background: #5865f2;
  color: white;
  font-size: 9px;
  padding: 2px 4px;
  margin-left: 4px;
}
.warning-embed {
  border-left: 5px solid #ee465a;
  background: #131f2e;
  padding: 18px 18px 14px;
}

.test-warning-embed { border-left-color: #f4c84c; }
.test-alert-banner {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 12px;
  padding: 5px 9px;
  background: #f4c84c;
  color: #171300;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.test-warning-embed .warning-kicker { color: #ffe795; }
.test-warning-embed p strong { color: #fff0b5; }
.test-preview-status { background: #171a18; }
.warning-kicker { color: #ff8a99; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.warning-embed h2 { font-size: 22px; margin: 7px 0 9px; }
.warning-embed p { color: #c0cfdb; font-size: 13px; line-height: 1.55; margin: 0; }
.warning-embed dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 0;
}
.warning-embed dl div { border-top: 1px solid #2a3c4f; padding-top: 10px; }
.warning-embed dt { color: #7f96aa; font-size: 9px; letter-spacing: .14em; }
.warning-embed dd { margin: 4px 0 0; color: #e2edf5; font-size: 12px; }
.warning-embed footer { margin-top: 15px; color: #748a9e; font-size: 10px; }
.preview-status {
  min-height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a1725;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #89a0b4;
  font-size: 11px;
}
.preview-status span:first-child { display: flex; align-items: center; gap: 8px; color: #b8cad7; }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.preview-grid div {
  min-height: 94px;
  padding: 18px;
  background: #112235;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.preview-grid strong { font-size: 15px; }
.preview-grid span { color: #879eb2; font-size: 11px; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding-bottom: 80px;
}
.feature-tile { min-height: 230px; padding: 32px; position: relative; }
.feature-tile.teal { background: #0f4d54; }
.feature-tile.blue { background: #173f69; }
.feature-tile.purple { background: #3f325e; }
.feature-tile .tile-number { display: block; color: rgba(255,255,255,.65); font-size: 12px; letter-spacing: .16em; }
.feature-tile h2 { font-size: 27px; margin: 42px 0 12px; font-weight: 600; }
.feature-tile p { max-width: 390px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; font-size: 14px; }

.section { padding: 82px 0; border-top: 1px solid var(--line); }
.section-heading h2, .how-intro h2, .panel h2, .notice-card h2, .final-cta h2 {
  font-weight: 300;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}
.centered-heading { text-align: center; max-width: 850px; margin: 0 auto; }
.centered-heading p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 680px; margin: 18px auto 0; }
.plan-grid, .guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.landing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1120px; margin: 46px auto 0; }
.plan-card, .guild-card, .panel, .form-card, .notice-card, .legal {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
}
.landing-plans .plan-card { padding: 36px; position: relative; min-height: 505px; display: flex; flex-direction: column; }
.plan-card.featured { border-top: 5px solid var(--cyan); padding-top: 32px; background: #102235; }
.plan-label {
  position: absolute;
  top: -5px;
  right: 0;
  background: var(--cyan);
  color: #03121b;
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.plan-card-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.plan-card h3, .guild-card h3 { font-size: 27px; margin: 0 0 9px; }
.plan-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.price { text-align: right; min-width: 120px; }
.price span { display: block; font-size: 36px; font-weight: 300; white-space: nowrap; }
.price small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.plan-features { list-style: none; padding: 26px 0 0; margin: 28px 0 30px; border-top: 1px solid var(--line); color: #cbd9e5; line-height: 1.55; }
.plan-features li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid rgba(38,56,75,.58); }
.plan-features li::before { content: "✓"; position: absolute; left: 1px; color: var(--cyan); font-weight: 800; }
.plan-button { width: 100%; margin-top: auto; }

.how-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.how-intro p { color: var(--muted); line-height: 1.65; max-width: 520px; margin: 22px 0 28px; }
.steps { display: grid; gap: 1px; background: var(--line); }
.steps > div { background: var(--panel); padding: 19px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.steps b { color: var(--cyan); font-size: 20px; }
.modern-steps > div { min-height: 104px; grid-template-columns: 62px 1fr; padding: 22px 26px; }
.modern-steps > div:nth-child(2) { background: #10233a; }
.modern-steps > div:nth-child(3) { background: #172139; }
.modern-steps > div:nth-child(4) { background: #10292c; }
.modern-steps b { font-size: 30px; font-weight: 300; }
.modern-steps strong, .modern-steps small { display: block; }
.modern-steps strong { font-size: 17px; margin-bottom: 5px; }
.modern-steps small { color: #8ea4b7; font-size: 12px; line-height: 1.45; }

.final-cta {
  border-top: 1px solid var(--line);
  margin-bottom: 84px;
  padding: 62px;
  background: linear-gradient(90deg, #113f47 0 58%, #173252 58% 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.final-cta h2 { max-width: 760px; font-size: clamp(34px, 3.2vw, 51px); }
.final-cta .actions { flex-shrink: 0; }

/* Existing dashboard and administration views */
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 20px; }
.metric-grid > div { background: var(--panel-2); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.metric-grid strong { font-size: 20px; }
.metric-grid span { color: var(--muted); font-size: 13px; }
.metric-grid.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 24px 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.page-head h1 { font-size: 48px; margin-top: 8px; }
.back { display: block; margin-bottom: 24px; color: var(--muted); }
.guild-title { display: flex; gap: 15px; align-items: center; }
.guild-icon { width: 54px; height: 54px; background: var(--blue); display: grid; place-items: center; font-weight: 800; }
.guild-title span { color: var(--muted); }
.status-row { display: flex; gap: 8px; margin-top: 22px; }
.pill { display: inline-block; background: #26394c; padding: 5px 9px; font-size: 12px; }
.pill.ok { background: var(--green); }
.pill.warn { background: var(--amber); }
.panel { margin-top: 22px; padding: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 26px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid #1d3042; vertical-align: top; }
th { font-size: 12px; color: #91a8bd; letter-spacing: .1em; text-transform: uppercase; }
td small, td b { display: block; }
td small { color: var(--muted); margin-top: 4px; }
.row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.row-actions form { display: inline; }
.empty-cell, .empty { color: var(--muted); padding: 30px; }
.notice-card { margin: 22px 0; }
.notice-card.centered { text-align: center; max-width: 760px; margin: 80px auto; }
.form-card { max-width: 920px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-weight: 650; }
input, select, textarea { width: 100%; background: #081522; border: 1px solid #365068; color: white; padding: 12px; border-radius: 0; }
textarea { min-height: 110px; }
label small { font-weight: 400; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 20px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; background: #0a1724; border: 1px solid var(--line); padding: 15px; margin: 0; }
.check input { width: auto; }
.check b, .check small { display: block; }
.readonly-area { background: var(--teal); padding: 18px; margin-bottom: 20px; }
.readonly-area span { display: block; opacity: .7; margin-top: 4px; }
.billing-actions { display: grid; gap: 10px; }
.compact-form { display: flex; gap: 6px; }
.compact-form select { padding: 7px; width: auto; }
.compact-form button { background: var(--teal); color: white; border: 0; padding: 7px 10px; }
.legal { max-width: 850px; margin: 30px auto; line-height: 1.8; }
.legal h1 { font-size: 44px; font-weight: 300; }
.legal p { color: #c6d4df; }

.site-footer { border-top: 1px solid var(--line); background: #050e17; color: var(--muted); font-size: 12px; }
.footer-inner {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1120px) {
  .brand-logo { width: 218px; }
  .brand-product { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero-proof { grid-template-columns: 1fr; gap: 12px; }
  .hero-proof span, .hero-proof span:first-child { border-left: 0; padding: 0; }
  .final-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
  .topbar-inner, .landing-shell, .footer-inner { width: min(100% - 36px, var(--page-width)); }
  .topbar, .topbar-inner { min-height: 78px; }
  .brand-logo { width: 190px; height: 58px; }
  nav { gap: 14px; }
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 0 66px; gap: 48px; }
  .hero-copy { max-width: none; }
  .hero-preview { max-width: 680px; width: 100%; box-shadow: 14px 14px 0 rgba(1,8,15,.4); }
  .feature-band { grid-template-columns: 1fr; }
  .feature-tile { min-height: 190px; }
  .feature-tile h2 { margin-top: 28px; }
  .landing-plans { grid-template-columns: 1fr; max-width: 650px; }
  .how-section { grid-template-columns: 1fr; }
  .final-cta { padding: 42px 32px; background: #123f47; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .form-grid, .form-grid.three, .check-grid { grid-template-columns: 1fr; }
  .metric-grid.wide { grid-template-columns: repeat(2, 1fr); }
  .site-main { width: calc(100% - 36px); padding: 30px 0 60px; }
  .landing-body .site-main { width: 100%; padding: 0; }
}

@media (max-width: 620px) {
  .topbar-inner { gap: 12px; }
  .brand-logo { width: 152px; height: 50px; }
  .nav-cta { padding: 10px 12px; font-size: 12px; }
  .hero h1 { font-size: clamp(43px, 13vw, 59px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .text-link { width: 100%; text-align: center; }
  .hero-proof { margin-top: 28px; }
  .discord-message { grid-template-columns: 1fr; }
  .bot-avatar { display: none; }
  .warning-embed dl, .preview-grid { grid-template-columns: 1fr; }
  .preview-status { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 18px; }
  .feature-band { padding-bottom: 56px; }
  .feature-tile { padding: 26px; }
  .section { padding: 60px 0; }
  .landing-plans .plan-card { min-height: auto; padding: 28px 24px; }
  .plan-card-head { grid-template-columns: 1fr; }
  .price { text-align: left; }
  .modern-steps > div { grid-template-columns: 46px 1fr; padding: 18px; }
  .final-cta { margin-bottom: 56px; padding: 34px 24px; }
  .final-cta .actions, .final-cta .button { width: 100%; }
  .footer-inner { min-height: auto; padding: 24px 0; flex-direction: column; align-items: flex-start; }
}

/* v0.3.1 customer command center and Bayou Radar-owned billing */
.dashboard-head { align-items: center; }
.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 34px; background: transparent; gap: 2px; }
.metro-stat { min-height: 128px; padding: 24px !important; justify-content: flex-end; }
.metro-stat strong { font-size: 38px; font-weight: 300; }
.metro-stat span { color: rgba(255,255,255,.78); font-size: 13px; letter-spacing: .04em; }
.navy { background: #142b46 !important; }
.teal { background: #115a61 !important; }
.blue { background: #1b4a78 !important; }
.purple { background: #49386a !important; }
.amber { background: #735321 !important; }
.red { background: #71303d !important; }
.dashboard-section-head { margin: 42px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dashboard-section-head h2 { margin: 0; font-size: 31px; font-weight: 300; }
.dashboard-section-head > span { color: var(--muted); }
.dashboard-guild-grid { margin-top: 0; }
.metro-guild-card { padding: 0; overflow: hidden; }
.metro-guild-card .guild-title { padding: 26px; }
.guild-plan-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.guild-plan-strip > div { min-height: 82px; padding: 16px; background: #112235; display: flex; flex-direction: column; justify-content: center; }
.guild-plan-strip small, .tile-kicker { color: #9fc0d5; font-size: 10px; letter-spacing: .14em; font-weight: 750; }
.guild-plan-strip b { margin-top: 7px; font-size: 13px; }
.metro-guild-card .actions { padding: 22px 26px 26px; }
.guild-renewal { margin: 0; padding: 13px 26px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.account-warning { padding: 12px 26px; background: #6f2d3b; font-size: 13px; }
.metro-guild-card.suspended { border-color: #8e4050; }

.billing-summary-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2px; margin-bottom: 24px; }
.billing-hero-tile, .billing-info-tile { min-height: 360px; padding: 32px; }
.billing-hero-tile h2, .billing-info-tile h2 { font-size: 38px; font-weight: 300; margin: 14px 0; }
.billing-status-line { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; color: rgba(255,255,255,.76); }
.billing-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.18); margin: 0; }
.billing-facts > div { padding: 18px; background: rgba(2,16,24,.25); }
.billing-facts dt { font-size: 10px; letter-spacing: .11em; color: rgba(255,255,255,.66); }
.billing-facts dd { margin: 7px 0 0; font-weight: 650; }
.billing-callout { margin-top: 20px; padding: 14px; background: rgba(0,0,0,.22); }
.billing-callout.warn { border-left: 4px solid #edb54a; }
.billing-callout.danger { border-left: 4px solid #ff7081; }
.billing-info-tile p { color: rgba(255,255,255,.76); line-height: 1.55; }
.billing-amount { display: block; font-size: 27px; margin: 20px 0; font-weight: 300; }
.billing-contact-form { margin-top: 26px; }
.billing-contact-form input { background: rgba(2,14,24,.55); }
.cancellation-card { display: flex; align-items: center; justify-content: space-between; gap: 34px; border-left: 6px solid #a44959; }
.cancellation-card h2 { font-size: 31px; }
.danger-button { background: #8b3040; border: 1px solid #ad4355; }
.billing-plan-grid { margin-top: 0; }
.billing-plan-grid .plan-card { display: flex; flex-direction: column; }
.billing-plan-grid .plan-features { flex: 1; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 28px; }
.admin-tabs a { min-width: 150px; padding: 15px 20px; background: #13263a; color: #dbe7f1; font-weight: 650; text-align: center; }
.admin-tabs a.active { background: #176f73; color: white; }
.admin-tabs a:hover { text-decoration: none; filter: brightness(1.08); }
.admin-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; margin: 0 0 24px; }
.admin-tile { min-height: 155px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.admin-tile span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.admin-tile strong { font-size: 40px; font-weight: 300; margin: 12px 0 4px; }
.admin-tile small { color: rgba(255,255,255,.66); }
.admin-command-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-bottom: 28px; }
.command-tile { min-height: 190px; padding: 28px; color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.command-tile:hover { text-decoration: none; filter: brightness(1.08); }
.command-tile span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.command-tile strong { font-size: 34px; font-weight: 300; margin: 18px 0 6px; }
.command-tile small { color: rgba(255,255,255,.72); }
.billing-readiness { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 24px; background: #102235; border-left: 6px solid #8c641f; }
.billing-readiness.ready { border-left-color: #1f8d65; }
.billing-readiness h2 { font-size: 31px; font-weight: 300; margin: 0 0 10px; }
.billing-readiness p { margin: 0; color: var(--muted); line-height: 1.6; }
.readiness-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.readiness-grid span { padding: 17px; background: #192b3d; }
.readiness-grid span.ok::before { content: "✓ "; color: #5ce0a8; }
.readiness-grid span.missing::before { content: "! "; color: #f0b44d; }
.two-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-guild-control-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 2px; margin-bottom: 24px; }
.control-tile { padding: 28px; min-height: 390px; }
.control-tile h2 { font-size: 30px; font-weight: 300; margin: 12px 0 15px; }
.control-tile p { color: rgba(255,255,255,.73); line-height: 1.55; }
.control-tile input, .control-tile select { background: rgba(2,13,22,.55); }
.compact-button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.panel-head > span { color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
  .dashboard-metrics { grid-template-columns: repeat(2,1fr); }
  .billing-summary-grid, .two-panel-grid, .billing-readiness { grid-template-columns: 1fr; }
  .admin-guild-control-grid { grid-template-columns: 1fr; }
  .control-tile { min-height: auto; }
}
@media (max-width: 760px) {
  .admin-tile-grid, .admin-command-grid { grid-template-columns: 1fr; }
  .billing-facts { grid-template-columns: 1fr; }
  .cancellation-card { align-items: flex-start; flex-direction: column; }
  .guild-plan-strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
  .admin-tabs a { flex: 1 1 45%; min-width: 0; }
}

/* v0.3.1 Bayou Radar-owned billing and Square processor forms */
.payment-profile-actions { display: grid; gap: 12px; margin: 22px 0; }
.payment-processor-note { color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
.checkout-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2px; margin-bottom: 30px; }
.checkout-summary, .payment-card-panel { min-height: 500px; padding: 34px; }
.checkout-summary h2, .payment-card-panel h2 { margin: 12px 0 20px; font-size: 38px; font-weight: 300; }
.checkout-disclosure { margin-top: 28px; color: rgba(255,255,255,.76); line-height: 1.65; }
.payment-card-panel { background: #102235; border: 1px solid #263d53; }
.payment-card-panel > p { color: var(--muted); }
.square-card-container { min-height: 96px; margin: 26px 0 18px; padding: 18px; background: white; border: 1px solid #4c647a; }
.billing-consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; padding: 17px; margin: 18px 0; background: #172d42; color: #dce8f2; line-height: 1.5; }
.billing-consent input { width: 18px; height: 18px; margin-top: 2px; }
.payment-submit { width: 100%; min-height: 52px; }
.payment-status { min-height: 48px; margin-top: 16px; padding: 14px; display: none; }
.payment-status:not(:empty) { display: block; background: #172d42; }
.payment-status.success { border-left: 4px solid #4bd498; }
.payment-status.warning { border-left: 4px solid #efb64f; }
.payment-status.error { border-left: 4px solid #ff6f82; }
.payment-status.working { border-left: 4px solid #51c4dd; }
.single-payment-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary, .payment-card-panel { min-height: auto; } }

.compact-button{padding:.5rem .75rem;font-size:.78rem}.refund-form{margin:0}
