/* LinkZap Admin — layout com sidebar */

.admin-body {
  min-height: 100vh;
  margin: 0;
  background: #edf2ef;
  color: #0e1a16;
  font-family: "Sora", sans-serif;
}

.hidden { display: none !important; }

#login-view {
  position: relative;
  z-index: 40;
}
#app-view.hidden {
  display: none !important;
  pointer-events: none;
}

/* ——— Login ——— */
.adm-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(13, 159, 110, 0.18), transparent 55%),
    radial-gradient(600px 380px at 100% 0%, rgba(8, 55, 42, 0.1), transparent 50%),
    linear-gradient(160deg, #e8efeb 0%, #f4f7f5 100%);
}
.adm-login-stage {
  width: min(920px, 100%);
  display: grid;
  gap: 1.25rem;
  animation: admRise 0.55s ease both;
}
@media (min-width: 880px) {
  .adm-login-stage {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 520px;
  }
}
.adm-login-hero {
  border-radius: 20px;
  padding: 2.25rem;
  color: #e7f6ef;
  background:
    radial-gradient(420px 240px at 15% 0%, rgba(13, 159, 110, 0.4), transparent 60%),
    linear-gradient(150deg, #0a1f18 0%, #06140f 55%, #0d2a20 100%);
  display: grid;
  align-content: center;
  gap: 0.75rem;
}
.adm-login-brand {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
}
.adm-login-hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
}
.adm-login-hero p {
  margin: 0;
  color: rgba(231, 246, 239, 0.72);
  max-width: 28ch;
  line-height: 1.5;
}
.adm-login-card {
  border-radius: 20px;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(14, 26, 22, 0.08);
  box-shadow: 0 18px 40px rgba(7, 20, 16, 0.08);
  display: grid;
  gap: 0.85rem;
  align-content: center;
}
.adm-login-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #0e1a16;
}
.adm-login-sub {
  margin: -0.35rem 0 0.15rem;
  color: #5a6f66;
  font-size: 0.88rem;
}
.adm-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.adm-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d5249;
}
.adm-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(14, 26, 22, 0.18);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: #0e1a16;
  background: #f7faf8;
}
.adm-field input:focus {
  outline: none;
  border-color: #0d9f6e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 159, 110, 0.18);
}
.adm-login-error {
  margin: 0;
  color: #c0352b;
  font-size: 0.88rem;
  font-weight: 500;
}
.adm-login-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.adm-btn:active { transform: translateY(1px); }
.adm-btn-primary {
  background: linear-gradient(180deg, #14c286 0%, #0d9f6e 100%);
  border-color: #087a55;
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 159, 110, 0.28);
}
.adm-btn-primary:hover {
  background: linear-gradient(180deg, #1ad091 0%, #0b8f63 100%);
}
.adm-btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}
.adm-btn-secondary {
  background: #fff;
  border-color: rgba(14, 26, 22, 0.22);
  color: #0e1a16;
}
.adm-btn-secondary:hover {
  background: #f3f7f5;
  border-color: rgba(13, 159, 110, 0.4);
  color: #087a55;
}

@keyframes admRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ——— App shell ——— */
.adm-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 200px 1fr;
}
@media (max-width: 960px) {
  .adm-app { grid-template-columns: 1fr; }
}

.adm-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.75rem;
  background: #071410;
  color: #d7e8df;
  z-index: 30;
}
.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
}
.adm-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #062018;
  background: #1fd191;
}
.adm-sidebar-brand strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
}
.adm-sidebar-brand small {
  color: #7f9a8d;
  font-size: 0.7rem;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  padding: 0 0.2rem;
}
.adm-nav-label { display: none; }
.adm-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #9eb5aa;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.42rem 0.55rem;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.12s ease, background 0.12s ease;
}
.adm-nav-item:hover {
  background: transparent;
  color: #fff;
}
.adm-nav-item.active {
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
  border-left: 2px solid #1fd191;
  padding-left: calc(0.55rem - 2px);
}
.adm-nav-ico { display: none; }
.adm-nav-count {
  margin-left: auto;
  min-width: 1.1rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7f9a8d;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
}
.adm-nav-item.active .adm-nav-count {
  color: #9eb5aa;
}

.adm-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.adm-gateway {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9eb5aa;
  text-align: center;
}
.adm-gateway.ok {
  color: #7dffc4;
  background: rgba(13, 159, 110, 0.2);
}
.adm-gateway.warn {
  color: #f0c27a;
  background: rgba(196, 122, 26, 0.18);
}
.adm-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.25rem;
}
.adm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #134a38;
  color: #c8ecd9;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.adm-user-meta {
  min-width: 0;
}
.adm-user-meta strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-user-meta small {
  display: block;
  color: #7f9a8d;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.adm-side-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #b8d0c4;
  text-decoration: none;
  text-align: center;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  cursor: pointer;
}
.adm-side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.adm-side-link.danger:hover {
  border-color: rgba(192, 53, 43, 0.45);
  color: #ffb4ae;
}

@media (max-width: 960px) {
  .adm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(220px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  }
  .adm-sidebar.open { transform: none; }
  .adm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 16, 0.45);
    z-index: 25;
  }
}

.adm-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.adm-topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(14, 26, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.adm-menu-btn {
  display: none;
  border: 1px solid rgba(14, 26, 22, 0.12);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}
@media (max-width: 960px) {
  .adm-menu-btn { display: grid; place-items: center; }
}
.adm-topbar-copy { flex: 1; min-width: 0; }
.adm-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6f66;
}
.adm-topbar h1 {
  margin: 0.1rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.adm-topbar-actions { display: flex; gap: 0.5rem; }

.adm-content {
  padding: 1.25rem 1.5rem 2.5rem;
  animation: admRise 0.4s ease both;
}
.adm-view { display: grid; gap: 1.15rem; }

.adm-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 1100px) {
  .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-stat,
.adm-stat {
  background: #fff;
  border: 1px solid rgba(14, 26, 22, 0.08);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 22px rgba(7, 20, 16, 0.04);
}
.adm-stat strong,
.admin-stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #0e1a16;
}
.adm-stat span,
.admin-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #5a6f66;
}

.adm-dash-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .adm-dash-grid { grid-template-columns: 1fr; }
}

.adm-panel {
  background: #fff;
  border: 1px solid rgba(14, 26, 22, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(7, 20, 16, 0.04);
}
.adm-panel-accent {
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(13, 159, 110, 0.16), transparent 60%),
    linear-gradient(165deg, #0c221a 0%, #0a1a14 100%);
  color: #e7f6ef;
  border: none;
}
.adm-panel-accent h3 { color: #fff; }
.adm-panel-accent .adm-lead { color: rgba(231, 246, 239, 0.72); }
.adm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.adm-panel h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.adm-lead {
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
}
.adm-checklist {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(231, 246, 239, 0.82);
}
.adm-checklist li::before {
  content: "✓ ";
  color: #1fd191;
  font-weight: 700;
}

.adm-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.adm-recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.adm-recent-list li:hover {
  background: #f3f7f5;
  border-color: rgba(14, 26, 22, 0.06);
}
.adm-recent-list strong {
  display: block;
  font-size: 0.88rem;
}
.adm-recent-list small {
  color: #5a6f66;
  font-size: 0.72rem;
}

/* ——— Empresas ——— */
.adm-tenants-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
  min-height: calc(100vh - 140px);
}
@media (max-width: 860px) {
  .adm-tenants-layout { grid-template-columns: 1fr; }
}

.adm-tenant-rail {
  padding: 0.9rem;
  max-height: calc(100vh - 140px);
  overflow: auto;
  position: sticky;
  top: 78px;
}
@media (max-width: 860px) {
  .adm-tenant-rail { position: static; max-height: 280px; }
}

.adm-filters {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.adm-filters input,
.adm-filters select,
.admin-modal input,
.admin-modal textarea,
.adm-detail input,
.adm-detail textarea,
.adm-detail select {
  width: 100%;
  border: 1px solid rgba(14, 26, 22, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}

.adm-tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.adm-tenant-list li,
.adm-tenant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  cursor: default;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.adm-tenant-card-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  cursor: pointer;
}
.adm-tenant-list li:hover,
.adm-tenant-card:hover {
  background: #f3f7f5;
}
.adm-tenant-list li.active,
.adm-tenant-card.active {
  background: rgba(13, 159, 110, 0.1);
  border-color: rgba(13, 159, 110, 0.28);
}
.adm-tenant-list strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-tenant-list small {
  color: #5a6f66;
  font-size: 0.72rem;
}
.adm-tenant-card-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}
.status-pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #5a6f66;
}
.status-pill.active { background: rgba(13, 159, 110, 0.14); color: #087a55; }
.status-pill.blocked { background: rgba(192, 53, 43, 0.12); color: #c0352b; }
.status-pill.pending { background: rgba(196, 122, 26, 0.14); color: #a66510; }

.adm-detail {
  min-height: 480px;
}
.adm-empty {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 360px;
  gap: 0.35rem;
  color: #5a6f66;
}
.adm-empty strong {
  color: #0e1a16;
  font-size: 1.05rem;
}
.adm-empty p { margin: 0; font-size: 0.88rem; }

.admin-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(14, 26, 22, 0.08);
}
.admin-detail-head h2 {
  margin: 0 0 0.3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}
.admin-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(14, 26, 22, 0.04);
  border: 1px solid rgba(14, 26, 22, 0.08);
}
.admin-detail-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5a6f66;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-detail-tab:hover {
  color: #0e1a16;
  background: rgba(255, 255, 255, 0.7);
}
.admin-detail-tab.active {
  color: #0e1a16;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 26, 22, 0.08);
}
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(13, 159, 110, 0.12);
  color: #087a55;
  font-size: 0.72rem;
  font-weight: 700;
}
.admin-detail-tab.active .admin-tab-count {
  background: rgba(13, 159, 110, 0.18);
}
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
  animation: admTabIn 0.2s ease both;
}
@keyframes admTabIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .admin-plan-grid { grid-template-columns: 1fr; }
  .admin-detail-tabs { flex-direction: column; }
  .admin-detail-tab { justify-content: space-between; }
}
.admin-section {
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}
.admin-section-flat {
  margin-top: 0;
  padding-top: 0;
}
.admin-section h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}
.adm-usability-masters {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
}
.adm-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(14, 26, 22, 0.1);
  border-radius: 12px;
  background: #f7faf8;
  cursor: pointer;
}
.adm-switch-row span {
  display: grid;
  gap: 0.15rem;
}
.adm-switch-row strong {
  font-size: 0.9rem;
}
.adm-switch-row small {
  color: #5a6b64;
  font-size: 0.75rem;
}
.adm-switch-row input[type="checkbox"],
.adm-switch-inline input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #0d9f6e;
  cursor: pointer;
}
.adm-switch-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.adm-switch-inline input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-list-head h4 { margin: 0; }

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(14, 26, 22, 0.08);
  vertical-align: middle;
}
.admin-table th {
  color: #5a6f66;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table .col-actions,
.admin-row-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}
.btn-icon {
  appearance: none;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(14, 26, 22, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #1a2e26;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-icon:hover {
  background: rgba(13, 159, 110, 0.1);
  border-color: rgba(13, 159, 110, 0.35);
  color: #087a55;
}
.btn-icon.danger:hover {
  background: rgba(192, 53, 43, 0.1);
  border-color: rgba(192, 53, 43, 0.35);
  color: #c0352b;
}
.btn-icon .ico {
  width: 1rem;
  height: 1rem;
  display: block;
}

.btn-icon.disabled,
.btn-icon:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.pix-box {
  margin-top: 0.5rem;
  padding: 0.65rem;
  background: #f3f7f5;
  border-radius: 10px;
  word-break: break-all;
  font-size: 0.75rem;
}
.temp-pass {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #fff8e8;
  border: 1px solid rgba(196, 122, 26, 0.3);
  border-radius: 12px;
  font-size: 0.88rem;
}

/* Modal */
.admin-modal {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 60px rgba(7, 20, 16, 0.22);
}
.admin-modal::backdrop {
  background: rgba(7, 20, 16, 0.5);
}
.admin-modal form {
  display: grid;
}
.adm-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.15rem 1.2rem 0.5rem;
}
.adm-modal-head h3 {
  margin: 0.15rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
}
.adm-modal-body {
  padding: 0.5rem 1.2rem 0.25rem;
  display: grid;
  gap: 0.65rem;
  max-height: min(60vh, 520px);
  overflow: auto;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid rgba(14, 26, 22, 0.08);
  margin-top: 0.75rem;
}

/* Botões globais do admin (não dependem só do styles.css) */
.adm-app .btn,
.admin-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(14, 26, 22, 0.16);
  background: #fff;
  color: #0e1a16;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
.adm-app .btn.primary,
.admin-modal .btn.primary {
  background: linear-gradient(180deg, #14c286 0%, #0d9f6e 100%);
  border-color: #087a55;
  color: #fff;
}
.adm-app .btn.tiny {
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
}
.adm-app .btn.danger-ghost {
  background: transparent;
  border-color: transparent;
  color: #c0352b;
}
.adm-app .btn.icon-btn {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
}

.adm-plans-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.adm-plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(14, 26, 22, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
}
.adm-plan-card.highlighted {
  border-color: #e85d04;
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.2);
}
.adm-plan-card.inactive {
  opacity: 0.55;
}
.adm-plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #e85d04;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.45rem;
}
.adm-plan-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.adm-plan-price {
  margin: 0.55rem 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.adm-plan-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a6f66;
}
.adm-plan-features {
  margin: 0.5rem 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
}
.adm-plan-features li {
  padding-left: 1.15rem;
  position: relative;
}
.adm-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e85d04;
  font-weight: 700;
}
.adm-plan-features li.off {
  color: #9aa8a2;
  text-decoration: line-through;
}
.adm-plan-features li.off::before {
  content: '–';
  color: #9aa8a2;
}

.badge-soft { /* compat */ }
