:root {
  --bg-1: #04111d;
  --bg-2: #071a2a;
  --panel: rgba(11, 35, 53, 0.82);
  --panel-strong: rgba(10, 32, 49, 0.94);
  --line: rgba(133, 218, 247, 0.25);
  --text: #eff9ff;
  --muted: #b7d3e3;
  --brand: #4ce3ff;
  --accent: #63ffb6;
  --ink: #041526;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(86, 228, 255, 0.17), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(92, 255, 181, 0.13), transparent 22%),
    linear-gradient(156deg, var(--bg-1) 0%, var(--bg-2) 45%, #092235 100%);
  background-position: 0 0, 0 0, 0 0;
  animation: pageAtmosphere 24s ease-in-out infinite;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e8fff5;
  color: #04263f;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 10px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(99, 255, 182, 0.95);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(137, 215, 243, 0.16);
  backdrop-filter: blur(10px);
  background: rgba(3, 16, 27, 0.74);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.portal-header-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(95deg, var(--accent), var(--brand));
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(153, 228, 255, 0.3);
  background: linear-gradient(145deg, rgba(14, 50, 74, 0.84), rgba(8, 24, 39, 0.96));
  box-shadow: inset 0 0 0 1px rgba(187, 239, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand-svg {
  width: 24px;
  height: 24px;
}

.brand .shield {
  fill: url(#brandShieldGradientPortal);
  stroke: rgba(232, 249, 255, 0.72);
  stroke-width: 1.1;
}

.brand .eye {
  fill: none;
  stroke: #f4fcff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand .pupil {
  fill: #62ffc4;
}

.portal-nav {
  display: inline-flex;
  gap: 14px;
}

.portal-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 180ms ease;
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.portal-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(95deg, var(--accent), var(--brand));
  transition: transform 220ms ease;
}

.portal-nav a:hover::after,
.portal-nav a:focus-visible::after {
  transform: scaleX(1);
}

.portal-main {
  padding: 26px 0 90px;
  display: grid;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 216, 244, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.auth-card {
  padding: 18px;
  max-width: 720px;
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  border: 1px solid rgba(132, 212, 239, 0.32);
  border-radius: 999px;
  background: rgba(10, 35, 54, 0.58);
  color: var(--text);
  font: inherit;
  padding: 8px 14px;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--ink);
  background: linear-gradient(95deg, var(--accent), var(--brand));
}

.auth-form {
  display: none;
  gap: 8px;
}

.auth-form.active {
  display: grid;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

label {
  margin-top: 4px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(151, 223, 249, 0.34);
  color: var(--text);
  font: inherit;
  background: rgba(5, 20, 33, 0.82);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #5be3ff;
  box-shadow: 0 0 0 3px rgba(91, 227, 255, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  top: -130%;
  bottom: -130%;
  left: -120%;
  width: 40%;
  pointer-events: none;
  transform: rotate(16deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: left 650ms ease, opacity 220ms ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 135%;
  opacity: 0.95;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(95deg, var(--accent), var(--brand));
}

.btn-ghost {
  border-color: rgba(132, 212, 239, 0.32);
  background: rgba(10, 35, 54, 0.58);
}

.note {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: #9ad9f1;
}

.note.success {
  color: #83ffc9;
}

.note.error {
  color: #ff9cb0;
}

.note.pending {
  color: #8bdfff;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none;
}

.app-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.team-activity-grid {
  grid-template-columns: minmax(290px, 0.88fr) minmax(430px, 1.36fr);
  align-items: start;
}

.team-activity-grid > .panel {
  align-content: start;
  height: auto;
}

.panel {
  border-radius: 14px;
  border: 1px solid rgba(152, 226, 250, 0.24);
  background: rgba(8, 30, 46, 0.78);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.step-pill {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(76, 227, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

.onboarding-progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 214, 243, 0.28);
  background: rgba(7, 26, 40, 0.78);
  overflow: hidden;
}

.onboarding-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(95deg, var(--accent), var(--brand));
  box-shadow: 0 0 14px rgba(75, 226, 255, 0.48);
  transition: width 240ms ease;
}

.progress-caption {
  margin: 0;
  font-size: 0.85rem;
}

.next-action-card {
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(10, 34, 52, 0.68);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.action-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #87ddf7;
  font-weight: 700;
}

.next-action-card h3 {
  font-size: 1rem;
}

.step-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.step-list li.done {
  color: #7dffc8;
}

.step-list li.current {
  color: #7dd8ff;
}

.stacked {
  display: grid;
  gap: 8px;
}

.notify-intro {
  margin: 0;
}

.notify-helper {
  border-radius: 11px;
  border: 1px solid rgba(135, 218, 247, 0.22);
  background: rgba(9, 30, 47, 0.72);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.notify-helper p {
  margin: 0;
  color: #b9d9ea;
  font-size: 0.82rem;
  line-height: 1.45;
}

.notify-helper strong {
  color: #eaf8ff;
}

.notify-form {
  gap: 12px;
}

.channel-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.channel-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(10, 34, 52, 0.75);
  padding: 12px 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.channel-row:hover {
  border-color: rgba(163, 228, 251, 0.45);
  background: rgba(12, 39, 60, 0.86);
  transform: translateY(-1px);
}

.channel-row:focus-within {
  border-color: rgba(110, 237, 191, 0.68);
  box-shadow: 0 0 0 2px rgba(103, 255, 191, 0.2);
}

.channel-row:has(input:checked) {
  border-color: rgba(110, 237, 191, 0.58);
  background: rgba(10, 43, 58, 0.86);
}

.channel-row.is-selected {
  border-color: rgba(110, 237, 191, 0.58);
  background: rgba(10, 43, 58, 0.86);
}

.channel-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.channel-check input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.channel-check-ui {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.8px solid rgba(151, 214, 238, 0.5);
  background: rgba(7, 25, 39, 0.8);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.channel-check-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #032538;
  border-bottom: 2px solid #032538;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.channel-row.is-selected .channel-check-ui,
.channel-row:has(input:checked) .channel-check-ui {
  border-color: rgba(115, 252, 193, 0.95);
  background: linear-gradient(138deg, #70f4be 0%, #5ce4ff 100%);
}

.channel-row.is-selected .channel-check-ui::after,
.channel-row:has(input:checked) .channel-check-ui::after {
  transform: rotate(-45deg) scale(1);
}

.channel-copy {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.channel-copy strong {
  color: #e5f7ff;
  font-size: 0.94rem;
  line-height: 1.2;
}

.channel-copy span {
  color: #b6d4e5;
  font-size: 0.83rem;
  line-height: 1.45;
}

.channel-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 23px;
  border-radius: 999px;
  border: 1px solid rgba(139, 205, 231, 0.4);
  color: #9bc4da;
  background: rgba(8, 28, 43, 0.78);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.channel-row.is-selected .channel-state,
.channel-row:has(input:checked) .channel-state {
  border-color: rgba(110, 237, 191, 0.7);
  color: #9af7cb;
  background: rgba(12, 54, 48, 0.78);
}

.channel-input-wrap {
  display: none;
  gap: 6px;
  padding-left: 34px;
  margin-top: -1px;
}

.channel-input-wrap.is-active {
  display: grid;
}

.channel-input-label {
  margin: 0;
  font-size: 0.78rem;
  color: #9dc9dd;
  font-weight: 700;
}

.notify-tip {
  margin: 0;
  font-size: 0.82rem;
  color: #9dc9dd;
}

.verification-box {
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(10, 34, 52, 0.68);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.verification-states {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.state-pill.pending {
  color: #8bdfff;
  background: rgba(83, 194, 236, 0.16);
}

.state-pill.verified {
  color: #8ff5c6;
  background: rgba(87, 203, 157, 0.16);
}

.state-pill.failed {
  color: #ff9cb0;
  background: rgba(217, 110, 133, 0.2);
}

.status {
  margin: 0;
  font-weight: 700;
}

.status.pending {
  color: #8bdfff;
}

.status.verified {
  color: #8ff5c6;
}

.status.failed {
  color: #ff9cb0;
}

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mfa-qr-shell {
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(7, 27, 43, 0.82);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.mfa-qr-label {
  margin: 0;
  font-size: 0.86rem;
  color: #b9d8e8;
}

#mfa-qr-image {
  border-radius: 8px;
  border: 1px solid rgba(143, 217, 243, 0.26);
  background: #ffffff;
  padding: 6px;
  width: 196px;
  height: 196px;
  max-width: 100%;
  object-fit: contain;
}

.mfa-qr-note {
  margin: 0;
  font-size: 0.82rem;
}

.billing-panel {
  display: grid;
  gap: 12px;
  animation: billingEnter 520ms ease both;
}

.billing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.billing-subtext {
  margin: 2px 0 0;
  font-size: 0.86rem;
}

.billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(144, 208, 235, 0.4);
  background: rgba(8, 30, 45, 0.74);
  color: #9ec9de;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-badge.active,
.billing-badge.trialing,
.billing-badge.paid {
  color: #9df8cc;
  border-color: rgba(112, 239, 187, 0.62);
  background: rgba(13, 58, 52, 0.72);
}

.billing-badge.pending,
.billing-badge.open {
  color: #98dcff;
  border-color: rgba(125, 205, 241, 0.6);
  background: rgba(11, 43, 64, 0.7);
}

.billing-badge.overdue,
.billing-badge.past_due,
.billing-badge.failed,
.billing-badge.uncollectible,
.billing-badge.canceled {
  color: #ffb0bc;
  border-color: rgba(244, 130, 153, 0.62);
  background: rgba(66, 20, 36, 0.78);
}

.billing-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-overview-item {
  border-radius: 12px;
  border: 1px solid rgba(137, 215, 243, 0.26);
  background: rgba(9, 31, 48, 0.72);
  padding: 11px 12px;
  min-height: 84px;
}

.billing-overview-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fcbe5;
  font-weight: 700;
}

.billing-current-text,
.billing-renewal-text {
  margin: 7px 0 0;
  color: #e8f7ff;
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.plan-card {
  border: 1px solid rgba(136, 215, 243, 0.32);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(10, 36, 54, 0.9), rgba(6, 24, 38, 0.94));
  color: var(--text);
  text-align: left;
  padding: 11px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.plan-card:hover,
.plan-card:focus-visible {
  border-color: rgba(171, 235, 255, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
}

.plan-card.is-active {
  border-color: rgba(116, 241, 195, 0.78);
  box-shadow: 0 0 0 2px rgba(90, 224, 180, 0.2), 0 12px 20px rgba(0, 0, 0, 0.3);
}

.plan-card.is-selected {
  border-color: rgba(132, 222, 252, 0.76);
  box-shadow: 0 0 0 2px rgba(124, 208, 243, 0.2), 0 10px 18px rgba(0, 0, 0, 0.26);
}

.plan-card.is-active .plan-card-name::after {
  content: "Current";
  margin-left: 8px;
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 999px;
  color: #9ffad0;
  border: 1px solid rgba(114, 237, 190, 0.52);
  background: rgba(16, 58, 54, 0.72);
  vertical-align: middle;
}

.plan-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #eef9ff;
}

.plan-card-price {
  font-size: 1.08rem;
  font-weight: 800;
  color: #8af9d2;
}

.plan-card-price span {
  font-size: 0.76rem;
  color: #a8d8eb;
  margin-left: 3px;
}

.plan-card-meta {
  font-size: 0.78rem;
  color: #a9cfdf;
  line-height: 1.4;
}

.billing-tip {
  margin: 0;
  font-size: 0.82rem;
}

.billing-tools {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.billing-search-wrap {
  display: grid;
  gap: 4px;
}

.billing-search-wrap input[type="search"],
.billing-filter-wrap select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(140, 214, 240, 0.32);
  background: rgba(7, 28, 43, 0.82);
  color: var(--text);
  padding: 0 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.billing-search-wrap input[type="search"]::placeholder {
  color: #9cbfce;
}

.billing-search-wrap input[type="search"]:focus,
.billing-filter-wrap select:focus {
  border-color: rgba(111, 236, 190, 0.68);
  box-shadow: 0 0 0 2px rgba(99, 255, 182, 0.18);
}

.billing-filter-wrap {
  display: grid;
  gap: 4px;
}

.billing-filter-wrap label {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8ecbe6;
  font-weight: 700;
}

.invoice-summary {
  margin: 0;
  font-size: 0.81rem;
}

.billing-table-wrap {
  border: 1px solid rgba(133, 213, 241, 0.24);
  border-radius: 12px;
  background: rgba(8, 30, 46, 0.7);
  max-height: 345px;
  overflow-y: auto;
  overflow-x: auto;
}

.billing-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fd4ea;
  padding-top: 10px;
  padding-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 30, 46, 0.95);
}

.billing-table tbody tr:nth-child(even) td {
  background: rgba(9, 32, 49, 0.45);
}

.billing-table td {
  vertical-align: middle;
}

.invoice-row {
  animation: invoiceFadeIn 280ms ease both;
}

.invoice-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(142, 211, 237, 0.4);
  color: #9ecce0;
  background: rgba(9, 33, 51, 0.7);
}

.invoice-status-badge.active,
.invoice-status-badge.paid {
  color: #93f8c7;
  border-color: rgba(113, 241, 193, 0.58);
  background: rgba(13, 60, 53, 0.72);
}

.invoice-status-badge.open,
.invoice-status-badge.pending,
.invoice-status-badge.trialing {
  color: #97deff;
  border-color: rgba(123, 204, 243, 0.56);
  background: rgba(10, 45, 68, 0.72);
}

.invoice-status-badge.overdue,
.invoice-status-badge.failed,
.invoice-status-badge.past_due,
.invoice-status-badge.uncollectible,
.invoice-status-badge.canceled {
  color: #ffafba;
  border-color: rgba(243, 125, 150, 0.58);
  background: rgba(67, 20, 37, 0.78);
}

.invoice-amount {
  font-weight: 700;
  color: #ddf4ff;
}

.invoice-action-btn {
  border: 1px solid rgba(132, 214, 242, 0.36);
  background: rgba(10, 34, 52, 0.82);
  color: #dff4ff;
  border-radius: 8px;
  height: 31px;
  padding: 0 10px;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.invoice-action-btn:hover,
.invoice-action-btn:focus-visible {
  border-color: rgba(171, 235, 255, 0.62);
  background: rgba(13, 42, 64, 0.9);
  transform: translateY(-1px);
}

.invoice-action-btn.disabled,
.invoice-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.invoice-empty {
  color: #a6cbdd;
  font-style: italic;
}

.analytics-note {
  margin: -2px 0 2px;
  font-size: 0.79rem;
  color: #93bfd4;
}

.analytics-list li {
  padding: 10px 11px;
}

.analytics-list li strong {
  display: block;
  color: #e6f6ff;
  margin-bottom: 3px;
}

.analytics-list li span {
  color: #b4d2e3;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-refresh-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.refresh-stamp {
  margin: 0;
  font-size: 0.86rem;
}

.refresh-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.refresh-controls label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.refresh-controls select {
  min-width: 130px;
  width: auto;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(151, 223, 249, 0.34);
  background: rgba(5, 20, 33, 0.82);
  color: var(--text);
}

.status-guide {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #a7c8da;
}

.remediation-panel {
  border-radius: 12px;
  border: 1px solid rgba(129, 214, 243, 0.3);
  background: linear-gradient(165deg, rgba(9, 36, 55, 0.9), rgba(6, 26, 41, 0.93));
  padding: 12px;
  display: grid;
  gap: 8px;
}

.remediation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.remediation-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #d2e6f2;
}

.remediation-steps li {
  line-height: 1.45;
}

.alert-next-step {
  color: #8ceac6;
  font-size: 0.78rem;
}

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

.metric {
  border-radius: 12px;
  border: 1px solid rgba(152, 226, 250, 0.24);
  background: rgba(8, 30, 46, 0.82);
  padding: 12px;
}

.metric p {
  margin: 0;
  color: #9cc6d9;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric h3 {
  margin-top: 4px;
  font-size: 1.55rem;
}

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

.ops-card {
  border-radius: 12px;
  border: 1px solid rgba(152, 226, 250, 0.24);
  background: rgba(8, 30, 46, 0.82);
  padding: 12px;
}

.ops-card p {
  margin: 0;
  color: #9cc6d9;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-card h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
}

.ops-card span {
  color: #b6d4e5;
  font-size: 0.86rem;
  line-height: 1.5;
}

.state-pending {
  color: #8bdfff;
}

.state-verified {
  color: #8ff5c6;
}

.state-failed {
  color: #ff9cb0;
}

.dashboard-actions {
  margin-top: 2px;
}

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

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.item-list li {
  border-radius: 10px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(10, 34, 52, 0.85);
  padding: 9px;
  color: #c8dfeb;
  font-size: 0.9rem;
}

.support-assistant {
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(10, 34, 52, 0.78);
  padding: 12px;
  display: grid;
  gap: 9px;
}

.activity-panel {
  gap: 9px;
}

.support-assistant-wide {
  margin-inline: -10px;
  padding: 12px 16px;
}

.support-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-chat-shell {
  max-height: 340px;
  min-height: 180px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(143, 217, 243, 0.24);
  background: rgba(6, 24, 38, 0.92);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.chat-bubble {
  border-radius: 10px;
  border: 1px solid rgba(143, 217, 243, 0.2);
  padding: 9px;
  font-size: 0.9rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.chat-bubble.user {
  justify-self: end;
  width: min(97%, 760px);
  background: rgba(76, 227, 255, 0.16);
  border-color: rgba(101, 219, 255, 0.38);
}

.chat-bubble.assistant {
  justify-self: start;
  width: min(97%, 760px);
  background: rgba(99, 255, 182, 0.1);
  border-color: rgba(118, 237, 190, 0.34);
}

.chat-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #90d7f4;
}

.chat-bubble-meta {
  color: #abc8d9;
  font-size: 0.72rem;
}

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

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

th,
td {
  border-bottom: 1px solid rgba(143, 217, 243, 0.2);
  text-align: left;
  padding: 8px;
  font-size: 0.88rem;
}

.role-select {
  min-width: 110px;
}

.team-panel {
  gap: 8px;
  padding: 12px;
}

.team-panel h2 {
  margin-bottom: 2px;
}

.team-panel-intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.42;
}

.team-invite-form {
  grid-template-columns: 1.05fr 1.25fr minmax(118px, 0.7fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.team-invite-form input,
.team-invite-form select {
  margin: 0;
  min-height: 38px;
  padding: 9px 10px;
}

.team-invite-btn {
  align-self: center;
  height: 38px;
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.team-note {
  margin-top: 2px;
}

.team-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 243, 0.22);
  background: rgba(7, 26, 40, 0.76);
  overflow: hidden;
}

.team-table {
  table-layout: fixed;
}

.team-table th {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd4ef;
  font-weight: 700;
}

.team-table th,
.team-table td {
  padding: 9px 10px;
  vertical-align: middle;
}

.team-table td:nth-child(1) {
  font-weight: 600;
}

.team-table td:nth-child(2) {
  color: #b6d4e5;
  font-size: 0.84rem;
  word-break: break-word;
}

.team-table td:nth-child(3),
.team-table td:nth-child(4) {
  width: 132px;
}

.team-table tbody tr:hover td {
  background: rgba(12, 39, 58, 0.62);
}

.team-table .role-select {
  min-width: 0;
  width: 100%;
  margin: 0;
  min-height: 36px;
  padding: 8px 9px;
  font-size: 0.84rem;
}

.team-table .save-role {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.team-table td[colspan] {
  text-align: center;
  color: #9fc7da;
}

.portal-footer {
  border-top: 1px solid rgba(136, 219, 248, 0.2);
  background: rgba(3, 16, 27, 0.84);
  padding: 20px 0 28px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes pageAtmosphere {
  0%,
  100% {
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 10px -8px, -8px 10px, 0 0;
  }
}

@keyframes billingEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes invoiceFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .grid.two,
  .metrics-grid,
  .ops-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .refresh-controls {
    width: 100%;
    justify-content: space-between;
  }

  .portal-nav {
    display: none;
  }

  .dashboard-actions .btn {
    width: 100%;
  }

  .billing-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-overview,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .billing-tools {
    grid-template-columns: 1fr;
  }

  .billing-tools .btn {
    width: 100%;
  }

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

  .support-assistant-wide {
    margin-inline: 0;
    padding: 12px;
  }

  .team-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .team-invite-form {
    grid-template-columns: 1fr;
  }

  .team-invite-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
