:root {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f5f7fa;
  --bg-surface-elevated: rgba(255, 255, 255, .88);
  --text-primary: #101113;
  --text-secondary: #20242b;
  --text-muted: #7d8490;
  --border-color: #e1e5eb;
  --button-primary-bg: #121417;
  --button-primary-text: #ffffff;
  --button-primary-hover: #000000;
  --button-secondary-bg: #ffffff;
  --button-secondary-text: #121417;
  --button-secondary-border: #dfe5ec;
  --danger-bg: #ffe7e2;
  --danger-text: #8a160b;
  --danger-border: #ffd0c6;
  --input-bg: #ffffff;
  --input-text: #121417;
  --input-placeholder: #87909d;
  --focus-ring: rgba(31, 99, 255, .2);
  --success-bg: #dcf8ea;
  --success-text: #0f6842;
  --warning-bg: #fff4bf;
  --warning-text: #5d4b00;
  --info-bg: #e8f0ff;
  --info-text: #254070;
  --paper: var(--bg-page);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --muted: var(--text-muted);
  --line: var(--border-color);
  --soft: var(--bg-surface-secondary);
  --soft-2: #ebeff5;
  --blue: #1f63ff;
  --cyan: #34d7ff;
  --green: #27c27a;
  --red: #ff3f27;
  --shadow: 0 28px 80px rgba(16, 17, 19, .12);
  --font: "Bahnschrift", "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-family: var(--font);
}

:root[data-theme="dark"] {
  --bg-page: #080b10;
  --bg-surface: #101722;
  --bg-surface-secondary: #0d1420;
  --bg-surface-elevated: rgba(16, 23, 34, .94);
  --text-primary: #f6f8fb;
  --text-secondary: #e7ebf2;
  --text-muted: #aab3c0;
  --border-color: #263142;
  --button-primary-bg: #eaf2ff;
  --button-primary-text: #071018;
  --button-primary-hover: #ffffff;
  --button-secondary-bg: #0d1420;
  --button-secondary-text: #f6f8fb;
  --button-secondary-border: #334056;
  --danger-bg: #421b18;
  --danger-text: #ffd2ca;
  --danger-border: #6b312b;
  --input-bg: #0b111b;
  --input-text: #f6f8fb;
  --input-placeholder: #8f9aaa;
  --focus-ring: rgba(52, 215, 255, .26);
  --success-bg: #10291f;
  --success-text: #97f0c5;
  --warning-bg: #332a0d;
  --warning-text: #ffe690;
  --info-bg: #101f3a;
  --info-text: #b9d0ff;
  --soft-2: #172131;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.08;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
  background: var(--paper);
  transform: translate3d(0, 100%, 0);
  transition: transform 360ms cubic-bezier(.76, 0, .24, 1);
}

.page-transition.is-active {
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.cursor-orbit {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(16, 17, 19, .08);
  transform: translate(-50%, -50%);
  transition: width 160ms ease, height 160ms ease, background 160ms ease;
}

.cursor-orbit.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(16, 17, 19, .12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(16, 17, 19, .06);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
}

.brand-word {
  display: inline-block;
  white-space: nowrap;
}

.mark,
.home-symbol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.mark {
  gap: 2px;
  width: 24px;
  height: 24px;
}

.mark span,
.home-symbol span {
  background: var(--ink);
}

.mark span:nth-child(1),
.mark span:nth-child(4),
.home-symbol span:nth-child(1),
.home-symbol span:nth-child(4) {
  border-radius: 999px 0 999px 0;
}

.mark span:nth-child(2),
.mark span:nth-child(3),
.home-symbol span:nth-child(2),
.home-symbol span:nth-child(3) {
  border-radius: 0 999px 0 999px;
}

.header-center {
  justify-self: center;
  color: #444a55;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--button-secondary-border);
  border-radius: 50%;
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  box-shadow: 0 12px 28px rgba(16, 17, 19, .08);
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle::before,
.theme-toggle::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
}

:root:not([data-theme="dark"]) .theme-toggle::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--button-secondary-bg);
  transform: translate(6px, -4px);
}

:root[data-theme="dark"] .theme-toggle::before {
  width: 12px;
  height: 12px;
  box-shadow:
    0 -10px 0 -4px currentColor,
    0 10px 0 -4px currentColor,
    10px 0 0 -4px currentColor,
    -10px 0 0 -4px currentColor,
    7px 7px 0 -4px currentColor,
    -7px 7px 0 -4px currentColor,
    7px -7px 0 -4px currentColor,
    -7px -7px 0 -4px currentColor;
}

:root[data-theme="dark"] .theme-toggle::after {
  width: 0;
  height: 0;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--text-primary);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.home-minimal {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 88%, rgba(16, 17, 19, .05), transparent 30%),
    var(--paper);
}

.home-gate {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
}

.home-center {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(920px, 100%);
  text-align: center;
}

.home-symbol {
  gap: 5px;
  width: 61px;
  height: 61px;
  animation: symbol-breathe 4.6s ease-in-out infinite;
}

.home-center h1 {
  margin: 0;
  font-size: 112px;
  font-weight: 520;
  line-height: .84;
}

.home-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-actions a:first-child,
.home-actions a:hover {
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
}

.home-actions a:hover {
  transform: translateY(-2px);
}

.home-minimal .theme-toggle {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 55;
}

.auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 8% 82%, rgba(31, 99, 255, .06), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(16, 17, 19, .06), transparent 24%),
    var(--paper);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 70px;
  width: min(1380px, 100%);
  min-height: calc(100svh - 54px);
  margin: 0 auto;
  padding: 116px 24px 40px;
}

.auth-statement {
  display: grid;
  align-content: space-between;
  min-height: 560px;
}

.auth-statement > span,
.auth-panel > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-statement h1 {
  max-width: 900px;
  margin: 28px 0 0;
  font-size: 74px;
  font-weight: 520;
  line-height: .9;
}

.auth-meter {
  display: flex;
  align-items: end;
  gap: 14px;
  width: min(620px, 100%);
  height: 162px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 19, .06);
  border-radius: 8px;
  background: rgba(245, 247, 250, .86);
  box-shadow: 0 20px 55px rgba(16, 17, 19, .07);
}

.auth-meter i {
  display: block;
  width: 52px;
  height: 44px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
  animation: meter-rise 5s ease-in-out infinite;
}

.auth-meter i:nth-child(2) {
  height: 88px;
  animation-delay: 120ms;
}

.auth-meter i:nth-child(3) {
  height: 120px;
  background: var(--ink);
  animation-delay: 240ms;
}

.auth-meter i:nth-child(4) {
  height: 70px;
  background: var(--green);
  animation-delay: 360ms;
}

.auth-panel {
  align-self: center;
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(16, 17, 19, .06);
  border-radius: 8px;
  background: rgba(245, 247, 250, .94);
  box-shadow: 0 26px 70px rgba(16, 17, 19, .08);
}

.auth-panel h2 {
  margin: 8px 0 34px;
  font-size: 56px;
  font-weight: 520;
  line-height: .95;
}

.auth-panel form {
  display: grid;
  gap: 16px;
}

.auth-panel label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #545c68;
  font-size: 14px;
  font-weight: 650;
}

.auth-panel input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: var(--input-bg);
  color: var(--input-text);
}

.auth-panel input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 82px;
}

.password-field button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 62px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
}

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.submit-button:hover {
  background: var(--button-primary-hover);
  transform: translateY(-2px);
}

.flash {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.flash.error {
  color: #8a160b;
  background: #ffe7e2;
}

.flash.success {
  color: #0f6842;
  background: #dcf8ea;
}

.member-page {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 88%, rgba(16, 17, 19, .08), transparent 28%),
    #fff;
}

.member-stage {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 46px 7vw 52px;
  overflow: hidden;
}

.device-scene {
  position: relative;
  width: min(1320px, 100%);
  height: min(680px, calc(100svh - 98px));
  min-height: 560px;
}

.desktop-device {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84%;
  height: 92%;
  overflow: hidden;
  border: 1px solid #cdd3dc;
  border-radius: 32px;
  background:
    radial-gradient(circle at 52% 7%, rgba(31, 99, 255, .06), transparent 24%),
    linear-gradient(180deg, #fbfcff, #f7f8fb);
  box-shadow:
    inset 0 0 0 13px rgba(255, 255, 255, .72),
    var(--shadow);
}

.desktop-device::after {
  content: "";
  position: absolute;
  inset: 13px;
  pointer-events: none;
  border: 1px solid rgba(16, 17, 19, .05);
  border-radius: 24px;
}

.device-rail {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 27px;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 22px;
  width: 66px;
  padding: 20px;
  background: linear-gradient(180deg, #222936, #0f141e);
}

.device-rail i {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
}

.device-rail i.active {
  background:
    linear-gradient(90deg, #dbe7ff 0 38%, transparent 38% 62%, #dbe7ff 62%) 50% 50% / 12px 12px no-repeat,
    linear-gradient(#dbe7ff 0 0) 50% 50% / 12px 3px no-repeat,
    var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(31, 99, 255, .42);
}

.top-controls {
  position: absolute;
  top: 43px;
  right: 44px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-controls a:first-child {
  width: 52px;
  height: 25px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 50%, #cad1de 0 3px, transparent 4px),
    radial-gradient(circle at 66% 50%, #cad1de 0 3px, transparent 4px),
    #121722;
  box-shadow: 0 10px 20px rgba(16, 17, 19, .14);
}

.top-controls a:last-child {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 75% 23%, #ff3b22 0 3px, transparent 4px),
    linear-gradient(#aeb5c1 0 0) 50% 54% / 10px 12px no-repeat,
    #fff;
  box-shadow: 0 10px 22px rgba(16, 17, 19, .12);
}

.flow-area {
  position: absolute;
  top: 122px;
  left: 170px;
  right: 160px;
  height: 236px;
}

.flow-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(16, 17, 19, .05);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 38px rgba(16, 17, 19, .11);
}

.flow-node.globe {
  top: 46px;
  left: 0;
}

.flow-node.globe::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 3px solid #111;
  border-radius: 50%;
  background:
    linear-gradient(#111 0 0) 50% 50% / 34px 2px no-repeat,
    linear-gradient(90deg, transparent 32%, #111 32% 38%, transparent 38% 62%, #111 62% 68%, transparent 68%);
}

.flow-node.core {
  top: 43px;
  left: 232px;
  background: linear-gradient(180deg, #222a38, #10141d);
}

.flow-node.core::before {
  content: "";
  width: 36px;
  height: 36px;
  border: 2px solid #78a5ff;
  background:
    linear-gradient(30deg, transparent 38%, var(--cyan) 39% 43%, transparent 44%),
    linear-gradient(150deg, transparent 38%, #78a5ff 39% 43%, transparent 44%),
    linear-gradient(270deg, transparent 38%, #78a5ff 39% 43%, transparent 44%);
  transform: rotate(30deg);
  box-shadow: 0 0 24px rgba(52, 215, 255, .4);
}

.flow-node.shield {
  top: 47px;
  left: 446px;
}

.flow-node.shield::before {
  content: "";
  width: 42px;
  height: 48px;
  border-radius: 20px 20px 26px 26px;
  background:
    radial-gradient(circle at 50% 48%, #fff 0 5px, transparent 6px),
    linear-gradient(180deg, #82b4ff, var(--blue));
  clip-path: polygon(50% 0, 88% 14%, 81% 74%, 50% 100%, 19% 74%, 12% 14%);
  box-shadow: 0 12px 22px rgba(31, 99, 255, .24);
}

.flow-line,
.flow-dot {
  position: absolute;
  z-index: 1;
}

.flow-line {
  top: 82px;
  left: 72px;
  width: 160px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(115, 151, 211, .35) 0 5px, transparent 5px 10px);
}

.flow-line.long {
  left: 304px;
  width: 142px;
}

.flow-dot {
  top: 76px;
  left: 96px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 99, 255, .12);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

.flow-dot.blue {
  left: 360px;
  animation-delay: 420ms;
}

.flow-branches {
  position: absolute;
  top: 48px;
  left: 522px;
  width: 116px;
  height: 124px;
  border-left: 1px dashed rgba(115, 151, 211, .55);
  border-radius: 22px 0 0 22px;
}

.flow-branches::before,
.flow-branches::after,
.flow-branches i {
  content: "";
  position: absolute;
  left: 0;
  width: 74px;
  border-top: 1px dashed rgba(115, 151, 211, .55);
}

.flow-branches::before {
  top: 0;
}

.flow-branches i:nth-child(1) {
  top: 50%;
}

.flow-branches::after {
  bottom: 0;
}

.stack {
  position: absolute;
  left: 622px;
  width: 118px;
  height: 45px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 15px 32px rgba(16, 17, 19, .09);
}

.stack-a {
  top: 22px;
}

.stack-b {
  top: 82px;
}

.stack-c {
  top: 142px;
}

.stack span {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #111927;
}

.stack b {
  position: absolute;
  top: 21px;
  right: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.stack-b b {
  background: var(--red);
}

.stack-c b {
  background: var(--green);
}

.code-pill {
  position: absolute;
  top: 166px;
  left: 225px;
  width: 124px;
  height: 57px;
  padding: 14px;
  border-radius: 13px;
  background: #171d29;
  box-shadow: 0 18px 32px rgba(16, 17, 19, .14);
}

.code-pill i {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: #456dff;
}

.code-pill i:nth-child(1) {
  width: 58%;
  background: #d4d8e4;
}

.code-pill i:nth-child(2) {
  width: 82%;
}

.code-pill i:nth-child(3) {
  width: 45%;
  background: #8096ff;
}

.insight-row {
  position: absolute;
  right: 32px;
  bottom: 34px;
  left: 140px;
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 1.12fr 1.18fr;
  gap: 18px;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 19, .04);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 40px rgba(16, 17, 19, .08);
}

.chart-panel {
  background: linear-gradient(180deg, #1d2535, #101520);
}

.chart-panel span {
  position: absolute;
  top: 25px;
  left: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #70a5ff;
  box-shadow: 0 0 0 5px rgba(112, 165, 255, .14);
}

.bars {
  position: absolute;
  right: 24px;
  bottom: 38px;
  left: 28px;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 95px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bars i {
  width: 5px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #4e88ff, rgba(78, 136, 255, .18));
  animation: bar-glow 4.4s ease-in-out infinite;
}

.bars i:nth-child(1) { height: 38px; }
.bars i:nth-child(2) { height: 24px; animation-delay: 100ms; }
.bars i:nth-child(3) { height: 56px; animation-delay: 200ms; }
.bars i:nth-child(4) { height: 42px; animation-delay: 300ms; }
.bars i:nth-child(5) { height: 72px; animation-delay: 400ms; }
.bars i:nth-child(6) { height: 48px; animation-delay: 500ms; }
.bars i:nth-child(7) { height: 78px; animation-delay: 600ms; }
.bars i:nth-child(8) { height: 68px; animation-delay: 700ms; }
.bars i:nth-child(9) { height: 90px; animation-delay: 800ms; }

.cube-panel {
  display: grid;
  place-items: center;
}

.cube-panel::after {
  content: "";
  position: absolute;
  bottom: 32px;
  width: 110px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 99, 255, .13);
}

.cube {
  position: relative;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(31, 99, 255, .35);
  background: rgba(219, 231, 255, .42);
  transform: rotate(45deg) skew(-10deg, -10deg);
}

.cube::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(31, 99, 255, .42);
  border-radius: 8px;
}

.message-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
}

.message-panel i {
  display: block;
  height: 28px;
  border-radius: 9px;
  background: #dbe7ff;
}

.message-panel i:nth-child(1) {
  width: 62%;
  margin-left: 20%;
  background: linear-gradient(90deg, #5a8dff 0 40%, #bad0ff 40%);
}

.message-panel i:nth-child(2) {
  width: 76%;
  margin-left: 24%;
  background: #eef1f7;
}

.message-panel i:nth-child(3) {
  width: 70%;
  height: 26px;
  background: #fff;
}

.message-panel button {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
}

.balance-panel {
  background: #f7fbff;
}

.wave {
  position: absolute;
  top: 66px;
  right: 0;
  left: 0;
  height: 72px;
  background:
    radial-gradient(ellipse at 16% 100%, #9fc0ff 0 26%, transparent 27%),
    radial-gradient(ellipse at 44% 100%, #9fc0ff 0 26%, transparent 27%),
    radial-gradient(ellipse at 74% 100%, #9fc0ff 0 28%, transparent 29%);
  opacity: .82;
}

.balance-dark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  min-height: 78px;
  padding: 15px 18px 16px 70px;
  border-radius: 14px;
  color: #fff;
  background: #182131;
}

.balance-dark span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #4d8dff;
  border-radius: 50%;
}

.balance-dark strong {
  display: block;
  max-width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-dark small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #9ba9bf;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-dark i {
  position: absolute;
  right: 22px;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #40506b;
}

.balance-dark i:nth-of-type(1) { top: 24px; }
.balance-dark i:nth-of-type(2) { top: 42px; background: var(--green); }
.balance-dark i:nth-of-type(3) { top: 60px; background: var(--red); }

.mobile-device {
  position: absolute;
  bottom: -8px;
  left: 0;
  z-index: 8;
  width: 230px;
  height: 530px;
  padding: 22px 18px;
  border: 1px solid #cfd5dd;
  border-radius: 34px;
  background: linear-gradient(180deg, #fbfcff, #f7f8fb);
  box-shadow:
    inset 0 0 0 11px rgba(255, 255, 255, .86),
    0 24px 60px rgba(16, 17, 19, .16);
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px 20px;
}

.mobile-top i,
.mobile-top b {
  display: block;
  width: 18px;
  height: 2px;
  background: #182131;
  box-shadow: 0 7px 0 #182131;
}

.mobile-top b {
  width: 14px;
  height: 14px;
  border: 2px dashed #182131;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.mobile-hero {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 99, 255, .34), transparent 34%),
    #121722;
}

.mobile-shield {
  width: 66px;
  height: 76px;
  border-radius: 30px 30px 38px 38px;
  background:
    radial-gradient(circle at 50% 48%, #fff 0 6px, transparent 7px),
    linear-gradient(180deg, rgba(52, 215, 255, .75), rgba(31, 99, 255, .3));
  clip-path: polygon(50% 0, 88% 14%, 80% 74%, 50% 100%, 20% 74%, 12% 14%);
  box-shadow: 0 0 40px rgba(52, 215, 255, .58);
  animation: shield-float 5s ease-in-out infinite;
}

.mobile-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.mobile-list span {
  position: relative;
  display: block;
  height: 51px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 26px rgba(16, 17, 19, .07);
}

.mobile-list i {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f1f4fa;
}

.mobile-list span:first-child i {
  background: var(--blue);
}

.mobile-list b {
  position: absolute;
  top: 22px;
  left: 52px;
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: #d9dee8;
}

.mobile-list em {
  position: absolute;
  top: 22px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.mobile-list span:first-child em {
  background: var(--blue);
}

.mobile-wave {
  position: absolute;
  right: 20px;
  bottom: 28px;
  left: 20px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.mobile-wave i {
  position: absolute;
  bottom: 18px;
  width: 75px;
  height: 28px;
  border-top: 3px solid var(--blue);
  border-radius: 50%;
}

.mobile-wave i:nth-child(1) { left: 8px; }
.mobile-wave i:nth-child(2) { left: 58px; border-color: #52b7ff; }
.mobile-wave i:nth-child(3) { left: 110px; border-color: #5c55ff; }

@keyframes symbol-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes meter-rise {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .82; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes bar-glow {
  0%, 100% { opacity: .82; }
  50% { opacity: 1; }
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.app-page {
  min-height: 100svh;
  color: #121417;
  background:
    radial-gradient(circle at 12% 12%, rgba(31, 99, 255, .08), transparent 24%),
    radial-gradient(circle at 84% 88%, rgba(39, 194, 122, .08), transparent 22%),
    #f6f8fb;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100svh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 30px;
  height: 100svh;
  padding: 26px;
  color: #fff;
  background: linear-gradient(180deg, #101722, #080b10);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 750;
}

.app-brand .mark span {
  background: #fff;
}

.app-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.app-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.app-nav a:hover,
.app-nav a.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  background: #202a37;
  transform: translateX(3px);
}

.app-sidebar-foot {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.app-sidebar-foot span {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-sidebar-foot strong {
  font-size: 26px;
}

.admin-entry,
.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 750;
}

.admin-entry {
  color: #071018;
  background: #8bd9ff;
}

.logout-link {
  color: #fff;
  background: #202a37;
}

.app-main {
  min-width: 0;
  padding: 28px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin: -28px -28px 24px;
  padding: calc(18px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 16px calc(28px + env(safe-area-inset-left));
  border-bottom: 1px solid rgba(18, 20, 23, .06);
  background: rgba(246, 248, 251, .9);
  backdrop-filter: blur(18px);
}

.app-topbar span,
.panel-heading span,
.metric-card span,
.copy-box span {
  color: #717986;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-heading {
  min-width: 0;
}

.app-topbar h1 {
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 42px;
  font-weight: 760;
  line-height: .92;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.topbar-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: min(390px, 46vw);
  padding: 10px 12px;
  border: 1px solid rgba(18, 20, 23, .06);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 42px rgba(18, 20, 23, .06);
}

.topbar-user span {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  color: #121417;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.topbar-user strong {
  flex: 0 0 auto;
  font-size: 18px;
  white-space: nowrap;
}

.app-flash {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(18, 20, 23, .06);
  background: #fff;
  color: #121417;
  line-height: 1.35;
}

.app-flash.error { color: #8a160b; background: #ffe7e2; }
.app-flash.success { color: #0f6842; background: #dcf8ea; }
.app-flash.info { color: #254070; background: #e8f0ff; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.content-panel,
.payment-card,
.empty-panel {
  border: 1px solid rgba(18, 20, 23, .06);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 58px rgba(18, 20, 23, .07);
}

.metric-card {
  min-width: 0;
  min-height: 178px;
  padding: 22px;
}

.content-panel,
.payment-card,
.recharge-layout > *,
.profile-grid > *,
.api-response-grid > *,
.admin-grid > * {
  min-width: 0;
}

.metric-card strong {
  display: block;
  max-width: 100%;
  margin: 30px 0 12px;
  overflow: hidden;
  font-size: 31px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card p,
.empty-panel p,
.payment-placeholder p,
.form-note {
  margin: 0;
  color: #68717e;
  line-height: 1.45;
}

.content-panel,
.payment-card {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1;
}

.panel-action,
.filter-bar button,
.copy-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  font-weight: 750;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
}

.soft-empty {
  padding: 18px;
  border-radius: 8px;
  color: #68717e;
  background: #f4f6fa;
}

.empty-panel {
  display: grid;
  place-items: center;
  min-height: min(520px, calc(100svh - 170px));
  padding: 32px;
  text-align: center;
}

.empty-panel span,
.payment-placeholder span {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 0 38%, transparent 38% 62%, #fff 62%) 50% 50% / 24px 24px no-repeat,
    linear-gradient(#fff 0 0) 50% 50% / 24px 4px no-repeat,
    #121417;
}

.empty-panel h2,
.payment-placeholder h2 {
  margin: 22px 0 10px;
  font-size: 34px;
}

.recharge-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.recharge-form {
  display: grid;
  gap: 15px;
}

.recharge-form label,
.filter-bar {
  display: grid;
  gap: 8px;
}

.recharge-form label span {
  color: #596270;
  font-size: 13px;
  font-weight: 750;
}

.recharge-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  outline: 0;
  background: var(--input-bg);
  color: var(--input-text);
}

.recharge-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.mode-pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: #0b4d32;
  background: #dcf8ea;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.payment-card {
  min-height: 460px;
}

.payment-placeholder {
  display: grid;
  place-items: center;
  min-height: 416px;
  text-align: center;
}

.payment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.payment-head span {
  color: #717986;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-head strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: .96;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 999px;
  color: #254070;
  background: #e8f0ff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge.verified { color: #0f6842; background: #dcf8ea; }
.status-badge.live { color: #0f6842; background: #dcf8ea; }
.status-badge.die { color: #5d4b00; background: #fff4bf; }
.status-badge.error { color: #8a160b; background: #ffe7e2; }
.status-badge.expired,
.status-badge.failed,
.status-badge.fechado { color: #8a160b; background: #ffe7e2; }
.status-badge.creating { color: #5d4b00; background: #fff4bf; }
.status-badge.respondido,
.status-badge.resolvido { color: #0f6842; background: #dcf8ea; }
.status-badge.em_analise { color: #5d4b00; background: #fff4bf; }

.table-link {
  color: #121417;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  background: #fff;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-error {
  color: #68717e;
  text-align: center;
}

.payment-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.payment-meta div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7fa;
}

.payment-meta dt {
  margin-bottom: 7px;
  color: #717986;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.copy-box {
  display: grid;
  gap: 10px;
}

.copy-box textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 13px;
  overflow-wrap: anywhere;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-text);
  line-height: 1.35;
}

.check-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.recharge-list {
  display: grid;
  gap: 8px;
}

.recharge-row {
  display: grid;
  grid-template-columns: 70px 1fr auto minmax(130px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.recharge-row.is-selected {
  border-color: #121417;
}

.recharge-row small {
  color: #68717e;
  white-space: nowrap;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #6d7582;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tabs a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 11px 13px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  color: #596270;
  font-weight: 750;
}

.admin-tabs a.is-active {
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-color: var(--button-primary-bg);
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.filter-bar select {
  min-width: 150px;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-list article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.log-list code {
  overflow-wrap: anywhere;
  color: #53606f;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #596270;
  font-size: 13px;
  font-weight: 750;
}

.ghost {
  color: var(--button-secondary-text);
  border: 1px solid var(--button-secondary-border);
  background: var(--button-secondary-bg);
}

.inline-form {
  margin-top: 12px;
}

.profile-photo-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.profile-photo-card img,
.ranking-row img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}

.file-picker {
  display: grid;
  gap: 8px;
  color: #596270;
  font-size: 13px;
  font-weight: 750;
}

.file-picker input {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-text);
}

.tester-layout {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.tester-input-panel,
.tester-results-panel {
  min-width: 0;
}

.tester-textarea-label,
.recharge-form label {
  min-width: 0;
}

.tester-textarea-label {
  display: grid;
  gap: 8px;
  color: #596270;
  font-size: 13px;
  font-weight: 750;
}

.tester-textarea-label textarea,
.recharge-form textarea,
.recharge-form select {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  outline: 0;
  background: var(--input-bg);
  color: var(--input-text);
}

.tester-textarea-label textarea {
  min-height: 318px;
  resize: vertical;
  font-family: "Cascadia Mono", "Consolas", monospace;
  line-height: 1.45;
}

.recharge-form textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.4;
}

.recharge-form select {
  height: 48px;
}

.tester-textarea-label textarea:focus,
.recharge-form textarea:focus,
.recharge-form select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.tester-actions,
.copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tester-actions .submit-button {
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

.copy-actions button,
.admin-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  font-weight: 750;
}

.tester-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f0ff;
  color: #254070;
  line-height: 1.35;
}

.tester-alert.error { color: #8a160b; background: #ffe7e2; }
.tester-alert.success { color: #0f6842; background: #dcf8ea; }

.tester-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.tester-summary div {
  min-width: 0;
  padding: 13px;
  border-radius: 8px;
  background: #f5f7fa;
}

.tester-summary span,
.tester-meta span {
  color: #6d7582;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tester-summary strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  font-size: 24px;
  line-height: 1;
  text-overflow: ellipsis;
}

.progress-track {
  height: 10px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--button-primary-bg);
  transition: width 180ms ease;
}

.tester-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tester-meta span {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5eaf1;
  overflow-wrap: anywhere;
}

.tester-meta strong {
  display: block;
  margin-top: 5px;
  color: #121417;
  font-size: 14px;
  text-transform: none;
}

.result-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 3px;
}

.result-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.result-row strong {
  display: inline-flex;
  justify-content: center;
  min-height: 27px;
  padding: 7px 8px;
  border-radius: 999px;
  color: #254070;
  background: #e8f0ff;
  font-size: 12px;
}

.result-row.live strong { color: #0f6842; background: #dcf8ea; }
.result-row.die strong { color: #8a160b; background: #ffe7e2; }
.result-row.error strong { color: #5d4b00; background: #fff4bf; }

.result-row code,
.api-key-once code,
.api-doc {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.result-row span {
  color: #68717e;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.api-key-once {
  margin-bottom: 18px;
}

.api-key-once code,
.api-doc {
  display: block;
  max-width: 100%;
  padding: 14px;
  overflow-x: auto;
  border-radius: 8px;
  background: #101722;
  color: #eaf2ff;
  line-height: 1.45;
  overflow-wrap: normal;
  white-space: pre;
}

.api-response-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.api-response-grid article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.api-response-grid strong {
  font-size: 15px;
}

.api-response-grid code {
  min-width: 0;
  padding: 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #101722;
  color: #eaf2ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.api-response-grid span {
  color: #68717e;
  font-size: 13px;
  line-height: 1.35;
}

.ranking-list,
.contact-list,
.ticket-list,
.message-thread,
.admin-grid,
.adapter-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.ranking-row strong,
.ranking-row em,
.ranking-row small {
  white-space: nowrap;
}

.ranking-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.ranking-row em,
.ranking-row small {
  font-style: normal;
  color: #68717e;
}

.contact-list div,
.ticket-row,
.message-thread article,
.adapter-list article,
.finance-row {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.contact-list div {
  display: grid;
  gap: 5px;
}

.contact-list span,
.ticket-row small,
.message-thread span {
  color: #68717e;
  overflow-wrap: anywhere;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.ticket-row {
  display: grid;
  gap: 8px;
}

.ticket-row.is-selected {
  border-color: #121417;
}

.message-thread article {
  display: grid;
  gap: 8px;
}

.message-thread article.from-admin {
  background: #eef5ff;
}

.message-thread p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #596270;
  font-size: 13px;
  font-weight: 750;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 8px;
  outline: 0;
  background: var(--input-bg);
  color: var(--input-text);
}

.admin-form textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
  line-height: 1.4;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.adapter-list article {
  display: grid;
  gap: 8px;
}

.adapter-card {
  align-content: start;
}

.adapter-list header,
.finance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.adapter-list code {
  color: #68717e;
  overflow-wrap: anywhere;
}

.adapter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adapter-toolbar form,
.adapter-diagnostic {
  margin: 0;
}

.panel-action.danger {
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
}

.adapter-details {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
}

.adapter-details summary {
  width: fit-content;
  cursor: pointer;
  color: #121417;
  font-size: 13px;
  font-weight: 850;
}

.adapter-details[open] {
  display: grid;
  gap: 14px;
}

.adapter-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adapter-editor button,
.adapter-diagnostic button {
  justify-self: start;
}

.report-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.report-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.provider-chip,
.provider-return summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #596270;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.provider-return {
  min-width: 0;
}

.provider-return summary {
  cursor: pointer;
}

.provider-return code {
  display: block;
  width: min(520px, 72vw);
  max-height: 180px;
  margin-top: 6px;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: #101722;
  color: #eaf2ff;
  white-space: pre-wrap;
}

.provider-chip.live,
.provider-return.live summary {
  color: #0f6842;
  background: #dcf8ea;
}

.provider-chip.die,
.provider-return.die summary {
  color: #5d4b00;
  background: #fff4bf;
}

.provider-chip.error,
.provider-return.error summary {
  color: #8a160b;
  background: #ffe7e2;
}

.line-code {
  display: inline-block;
  max-width: min(420px, 58vw);
  overflow-wrap: anywhere;
  white-space: normal;
}

.responsive-table small {
  display: block;
  margin-top: 4px;
  color: #68717e;
  font-size: 12px;
}

.admin-muted {
  color: #68717e;
  line-height: 1.45;
}

.field-message,
.caps-warning {
  display: block;
  min-height: 17px;
  color: #8a160b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.field-message[hidden],
.caps-warning[hidden] {
  display: none;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #ff6a57 !important;
  box-shadow: 0 0 0 4px rgba(255, 63, 39, .1) !important;
}

label.has-error > span:first-child {
  color: #8a160b;
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 5px;
  align-items: center;
  margin-top: 2px;
}

.password-field button {
  top: 29px;
  bottom: auto;
}

.password-strength i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #dfe5ec;
}

.password-strength span {
  color: #68717e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.password-strength[data-score="1"] i:nth-child(-n+1),
.password-strength[data-score="2"] i:nth-child(-n+2),
.password-strength[data-score="3"] i:nth-child(-n+3),
.password-strength[data-score="4"] i:nth-child(-n+4) {
  background: #121417;
}

.caps-warning {
  color: #5d4b00;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(16, 17, 19, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 55px rgba(16, 17, 19, .16);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast strong,
.toast span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.toast strong {
  font-size: 13px;
}

.toast span {
  grid-column: 1;
  color: #596270;
  font-size: 13px;
  line-height: 1.35;
}

.toast button {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f7;
  color: #121417;
  font-weight: 800;
}

.toast.success {
  border-color: rgba(39, 194, 122, .24);
}

.toast.error {
  border-color: rgba(255, 63, 39, .24);
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 17, 19, .36);
  opacity: 0;
  transition: opacity 160ms ease;
}

.confirm-backdrop[hidden] {
  display: none;
}

.confirm-backdrop.is-visible {
  opacity: 1;
}

.confirm-dialog {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(16, 17, 19, .24);
  transform: translateY(8px);
  transition: transform 160ms ease;
}

.confirm-backdrop.is-visible .confirm-dialog {
  transform: translateY(0);
}

.confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(#121417 0 0) 50% 50% / 14px 2px no-repeat,
    linear-gradient(90deg, #121417 0 0) 50% 50% / 2px 14px no-repeat,
    #eef2f7;
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
}

.confirm-dialog p {
  margin: 0;
  color: #596270;
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.is-submitting {
  opacity: .82;
}

button[aria-busy="true"] {
  position: relative;
  color: transparent !important;
}

button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.ghost[aria-busy="true"]::after,
.panel-action[aria-busy="true"]::after,
.admin-form button[aria-busy="true"]::after {
  border-color: rgba(18, 20, 23, .18);
  border-top-color: #121417;
}

.file-picker {
  position: relative;
  isolation: isolate;
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-ui {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 14px;
  border: 1px dashed #cfd7e3;
  border-radius: 8px;
  background: #fff;
}

.file-ui strong {
  color: #121417;
  font-size: 14px;
}

.file-ui small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #68717e;
  font-weight: 650;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 18px;
  border-radius: 8px;
  background: #e8edf4;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 82%, rgba(31, 99, 255, .08), transparent 28%),
    #fff;
}

.error-shell {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid rgba(16, 17, 19, .06);
  border-radius: 8px;
  background: rgba(245, 247, 250, .96);
  box-shadow: 0 28px 80px rgba(16, 17, 19, .12);
}

.error-shell strong {
  color: #596270;
  font-size: 13px;
  text-transform: uppercase;
}

.error-shell h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 74px);
  font-weight: 520;
  line-height: .92;
}

.error-shell p {
  margin: 0;
  color: #596270;
  line-height: 1.45;
}

.error-shell code {
  padding: 9px 10px;
  border-radius: 8px;
  background: #101722;
  color: #eaf2ff;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.status-badge.ativa,
.status-badge.disponivel {
  color: #0f6842;
  background: #dcf8ea;
}

.status-badge.em_ajuste,
.status-badge.indisponivel {
  color: #5d4b00;
  background: #fff4bf;
}

.status-badge.desativada {
  color: #8a160b;
  background: #ffe7e2;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.special-account {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.special-account header,
.special-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.special-metrics span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #596270;
  font-size: 12px;
  font-weight: 800;
}

.special-account code {
  color: #68717e;
  overflow-wrap: anywhere;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (min-width: 1800px) {
  .device-scene {
    width: min(1440px, 100%);
    height: 740px;
  }

  .home-center h1 {
    font-size: 124px;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    gap: 42px;
  }

  .auth-statement h1 {
    font-size: 58px;
  }

  .device-scene {
    width: min(1040px, 100%);
    height: min(620px, calc(100svh - 80px));
  }

  .desktop-device {
    width: 88%;
  }

  .flow-area {
    left: 140px;
    right: 110px;
    transform: scale(.9);
    transform-origin: top left;
  }

  .insight-row {
    left: 118px;
    gap: 14px;
  }

  .tester-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-page {
    padding-top: 88px;
  }

  .site-header {
    grid-template-columns: minmax(120px, 1fr) auto;
    min-height: 52px;
    padding: 0 14px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    align-content: start;
    grid-auto-rows: max-content;
  }

  .app-sidebar {
    position: relative;
    z-index: 30;
    height: auto;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 14px;
  }

  .app-brand {
    grid-column: 1;
  }

  .app-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 40px;
    gap: 8px;
    padding-bottom: 2px;
  }

  .app-nav a {
    min-height: 0;
    height: 40px;
    padding: 0 12px;
    justify-content: center;
    text-align: center;
    transform: none !important;
  }

  .api-response-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-sidebar-foot {
    display: none;
  }

  .app-main {
    padding: 18px 14px 26px;
  }

  .app-topbar {
    position: fixed;
    right: 0;
    left: 0;
    margin: 0;
    padding: calc(14px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 14px calc(14px + env(safe-area-inset-left));
  }

  .profile-grid,
  .recharge-layout,
  .tester-layout,
  .admin-grid,
  .support-layout,
  .special-grid {
    grid-template-columns: 1fr;
  }

  .payment-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tester-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tester-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 44px 58px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 58px;
    height: 58px;
  }

  .ranking-row em,
  .ranking-row small {
    grid-column: 3;
  }

  .recharge-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
  }

  .recharge-row small {
    grid-column: 1 / -1;
  }

  .header-center {
    display: none;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .home-center h1 {
    font-size: 76px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: calc(100svh - 52px);
    padding: 78px 18px 28px;
  }

  .auth-statement {
    min-height: 0;
    gap: 26px;
  }

  .auth-statement h1 {
    margin-top: 16px;
    font-size: 44px;
  }

  .auth-meter {
    height: 104px;
  }

  .auth-panel {
    align-self: stretch;
  }

  .member-stage {
    min-height: 100svh;
    padding: 18px 10px;
    align-items: center;
    overflow: hidden;
  }

  .device-scene {
    width: 370px;
    max-width: calc(100vw - 20px);
    height: 710px;
    min-height: 0;
    transform-origin: center;
  }

  .desktop-device {
    top: 42px;
    right: -154px;
    bottom: auto;
    width: 540px;
    height: 412px;
    border-radius: 24px;
    box-shadow:
      inset 0 0 0 9px rgba(255, 255, 255, .74),
      0 24px 60px rgba(16, 17, 19, .12);
  }

  .desktop-device::after {
    inset: 9px;
    border-radius: 17px;
  }

  .device-rail {
    top: 22px;
    bottom: 22px;
    left: 20px;
    width: 48px;
    gap: 13px;
    padding: 12px;
  }

  .device-rail i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .top-controls {
    top: 29px;
    right: 28px;
    gap: 10px;
  }

  .top-controls a:first-child {
    width: 38px;
    height: 19px;
  }

  .flow-area {
    top: 82px;
    left: 96px;
    right: 44px;
    height: 146px;
    transform: scale(.72);
    transform-origin: top left;
  }

  .insight-row {
    right: 24px;
    bottom: 26px;
    left: 92px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .panel {
    min-height: 118px;
    border-radius: 13px;
  }

  .chart-panel,
  .cube-panel,
  .message-panel {
    display: none;
  }

  .balance-panel {
    grid-column: span 2;
  }

  .wave {
    top: 26px;
    height: 45px;
  }

  .balance-dark {
    min-height: 54px;
    width: 140px;
    margin-left: auto;
    padding: 10px 12px 10px 54px;
  }

  .balance-dark span {
    top: 13px;
    left: 13px;
    width: 28px;
    height: 28px;
  }

  .balance-dark strong,
  .balance-dark small,
  .balance-dark i {
    display: none;
  }

  .mobile-device {
    left: 8px;
    bottom: 34px;
    width: 170px;
    height: 398px;
    padding: 16px 14px;
    border-radius: 28px;
    box-shadow:
      inset 0 0 0 8px rgba(255, 255, 255, .88),
      0 20px 44px rgba(16, 17, 19, .14);
  }

  .mobile-top {
    padding: 5px 10px 15px;
  }

  .mobile-hero {
    height: 110px;
    border-radius: 12px;
  }

  .mobile-shield {
    width: 48px;
    height: 56px;
  }

  .mobile-list {
    gap: 8px;
    margin-top: 15px;
  }

  .mobile-list span {
    height: 39px;
    border-radius: 13px;
  }

  .mobile-list i {
    top: 11px;
    left: 11px;
    width: 17px;
    height: 17px;
  }

  .mobile-list b {
    top: 17px;
    left: 40px;
    width: 56px;
  }

  .mobile-list em {
    top: 16px;
    right: 12px;
  }

  .mobile-wave {
    right: 15px;
    bottom: 18px;
    left: 15px;
    height: 54px;
  }

  .mobile-wave i {
    bottom: 13px;
    width: 55px;
    height: 20px;
  }

  .mobile-wave i:nth-child(2) { left: 43px; }
  .mobile-wave i:nth-child(3) { left: 82px; }
}

@media (max-width: 520px) {
  .app-page {
    padding-top: 132px;
  }

  .site-header {
    padding: 0 12px;
  }

  .app-topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .topbar-actions {
    order: -1;
    justify-self: stretch;
    width: 100%;
  }

  .topbar-user {
    flex: 1 1 auto;
    max-width: none;
    padding: 9px 10px;
  }

  .topbar-user span {
    max-width: none;
  }

  .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 42px;
  }

  .app-topbar h1 {
    font-size: 34px;
  }

  .metric-card {
    min-height: 150px;
    padding: 18px;
  }

  .metric-card strong {
    font-size: 27px;
  }

  .content-panel,
  .payment-card {
    padding: 16px;
  }

  .panel-heading,
  .payment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-head strong {
    font-size: 34px;
  }

  .payment-meta {
    grid-template-columns: 1fr;
  }

  .adapter-editor {
    grid-template-columns: 1fr;
  }

  .adapter-toolbar .panel-action,
  .adapter-diagnostic .panel-action {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .tester-summary,
  .tester-meta {
    grid-template-columns: 1fr;
  }

  .tester-actions,
  .copy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tester-actions .submit-button,
  .tester-actions .panel-action,
  .copy-actions button {
    width: 100%;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

  .recharge-row {
    grid-template-columns: 1fr;
  }

  .check-form {
    justify-content: stretch;
  }

  .check-form .panel-action {
    width: 100%;
  }

  .brand-mark {
    gap: 9px;
    font-size: 13px;
  }

  .nav-links {
    gap: 10px;
  }

  .home-gate {
    padding: 18px;
  }

  .home-center {
    gap: 22px;
  }

  .home-symbol {
    gap: 4px;
    width: 44px;
    height: 44px;
  }

  .home-center h1 {
    font-size: 50px;
  }

  .home-actions {
    width: min(280px, 100%);
  }

  .home-actions a,
  .home-actions .theme-toggle {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .home-actions .theme-toggle {
    flex: 0 0 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  .auth-shell {
    padding: 68px 14px 22px;
  }

  .auth-statement h1 {
    font-size: 38px;
  }

  .toast-region {
    top: 60px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
  }

  .auth-meter {
    display: none;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-panel h2 {
    font-size: 40px;
  }

  .ranking-row {
    grid-template-columns: 42px 52px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 340px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .app-sidebar {
    padding: 10px;
  }

  .app-main {
    padding: 14px 10px 22px;
  }

  .app-topbar {
    margin: 0;
    padding: calc(12px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 12px calc(10px + env(safe-area-inset-left));
  }

  .app-topbar h1 {
    font-size: 30px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-user {
    gap: 7px;
    padding: 8px 9px;
  }

  .topbar-user span {
    font-size: 11px;
  }

  .topbar-user strong {
    font-size: 15px;
  }

  .app-nav a {
    min-height: 0;
    height: 38px;
    font-size: 13px;
  }

  .api-response-grid {
    grid-template-columns: 1fr;
  }

  .empty-panel h2,
  .payment-placeholder h2 {
    font-size: 27px;
  }

  .brand-word {
    display: none;
  }

  .nav-links {
    font-size: 12px;
  }

  .home-center h1 {
    font-size: 36px;
  }

  .home-actions {
    flex-direction: column;
    width: 100%;
  }

  .home-actions a {
    width: 100%;
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-panel h2 {
    font-size: 34px;
  }

  .auth-statement h1 {
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .member-stage {
    padding: 10px 0;
  }

  .device-scene {
    width: 340px;
    max-width: 100vw;
    height: 660px;
  }

  .desktop-device {
    top: 84px;
    right: -178px;
    width: 506px;
    height: 370px;
  }

  .flow-area {
    top: 80px;
    left: 88px;
    transform: scale(.62);
  }

  .insight-row {
    right: 18px;
    bottom: 24px;
    left: 80px;
  }

  .mobile-device {
    left: 16px;
    bottom: 58px;
    width: 158px;
    height: 372px;
    padding: 14px 12px;
  }

  .mobile-hero {
    height: 104px;
  }

  .mobile-list span {
    height: 37px;
  }

  .mobile-wave {
    right: 13px;
    bottom: 16px;
    left: 13px;
  }
}

@media (max-width: 340px) {
  .device-scene {
    width: 312px;
    height: 610px;
  }

  .desktop-device {
    top: 82px;
    right: -174px;
    width: 462px;
    height: 342px;
  }

  .mobile-device {
    left: 12px;
    bottom: 62px;
    width: 148px;
    height: 348px;
  }

  .flow-area {
    left: 80px;
    transform: scale(.56);
  }

  .balance-panel {
    min-height: 104px;
  }

  .balance-dark {
    width: 126px;
    min-height: 50px;
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .member-stage {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .device-scene {
    height: 560px;
  }

  .auth-shell {
    padding-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .home-minimal,
:root[data-theme="dark"] .auth-page,
:root[data-theme="dark"] .app-page,
:root[data-theme="dark"] .error-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 88%, rgba(31, 99, 255, .13), transparent 30%),
    var(--paper);
}

:root[data-theme="dark"] .site-header {
  background: rgba(8, 11, 16, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
}

:root[data-theme="dark"] .app-topbar {
  background: rgba(8, 11, 16, .9);
  border-bottom-color: var(--border-color);
}

:root[data-theme="dark"] .header-center,
:root[data-theme="dark"] .auth-panel label,
:root[data-theme="dark"] .recharge-form label span,
:root[data-theme="dark"] .tester-textarea-label,
:root[data-theme="dark"] .admin-form label,
:root[data-theme="dark"] .file-picker,
:root[data-theme="dark"] .form-note,
:root[data-theme="dark"] .metric-card p,
:root[data-theme="dark"] .copy-box span,
:root[data-theme="dark"] .payment-meta dt,
:root[data-theme="dark"] .recharge-row small,
:root[data-theme="dark"] .result-row span,
:root[data-theme="dark"] .api-response-grid span,
:root[data-theme="dark"] .ranking-row em,
:root[data-theme="dark"] .ranking-row small,
:root[data-theme="dark"] .contact-list span,
:root[data-theme="dark"] .ticket-row small,
:root[data-theme="dark"] .message-thread span,
:root[data-theme="dark"] .log-list code,
:root[data-theme="dark"] .adapter-list code,
:root[data-theme="dark"] .admin-muted,
:root[data-theme="dark"] .responsive-table small,
:root[data-theme="dark"] th {
  color: var(--muted);
}

:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .content-panel,
:root[data-theme="dark"] .payment-card,
:root[data-theme="dark"] .empty-panel,
:root[data-theme="dark"] .topbar-user,
:root[data-theme="dark"] .recharge-row,
:root[data-theme="dark"] .ranking-row,
:root[data-theme="dark"] .contact-list div,
:root[data-theme="dark"] .message-thread article,
:root[data-theme="dark"] .log-list article,
:root[data-theme="dark"] .finance-row,
:root[data-theme="dark"] .api-response-grid article,
:root[data-theme="dark"] .adapter-card,
:root[data-theme="dark"] .adapter-list article,
:root[data-theme="dark"] .ticket-row,
:root[data-theme="dark"] .admin-tabs a,
:root[data-theme="dark"] .file-ui,
:root[data-theme="dark"] .confirm-dialog {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(16, 23, 34, .94);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

:root[data-theme="dark"] .topbar-user span,
:root[data-theme="dark"] .topbar-user strong,
:root[data-theme="dark"] .table-link,
:root[data-theme="dark"] .tester-meta strong,
:root[data-theme="dark"] .adapter-details summary,
:root[data-theme="dark"] .ranking-row span,
:root[data-theme="dark"] .api-response-grid strong,
:root[data-theme="dark"] .confirm-dialog h2,
:root[data-theme="dark"] .confirm-dialog p {
  color: var(--text-primary);
}

:root[data-theme="dark"] .result-row code,
:root[data-theme="dark"] .result-row span {
  color: #101113;
}

:root[data-theme="dark"] .result-row.die code,
:root[data-theme="dark"] .result-row.die span {
  color: #000000;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .copy-box textarea,
:root[data-theme="dark"] .admin-form input,
:root[data-theme="dark"] .admin-form textarea,
:root[data-theme="dark"] .admin-form select,
:root[data-theme="dark"] .recharge-form input,
:root[data-theme="dark"] .filter-bar input,
:root[data-theme="dark"] .filter-bar select {
  color: var(--ink);
  border-color: var(--line);
  background: var(--input-bg);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: var(--input-placeholder);
}

:root[data-theme="dark"] .soft-empty,
:root[data-theme="dark"] .payment-meta div,
:root[data-theme="dark"] .tester-summary div,
:root[data-theme="dark"] .tester-meta span,
:root[data-theme="dark"] .provider-chip,
:root[data-theme="dark"] .provider-return summary {
  color: var(--muted);
  background: var(--bg-surface-secondary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .ghost,
:root[data-theme="dark"] .copy-actions button,
:root[data-theme="dark"] .admin-form button,
:root[data-theme="dark"] .theme-toggle {
  color: var(--button-secondary-text);
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
}

:root[data-theme="dark"] td,
:root[data-theme="dark"] th {
  border-bottom-color: var(--line);
}

:root[data-theme="dark"] .message-thread article.from-admin {
  background: #10213a;
}

:root[data-theme="dark"] .app-flash.info,
:root[data-theme="dark"] .tester-alert,
:root[data-theme="dark"] .status-badge {
  color: var(--info-text);
  background: var(--info-bg);
}

:root[data-theme="dark"] .app-flash.success,
:root[data-theme="dark"] .flash.success,
:root[data-theme="dark"] .tester-alert.success,
:root[data-theme="dark"] .status-badge.verified,
:root[data-theme="dark"] .status-badge.live,
:root[data-theme="dark"] .status-badge.respondido,
:root[data-theme="dark"] .status-badge.resolvido,
:root[data-theme="dark"] .status-badge.ativa,
:root[data-theme="dark"] .status-badge.disponivel,
:root[data-theme="dark"] .provider-chip.live,
:root[data-theme="dark"] .provider-return.live summary,
:root[data-theme="dark"] .result-row.live strong {
  color: var(--success-text);
  background: var(--success-bg);
}

:root[data-theme="dark"] .status-badge.die,
:root[data-theme="dark"] .status-badge.creating,
:root[data-theme="dark"] .status-badge.em_analise,
:root[data-theme="dark"] .provider-chip.die,
:root[data-theme="dark"] .provider-return.die summary,
:root[data-theme="dark"] .result-row.error strong,
:root[data-theme="dark"] .caps-warning {
  color: var(--warning-text);
  background: var(--warning-bg);
}

:root[data-theme="dark"] .app-flash.error,
:root[data-theme="dark"] .flash.error,
:root[data-theme="dark"] .tester-alert.error,
:root[data-theme="dark"] .status-badge.error,
:root[data-theme="dark"] .status-badge.expired,
:root[data-theme="dark"] .status-badge.failed,
:root[data-theme="dark"] .status-badge.fechado,
:root[data-theme="dark"] .provider-chip.error,
:root[data-theme="dark"] .provider-return.error summary,
:root[data-theme="dark"] .result-row.die strong,
:root[data-theme="dark"] .field-message {
  color: var(--danger-text);
  background: var(--danger-bg);
}

:root[data-theme="dark"] .field-message {
  background: transparent;
}

:root[data-theme="dark"] .toast {
  color: var(--text-primary);
  border-color: var(--border-color);
  background: rgba(16, 23, 34, .98);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .38);
}

:root[data-theme="dark"] .toast span {
  color: var(--text-muted);
}

:root[data-theme="dark"] .toast button {
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
}

:root[data-theme="dark"] .api-doc,
:root[data-theme="dark"] .api-key-once code {
  background: #05070b;
  color: #eaf2ff;
}

@media (max-width: 640px) {
  .panel-action,
  .filter-bar button,
  .copy-box button {
    min-height: 46px;
    white-space: normal;
  }

  .api-doc,
  .api-key-once code {
    padding: 12px;
    font-size: 12px;
  }
}
