:root {
  --bg-dark: #232221;
  --bg-sidebar: #343332;
  --bg-sidebar-soft: #40403f;
  --panel: #ffffff;
  --panel-soft: #f4f3f1;
  --border: #dedbd6;
  --text: #242424;
  --muted: #77716a;
  --yellow: #ffd84f;
  --blue: #4f98ff;
}

.demo-banner {
  position: fixed;
  left: 50%;
  top: 8px;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3bf;
  color: #3b2f00;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: #242424;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

button,
input {
  font: inherit;
}

@keyframes mui-auto-fill-cancel {
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }

  body {
    color: #fff;
    background: #000;
  }
}

.app-shell {
  min-height: 100vh;
  background: var(--bg-dark);
}

.browser-bar {
  height: 42px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  background: #272624;
  color: #aaa39d;
  font-size: 12px;
}

.browser-left,
.browser-center,
.browser-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.browser-right {
  justify-content: flex-end;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.browser-brand {
  color: #f7f7f6;
  font-size: 15px;
  font-weight: 600;
}

.browser-nav {
  color: #ece8e3;
  font-size: 25px;
  line-height: 1;
}

.browser-nav-muted {
  color: #4b4947;
}

.browser-pill {
  padding: 3px 8px;
  border: 1px solid #4a4845;
  border-radius: 999px;
  color: #fff;
}

.browser-minus,
.browser-plus {
  color: #fff;
  font-size: 16px;
}

.reset-label {
  color: #ddd8d3;
}

.browser-right {
  gap: 18px;
  margin-left: auto;
}

.session-copy {
  color: #efb63d;
}

.browser-menu {
  color: #fff;
  font-size: 22px;
}

.auth-layout,
.dashboard-layout {
  min-height: calc(100vh - 42px);
}

.auth-layout {
  display: grid;
  grid-template-columns: 48.8% 51.2%;
  grid-template-areas: "stage form";
}

.left-stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  background: #2d221d;
}

.left-stage-code {
  background: #020202;
}

.photo-scene,
.left-photo {
  position: absolute;
  inset: 0;
}

.left-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.left-photo.is-missing {
  display: none;
}

.security-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
}

.security-stage h2 {
  margin: -22px 0 36px;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.phone-mockup {
  position: relative;
  width: 220px;
  height: 432px;
  padding: 14px 12px;
  border: 4px solid #242424;
  border-radius: 36px;
  background: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 74px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: #060606;
}

.phone-screen {
  height: 100%;
  padding: 12px 10px 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, #141414 0%, #0d0d0f 100%);
  color: #cfc9c3;
  text-align: left;
  overflow: hidden;
}

.phone-topbar {
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.phone-block {
  margin-bottom: 14px;
  font-size: 9px;
  line-height: 1.35;
}

.phone-block strong {
  display: block;
  color: #7b7670;
  font-size: 7px;
  font-weight: 600;
}

.phone-list {
  display: grid;
  gap: 6px;
}

.phone-list span,
.phone-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #2d2b31;
  border-radius: 8px;
  background: #1d1b20;
  color: #d9d3cd;
  font-size: 8px;
}

.phone-list span::after {
  content: "›";
  color: #7e7a75;
  font-size: 11px;
}

.phone-block-spaced {
  margin-top: 14px;
}

.phone-list.compact span,
.phone-switch-row {
  min-height: 24px;
}

.phone-switch-row i {
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: #ffd84f;
  position: relative;
}

.phone-switch-row i::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8de;
}

.right-stage {
  grid-area: form;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 42px);
  background: #fff;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.form-wrap {
  position: relative;
  width: min(442px, calc(100% - 40px));
  min-height: 100%;
  padding: 40px 0 24px;
}

.back-button {
  position: absolute;
  top: 42px;
  left: -50px;
  border: 0;
  background: transparent;
  color: #25201d;
  font-size: 26px;
  cursor: pointer;
}

.back-button.is-hidden,
.is-hidden {
  display: none !important;
}

.bank-logo {
  color: #111;
  text-align: center;
}

.bank-logo-main {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.bank-c6 {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.bank-name {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.bank-logo-sub {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  color: #746e69;
  font-size: 10px;
}

.step {
  display: none;
}

.step-active {
  display: block;
}

.login-copy,
.password-copy,
.waiting-copy {
  margin-top: 180px;
  text-align: center;
}

.password-copy {
  margin-bottom: 38px;
}

.waiting-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waiting-copy p {
  max-width: 360px;
  margin: 0;
  color: #4d4945;
}

.waiting-copy small {
  color: #77716a;
}

.loading-ring {
  width: 48px;
  height: 48px;
  border: 4px solid #f0ece7;
  border-top-color: #ffd84f;
  border-radius: 50%;
  animation: spin-demo 1s linear infinite;
}

@keyframes spin-demo {
  to {
    transform: rotate(360deg);
  }
}

.code-copy-wrap {
  margin-top: 176px;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-copy p,
.code-copy {
  margin: 0 0 40px;
  color: #3f3b36;
  font-size: 14px;
  text-align: center;
}

.code-copy-wrap h1 {
  margin-bottom: 10px;
}

.code-copy {
  max-width: 470px;
  margin: 0 auto 34px;
  color: #36312d;
  line-height: 1.45;
}

.field {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

.field input,
.pix-inline input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e3dfd8;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  cursor: pointer;
}

.switch {
  position: relative;
  width: 32px;
  height: 18px;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9d5cf;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd84f;
}

.primary,
.yellow-button {
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  width: 100%;
  height: 34px;
  background: #f1efed;
  color: #b0aca5;
}

.primary:not(:disabled) {
  background: #ffd84f;
  color: #171512;
}

.yellow-button {
  min-width: 178px;
  height: 50px;
  padding: 0 26px;
  background: var(--yellow);
  color: #111;
  font-size: 18px;
}

.helper-copy {
  margin: 22px 0 0;
  color: #24211d;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.helper-copy-password {
  margin-top: 18px;
}

.password-dots {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 42px;
}

.password-dot {
  width: 15px;
  height: 15px;
  border: 1px solid #ece8e1;
  border-radius: 50%;
  background: #fff;
}

.password-dot.is-filled {
  border-color: #1d1d1b;
  background: #1d1d1b;
}

.password-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin-bottom: 28px;
}

.password-key {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 9px;
  height: 38px;
  border: 1px solid #e5e1da;
  border-radius: 10px;
  background: #fff;
  color: #23211e;
  font-size: 13px;
  font-weight: 600;
}

.password-key:has(.password-choice:active) {
  border-color: #d6d0c6;
  background: #f8f6f1;
}

.password-choice {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: #faf9f7;
  color: #1f1d1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.password-choice:active {
  background: #ece7dd;
}

.password-key small {
  color: #6f6a63;
  font-size: 11px;
  font-weight: 600;
}

.password-key-delete {
  display: block;
  font-size: 24px;
}

.code-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: 364px;
  margin: 0 auto 28px;
}

.code-input {
  width: 46px;
  height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid #aaa6a0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  color: #7f7b77;
  line-height: 1;
  appearance: textfield;
  caret-color: transparent;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.code-input:focus {
  outline: none;
  border-bottom-color: #85817b;
  color: #696561;
}

.code-input.is-filled {
  border-bottom-color: #8f8b86;
  color: #77736f;
}

.code-input.is-active {
  transform: translateY(-1px);
}

.code-input::selection {
  background: transparent;
}

.code-input::-webkit-outer-spin-button,
.code-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.code-grid-4 {
  width: 244px;
}

.code4-input {
  width: 46px;
  height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid #aaa6a0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  color: #7f7b77;
  line-height: 1;
  appearance: textfield;
  caret-color: transparent;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.code4-input:focus {
  outline: none;
  border-bottom-color: #85817b;
  color: #696561;
}

.code4-input.is-filled {
  border-bottom-color: #8f8b86;
  color: #77736f;
}

.code4-input.is-active {
  transform: translateY(-1px);
}

.code4-input::selection {
  background: transparent;
}

.code4-input::-webkit-outer-spin-button,
.code4-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.primary-yellow:not(:disabled) {
  height: 46px;
  border-radius: 14px;
  background: #ffd84f !important;
  color: #171512 !important;
}

.primary-yellow:disabled {
  height: 46px;
  border-radius: 14px;
}

.security-info {
  margin-top: 28px;
  padding: 14px 16px 14px 18px;
  border: 1px solid #64a2f6;
  border-radius: 14px;
  color: #2f2c29;
  font-size: 13px;
  line-height: 1.45;
}

.security-info strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.3;
}

.security-info p {
  margin: 0 0 6px;
}

.security-info ol {
  margin: 0;
  padding-left: 18px;
}

.security-info li {
  margin-bottom: 2px;
}

.version-label {
  position: absolute;
  right: 0;
  bottom: 20px;
  font-size: 10px;
}

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

.dashboard-layout {
  display: grid;
  grid-template-columns: 219px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 42px);
  background: #343333;
  color: #fff;
  border-right: 1px solid #5b5957;
}

.sidebar-top {
  padding: 16px 12px 8px;
}

.sidebar-document {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-name {
  margin-top: 10px;
  font-size: 14px;
}

.balance-card {
  margin-top: 20px;
  border: 1px solid #484746;
  border-radius: 14px;
  overflow: hidden;
}

.balance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #484746;
}

.balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.balance-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2baa3b 0 50%, #f2d14d 50% 100%);
  box-shadow: 0 0 0 2px #2e6fe0 inset;
}

.balance-dots {
  color: #f4f0eb;
}

.expand-balance {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 12px;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-item-active {
  background: #484847;
  position: relative;
}

.nav-item-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #ffd84f;
}

.nav-icon {
  font-size: 16px;
  color: #f7f7f6;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f98ff;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #444341;
}

.reduce-menu {
  width: 100%;
  height: 46px;
  border: 0;
  background: transparent;
  color: #f1eeea;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-version {
  display: block;
  text-align: right;
  color: #aaa39d;
  font-size: 10px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.dashboard-toolbar {
  padding: 12px 18px 10px;
  background: #2a2927;
}

.search-bar {
  position: relative;
  display: block;
}

.search-bar input {
  width: 100%;
  height: 40px;
  padding: 0 54px 0 30px;
  border: 1px solid #575451;
  border-radius: 12px;
  background: transparent;
  color: #d9d6d2;
  font-size: 16px;
}

.search-bar input::placeholder {
  color: #8b8580;
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
}

.dashboard-content {
  background: #fff;
}

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

.content-left {
  padding: 18px 12px 24px 12px;
}

.content-right {
  padding: 18px 14px 24px 0;
}

.section-head,
.statement-head,
.payments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2,
.company-head h2,
.statement-head h2,
.pix-panel h2,
.payments-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #8f8b86;
}

.carousel-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa7a2;
  display: inline-block;
}

.carousel-dots .dot-active {
  background: #2a2927;
}

.news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.news-card {
  display: grid;
  grid-template-columns: 197px 1fr;
  min-height: 156px;
  border: 1px solid #ece8e3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.news-image {
  background-size: cover;
  background-position: center;
}

.news-image-coffee {
  background:
    radial-gradient(circle at 18% 84%, #fff 0 8%, #c1c1c1 9% 11%, transparent 12%),
    linear-gradient(45deg, #8c5229 0%, #cd8d58 24%, #9d6b43 24.1%, #c7c6c8 50%, #575757 50.1%, #9a999d 100%);
}

.news-image-laptop {
  background:
    radial-gradient(circle at 58% 55%, #ececec 0 13%, transparent 14%),
    linear-gradient(145deg, #292929 0%, #555 48%, #7a7a7a 100%);
}

.news-copy {
  padding: 22px 20px;
}

.news-copy h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.news-copy p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
}

.company-section {
  margin-top: 14px;
}

.company-head p {
  margin: 6px 0 0;
  color: #595550;
  font-size: 14px;
}

.company-head a {
  color: #2469d7;
  text-decoration: none;
  font-weight: 700;
}

.company-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mini-card,
.statement-card,
.pix-card,
.payment-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.mini-card {
  min-height: 104px;
  padding: 14px 16px;
}

.balance-mini strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.balance-mini p,
.billing-mini p {
  margin: 14px 0 0;
  color: #4e4a45;
}

.balance-mini a,
.billing-mini a {
  display: inline-block;
  margin-top: 8px;
  color: #1562d0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.placeholder-mini {
  background: #ecebea;
}

.statement-card {
  margin-top: 18px;
  padding: 12px 12px 0;
}

.statement-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #ddd8d2;
  border-radius: 999px;
  gap: 4px;
}

.statement-option {
  min-width: 114px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #56514c;
  font-size: 16px;
  cursor: pointer;
}

.statement-option-active {
  background: #ece9e4;
  color: #121212;
  font-weight: 700;
}

.statement-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.statement-column {
  border: 1px solid #e5e0db;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.statement-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.statement-column-head h3 {
  margin: 0;
  font-size: 18px;
}

.statement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.statement-list li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid #e9e4df;
  font-size: 16px;
}

.statement-list li span:first-child {
  color: #908983;
}

.content-right section {
  margin-bottom: 18px;
}

.pix-card {
  padding: 14px;
}

.pix-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.pix-inline {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 8px;
}

.pix-inline button {
  border: 0;
  border-radius: 12px;
  background: #f2f0ee;
  color: #a7a29b;
  font-size: 15px;
  font-weight: 700;
}

.pix-actions {
  margin-top: 12px;
  border: 1px solid #dedad4;
  border-radius: 14px;
  overflow: hidden;
}

.pix-actions button {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #e4dfda;
  background: #fff;
  color: #23211e;
  font-size: 16px;
  text-align: left;
}

.pix-actions button:last-child {
  border-bottom: 0;
}

.pix-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e1dcd7;
  border-radius: 14px;
}

.pix-contact strong,
.payment-card strong {
  display: block;
  font-size: 16px;
}

.pix-contact span,
.payment-card span {
  color: #504b46;
  font-size: 14px;
}

.pix-contact a {
  color: #2a6ee3;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.payments-head button {
  padding: 0 16px;
  height: 34px;
  border: 1px solid #d8d3cd;
  border-radius: 999px;
  background: #f7f5f3;
  color: #5c5550;
}

.payment-card {
  min-height: 170px;
  padding: 18px;
}

/* Dashboard visual calibration against the supplied reference screenshot. */
.dashboard-layout {
  grid-template-columns: 220px 1fr;
  background: #fff;
}

.sidebar {
  background: #30302f;
}

.sidebar-top {
  padding: 16px 13px 8px;
}

.sidebar-document {
  font-size: 13px;
}

.sidebar-name {
  margin-top: 7px;
  font-size: 13px;
}

.balance-card {
  margin-top: 15px;
}

.balance-head {
  padding: 10px 12px;
}

.expand-balance {
  height: 27px;
  font-size: 13px;
}

.sidebar-nav {
  gap: 2px;
  padding: 8px 12px;
}

.nav-item {
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 13px;
}

.nav-icon {
  font-size: 15px;
}

.dashboard-toolbar {
  padding: 10px 18px 9px;
}

.search-bar {
  max-width: 798px;
}

.search-bar input {
  height: 32px;
  padding: 0 48px 0 14px;
  border-radius: 6px;
  font-size: 14px;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 18px;
}

.content-left {
  padding: 21px 12px 24px;
}

.content-right {
  padding: 228px 13px 24px 0;
}

.section-head h2,
.company-head h2,
.statement-head h2,
.pix-panel h2,
.payments-head h2 {
  font-size: 14px;
}

.carousel-dots {
  gap: 13px;
}

.carousel-dots i {
  width: 8px;
  height: 8px;
}

.news-row {
  gap: 17px;
  margin-top: 11px;
}

.news-card {
  grid-template-columns: 173px 1fr;
  border-radius: 6px;
}

.news-copy {
  padding: 29px 10px 18px;
}

.news-copy h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.news-copy p {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.38;
}

.yellow-button {
  min-width: 100px;
  height: 21px;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 12px;
}

.company-section {
  margin-top: 16px;
}

.company-head p {
  font-size: 12px;
}

.company-cards {
  margin-top: 9px;
}

.mini-card,
.statement-card,
.pix-card,
.payment-card {
  border-radius: 10px;
}

.mini-card {
  min-height: 102px;
  padding: 12px 14px;
}

.balance-mini strong {
  font-size: 18px;
}

.balance-mini a,
.billing-mini a {
  font-size: 13px;
}

.statement-card {
  margin-top: 14px;
  padding: 13px 12px 0;
}

.statement-option {
  height: 30px;
  font-size: 13px;
}

.statement-columns {
  gap: 16px;
  margin-top: 28px;
}

.statement-column {
  border-radius: 10px 10px 0 0;
}

.statement-column-head {
  padding: 14px 18px;
}

.statement-column-head h3 {
  font-size: 13px;
}

.statement-list li {
  grid-template-columns: 40px 1fr auto;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.pix-card {
  padding: 12px;
  border-radius: 12px;
}

.pix-title {
  font-size: 13px;
}

.pix-inline {
  grid-template-columns: 1fr 80px;
  gap: 6px;
}

.pix-inline input {
  height: 31px;
  border-radius: 6px;
  font-size: 12px;
}

.pix-inline button {
  border-radius: 8px;
  font-size: 12px;
}

.pix-actions {
  border-radius: 4px;
}

.pix-actions button {
  min-height: 43px;
  padding: 0 12px;
  font-size: 13px;
}

.pix-contact {
  padding: 11px 13px;
  border-radius: 6px;
}

.pix-contact strong,
.payment-card strong {
  font-size: 13px;
}

.pix-contact span,
.payment-card span,
.pix-contact a {
  font-size: 12px;
}

.payment-card {
  min-height: 90px;
  padding: 14px;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 0;
  width: 116px;
  height: 54px;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
}

.dashboard-toolbar {
  padding: 30px 18px 10px;
}

.dashboard-content {
  padding: 18px 13px 0 12px;
}

.top-news {
  width: 100%;
}

.top-news .section-head {
  margin-bottom: 11px;
}

.top-news .news-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
  margin-top: 0;
}

.top-news .news-card {
  min-height: 156px;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 42px;
  align-items: start;
  margin-top: 15px;
}

.content-left,
.content-right {
  padding: 0;
}

.company-section {
  margin-top: 0;
}

.pix-panel h2 {
  margin-bottom: 12px;
}

.payments-panel {
  margin-top: 18px;
}

/* Dashboard text color pass. */
.dashboard-main {
  color: #242424;
}

.sidebar-document {
  color: #f5f3f0;
}

.sidebar-name {
  color: #e7e1dc;
}

.nav-item {
  color: #e7e4df;
}

.nav-item-active {
  color: #fff;
}

.section-head h2,
.company-head h2,
.statement-head h2,
.pix-panel h2,
.payments-head h2,
.billing-mini h3 {
  color: #202020;
}

.news-copy h3 {
  color: #141414;
}

.news-copy p {
  color: #252525;
}

.company-head p,
.mini-label,
.balance-mini p,
.billing-mini p {
  color: #4d4945;
}

.balance-mini strong,
.statement-column-head h3,
.pix-title,
.pix-actions button,
.pix-contact strong,
.payment-card strong {
  color: #1f1f1f;
}

.statement-list li {
  color: #242424;
}

.statement-list li span:first-child {
  color: #8a8580;
}

.pix-contact span,
.payment-card span {
  color: #4b4743;
}

.balance-mini a,
.billing-mini a,
.company-head a,
.pix-contact a {
  color: #006fd6;
}

.admin-body {
  min-height: 100vh;
  background: #101010;
  color: #f5f5f5;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card,
.admin-panel {
  border: 1px solid #2d2d2d;
  border-radius: 18px;
  background: #181818;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.admin-login-card h1,
.admin-header h1,
.admin-panel h2 {
  margin: 0;
}

.admin-login-card p,
.admin-header p,
.selected-client span,
.admin-login-card small {
  color: #aaa;
}

.admin-login-card label,
.admin-redirect {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-login-card input,
.admin-redirect input {
  height: 42px;
  border: 1px solid #383838;
  border-radius: 10px;
  background: #0d0d0d;
  color: #fff;
  padding: 0 12px;
}

.admin-login-card button,
.admin-panel button,
.admin-header a {
  border: 0;
  border-radius: 10px;
  background: #ffd84f;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.admin-login-card button {
  width: 100%;
  height: 42px;
  margin-top: 18px;
}

.admin-error {
  display: block;
  margin-top: 14px;
  color: #ff7b7b;
}

.admin-shell {
  min-height: 100vh;
  padding: 24px;
}

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

.admin-header a {
  padding: 10px 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.admin-panel {
  padding: 18px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-head button,
.command-grid button,
.admin-redirect button {
  min-height: 36px;
  padding: 0 12px;
}

.client-list,
.event-list {
  display: grid;
  gap: 10px;
}

.admin-panel-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-danger-sm {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #5a1a1a;
  background: #2a0808;
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger-sm:hover {
  background: #3d0f0f;
}

.client-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: 1px solid #303030;
  border-radius: 10px;
  background: #101010;
  overflow: hidden;
}

.client-item.is-selected {
  border-color: #ffd84f;
}

.client-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.ci-status {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ci-online  { background: #4ade80; box-shadow: 0 0 5px #4ade8088; }
.ci-offline { background: #555; }

.ci-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ci-key {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.ci-meta {
  font-size: 11px;
  color: #666;
}

.ci-visits {
  color: #ffd84f;
  font-weight: 700;
}

.ci-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-left: 1px solid #242424;
  background: #0e0e0e;
}

.ci-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #161616;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.ci-btn svg { width: 13px; height: 13px; }

.ci-btn-operar {
  color: #ffd84f;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
  width: auto;
  border-color: #3a3000;
  background: #1a1500;
  letter-spacing: 0.02em;
}

.ci-btn-operar:hover   { background: #252000; border-color: #ffd84f44; }
.ci-btn-conclude:hover { background: #0a2010; color: #4ade80; border-color: #4ade8033; }
.ci-btn-block:hover    { background: #1e1000; color: #fb923c; border-color: #fb923c33; }
.ci-btn-delete:hover   { background: #1e0808; color: #f87171; border-color: #f8717133; }

.client-item span,
.admin-empty {
  color: #aaa;
}

.selected-client {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.selected-client strong {
  color: #ffd84f;
}

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

.admin-redirect {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 20px;
}

.admin-redirect span {
  grid-column: 1 / -1;
  color: #aaa;
}

.event-list article,
.admin-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #242424;
  border-radius: 8px;
  background: #101010;
}

.admin-event-time {
  flex-shrink: 0;
  font-size: 10px;
  font-family: monospace;
  color: #555;
  min-width: 58px;
}

.admin-event-icon {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
}

.admin-event-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-event-body strong {
  font-size: 12px;
  color: #d4d4d4;
}

.admin-event-detail {
  font-size: 11px;
  color: #777;
}

.event-list code {
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6d6d6;
}

/* ── Device name step ──────────────────────────────────────────────── */

.step-device .device-copy {
  margin-top: 176px;
  text-align: center;
  margin-bottom: 32px;
}

.step-device .device-copy h1 {
  margin-bottom: 10px;
  color: #242424;
}

.step-device .device-copy p {
  margin: 0;
  color: #242424;
  font-size: 14px;
}

.device-field {
  display: block;
  margin-bottom: 6px;
}

.device-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4d4945;
}

.device-field-wrap {
  position: relative;
  display: block;
}

.device-field-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 52px 0 16px;
  border: 1px solid #e3dfd8;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.device-field-wrap input:focus {
  border-color: #bbb5ae;
}

.device-field-counter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #aaa;
  pointer-events: none;
}

/* ── /Device name step ──────────────────────────────────────────────── */

/* ── Inline field error ─────────────────────────────────────────────── */

.field-inline-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -10px 0 14px;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
  animation: error-in 0.18s ease;
}

@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field-inline-error-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c0392b;
  font-size: 10px;
  font-weight: 800;
  color: #c0392b;
}

.field-inline-error-icon::after {
  content: "!";
}

/* ── /Inline field error ─────────────────────────────────────────────── */

/* ── Loading overlay ───────────────────────────────────────────────── */

.overlay-loading {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.overlay-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 42px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.overlay-loading-box p {
  margin: 0;
  color: #3f3b36;
  font-size: 14px;
  font-weight: 600;
}

.loading-ring-white {
  border-color: #e5e1db;
  border-top-color: #1d1d1b;
}

/* ── Modais ─────────────────────────────────────────────────────────── */

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}

.modal-card {
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  text-align: center;
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 14px;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1816;
}

.modal-card p {
  margin: 0 0 22px;
  color: #4d4945;
  font-size: 14px;
  line-height: 1.5;
}

.modal-card .field {
  margin-bottom: 18px;
}

.modal-confirm-btn {
  margin-top: 4px;
}

.modal-card-erro {
  border-top: 4px solid #f97316;
}

.modal-icon-erro {
  color: #f97316;
}

/* Modal dispositivo */
.modal-dispositivo-card {
  padding: 44px 36px 36px;
  text-align: center;
  max-width: 400px;
}

.modal-disp-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.modal-dispositivo-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1816;
}

.modal-disp-desc {
  margin: 0 0 28px;
  color: #4d4945;
  font-size: 14px;
  line-height: 1.55;
}

.modal-disp-desc strong {
  color: #1a1816;
  font-weight: 700;
}

.modal-disp-number {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1a1816;
  line-height: 1;
  margin-bottom: 20px;
}

.modal-disp-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: #888;
  font-size: 13px;
}

.modal-disp-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4f98ff;
  font-size: 13px;
  text-decoration: none;
}

/* ── /Modais ─────────────────────────────────────────────────────────── */

/* ── Operator page ─────────────────────────────────────────────────── */

.operator-body {
  background: #0c0c0c;
}

.operator-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.operator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #141414;
  border-bottom: 1px solid #232323;
}

.operator-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.operator-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-logo {
  font-size: 17px;
  letter-spacing: -0.03em;
  color: #aaa;
}

.operator-logo strong {
  color: #ffd84f;
}

.operator-key {
  padding: 4px 12px;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  background: #1a1a1a;
  color: #d6d6d6;
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.op-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.op-badge-online {
  background: #0d3320;
  color: #4ade80;
  border: 1px solid #166534;
}

.op-badge-offline {
  background: #1f1f1f;
  color: #888;
  border: 1px solid #333;
}

.op-step-badge {
  padding: 4px 12px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffd84f;
  font-size: 12px;
  font-weight: 600;
}

.op-back-link {
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}

.op-conclude-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #1a4a2a;
  border-radius: 10px;
  background: #0a2010;
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.op-conclude-btn svg {
  width: 14px;
  height: 14px;
}

.op-conclude-btn:hover {
  background: #0f2e18;
  border-color: #4ade8055;
}

.operator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "data    commands"
    "events  commands";
  gap: 20px;
  flex: 1;
  padding: 20px 24px 24px;
  align-items: start;
}

.operator-data-section    { grid-area: data; }
.operator-commands-section { grid-area: commands; }
.operator-events-section  { grid-area: events; }

.op-section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

/* Data cards */
.op-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.op-data-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  background: #111;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.op-data-card.is-filled {
  border-color: #2e2800;
  background: #141200;
  cursor: pointer;
}

.op-data-card.is-filled:hover {
  border-color: #5a4e00;
  background: #1c1900;
}

.op-data-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #444;
  background: #1a1a1a;
}

.op-data-icon svg {
  width: 18px;
  height: 18px;
}

.op-data-card.is-filled .op-data-icon {
  background: #1e1800;
  color: #a8900a;
}

.op-data-icon-cpf    { }
.op-data-icon-senha  { }
.op-data-icon-codigo { }
.op-data-icon-tel    { }
.op-data-icon-disp   { }

.op-data-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.op-data-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
}

.op-data-card.is-filled .op-data-label {
  color: #7a6800;
}

.op-data-value {
  font-size: 15px;
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.03em;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-data-card.is-filled .op-data-value {
  font-size: 17px;
  color: #ffd84f;
}

.op-data-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.op-data-copy svg {
  width: 13px;
  height: 13px;
}

.op-data-copy:hover {
  color: #ffd84f;
  border-color: #ffd84f;
  background: #1e1800;
}

/* Commands */
.operator-commands-section {
  padding: 18px;
  border: 1px solid #232323;
  border-radius: 18px;
  background: #141414;
}

.op-command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.op-cmd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background: #1a1a1a;
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.op-cmd:hover:not(:disabled) {
  border-color: #ffd84f;
  background: #1e1b00;
  color: #ffd84f;
}

.op-cmd:disabled {
  opacity: 0.4;
  cursor: default;
}

.op-cmd-green {
  border-color: #1a3d2a;
  color: #4ade80;
}

.op-cmd-green:hover:not(:disabled) {
  border-color: #4ade80;
  background: #0a1f12;
  color: #4ade80;
}

.op-cmd-red {
  border-color: #3d1a1a;
  color: #f87171;
}

.op-cmd-red:hover:not(:disabled) {
  border-color: #f87171;
  background: #1f0a0a;
  color: #f87171;
}

.op-cmd-icon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

.op-cmd-svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}

.op-redirect-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.op-redirect-row input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background: #0d0d0d;
  color: #ccc;
  font-size: 13px;
}

.op-redirect-row button {
  padding: 0 14px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #ffd84f;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Events */
.op-events-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.op-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: op-pulse 2s ease-in-out infinite;
}

@keyframes op-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.op-event-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.op-event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  background: #111;
}

.op-event-item.ev-step    { border-left: 3px solid #facc15; }
.op-event-item.ev-data    { border-left: 3px solid #4ade80; }
.op-event-item.ev-online  { border-left: 3px solid #22d3ee; }
.op-event-item.ev-offline { border-left: 3px solid #f87171; }
.op-event-item.ev-command { border-left: 3px solid #818cf8; }

.op-event-time {
  flex-shrink: 0;
  font-size: 10px;
  font-family: monospace;
  color: #555;
  min-width: 58px;
}

.op-event-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.op-event-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.op-event-type {
  font-size: 12px;
  font-weight: 700;
  color: #d4d4d4;
}

.op-event-detail {
  font-size: 11px;
  color: #888;
  word-break: break-word;
}

.op-event-payload {
  font-size: 11px;
  color: #666;
  word-break: break-word;
  white-space: pre-wrap;
}

.op-empty {
  color: #444;
  font-size: 13px;
  margin: 0;
}


.op-command-grid {
  grid-template-columns: repeat(3, 1fr);
}

.op-dispositivo-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #1e2d1e;
  border-radius: 12px;
  background: #0e160e;
  margin-bottom: 14px;
}

.op-disp-row {
  display: grid;
  gap: 4px;
}

.op-disp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}

.op-disp-row input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #0d0d0d;
  color: #ccc;
  font-size: 13px;
}

.op-disp-number-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
}

.op-disp-number-row button {
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #1a1a1a;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
}

.op-disp-number-row button:hover {
  background: #252525;
  color: #fff;
}

.op-disp-send-btn {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #166534;
  color: #dcfce7;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.op-disp-send-btn:hover:not(:disabled) {
  background: #15803d;
}

.op-disp-send-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.op-disp-hint {
  margin: 0 0 10px;
  color: #555;
  font-size: 11px;
  line-height: 1.45;
}

.op-disp-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.op-disp-preview {
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f2a0f;
  border: 1px solid #1a4d1a;
  color: #4ade80;
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.op-disp-fallback-label {
  margin: 8px 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a3a3a;
}

.op-error-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.op-error-btn {
  padding: 10px 12px;
  border: 1px solid #3d1a00;
  border-radius: 10px;
  background: #1a0d00;
  color: #fb923c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.op-error-btn:hover:not(:disabled) {
  border-color: #fb923c;
  background: #2a1200;
}

.op-error-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.op-custom-error-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.op-custom-error-row input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background: #0d0d0d;
  color: #ccc;
  font-size: 13px;
}

.op-custom-error-row button {
  padding: 0 14px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fb923c;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* ── /Operator page ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .news-row,
  .company-cards,
  .statement-columns,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-right {
    padding-left: 12px;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 41% 59%;
  }

  .security-stage h2 {
    font-size: 24px;
  }

  .phone-mockup {
    width: 184px;
    height: 360px;
  }

  .code-copy-wrap {
    margin-top: 124px;
  }
}
