/* aCloak custom patch over WowDash */
:root {
  --acloak-accent: #5a6acf;
}
body { min-height: 100vh; }
.auth .card { border-radius: 16px; }
.ac-auth-hero {
  background: linear-gradient(160deg, rgba(91,106,207,.15), rgba(91,106,207,.03));
  border: 1px solid rgba(91,106,207,.18);
  max-width: 520px;
}
.ac-disabled-link { opacity: .6; cursor: not-allowed; }
.ac-breadcrumb { list-style: none; padding-left: 0; }
.active-page {
  background: rgba(91,106,207,.12) !important;
  color: #5a6acf !important;
  border-radius: 12px;
}
.sidebar-menu li.open > a.active-page .menu-icon,
.sidebar-menu li > a.active-page .menu-icon { color: #5a6acf !important; }
.card .table > :not(caption) > * > * { vertical-align: middle; }
.table.bordered-table td small,
.table.bordered-table th small { line-height: 1.2; }
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f4f5fb;
  color: #4d566b;
}
.ac-chip--green { background: #e9f9f1; color: #15925f; }
.ac-chip--red { background: #fff0f0; color: #d13d3d; }
.ac-chip--blue { background: #eef2ff; color: #5564d4; }
.ac-chip--yellow { background: #fff8e8; color: #c58b16; }
.ac-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  background: #f6f7fb;
  border: 1px dashed #dbe0ef;
  border-radius: 10px;
  padding: 6px 10px;
  display: inline-block;
}
.ac-kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.ac-kv + .ac-kv { margin-top: 8px; }
.ac-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #46506a;
}
.ac-list-scroll { max-height: 220px; overflow: auto; }
.ac-textarea-mono { font-family: ui-monospace, monospace; font-size: 13px; }
.ac-source-item {
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.ac-source-item.disabled { opacity: .6; background: #fafbff; }
.ac-stat-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ac-stat-card .value { font-size: 28px; font-weight: 700; line-height: 1; }
.ac-page-actions .btn { white-space: nowrap; }
.alert { border-radius: 10px; }
textarea.form-control { min-height: 120px; }
.form-check-input:checked { background-color: #5a6acf; border-color: #5a6acf; }
@media (max-width: 991.98px) {
  .dashboard-main-body { padding: 20px 16px 80px; }
}

/* ===== aCloak dashboard/billing polish (2026-02-23) ===== */
.ac-stat-card .value{font-size:1.65rem;font-weight:700;line-height:1.15}
.ac-stat-card .icon-wrap{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center}
.ac-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(113,128,150,.12);color:inherit;font-size:.78rem;font-weight:600}
.ac-chip--green{background:rgba(34,197,94,.12);color:#16a34a}
.ac-chip--red{background:rgba(239,68,68,.12);color:#dc2626}
.ac-chip--yellow{background:rgba(245,158,11,.16);color:#b45309}
.ac-chip--blue{background:rgba(59,130,246,.13);color:#2563eb}
.ac-kv{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:10px;background:rgba(127,127,127,.06)}
.ac-mini-chart-wrap{display:flex;align-items:flex-end;gap:8px;overflow:auto;padding-bottom:6px}
.ac-mini-chart-col{min-width:30px;display:flex;flex-direction:column;align-items:center;gap:6px}
.ac-mini-bars{height:128px;display:flex;align-items:flex-end;gap:3px}
.ac-bar{display:block;width:10px;border-radius:8px 8px 3px 3px;background:#94a3b8;opacity:.95}
.ac-bar--hits{background:#3b82f6}
.ac-bar--blocks{background:#ef4444}
.ac-mini-chart-label{font-size:.7rem;color:var(--bs-secondary-color,#6b7280)}

.ac-billing-hero .card{border:1px solid rgba(127,127,127,.12)}
.ac-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.ac-plan-card{position:relative;border:1px solid rgba(127,127,127,.14);border-radius:16px;background:var(--white);padding:16px}
html[data-theme=dark] .ac-plan-card{background:#1e2235;border-color:rgba(255,255,255,.08)}
.ac-plan-card h5{margin:0 0 6px;font-weight:700}
.ac-plan-card .muted{color:var(--bs-secondary-color,#6b7280);font-size:.85rem}
.ac-plan-period{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:12px;background:rgba(127,127,127,.06);margin-top:10px;gap:8px}
.ac-plan-period.active{outline:2px solid rgba(59,130,246,.2)}
.ac-plan-price{font-weight:800;font-size:1rem}
.ac-balance-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(245,158,11,.12);font-weight:700}

/* Fix long helper text in IP sources create/edit cards */
.ac-ip-feeds-title-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ac-ip-feeds-title-wrap .ac-note{margin:0;color:var(--bs-secondary-color,#6b7280);font-size:.82rem;line-height:1.25;max-width:100%}

/* Small topup button in header */
.navbar-header .btn.btn-xs{padding:4px 8px;font-size:.75rem;line-height:1.1;border-radius:8px}


/* language switch visibility in dark mode */
.ac-lang-switch .btn{min-width:44px;border-radius:10px}
html[data-theme=dark] .ac-lang-switch .btn.btn-light-100,
html[data-theme=dark] .ac-lang-switch .btn.btn-light{
  background:#23283b !important;
  color:#eef2ff !important;
  border:1px solid rgba(255,255,255,.14) !important;
}
html[data-theme=dark] .ac-lang-switch .btn.btn-primary-600{
  box-shadow:0 0 0 1px rgba(255,255,255,.12) inset;
}
html[data-theme=dark] .navbar-header .bg-neutral-100,
html[data-theme=dark] .navbar-header .bg-neutral-200{background:#23283b !important;color:#eef2ff !important}
