:root {
  color-scheme: dark;
  --bg: #101310;
  --surface: #191E19;
  --surface-2: #202720;
  --border: #2B342B;
  --green: #00A86B;
  --green-hover: #00945E;
  --yellow: #FFD700;
  --text: #E8ECE7;
  --muted: #929B91;
  --red: #E16B6B;
  --radius: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button, input {
  font: inherit;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: #20C98A;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 18px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0 auto 25px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand strong {
  color: var(--green);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #07140D;
  font-size: 14px;
  font-weight: 900;
}

.auth-card {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.register-card {
  padding-top: 30px;
  padding-bottom: 26px;
}

.auth-heading {
  margin-bottom: 27px;
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.auth-heading h1 {
  margin: 9px 0 7px;
  font-size: clamp(24px, 5vw, 29px);
  letter-spacing: -1px;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-group {
  min-width: 0;
  margin-bottom: 19px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-group label,
.success-panel label {
  display: block;
  margin-bottom: 8px;
  color: #DCE2DA;
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.api-key-box input {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  color: var(--text);
  background: #121712;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form-group input::placeholder {
  color: #687267;
}

.form-group input:focus,
.api-key-box input:focus {
  border-color: var(--green);
  background: #141B15;
}

.form-group small,
.success-panel small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.password-toggle:hover {
  color: var(--text);
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 0 17px;
  color: #07140D;
  background: var(--green);
  border: 0;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover {
  color: #07140D;
  background: var(--green-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-switch {
  margin: 23px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.auth-switch a {
  margin-left: 4px;
  font-weight: 700;
}

.auth-footer {
  margin: 22px 0 0;
  color: #697268;
  text-align: center;
  font-size: 11px;
}

.auth-footer span {
  padding: 0 5px;
  color: var(--yellow);
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--red);
  background: rgba(225, 107, 107, 0.08);
  border: 1px solid rgba(225, 107, 107, 0.22);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.form-message.success {
  color: #65D6A4;
  background: rgba(0, 168, 107, 0.08);
  border-color: rgba(0, 168, 107, 0.25);
}

.success-panel {
  margin-top: 22px;
  padding: 19px;
  background: #141B15;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.success-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #07140D;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.success-panel h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.success-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.api-key-box {
  display: flex;
  gap: 8px;
}

.api-key-box input {
  min-width: 0;
  font-size: 12px;
}

.api-key-box button {
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.continue-link {
  margin-top: 18px;
  text-decoration: none;
}

@media (max-width: 520px) {
  .app-shell {
    align-items: flex-start;
    padding: 28px 14px;
  }

  .auth-container {
    max-width: 430px;
  }

  .auth-card {
    padding: 25px 20px;
  }

  .register-card {
    padding-top: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* DASHBOARD PUBLICO */
.dashboard-page .app-shell {
  display: block;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 22px;
}

.dashboard-container {
  width: 100%;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  margin: 0;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.dashboard-brand strong {
  color: var(--yellow);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-actions form {
  margin: 0;
}

.dashboard-user {
  color: var(--muted);
  font-size: 13px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.icon-action:hover {
  background: var(--surface-2);
  border-color: var(--green);
}

.icon-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register-action {
  color: var(--green);
}

.dashboard-hero {
  padding: 55px 0 35px;
}

.dashboard-hero .eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.dashboard-hero h1 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: clamp(27px, 5vw, 43px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.dashboard-hero h1 span {
  color: var(--green);
}

.dashboard-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.dashboard-section {
  margin-top: 25px;
}

.section-heading {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.stat-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-label {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 750;
}

.stat-note {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

#api-status {
  color: var(--green);
}

.account-section {
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-links a {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.dashboard-links a:hover {
  border-color: var(--green);
}

.dashboard-cta {
  margin-top: 35px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dashboard-cta h2 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 19px;
}

.dashboard-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-footer {
  margin-top: 45px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 600px) {
  .dashboard-page .app-shell {
    padding: 18px 15px;
  }

  .dashboard-header {
    padding-bottom: 18px;
  }

  .dashboard-brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .dashboard-hero {
    padding: 40px 0 25px;
  }

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

  .stat-card {
    padding: 15px 12px;
  }

  .stat-value {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


/* PLANOS E MODAL */
.plans-entry {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plans-entry-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.plans-entry h2 {
  margin: 7px 0 9px;
  color: var(--text);
  font-size: 20px;
}

.plans-entry p,
.plans-modal-header p,
.custom-plan > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.plans-open-button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.plans-modal[hidden] {
  display: none !important;
}

.plans-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.plans-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.plans-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.plans-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.plans-modal-header h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 23px;
}

.plans-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  cursor: pointer;
}

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

.plan-option {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg, transparent);
}

.plan-option.plan-featured {
  border-color: var(--green);
}

.plan-duration {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.plan-option h3 {
  margin: 8px 0;
  color: var(--text);
  font-size: 17px;
}

.plan-option > strong {
  color: var(--text);
  font-size: 23px;
}

.plan-option p {
  min-height: 55px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.plan-option button {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.plan-option button:hover:not(:disabled) {
  border-color: var(--green);
}

.plan-option button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.custom-plan {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.custom-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.custom-plan-heading h3 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 18px;
}

.custom-plan-heading > strong {
  color: var(--green);
  font-size: 22px;
}

#custom-amount-range {
  width: 100%;
  margin: 22px 0 15px;
  accent-color: var(--green);
}

.custom-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 13px;
}

.custom-amount-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
}

.custom-amount-input input {
  width: 95px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.custom-plan-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0;
  padding: 13px;
  border-radius: 10px;
  background: rgba(0, 168, 107, .08);
  color: var(--muted);
  font-size: 12px;
}

.custom-plan-result strong {
  color: var(--green);
  font-size: 16px;
}

.custom-plan-result small {
  width: 100%;
}

.custom-buy-button {
  width: 100%;
  min-height: 45px;
  border: 0;
  cursor: pointer;
}

.custom-buy-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.custom-plan-footnote {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

body.plans-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .plans-entry-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .plans-cards {
    grid-template-columns: 1fr;
  }

  .plan-option p {
    min-height: 0;
  }

  .plans-modal-panel {
    padding: 18px;
  }
}

/* ================================
   CONTA / PERFIL
================================ */

.account-container {
  width: 100%;
  max-width: 920px;
  margin: auto;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.account-header .brand {
  justify-content: flex-start;
  margin: 0;
}

.account-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.account-back:hover {
  color: var(--green);
}

.account-hero {
  margin-bottom: 28px;
}

.account-hero h1 {
  margin: 9px 0;
  font-size: clamp(27px, 5vw, 36px);
  letter-spacing: -1.2px;
}

.account-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.account-card {
  margin-bottom: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.account-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}

.account-card-heading h2 {
  margin: 7px 0 0;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.account-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 168, 107, .3);
  border-radius: 13px;
  background: rgba(0, 168, 107, .12);
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
}

.account-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 23px;
}

.account-identity strong {
  font-size: 15px;
}

.account-identity span {
  color: var(--muted);
  font-size: 12px;
}

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

.account-fields label,
.delete-account-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #DCE2DA;
  font-size: 13px;
  font-weight: 600;
}

.account-field-full {
  grid-column: 1 / -1;
}

.account-fields input,
.delete-account-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: #121712;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  transition: border-color .18s ease;
}

.account-fields input:focus,
.delete-account-form input:focus {
  border-color: var(--green);
}

.account-fields input::placeholder,
.delete-account-form input::placeholder {
  color: #687267;
}

.account-fields small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.account-button {
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--green);
  color: #07140D;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}

.account-button:hover {
  background: var(--green-hover);
}

.account-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.account-form > .account-button {
  margin-top: 21px;
}

.account-message {
  margin-top: 17px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 107, 107, .25);
  border-radius: 9px;
  background: rgba(225, 107, 107, .08);
  color: #F09A9A;
  font-size: 12px;
  line-height: 1.5;
}

.account-message.success {
  border-color: rgba(0, 168, 107, .25);
  background: rgba(0, 168, 107, .08);
  color: #65D5A5;
}

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

.account-details > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.account-details span {
  color: var(--muted);
  font-size: 11px;
}

.account-details strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.danger-card {
  border-color: rgba(225, 107, 107, .22);
}

.danger-card .eyebrow {
  color: var(--red);
}

.danger-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.danger-action > div {
  min-width: 0;
}

.danger-action strong {
  font-size: 14px;
}

.danger-action p {
  max-width: 520px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.secondary-button {
  flex-shrink: 0;
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.secondary-button:hover {
  background: #293329;
}

.danger-button {
  flex-shrink: 0;
  border-color: rgba(225, 107, 107, .3);
  background: rgba(225, 107, 107, .12);
  color: #F08C8C;
}

.danger-button:hover {
  background: rgba(225, 107, 107, .2);
}

.account-muted {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.delete-account-form {
  margin-top: 15px;
  padding: 20px;
  border: 1px solid rgba(225, 107, 107, .25);
  border-radius: 12px;
  background: rgba(225, 107, 107, .045);
}

.delete-account-form h3 {
  margin: 0 0 8px;
  color: #F08C8C;
  font-size: 16px;
}

.delete-account-form > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.delete-account-form label {
  margin-top: 15px;
}

.delete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.account-footer {
  padding: 15px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 600px) {
  .account-header {
    margin-bottom: 32px;
  }

  .account-card {
    padding: 19px;
  }

  .account-fields,
  .account-details {
    grid-template-columns: 1fr;
  }

  .account-field-full {
    grid-column: auto;
  }

  .danger-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-muted {
    text-align: left;
  }

  .delete-actions {
    flex-direction: column-reverse;
  }

  .delete-actions .account-button {
    width: 100%;
  }
}

/* PERFIL: DADOS E MODAL DE EDIÇÃO */

.profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-edit-trigger {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.profile-edit-trigger:hover {
  background: rgba(0, 168, 107, .10);
  border-color: var(--green);
  transform: translateY(-1px);
}

.profile-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.profile-readonly-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.profile-readonly-item span {
  color: var(--muted);
  font-size: 12px;
}

.profile-readonly-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(4px);
}

.profile-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  animation: profileModalIn .2s ease-out;
}

@keyframes profileModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-modal-heading h2 {
  margin: 6px 0 0;
}

.profile-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.profile-modal-close:hover {
  color: var(--text);
  border-color: var(--green);
}

.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.profile-modal-actions .account-button {
  min-width: 130px;
}

@media (max-width: 520px) {
  .profile-readonly {
    grid-template-columns: 1fr;
  }

  .profile-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .profile-modal-content {
    width: 100%;
    max-height: 92vh;
    padding: 20px 16px;
    border-radius: 18px 18px 12px 12px;
  }

  .profile-modal-actions {
    flex-direction: column-reverse;
  }

  .profile-modal-actions .account-button {
    width: 100%;
  }
}

/* MENU FLUTUANTE DA CONTA */
.account-menu {
  position: relative;
}

.account-menu-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--surface-2);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(0, 168, 107, .17);
  border: 1px solid rgba(0, 168, 107, .35);
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 100;
  width: min(320px, calc(100vw - 32px));
  max-height: min(75vh, 480px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  animation: accountMenuIn .16s ease-out;
}

.account-menu-panel[hidden] {
  display: none;
}

@keyframes accountMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 7px 13px;
}

.account-avatar-large {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  font-size: 19px;
  flex-shrink: 0;
}

.account-menu-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.account-menu-identity strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.account-menu-identity span {
  color: var(--muted);
  font-size: 12px;
}

.account-menu-divider {
  height: 1px;
  margin: 5px 0 10px;
  background: var(--border);
}

.account-menu-label {
  display: block;
  padding: 3px 9px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 45px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.account-menu-item:hover {
  background: var(--surface-2);
}

.account-menu-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--green);
}

.account-menu-icon svg {
  width: 17px;
  height: 17px;
}

.account-menu-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.account-menu-disabled small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.account-menu form {
  margin: 0;
}

.account-menu-logout {
  color: #E57373;
}

.account-menu-logout .account-menu-icon {
  color: #E57373;
}

.account-menu-logout:hover {
  background: rgba(229, 115, 115, .09);
}

@media (max-width: 480px) {
  .account-menu-panel {
    right: -5px;
  }
}

/* API KEYS - DASHBOARD */
.api-keys-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-keys-limit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.api-keys-limit span {
  color: var(--text-muted, #999);
  font-size: 13px;
}

.api-keys-limit strong {
  color: #d8c36a;
  font-size: 14px;
}

.api-key-create-form,
.api-key-created {
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.api-key-create-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-color, #eee);
  font-size: 13px;
}

.api-key-create-fields {
  display: flex;
  gap: 10px;
}

.api-key-create-fields input {
  flex: 1;
  min-width: 0;
}

.api-key-created {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: rgba(0, 168, 107, 0.3);
}

.api-key-created strong {
  color: #00a86b;
}

.api-key-created p {
  margin: 0;
  color: var(--text-muted, #999);
  font-size: 13px;
}

.api-key-created code {
  display: block;
  padding: 12px;
  overflow-wrap: anywhere;
  color: #e5d58a;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  user-select: all;
}

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.api-key-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.api-key-info strong {
  color: var(--text-color, #eee);
  overflow-wrap: anywhere;
}

.api-key-info code {
  color: #c9b96c;
  font-size: 12px;
}

.api-key-info small {
  color: var(--text-muted, #999);
  font-size: 11px;
}

.api-key-status {
  font-size: 11px;
  font-weight: 600;
}

.api-key-status.active {
  color: #00a86b;
}

.api-key-status.revoked {
  color: #d87575;
}

#api-key-create-message[data-type="error"] {
  color: #e47777;
}

#api-key-create-message[data-type="success"] {
  color: #00a86b;
}

.api-key-item button:disabled,
#confirm-create-api-key:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .api-key-create-fields {
    flex-direction: column;
  }

  .api-key-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-key-item button {
    width: 100%;
  }
}

/* Respeitar o atributo hidden nas caixas de API Keys */
.api-key-create-form[hidden],
.api-key-created[hidden] {
  display: none !important;
}

/* CONTROLES DAS API KEYS */
.api-key-token-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.api-key-token-controls code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.api-key-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: #d8c36a;
  background: rgba(216, 195, 106, 0.08);
  border: 1px solid rgba(216, 195, 106, 0.25);
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.api-key-icon-btn:hover {
  background: rgba(216, 195, 106, 0.17);
  border-color: #d8c36a;
}

.api-key-icon-btn:active {
  transform: scale(.94);
}

.api-key-icon-btn svg,
.api-key-copy-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-key-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.api-key-revoke-btn {
  flex-shrink: 0;
  color: #f08080 !important;
  background: rgba(190, 55, 55, 0.12) !important;
  border: 1px solid rgba(220, 85, 85, 0.35) !important;
  transition: background .2s, border-color .2s, transform .2s;
}

.api-key-revoke-btn:hover {
  background: rgba(190, 55, 55, 0.24) !important;
  border-color: rgba(240, 100, 100, 0.7) !important;
}

.api-key-revoke-btn:active {
  transform: scale(.96);
}

@media (max-width: 600px) {
  .api-key-token-controls {
    width: 100%;
  }
}

/* CAMPO DE NOME DA API KEY */
.api-key-create-fields input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: #121712;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.api-key-create-fields input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, .10);
}

.api-key-create-fields input::placeholder {
  color: #687267;
}

.api-key-create-fields input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* CORREÇÃO DOS CONTROLES DE API KEY */
.api-key-token-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.api-key-token-controls code {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  box-sizing: border-box;
}

.api-key-token-controls > .api-key-icon-btn {
  width: 42px !important;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.api-key-token-controls > .api-key-copy-btn {
  width: auto !important;
  min-width: 96px;
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .api-key-token-controls {
    grid-template-columns: minmax(0, 1fr) 42px auto;
  }
}

/* BOTÃO COPIAR API KEY */
.api-key-token-controls > .api-key-copy-btn {
  color: #d8c36a !important;
  background: rgba(216, 195, 106, 0.08) !important;
  border: 1px solid rgba(216, 195, 106, 0.25) !important;
  border-radius: 9px;
  transition: background .2s, border-color .2s;
}

.api-key-token-controls > .api-key-copy-btn:hover {
  background: rgba(216, 195, 106, 0.17) !important;
  border-color: #d8c36a !important;
}

.api-key-token-controls > .api-key-copy-btn:active {
  transform: scale(.96);
}

.api-key-token-controls > .api-key-copy-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}



/* =====================================
   CATÁLOGO DE ROTAS - DEVWORLD BR
===================================== */

.routes-catalog {
  --routes-bg: #0d0f0e;
  --routes-card: #151816;
  --routes-border: #292e2a;
  --routes-green: #00a86b;
  --routes-yellow: #d8c36a;
  --routes-text: #eeeeee;
  --routes-muted: #a5aaa6;

  color: var(--routes-text);
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px;
}

.routes-header {
  margin-bottom: 25px;
}

.routes-header-top,
.routes-card-top,
.route-card-bottom,
.route-details-header,
.route-examples-heading,
.route-example-title,
.route-endpoint,
.routes-content-heading,
.routes-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.routes-brand {
  color: var(--routes-text);
  font-weight: 800;
  text-decoration: none;
}

.routes-back,
.routes-login-link {
  color: var(--routes-yellow);
  text-decoration: none;
  font-size: 13px;
}

.routes-heading {
  margin: 48px 0 25px;
}

.routes-eyebrow {
  color: var(--routes-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.routes-heading h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 10px 0;
}

.routes-heading p,
.route-details-header p {
  color: var(--routes-muted);
  line-height: 1.7;
  max-width: 650px;
}

.routes-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--routes-card);
  border: 1px solid var(--routes-border);
  border-radius: 12px;
  padding: 0 16px;
  min-height: 52px;
}

.routes-search span {
  color: var(--routes-muted);
  font-size: 24px;
}

.routes-search input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--routes-text);
  font-size: 14px;
}

.routes-key-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  background: var(--routes-card);
  border: 1px solid var(--routes-border);
  border-radius: 13px;
  margin-bottom: 25px;
}

.routes-key-info {
  display: grid;
  gap: 5px;
  flex: 1;
}

.routes-key-info span,
.routes-key-message {
  color: var(--routes-muted);
  font-size: 12px;
}

.routes-key-panel select {
  background: var(--routes-bg);
  color: var(--routes-text);
  border: 1px solid var(--routes-border);
  border-radius: 8px;
  padding: 11px;
  max-width: 100%;
}

.routes-key-message {
  width: 100%;
  margin: 0;
}

.routes-login-link {
  background: rgba(0, 168, 107, .1);
  border: 1px solid rgba(0, 168, 107, .3);
  border-radius: 8px;
  padding: 10px 15px;
}

.routes-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.routes-sidebar,
.routes-content,
.route-details {
  background: var(--routes-card);
  border: 1px solid var(--routes-border);
  border-radius: 13px;
  padding: 20px;
}

.routes-sidebar-title {
  margin-bottom: 15px;
}

.routes-sidebar-title span,
.routes-count {
  color: var(--routes-muted);
  font-size: 12px;
}

.routes-categories {
  display: grid;
  gap: 7px;
}

.route-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px;
  color: var(--routes-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.route-category-item.active {
  color: var(--routes-green);
  background: rgba(0, 168, 107, .09);
  border-color: rgba(0, 168, 107, .25);
}

.route-category-item small {
  color: var(--routes-muted);
}

.routes-content-heading {
  margin-bottom: 20px;
}

.routes-content-heading h2 {
  font-size: 21px;
  margin: 7px 0 0;
}

.routes-list {
  display: grid;
  gap: 12px;
}

.route-card {
  border: 1px solid var(--routes-border);
  border-radius: 11px;
  padding: 16px;
}

.route-card h3 {
  font-size: 15px;
  margin: 7px 0;
}

.route-card p {
  color: var(--routes-muted);
  font-size: 13px;
  line-height: 1.6;
}

.route-card-category {
  color: var(--routes-muted);
  font-size: 11px;
}

.route-status {
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  padding: 6px 10px;
  white-space: nowrap;
}

.route-status.online {
  color: #39d99a;
  background: rgba(0, 168, 107, .12);
}

.route-status.offline {
  color: #ff7777;
  background: rgba(220, 60, 60, .12);
}

.route-card-endpoint,
.route-endpoint {
  background: var(--routes-bg);
  border: 1px solid var(--routes-border);
  border-radius: 8px;
  padding: 10px;
  margin: 14px 0;
  min-width: 0;
}

.route-card-endpoint code,
.route-endpoint code {
  color: var(--routes-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.route-method {
  color: var(--routes-yellow);
  font-size: 11px;
  font-weight: 800;
}

.route-card-bottom {
  border-top: 1px solid var(--routes-border);
  padding-top: 12px;
}

.route-card-bottom > span {
  color: var(--routes-muted);
  font-size: 11px;
}

.route-view-button,
.route-access-button {
  color: #fff;
  background: var(--routes-green);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.route-view-button:hover,
.route-access-button:hover {
  background: #008f5b;
}

.route-details {
  margin-top: 25px;
}

.route-details-header {
  align-items: flex-start;
}

.route-details-header h2 {
  margin: 8px 0;
}

.route-close {
  background: transparent;
  color: var(--routes-muted);
  border: 1px solid var(--routes-border);
  border-radius: 8px;
  padding: 9px 13px;
}

.route-offline-warning {
  color: #ff7777;
  background: rgba(220, 60, 60, .1);
  border: 1px solid rgba(220, 60, 60, .25);
  padding: 13px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 13px;
}

.route-params-section,
.route-examples {
  margin-top: 25px;
}

.route-params-section h3,
.route-examples h3 {
  font-size: 15px;
  margin-bottom: 13px;
}

.route-params-list {
  display: grid;
  gap: 10px;
}

.route-param {
  padding: 13px;
  border: 1px solid var(--routes-border);
  border-radius: 9px;
}

.route-param > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.route-param > div span {
  color: var(--routes-muted);
  font-size: 11px;
}

.route-param .route-required {
  color: #ff7777;
}

.route-param .route-optional {
  color: var(--routes-green);
}

.route-param p {
  color: var(--routes-muted);
  font-size: 12px;
}

.route-param code {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.route-example-card {
  border: 1px solid var(--routes-border);
  border-radius: 10px;
  margin-top: 13px;
  overflow: hidden;
}

.route-example-title {
  padding: 12px;
  background: #191d1a;
}

.route-copy-button {
  color: var(--routes-yellow);
  background: rgba(216, 195, 106, .08);
  border: 1px solid rgba(216, 195, 106, .25);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}

.route-example-card pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--routes-bg);
}

.route-example-card pre code {
  color: #c5d5ca;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.route-action-area {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.route-action-area > span {
  color: var(--routes-muted);
  font-size: 12px;
}

.route-access-button:disabled,
.route-copy-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.route-response {
  background: var(--routes-bg);
  border: 1px solid var(--routes-border);
  padding: 14px;
  border-radius: 9px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c5d5ca;
}

.routes-empty,
.routes-loading {
  color: var(--routes-muted);
  text-align: center;
  padding: 25px 10px;
  font-size: 13px;
}

.routes-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--routes-muted);
  font-size: 11px;
  padding: 25px 0;
}

.routes-catalog [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .routes-catalog {
    padding: 15px;
  }

  .routes-layout {
    grid-template-columns: 1fr;
  }

  .routes-sidebar {
    padding: 14px;
  }

  .routes-categories {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .route-category-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .routes-key-panel {
    align-items: stretch;
  }

  .routes-key-panel select {
    width: 100%;
  }

  .routes-heading {
    margin-top: 35px;
  }

  .route-details-header {
    flex-direction: column;
  }

  .route-endpoint {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .routes-card-top {
    align-items: flex-start;
  }

  .route-card-bottom {
    align-items: flex-start;
  }

  .route-view-button {
    padding: 9px;
  }
}

/* MENU LATERAL DE CATEGORIAS */
.routes-category-toggle,
.routes-category-close {
  display: none;
}

.routes-catalog,
.routes-layout,
.routes-content {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.routes-catalog {
  overflow-x: clip;
}

@media (max-width: 760px) {
  .routes-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 15px;
    color: var(--routes-green);
    background: rgba(0, 168, 107, .09);
    border: 1px solid rgba(0, 168, 107, .25);
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
  }

  .routes-layout {
    display: block;
    width: 100%;
    overflow: visible;
  }

  .routes-sidebar {
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    height: 100dvh;
    padding: 22px 16px;
    overflow-y: auto;
    background: #111511;
    border-right: 1px solid var(--routes-border);
    border-radius: 0 12px 12px 0;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }

  .routes-layout.categories-open .routes-sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .routes-layout.categories-open::before {
    content: "";
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(0, 0, 0, .65);
  }

  .routes-category-close {
    display: block;
    margin-left: auto;
    width: 36px;
    height: 36px;
    color: var(--routes-muted);
    background: transparent;
    border: 1px solid var(--routes-border);
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
  }

  .routes-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .route-category-item {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .routes-content {
    width: 100%;
    overflow-wrap: anywhere;
  }

  body.routes-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .routes-catalog {
    padding-left: 12px;
    padding-right: 12px;
  }

  .route-card,
  .route-details,
  .routes-key-panel {
    min-width: 0;
    max-width: 100%;
  }

  .route-endpoint code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* BOTÃO DE DOCUMENTAÇÃO — SETA */
.route-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--routes-green);
  background: transparent;
  border: 1px solid var(--routes-border);
  border-radius: 8px;
  font-size: 21px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}

.route-view-button:hover {
  color: #fff;
  background: var(--routes-green);
  border-color: var(--routes-green);
}

