.pay-header-balances {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-header-balances button,
.pay-header-balances .balance-readonly {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  min-width: 150px;
  border: 1px solid #d5e3e0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f4faf9;
  color: #173037;
  text-align: left;
  cursor: pointer;
}

.pay-header-balances span {
  color: #087e73;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.pay-header-balances strong {
  grid-column: 1;
  font-size: .82rem;
  font-weight: 700;
}

.pay-header-balances small {
  grid-column: 1;
  color: #60777b;
  font-size: .58rem;
  line-height: 1.2;
  white-space: nowrap;
}

.pay-header-balances small b {
  color: #087e73;
  font-size: inherit;
}

.pay-header-balances small i {
  font-style: normal;
}

.pay-header-balances em {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: #087e73;
  font-size: 1.2rem;
  font-style: normal;
}

.pay-products-home > div:first-child > span {
  color: #087e73;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.pay-products-home h1 {
  margin: 8px 0 24px;
  font-size: 2rem;
}

.panel-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.panel-product-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  border: 1px solid #d7e5e2;
  border-radius: 17px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(11, 62, 57, .05);
}

.panel-product-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--product-color) 14%, white);
  color: var(--product-color);
  font-size: .9rem;
  font-weight: 900;
}

.panel-product-card div {
  display: grid;
  gap: 6px;
}

.panel-product-card strong {
  font-size: .86rem;
}

.panel-product-card small {
  color: #708286;
  font-size: .72rem;
}

.pay-profile-card {
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #d3e5e1;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 18px 44px rgba(11, 62, 57, .08);
}

.pay-profile-card > div:first-child > span {
  color: #087e73;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.pay-profile-card h2 {
  margin: 8px 0;
  color: #17262c;
}

.pay-profile-card p,
.pay-profile-card small {
  color: #687c81;
  line-height: 1.5;
}

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

#p2pLinkForm label {
  display: grid;
  gap: 7px;
  color: #536a6e;
  font-size: .78rem;
  font-weight: 700;
}

#p2pLinkForm label:first-child {
  grid-column: 1 / -1;
}

#p2pLinkForm input {
  min-height: 48px;
  border: 1px solid #d2e0de;
  border-radius: 12px;
  padding: 0 14px;
  background: #f9fcfb;
  color: #17262c;
  font: inherit;
  font-weight: 400;
}

#p2pLinkForm > div {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#p2pLinkForm a,
#p2pLinkForm button,
.danger-ghost {
  border: 1px solid #cddfdb;
  border-radius: 11px;
  padding: 12px 16px;
  background: #fff;
  color: #087e73;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pay-admin {
  display: grid;
  gap: 22px;
}

.pay-admin-heading,
.pay-admin-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pay-admin-heading span,
.pay-admin-card header span {
  color: #087e73;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.pay-admin-heading h1,
.pay-admin-card h2 {
  margin: 6px 0;
  color: #17262c;
}

.pay-admin-heading p {
  margin: 0;
  color: #687c81;
}

.pay-admin-heading button,
.pay-admin-account > button,
.pay-admin-recharge button {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  background: #137966;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.pay-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pay-admin-metrics article,
.pay-admin-card {
  border: 1px solid #d3e5e1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 62, 57, .06);
}

.pay-admin-metrics article {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.pay-admin-metrics span {
  color: #668085;
  font-size: .68rem;
  font-weight: 800;
}

.pay-admin-metrics strong {
  color: #173037;
  font-size: 1.55rem;
}

.pay-admin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.pay-admin-card header input {
  width: min(360px, 45vw);
  min-height: 44px;
  border: 1px solid #d2e0de;
  border-radius: 22px;
  padding: 0 16px;
  font: inherit;
  font-weight: 400;
}

.pay-admin-accounts,
.pay-admin-recharges {
  display: grid;
  gap: 10px;
}

.pay-admin-account {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(100px, .7fr)) minmax(110px, .8fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid #e0ebe9;
  border-radius: 15px;
  padding: 15px;
  background: #f9fcfb;
}

.pay-admin-company,
.pay-admin-account label,
.pay-admin-usdt {
  display: grid;
  gap: 5px;
}

.pay-admin-company span,
.pay-admin-company small,
.pay-admin-account label,
.pay-admin-usdt span {
  color: #667b7f;
  font-size: .68rem;
}

.pay-admin-account input,
.pay-admin-account select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d3e1df;
  border-radius: 9px;
  padding: 0 9px;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.pay-admin-account > small {
  grid-column: 1 / -1;
  color: #087e73;
}

.pay-admin-recharge {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e1ebea;
  padding: 12px 0;
}

.pay-admin-recharge > div {
  display: grid;
  gap: 4px;
}

.pay-admin-recharge span,
.pay-admin-recharge small {
  color: #6b7e82;
  font-size: .72rem;
}

.pay-admin-recharge .status-pending { color: #a06b00; }
.pay-admin-recharge .status-approved { color: #137966; }
.pay-admin-recharge .status-rejected { color: #a03939; }
.pay-admin-recharge button.reject { background: #a03939; }

.pay-admin-ad-form {
  display: grid;
  grid-template-columns: .7fr 1fr 2fr auto auto;
  align-items: end;
  gap: 12px;
}

.pay-admin-ad-form label {
  display: grid;
  gap: 6px;
  color: #60777b;
  font-size: .72rem;
  font-weight: 700;
}

.pay-admin-ad-form input,
.pay-admin-ad-form select {
  min-height: 42px;
  border: 1px solid #d2e0de;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.pay-admin-ad-form .pay-admin-ad-enabled {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 7px;
}

.pay-admin-ad-form .pay-admin-ad-enabled input { min-height: 0; }
.pay-admin-ad-form > button { min-height: 42px; border: 0; border-radius: 10px; padding: 0 15px; background: #137966; color: #fff; font-weight: 800; }
.pay-admin-ad-form > small { grid-column: 1 / -1; color: #087e73; }
.pay-admin-ads { display: grid; gap: 9px; }
.pay-admin-ad { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 13px; border: 1px solid #e0ebe9; border-radius: 14px; padding: 12px; background: #f9fcfb; }
.pay-admin-ad > img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.pay-admin-ad > div { display: grid; gap: 3px; }
.pay-admin-ad span { color: #61777b; font-size: .75rem; }
.pay-admin-ad a { color: #087e73; font-size: .68rem; font-weight: 800; text-decoration: none; }
.pay-admin-ad label { display: flex; align-items: center; gap: 7px; color: #60777b; font-size: .72rem; }
.pay-admin-ad > button { border: 0; border-radius: 9px; padding: 9px 12px; background: #a03939; color: #fff; font-size: .7rem; font-weight: 800; }

.pay-usdt-ads-dialog > p { margin: 8px 0 18px; color: #60777b; line-height: 1.5; }
.pay-usdt-ads-dialog .exchange-options { grid-template-columns: 1fr; }
.pay-usdt-ads-dialog .exchange-options a span { display: grid; gap: 3px; }
.pay-usdt-ads-dialog .exchange-options a small { color: #60777b; font-size: .72rem; }

.public-product-global {
  width: min(430px, 100%);
  color: inherit;
  text-align: left;
  cursor: default;
}

.public-product-global > div,
.public-product-readonly > div { display: grid; align-content: center; min-width: 0; gap: 10px; padding-left: 18px; }
.public-product-global h2,
.public-product-global p { margin: 0; }
.public-product-global p,
.public-product-readonly p { margin: 0; color: #53696d; }
.public-product-global > div > strong,
.public-product-readonly > div > strong { color: #087e73; font-size: 1.1rem; }
.public-product-readonly > div > small { color: #60777b; }
#productsGrid { display: flex; flex-wrap: wrap; align-items: flex-start; }
.public-product-whatsapp { display: inline-flex; align-items: center; justify-content: center; width: fit-content; gap: 7px; border-radius: 999px; padding: 8px 13px; background: #20b85a; color: #fff; font-size: .75rem; font-weight: 800; text-decoration: none; }
.public-product-whatsapp img { width: 19px; height: 19px; border-radius: 0; object-fit: contain; }
.public-product-global > img,
.public-product-readonly > img { align-self: center; }


.pay-recharge-dialog form {
  display: grid;
  gap: 14px;
}

.pay-recharge-dialog label {
  display: grid;
  gap: 6px;
  color: #566d71;
  font-size: .78rem;
  font-weight: 700;
}

.pay-recharge-dialog input,
.pay-recharge-dialog textarea {
  min-height: 45px;
  border: 1px solid #d2e0de;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
}

.pay-recharge-dialog form > button {
  border: 0;
  border-radius: 11px;
  padding: 13px;
  background: #137966;
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.pay-report-shell {
  display: grid;
  gap: 16px;
}

.pay-report-currency,
.pay-report-kind {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-report-currency {
  border-bottom: 1px solid #cfe2df;
  padding-bottom: 10px;
}

.pay-report-currency button,
.pay-report-kind button {
  border: 1px solid #cfe0dd;
  border-radius: 999px;
  padding: 10px 22px;
  background: #fff;
  color: #60777b;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.pay-report-currency button.active {
  border-color: #087e73;
  background: #087e73;
  color: #fff;
}

.pay-report-kind button.active {
  border-color: #bde4dd;
  background: #e5f7f3;
  color: #087e73;
}

.pay-report-shell .pay-history {
  margin: 0;
  overflow-x: auto;
}

.movement.movement-operation {
  grid-template-columns: minmax(235px, 1.45fr) 190px minmax(220px, 1.35fr) 135px 82px 112px 76px;
  min-width: 1120px;
  min-height: 58px;
  gap: 12px;
  margin-top: 7px;
  padding: 10px 13px;
}

.movement-operation > * {
  min-width: 0;
}

.movement-operation .movement-order,
.movement-operation .movement-actions {
  display: flex;
  align-items: center;
}

.movement-operation strong,
.movement-operation time,
.movement-operation span,
.movement-operation b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-operation time,
.movement-operation .movement-document,
.movement-operation .movement-exchange {
  color: #61767a;
  font-size: .78rem;
}

.movement-operation .movement-customer {
  color: #20353a;
  font-size: .82rem;
}

.movement-operation .movement-actions {
  justify-content: flex-end;
  gap: 6px;
}

.movement-order-link {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #172b31;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.movement-order-link:hover,
.movement-order-link:focus-visible {
  color: #00857a;
  text-decoration: underline;
}

.movement-operation .movement-actions button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cce2de;
  border-radius: 9px;
  background: #fff;
  color: #087e73;
  font-size: 1rem;
  cursor: pointer;
}

.movement-operation .movement-card {
  overflow: hidden;
  padding: 2px;
}

.movement-operation .movement-card img {
  width: 21px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
}

.movement-operation .movement-voucher svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pay-card-dialog {
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  padding: 16px;
  overflow: hidden;
}

.pay-card-preview {
  display: grid;
  height: min(560px, calc(100dvh - 215px));
  margin: 8px 0;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #eff7f6;
}

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

.pay-card-preview > span {
  color: #60777b;
  font-size: .82rem;
}

.movement-operation .movement-actions button.is-loading {
  opacity: .55;
  pointer-events: none;
}

.usd-movement-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e5f7f3;
  color: #087e73;
  font-size: 1.15rem;
  font-weight: 900;
}

#p2pLinkForm button {
  border-color: #137966;
  background: #137966;
  color: #fff;
}

#p2pLinkStatus {
  grid-column: 1 / -1;
}

.p2p-linked-summary {
  display: grid;
  gap: 6px;
  border: 1px solid #bee4d8;
  border-radius: 16px;
  padding: 18px;
  background: #effaf6;
}

.p2p-linked-summary strong {
  color: #145d50;
  font-size: 1.05rem;
}

.p2p-linked-summary span {
  color: #087e73;
  font-size: .82rem;
}

.danger-ghost {
  justify-self: start;
  border-color: #e7c7c7;
  color: #a03a3a;
}

@media (max-width: 1100px) {
  .pay-header-balances {
    order: 4;
    width: 100%;
    justify-content: center;
  }

  .pay-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-admin-account { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-admin-company { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
.pay-header-balances button,
.pay-header-balances .balance-readonly {
    min-width: 0;
    flex: 1;
  }

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

  .panel-product-card {
    grid-template-columns: 1fr;
  }

  #p2pLinkForm {
    grid-template-columns: 1fr;
  }

  #p2pLinkForm label,
  #p2pLinkForm label:first-child {
    grid-column: 1;
  }

  #p2pLinkForm > div {
    grid-column: 1;
    flex-direction: column;
  }

  .pay-admin-heading,
  .pay-admin-card > header { align-items: stretch; flex-direction: column; }
  .pay-admin-card header input { width: 100%; }
  .pay-admin-metrics,
  .pay-admin-account { grid-template-columns: 1fr; }
  .pay-admin-recharge { grid-template-columns: 1fr auto; }
  .pay-admin-ad-form,
  .pay-admin-ad { grid-template-columns: 1fr; }
  #publicProductForm { grid-template-columns: 1fr; }
}

/* Identidad independiente BrooPay */
.pay-header {
  position: relative;
  z-index: 10;
  min-height: 126px;
  border-bottom: 1px solid #d7e5f4;
  background: linear-gradient(110deg, #fff 0 52%, #f4f8ff 100%);
  box-shadow: 0 10px 30px rgba(35, 68, 150, .06);
}

.pay-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #267cf0, #2ed9bd, transparent 78%);
  content: "";
}

#privateNav { margin-left: 12px; }
#privateNav button { padding: 12px 18px; color: #4d5f78; font-weight: 700; }
#privateNav button:hover { background: #edf4ff; color: #236fd3; }
#privateNav button.active { background: linear-gradient(135deg, #e5f1ff, #e0fbf6); color: #155eb9; box-shadow: inset 0 0 0 1px #d1e4f8; }

.pay-header-balances button {
  border-color: #d4e1f0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 75, 145, .06);
}
.pay-header-balances span,
.pay-header-balances small b,
.pay-header-balances em { color: #176bc4; }
#usdtBalanceCard span,
#usdtBalanceCard small b,
#usdtBalanceCard em { color: #098f7d; }

.pay-session { margin-left: auto; }
.pay-session strong { color: #152445; font-size: .9rem; }
.pay-session #logoutButton { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dae4f0; padding: 10px 12px; background: #fff; color: #53657b; font-size: .78rem; }
.pay-session #logoutButton:hover { border-color: #efb6b6; background: #fff5f5; color: #b43a3a; }
.pay-session #logoutButton b { font-size: 1rem; transform: rotate(45deg); }

#panelApp { width: min(1500px, calc(100% - 48px)); }
.pay-products-home { border-radius: 30px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(135deg, rgba(225, 248, 255, .92), rgba(247, 250, 255, .92)); box-shadow: inset 0 0 0 1px #dcebf3; }
.pay-products-home > div:first-child > span { color: #1373cc; }
.pay-products-home h1 { color: #101f42; letter-spacing: -.03em; }
.panel-product-card { border-color: #dbe5f0; box-shadow: 0 14px 34px rgba(38, 69, 128, .07); transition: transform .18s ease, box-shadow .18s ease; }
.panel-product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(38, 69, 128, .12); }

.pay-profile-shell { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.pay-profile-shell > header { margin-bottom: 12px; }
.pay-profile-shell > header > span { color: #1774cd; font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.pay-profile-shell h1 { margin: 8px 0; color: #101f42; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.pay-profile-shell header p { margin: 0; color: #66778b; }
.profile-settings-card,
.web3-integration-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 108px; border: 1px solid #d8e5f1; border-radius: 22px; padding: 22px 24px; background: #fff; box-shadow: 0 16px 38px rgba(35, 68, 130, .07); }
.profile-setting-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #e4f1ff, #dcfbf4); font-size: 1.25rem; }
.profile-security-row > div:nth-child(2),
.web3-setting-copy { display: grid; gap: 6px; }
.profile-security-row strong,
.web3-setting-copy strong { color: #14244a; font-size: .84rem; letter-spacing: .11em; }
.profile-security-row span,
.web3-setting-copy small { color: #6a7a8b; font-size: .82rem; }
.profile-security-row > button { border: 1px solid #bfd7ef; border-radius: 12px; padding: 12px 16px; background: #edf6ff; color: #1769bd; font-weight: 850; cursor: pointer; }
.profile-security-row > button:hover { background: #1769bd; color: #fff; }
.web3-integration-row > div.web3-setting-action { display: flex; align-items: center; gap: 12px; }
.web3-setting-action > span { border-radius: 999px; padding: 8px 12px; background: #f0f3f6; }
.web3-setting-action > span[data-status="connected"] { background: #ddf8ef; color: #087b68; }

@media (max-width: 1320px) {
  .pay-header { flex-wrap: wrap; gap: 16px; }
  #privateNav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .pay-header-balances { margin-left: auto; }
}

@media (max-width: 700px) {
  .pay-session #logoutButton span { display: none; }
  .profile-settings-card,
  .web3-integration-row { grid-template-columns: 44px 1fr; padding: 18px; }
  .profile-setting-icon { width: 44px; height: 44px; }
  .profile-security-row > button,
  .web3-setting-action { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

.accounting-integration-card { margin-top: 22px; }
.pay-login .forgot-password-button { justify-self: end; border: 0; padding: 0; background: transparent; color: #167b68; font: inherit; font-size: .83rem; font-weight: 700; cursor: pointer; }
.pay-recharge-dialog form > p { margin: 0; color: #60777b; }
.login-eyebrow { color: #087e73; font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.pay-login.admin-login form { width: min(1000px,100%); grid-template-columns: 1fr 1fr; gap: 18px 0; overflow: hidden; border-top: 6px solid #22c7c9; padding: 0 54px 44px 0; }
.pay-login.admin-login form::before { content:""; grid-column:1; grid-row:1/8; min-height:540px; margin-right:54px; background:#fff4ed url('/src/assets/broopay/logo.png') center/72% auto no-repeat; }
.pay-login.admin-login form > * { grid-column:2; }
.pay-login.admin-login .pay-login-logo { display:none; }
.pay-login.admin-login .login-eyebrow { align-self:end; margin-top:54px; }
.pay-login.admin-login h1 { margin:0 0 8px; text-align:left; }
@media(max-width:760px){.pay-login.admin-login form{display:grid;grid-template-columns:1fr;padding:34px}.pay-login.admin-login form::before{display:none}.pay-login.admin-login form>*{grid-column:1}.pay-login.admin-login .pay-login-logo{display:block}.pay-login.admin-login .login-eyebrow{margin-top:0;text-align:center}.pay-login.admin-login h1{text-align:center}}
.admin-invite-form { display:grid; grid-template-columns:1.2fr .7fr 1.2fr auto; align-items:end; gap:14px; }
.admin-invite-form label { display:grid; gap:7px; color:#506769; font-size:.82rem; font-weight:700; }
.admin-invite-form input { min-width:0; height:48px; border:1px solid #cddedb; border-radius:11px; padding:0 13px; }
.admin-invite-form button { height:48px; border:0; border-radius:11px; padding:0 18px; background:#167b68; color:#fff; font-weight:800; cursor:pointer; }
.admin-invite-form small { grid-column:1/-1; min-height:1.2em; color:#53696d; }
@media(max-width:900px){.admin-invite-form{grid-template-columns:1fr 1fr}.admin-invite-form button{grid-column:1/-1}}@media(max-width:600px){.admin-invite-form{grid-template-columns:1fr}.admin-invite-form button{grid-column:1}}
.accounting-integration-state { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.accounting-integration-state b { border-radius: 999px; padding: 8px 12px; background: #eef2f1; color: #53696d; font-size: .78rem; }
.accounting-integration-state b[data-status="connected"] { background: #dff7ee; color: #08735f; }
.accounting-integration-state b[data-status="error"],.accounting-integration-state b[data-status="invalid"],.accounting-integration-state b[data-status="inactive"],.accounting-integration-state b[data-status="plan_required"] { background: #ffe7e4; color: #a72e25; }
.accounting-integration-state small { color: #617678; }
#accountingIntegrationForm { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#accountingIntegrationForm label { display: grid; gap: 7px; color: #506769; font-size: .82rem; font-weight: 700; }
#accountingIntegrationForm input { width: 100%; box-sizing: border-box; border: 1px solid #cddedb; border-radius: 12px; padding: 14px; font: inherit; }
#accountingIntegrationForm .password-field { display: grid; grid-template-columns: 1fr auto; border: 1px solid #cddedb; border-radius: 12px; overflow: hidden; }
#accountingIntegrationForm .password-field input { border: 0; border-radius: 0; }
#accountingIntegrationForm .password-field button { width: 48px; border: 0; background: #fff; cursor: pointer; }
.accounting-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 10px; }
.accounting-actions button { border: 1px solid #167b68; border-radius: 11px; padding: 13px 15px; background: #fff; color: #167b68; font-weight: 800; cursor: pointer; }
.accounting-actions button[type="submit"] { background: #167b68; color: #fff; }
#accountingActionStatus { grid-column: 1/-1; min-height: 1.2em; color: #53696d; }
@media(max-width:700px){#accountingIntegrationForm{grid-template-columns:1fr}.accounting-actions{grid-column:1}}
.web3-integration-row span { color:#718184; font-size:.86rem; font-weight:800; }
.web3-integration-row span[data-status="connected"] { color:#12816c; }
.web3-integration-row button { display:grid; width:42px; height:42px; place-items:center; border:1px solid #c8dbd7; border-radius:12px; background:#f8fbfa; color:#167b68; font-size:1.15rem; cursor:pointer; transition:.2s ease; }
.web3-integration-row button:hover { border-color:#167b68; background:#e8f6f3; transform:rotate(18deg); }
.web3-settings-dialog > p { color:#60777b; }
.web3-settings-dialog #accountingIntegrationForm { grid-template-columns:1fr; }
.web3-settings-dialog #accountingCredentialFields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.web3-settings-dialog #accountingCredentialFields[hidden] { display:none; }
.web3-settings-dialog #accountingIntegrationForm > button { width:100%; border:0; border-radius:11px; padding:14px; background:#167b68; color:#fff; font-weight:900; cursor:pointer; }
.web3-settings-dialog #accountingIntegrationForm > .danger-ghost { border:1px solid #d9a7a3; background:#fff; color:#b53028; }
@media(max-width:620px){.web3-settings-dialog #accountingCredentialFields{grid-template-columns:1fr}}

.pay-public-footer {
  margin-top: 40px;
  padding: 48px clamp(24px, 6vw, 96px) 22px;
  background: #102a2e;
  color: #d9e9e7;
}

.pay-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 1fr));
  gap: 42px;
  max-width: 1500px;
  margin: 0 auto;
}

.pay-footer-grid section { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.pay-footer-grid strong { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.pay-footer-grid p { max-width: 340px; margin: 0; color: #a9c2bf; font-size: .9rem; line-height: 1.55; }
.pay-footer-grid a,
.pay-footer-grid button:not(.pay-distributor-button) { border: 0; padding: 0; background: none; color: #d9e9e7; font: inherit; text-decoration: none; cursor: pointer; }
.pay-footer-grid a:hover,
.pay-footer-grid button:not(.pay-distributor-button):hover { color: #51d4c4; }

.pay-footer-brand { display: inline-flex; align-items: center; gap: 16px; }
.pay-footer-brand img { width: 145px; filter: brightness(0) invert(1); }
.pay-footer-brand span { border-left: 1px solid #58706f; padding-left: 16px; color: #5ce0d0; font-weight: 900; letter-spacing: .22em; }

.pay-distributor-button {
  border: 1px solid #4ccbbb;
  border-radius: 12px;
  padding: 11px 15px;
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pay-distributor-button:hover { background: #087e73; }

.pay-footer-bottom { max-width: 1500px; margin: 38px auto 0; border-top: 1px solid #365052; padding-top: 20px; color: #89a5a2; font-size: .78rem; }

.pay-distributor-dialog { width: min(680px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 28px; box-shadow: 0 28px 80px #06171966; }
.pay-distributor-dialog::backdrop { background: #102a2ecc; backdrop-filter: blur(5px); }
.pay-distributor-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pay-distributor-dialog header span { color: #087e73; font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.pay-distributor-dialog h2 { margin: 5px 0 0; font-size: 1.75rem; }
.pay-distributor-dialog header button { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #d7e4e2; border-radius: 12px; background: #fff; color: #d22e2e; font-size: 1.8rem; cursor: pointer; }
.pay-distributor-dialog > p { color: #617678; }
.pay-distributor-dialog form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 22px; }
.pay-distributor-dialog label { display: grid; gap: 7px; color: #506769; font-size: .8rem; font-weight: 700; }
.pay-distributor-dialog input { min-width: 0; border: 1px solid #cddedb; border-radius: 12px; padding: 14px; font: inherit; font-weight: 400; }
.pay-distributor-dialog form > button { grid-column: 1 / -1; border: 0; border-radius: 12px; padding: 15px; background: #087e73; color: #fff; font-weight: 900; cursor: pointer; }

@media (max-width: 820px) {
  .pay-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .pay-footer-grid,
  .pay-distributor-dialog form { grid-template-columns: 1fr; }
  .pay-distributor-dialog form > button { grid-column: 1; }
}

.pay-store-link-form { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.8fr); align-items: center; gap: 28px; }
.pay-store-link-form > div:first-child { align-self: start; }
.store-alias-setup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.store-alias-setup label { display: grid; gap: 8px; color: #53696d; }
.store-url-field { display: flex; min-width: 0; height: 52px; align-items: center; overflow: hidden; border: 1px solid #cadbd8; border-radius: 12px; background: #fff; }
.store-url-field b { flex: 0 0 auto; padding-left: 14px; color: #567075; font-size: .85rem; font-weight: 500; }
.store-url-field input { width: 100%; height: 50px !important; border: 0 !important; border-radius: 0 !important; padding-left: 2px !important; outline: 0; }
.store-published-controls { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: center; gap: 12px; }
.store-published-controls { grid-column: 2; }
.store-link-summary { display: grid; gap: 5px; min-width: 0; }
.store-link-summary small { color: #687d80; }
.store-link-summary strong { overflow: hidden; color: #087e73; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.store-switch { display: inline-grid !important; grid-template-columns: 48px auto; align-items: center; gap: 10px !important; cursor: pointer; }
.store-switch input { position: absolute; opacity: 0; pointer-events: none; }
.store-switch span { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #aabbb8; transition: .2s ease; }
.store-switch span::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; content: ""; transition: .2s ease; }
.store-switch input:checked + span { background: #16866f; }
.store-switch input:checked + span::after { transform: translateX(22px); }
.store-switch input:disabled + span { opacity: .55; }
.store-switch b { color: #364f53; font-size: .82rem; white-space: nowrap; }
.store-published-controls > a,
.store-published-controls > button { border: 1px solid #cadbd8; border-radius: 11px; padding: 13px 15px; background: #fff; color: #14252a; font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.store-published-controls > button { border-color: #167b68; background: #167b68; color: #fff; }
.pay-store-link-form > #storeStatus { grid-column: 2; min-height: 1.1em; }

@media (max-width: 1050px) {
  .pay-store-link-form,
  .store-published-controls { grid-template-columns: 1fr; }
  .pay-store-link-form > #storeStatus { grid-column: 1; }
  .store-published-controls > a,
  .store-published-controls > button { text-align: center; }
}

@media (max-width: 600px) {
  .store-alias-setup { grid-template-columns: 1fr; }
  .store-url-field b { display: none; }
  .store-url-field input { padding-left: 14px !important; }
}

/* Página pública BrooPay */
#publicNav { align-items: center; }
#publicNav .public-panel-access { margin-left: 8px; border: 1px solid #bed8ef; border-radius: 999px; padding: 11px 17px; background: #edf6ff; color: #1768bb; font-size: .82rem; font-weight: 850; text-decoration: none; }
#publicNav .public-panel-access:hover { border-color: #1768bb; background: #1768bb; color: #fff; }

#publicApp { width: min(1500px, calc(100% - 48px)); padding-top: 42px; }
.public-pay-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); align-items: center; gap: clamp(28px, 6vw, 90px); min-height: 650px; overflow: hidden; border: 1px solid #d8e8f4; border-radius: 36px; padding: clamp(48px, 7vw, 100px); background: radial-gradient(circle at 12% 10%, #d9fbf7 0, transparent 30%), linear-gradient(135deg, #f5fbff 0%, #fff 45%, #edf5ff 100%); box-shadow: 0 24px 70px rgba(31, 70, 132, .09); }
.public-pay-hero::before { position: absolute; top: -120px; right: -100px; width: 430px; height: 430px; border: 1px solid rgba(33, 115, 215, .12); border-radius: 50%; content: ""; }
.public-hero-copy { position: relative; z-index: 2; }
.public-hero-copy > span { color: #1473ca; }
.public-hero-copy h1 { max-width: 850px; margin: 22px 0; color: #101e43; font-size: clamp(3.3rem, 6.3vw, 6.8rem); line-height: .92; }
.public-hero-copy h1 em { color: #2476d4; font-style: normal; }
.public-hero-copy p { max-width: 690px; color: #617287; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.public-hero-actions button,
.public-hero-actions a { border: 1px solid #1f73ce; border-radius: 13px; padding: 15px 20px; font-size: .82rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.public-hero-actions button { background: linear-gradient(135deg, #247de0, #1967ba); color: #fff; box-shadow: 0 12px 25px rgba(31, 111, 201, .22); }
.public-hero-actions a { background: #fff; color: #1769bc; }
.public-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: #60758a; font-size: .76rem; font-weight: 700; }
.public-trust-row span::first-letter { color: #13a48b; }

.public-hero-visual { position: relative; display: grid; min-height: 440px; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(38, 122, 220, .16); border-radius: 50%; }
.hero-orbit-one { width: 390px; height: 390px; animation: pay-orbit 18s linear infinite; }
.hero-orbit-two { width: 300px; height: 300px; border-color: rgba(35, 205, 177, .24); animation: pay-orbit 13s linear infinite reverse; }
.hero-orbit::after { position: absolute; top: 10%; left: 8%; width: 14px; height: 14px; border-radius: 50%; background: #2ed8bb; box-shadow: 0 0 0 8px rgba(46, 216, 187, .12); content: ""; }
.hero-wallet-mark { position: relative; z-index: 2; display: grid; width: 270px; height: 270px; place-items: center; overflow: hidden; border: 1px solid rgba(202, 221, 239, .9); border-radius: 34px; background: rgba(255, 255, 255, .88); box-shadow: 0 28px 70px rgba(35, 81, 153, .18); transform: rotate(-3deg); }
.hero-wallet-mark img { width: 270px; transform: translateY(-36px); }
.public-hero-visual article { position: absolute; z-index: 3; right: 0; bottom: 42px; display: grid; gap: 4px; min-width: 220px; border: 1px solid #d7e6f2; border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .95); box-shadow: 0 18px 40px rgba(30, 69, 132, .15); }
.public-hero-visual article small { color: #6c7c8d; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.public-hero-visual article strong { color: #126bca; font-size: 1.65rem; }
.public-hero-visual article b { color: #0c8f7b; font-size: .75rem; }
@keyframes pay-orbit { to { transform: rotate(360deg); } }

.public-products-section { min-height: 600px; padding: 50px 0; }
.public-products-section > header { margin-bottom: 28px; }
.public-products-section > header span { color: #1673ca; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.public-products-section h1 { margin: 8px 0; color: #101f42; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; }
.public-products-section header p { margin: 0; color: #687a8d; }
.public-products-section .public-product { border-color: #d8e5f1; background: linear-gradient(145deg, #fff, #f8fbff); box-shadow: 0 18px 45px rgba(34, 71, 132, .09); }
.public-products-section .public-product > div > strong { color: #176dca; }

.pay-public-footer { background: linear-gradient(135deg, #0d1c42, #102c52 58%, #0a4a53); color: #dce8f5; }
.pay-footer-grid p { color: #aebfd1; }
.pay-footer-grid a,
.pay-footer-grid button:not(.pay-distributor-button) { color: #dce8f5; }
.pay-footer-grid a:hover,
.pay-footer-grid button:not(.pay-distributor-button):hover { color: #5ce2cb; }
.pay-footer-logo-viewport { display: block; width: 250px; height: 78px; overflow: hidden; border: 0 !important; padding: 0 !important; }
.pay-footer-logo-viewport img { width: 250px !important; max-width: none; filter: none !important; transform: translateY(-75px); }
.pay-distributor-button { border-color: #48d2bd; background: rgba(34, 205, 178, .08); }
.pay-footer-bottom { border-top-color: rgba(174, 202, 224, .2); color: #91a8bd; }

@media (max-width: 1050px) {
  .public-pay-hero { grid-template-columns: 1fr; }
  .public-hero-visual { min-height: 390px; }
  .public-hero-visual article { right: 12%; }
}

@media (max-width: 620px) {
  #publicApp { width: min(100% - 24px, 1500px); }
  #publicNav .public-panel-access { display: none; }
  .public-pay-hero { min-height: auto; border-radius: 24px; padding: 38px 24px; }
  .public-hero-copy h1 { font-size: 3.15rem; }
  .public-hero-actions { display: grid; }
  .public-hero-actions button,
  .public-hero-actions a { text-align: center; }
  .public-trust-row { display: grid; gap: 10px; }
  .public-hero-visual { min-height: 320px; }
  .hero-orbit-one { width: 290px; height: 290px; }
  .hero-orbit-two { width: 220px; height: 220px; }
  .hero-wallet-mark { width: 215px; height: 215px; }
  .hero-wallet-mark img { width: 215px; transform: translateY(-28px); }
  .public-hero-visual article { right: 0; bottom: 4px; min-width: 190px; }
}

/* Identidad BrooPay */
.pay-header::after { background: linear-gradient(90deg, #ff5a00, #ff9a56, transparent 78%); }
#privateNav button:hover { background: #fff1e8; color: #d94800; }
#privateNav button.active { background: linear-gradient(135deg, #fff0e6, #fff8f3); color: #d94b00; box-shadow: inset 0 0 0 1px #ffd2b8; }
#publicNav .public-panel-access { border-color: #ffc29e; background: #fff3eb; color: #d94b00; }
#publicNav .public-panel-access:hover { border-color: #ff5a00; background: #ff5a00; color: #fff; }
.pay-header-balances span,
.pay-header-balances small b,
.pay-header-balances em,
#usdtBalanceCard span,
#usdtBalanceCard small b,
#usdtBalanceCard em { color: #e54f00; }
.pay-products-home { background: linear-gradient(135deg, rgba(255, 241, 231, .94), rgba(255, 252, 249, .94)); box-shadow: inset 0 0 0 1px #f2dfd2; }
.pay-products-home > div:first-child > span,
.pay-profile-shell > header > span,
.public-hero-copy > span,
.public-products-section > header span { color: #e55100; }
.pay-products-home h1,
.pay-profile-shell h1,
.profile-security-row strong,
.web3-setting-copy strong,
.public-hero-copy h1,
.public-products-section h1 { color: #111; }
.profile-setting-icon { background: linear-gradient(135deg, #fff0e6, #fff8f3); }
.profile-security-row > button { border-color: #ffc29e; background: #fff3eb; color: #d94b00; }
.profile-security-row > button:hover { background: #ff5a00; color: #fff; }
.public-pay-hero { border-color: #f0dfd4; background: radial-gradient(circle at 12% 10%, #fff0e5 0, transparent 32%), linear-gradient(135deg, #fffaf7 0%, #fff 46%, #f5f5f5 100%); box-shadow: 0 24px 70px rgba(80, 34, 8, .09); }
.public-pay-hero::before { border-color: rgba(255, 90, 0, .15); }
.public-hero-copy h1 em { color: #ff5a00; }
.public-hero-actions button { border-color: #ff5a00; background: linear-gradient(135deg, #ff6a19, #e94f00); box-shadow: 0 12px 25px rgba(255, 90, 0, .22); }
.public-hero-actions a { border-color: #ff8b4c; color: #d94b00; }
.hero-orbit-one { border-color: rgba(255, 90, 0, .2); }
.hero-orbit-two { border-color: rgba(20, 20, 20, .15); }
.hero-orbit::after { background: #ff5a00; box-shadow: 0 0 0 8px rgba(255, 90, 0, .12); }
.hero-wallet-mark { border-color: #f0ded3; box-shadow: 0 28px 70px rgba(100, 43, 10, .16); }
.hero-wallet-mark img { transform: translateY(-63px); }
.public-hero-visual article strong,
.public-products-section .public-product > div > strong { color: #e54f00; }
.public-hero-visual article b { color: #303030; }
.pay-public-footer { background: linear-gradient(135deg, #090909, #171717 58%, #3c1804); }
.pay-footer-logo-viewport { height: 96px; }
.pay-footer-logo-viewport img { transform: translateY(-94px); }
.pay-distributor-button { border-color: #ff7d36; background: rgba(255, 90, 0, .1); }
.pay-distributor-button:hover,
.pay-distributor-dialog form > button,
.admin-invite-form button,
.pay-admin-heading button,
.pay-admin-account > button,
.pay-admin-recharge button { background: #ff5a00; }
.login-eyebrow,
.pay-distributor-dialog header span { color: #e55100; }
.pay-login.admin-login form { border-top-color: #ff5a00; }
.pay-login .forgot-password-button { color: #d94b00; }
.web3-settings-dialog #accountingIntegrationForm > button,
.accounting-actions button[type="submit"] { background: #ff5a00; }

@media (max-width: 620px) {
  .hero-wallet-mark img { transform: translateY(-50px); }
}
