/* =========================================================
   HostPanel — tema visual hPanel (Hostinger)
   Carregado depois de style.css. O tema claro é o padrão do
   painel; o escuro continua disponível pelo botão de tema.
   ========================================================= */

:root {
  --hp-purple:      #673de6;
  --hp-purple-h:    #5130c9;
  --hp-purple-soft: rgba(103, 61, 230, .12);
  --hp-purple-line: rgba(103, 61, 230, .28);
  --hp-page:        #07090f;
  --hp-line:        rgba(255, 255, 255, .07);
}

html[data-theme="light"] {
  color-scheme: light;
  --hp-purple:      #673de6;
  --hp-purple-h:    #5130c9;
  --hp-purple-soft: #f0ecfd;
  --hp-purple-line: #ddd2fb;
  --hp-page:        #f4f5f9;
  --hp-line:        #e6e8ef;

  --bg:     #f4f5f9;
  --bg2:    #ffffff;
  --bg3:    #f4f5f9;
  --bg4:    #eceef5;
  --card:   #ffffff;
  --card2:  #fafbfe;
  --border: #e6e8ef;
  --border2:#dcdfe8;
  --border3:#c8ccd8;

  --accent:   #673de6;
  --accent-h: #5130c9;
  --accent2:  #8b5cf6;
  --accent3:  #6d5bd0;
  --accent4:  #12855c;

  --text:  #1f2430;
  --text2: #5f6673;
  --text3: #858b98;

  --success: #12855c;
  --warning: #b45309;
  --danger:  #d13438;
  --info:    #673de6;

  --radius:  16px;
  --radius2: 10px;
  --radius3: 7px;
  --shadow:  0 12px 32px rgba(25, 30, 50, .08);
  --shadow2: 0 2px 8px rgba(25, 30, 50, .06);
  --glow:    none;
  --sidebar-w: 264px;
}

html[data-theme="light"] body {
  background: var(--hp-page);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

html[data-theme="light"] a { color: var(--hp-purple); }
html[data-theme="light"] a:hover { color: var(--hp-purple-h); }

/* ---------- Estrutura ---------- */
html[data-theme="light"] .wrapper { background: var(--hp-page); }
/* Impede que tabelas largas estiquem a página inteira: o .table-wrap rola sozinho. */
.main { min-width: 0; }
html[data-theme="light"] .main { margin-left: var(--sidebar-w); }
html[data-theme="light"] .content { padding: 26px 32px 40px; }

/* ---------- Sidebar ---------- */
html[data-theme="light"] .sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--hp-line);
  box-shadow: none;
}
html[data-theme="light"] .sidebar::after { display: none; }

html[data-theme="light"] .sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--hp-line);
  gap: 12px;
}
html[data-theme="light"] .sidebar-logo .logo-icon,
html[data-theme="light"] .login-logo .logo-icon-lg {
  background: linear-gradient(140deg, #7a52f4 0%, #673de6 60%, #5a32cf 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(103, 61, 230, .24);
}
html[data-theme="light"] .sidebar-logo .logo-icon {
  width: 38px; height: 38px; border-radius: 10px; font-size: 20px;
}
html[data-theme="light"] .sidebar-logo span { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
html[data-theme="light"] .sidebar-logo .logo-icon .hp-ico { width: 21px; height: 21px; }

.hp-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hp-brand-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-brand-text small { font-size: 10.5px; font-weight: 500; color: var(--text3); margin-top: 3px; letter-spacing: .2px; }

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .18);
  color: #f0b45f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
html[data-theme="light"] .nav-badge { background: #fff1e6; color: #b45309; }

html[data-theme="light"] .sidebar-nav { padding: 8px 12px 16px; }
html[data-theme="light"] .sidebar-nav::-webkit-scrollbar-thumb { background: #e2e5ec; }

html[data-theme="light"] .nav-label {
  font-size: 10.5px; font-weight: 600; color: #98a0ae;
  text-transform: none; letter-spacing: .3px;
  padding: 16px 10px 6px;
}

html[data-theme="light"] .nav-link {
  gap: 11px;
  padding: 9px 11px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: #565d6b;
  font-size: 13px;
  font-weight: 500;
}
html[data-theme="light"] .nav-link:hover { background: #f6f7fb; color: #1f2430; }
html[data-theme="light"] .nav-link.active {
  background: var(--hp-purple-soft);
  color: var(--hp-purple);
  font-weight: 600;
}
html[data-theme="light"] .nav-link.active::before { display: none; }
html[data-theme="light"] .nav-link .nav-icon,
html[data-theme="light"] .nav-link .icon {
  width: 19px; height: 19px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #7c8494; font-size: 15px;
  transition: color .18s;
}
html[data-theme="light"] .nav-link:hover .nav-icon,
html[data-theme="light"] .nav-link.active .nav-icon { color: var(--hp-purple); }
html[data-theme="light"] .nav-link .nav-text { flex: 1; min-width: 0; }
html[data-theme="light"] .nav-link .nav-ico-emoji { font-size: 14px; line-height: 1; }

html[data-theme="light"] .sidebar-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--hp-line);
}

.hp-sidebar-help {
  margin: 14px 12px 0;
  padding: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hp-purple) 7%, var(--bg2));
  border: 1px solid color-mix(in srgb, var(--hp-purple) 16%, var(--border));
  display: flex; flex-direction: column; gap: 4px;
}
.hp-sidebar-help strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.hp-sidebar-help span { font-size: 11.5px; line-height: 1.45; color: var(--text2); }
.hp-sidebar-help a { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--hp-purple); }

/* ---------- Topbar ---------- */
html[data-theme="light"] .topbar {
  height: 64px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--hp-line);
  backdrop-filter: blur(10px);
  padding: 0 28px;
}
html[data-theme="light"] .topbar-title { font-size: 15px; font-weight: 700; letter-spacing: -.2px; color: var(--text); }
html[data-theme="light"] .topbar-left { gap: 14px; flex: 1; min-width: 0; }
html[data-theme="light"] #menuBtn { color: #6b7280; font-size: 19px; }
html[data-theme="light"] .topbar-user { gap: 8px; color: var(--text2); }

/* Busca do painel */
.hp-search {
  position: relative;
  width: min(420px, 46vw);
  flex-shrink: 1;
}
.hp-search input {
  width: 100%;
  height: 38px;
  padding: 0 76px 0 38px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--bg3);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.hp-search input::placeholder { color: var(--text3); }
.hp-search input:focus {
  background: var(--card);
  border-color: var(--hp-purple);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, .13);
}
.hp-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #8b92a1; display: inline-flex; pointer-events: none;
}
.hp-search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .2px;
  color: #8b92a1; background: var(--card);
  border: 1px solid var(--border2); border-radius: 5px;
  padding: 2px 5px; pointer-events: none;
}
.hp-search-results {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 100%; min-width: 300px; max-height: 370px; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(20, 24, 40, .16);
  padding: 6px; z-index: 320;
}
.hp-search-results[hidden] { display: none; }
.hp-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.hp-search-item .hp-ico { color: #7c8494; flex-shrink: 0; }
.hp-search-item small { margin-left: auto; font-size: 10.5px; color: var(--text3); font-weight: 600; }
.hp-search-item:hover,
.hp-search-item.is-active { background: var(--hp-purple-soft); color: var(--hp-purple); }
.hp-search-item:hover .hp-ico,
.hp-search-item.is-active .hp-ico { color: var(--hp-purple); }
.hp-search-empty { padding: 14px 12px; font-size: 12.5px; color: var(--text2); }

/* Botões do topo */
.hp-topbar-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: #666e7d;
  cursor: pointer; transition: background .18s, color .18s;
  padding: 0;
}
.hp-topbar-btn:hover { background: var(--bg3); color: var(--hp-purple); }
.hp-topbar-btn .hp-ico { width: 19px; height: 19px; }
.hp-theme-sun, .hp-theme-moon { display: none; align-items: center; justify-content: center; }
html[data-theme="light"] .hp-theme-moon { display: inline-flex; }
html:not([data-theme="light"]) .hp-theme-sun { display: inline-flex; }

.hp-user-chip { display: flex; align-items: center; gap: 9px; padding: 3px 4px 3px 10px; border-radius: 10px; }
.hp-user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.hp-user-meta strong { font-size: 12.5px; font-weight: 700; color: var(--text); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-user-meta small { font-size: 10.5px; color: var(--text3); font-weight: 500; margin-top: 2px; }

html[data-theme="light"] .avatar {
  width: 34px; height: 34px;
  background: linear-gradient(140deg, #7a52f4, #673de6);
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: none; border: none;
}

/* ---------- Cards ---------- */
html[data-theme="light"] .card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
  transition: box-shadow .2s, border-color .2s;
}
html[data-theme="light"] .card:hover { border-color: #dfe2ea; box-shadow: 0 6px 20px rgba(16, 24, 40, .05); }
html[data-theme="light"] .card-title {
  font-size: 15px; font-weight: 700; letter-spacing: -.15px;
  margin-bottom: 16px; color: var(--text);
}
html[data-theme="light"] .card-title .hp-ico,
html[data-theme="light"] .card-title svg { color: var(--hp-purple); }

html[data-theme="light"] .stat-grid { gap: 16px; margin-bottom: 22px; }
html[data-theme="light"] .stat-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  padding: 18px 20px;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
}
html[data-theme="light"] .stat-card::before,
html[data-theme="light"] .stat-card::after { display: none; }
html[data-theme="light"] .stat-card:hover { transform: translateY(-2px); border-color: #dfe2ea; box-shadow: 0 8px 22px rgba(16, 24, 40, .06); }
html[data-theme="light"] .stat-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  background: color-mix(in srgb, var(--c1, #673de6) 11%, #fff);
  color: var(--c1, #673de6);
}
html[data-theme="light"] .stat-icon .hp-ico { width: 20px; height: 20px; }
html[data-theme="light"] .stat-val {
  font-family: inherit;
  font-size: 27px; font-weight: 800; letter-spacing: -.9px;
  color: var(--text);
}
html[data-theme="light"] .stat-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--text3);
}

/* ---------- Tabelas ---------- */
html[data-theme="light"] .table-wrap { border-radius: 12px; }
html[data-theme="light"] th {
  background: #f8f9fc;
  color: #8a91a0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .55px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hp-line);
}
html[data-theme="light"] td {
  padding: 13px 16px;
  font-size: 13px;
  color: #4d5462;
  border-bottom: 1px solid #eef0f5;
}
html[data-theme="light"] tr:last-child td { border-bottom: none; }
html[data-theme="light"] tr:hover td { background: #fafbff; color: var(--text); }
html[data-theme="light"] .td-bold { color: var(--text); font-weight: 600; }

/* ---------- Formulários ---------- */
html[data-theme="light"] .form-label {
  font-size: 12.5px; font-weight: 700; color: #3f4553;
  letter-spacing: 0; margin-bottom: 6px;
}
html[data-theme="light"] .form-control {
  min-height: 42px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d8dbe4;
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: none;
}
html[data-theme="light"] .form-control:hover:not(:focus) { border-color: #bfc4d1; }
html[data-theme="light"] .form-control:focus {
  border-color: var(--hp-purple);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, .14);
  background: #fff;
}
html[data-theme="light"] .form-control::placeholder { color: #9aa0ad; font-weight: 400; }
html[data-theme="light"] select.form-control option { background: #fff; color: var(--text); }
html[data-theme="light"] textarea.form-control { min-height: 110px; }

/* ---------- Botões ---------- */
html[data-theme="light"] .btn {
  border-radius: 9px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
html[data-theme="light"] .btn-primary {
  background: var(--hp-purple);
  color: #fff;
  box-shadow: none;
}
html[data-theme="light"] .btn-primary:hover {
  background: var(--hp-purple-h);
  color: #fff;
  box-shadow: 0 4px 14px rgba(103, 61, 230, .22);
  transform: translateY(-1px);
}
html[data-theme="light"] .btn-ghost {
  background: #fff;
  border: 1px solid #d8dbe4;
  color: #3f4553;
}
html[data-theme="light"] .btn-ghost:hover { background: #f6f7fb; border-color: #c3c8d5; color: var(--text); }
html[data-theme="light"] .btn-success { background: #12855c; color: #fff; }
html[data-theme="light"] .btn-danger  { background: #d13438; color: #fff; }
html[data-theme="light"] .btn-warning { background: #b45309; color: #fff; }
html[data-theme="light"] .btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* ---------- Badges, flashes e avisos ---------- */
html[data-theme="light"] .badge {
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  letter-spacing: 0;
}
html[data-theme="light"] .badge::before { width: 5px; height: 5px; }
html[data-theme="light"] .flash {
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13px;
  margin-bottom: 18px;
}
html[data-theme="light"] .info-box { border-radius: 10px; }
html[data-theme="light"] .info-box-blue { background: #f4f1ff; border-color: #e2d9fb; }
html[data-theme="light"] .info-box-yellow { background: #fff8e8; border-color: #f6e2b8; }

/* ---------- Login / recuperação ---------- */
html[data-theme="light"] .login-page {
  background: radial-gradient(1200px 600px at 50% -10%, #ece6ff 0%, #f4f5f9 55%, #f4f5f9 100%);
}
html[data-theme="light"] .login-page::before { display: none; }
html[data-theme="light"] .login-box {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 22px 60px rgba(20, 24, 40, .09);
}
html[data-theme="light"] .login-logo { margin-bottom: 26px; }
html[data-theme="light"] .login-logo .logo-icon-lg {
  width: 56px; height: 56px;
  border-radius: 14px;
  font-size: 26px;
  margin-bottom: 14px;
}
html[data-theme="light"] .login-logo h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
html[data-theme="light"] .login-logo p { font-size: 13px; color: var(--text2); margin-top: 4px; }
html[data-theme="light"] .login-box .btn-block { margin-top: 4px; }
html[data-theme="light"] .login-box .form-group { margin-bottom: 15px; }

/* ---------- Componentes explicativos (hp-*) ---------- */
html[data-theme="light"] .hp-callout {
  background: #f8f9fc;
  border: 1px solid var(--hp-line);
  border-left: 4px solid var(--cc);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text2);
}
html[data-theme="light"] .hp-callout-title { color: var(--text); font-weight: 700; }
.hp-callout-ico { display: inline-flex; vertical-align: -3px; margin-right: 2px; }

html[data-theme="light"] .hp-step {
  background: #f8f9fc;
  border: 1px solid var(--hp-line);
  border-radius: 13px;
}
html[data-theme="light"] .hp-step.current { background: #f4f0ff; border-color: var(--hp-purple-line); }
html[data-theme="light"] .hp-step.done { background: #f0faf6; border-color: #c6e9db; }
html[data-theme="light"] .hp-step-num { background: #fff; border-color: #d8dbe4; color: var(--text2); }
html[data-theme="light"] .hp-step.current .hp-step-num { background: var(--hp-purple); border-color: var(--hp-purple); color: #fff; }

html[data-theme="light"] .hp-next {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-left: 4px solid var(--nc);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
}
html[data-theme="light"] .hp-next-title { font-size: 16px; }
html[data-theme="light"] .hp-next-text { color: var(--text2); }

html[data-theme="light"] .hp-hero {
  background: linear-gradient(120deg, #f1ecff 0%, #f7f5ff 55%, #fff 100%);
  border: 1px solid var(--hp-purple-line);
  border-radius: 16px;
}
html[data-theme="light"] .hp-hero h1 { font-size: 21px; }
html[data-theme="light"] .hp-hero p { color: var(--text2); }

html[data-theme="light"] .hp-help-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 13px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
html[data-theme="light"] .hp-help-card:hover {
  border-color: #d9dcE6;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
  transform: translateY(-1px);
}
html[data-theme="light"] .hp-help-icon { color: var(--hp-purple); }
html[data-theme="light"] .hp-help-text { color: var(--text2); }

html[data-theme="light"] .hp-module-hint { background: #f8f9fc; border-color: var(--hp-line); color: var(--text2); }
html[data-theme="light"] .hp-advanced { background: #fff; border-color: var(--hp-line); }
html[data-theme="light"] .hp-advanced .card { background: #f8f9fc; }

html[data-theme="light"] .module-tab {
  background: #fff;
  border: 1px solid #d8dbe4;
  color: var(--text2);
  border-radius: 9px;
}
html[data-theme="light"] .module-tab.active,
html[data-theme="light"] .module-tab:hover {
  background: var(--hp-purple-soft);
  border-color: var(--hp-purple-line);
  color: var(--hp-purple);
}
html[data-theme="light"] .shortcut-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 13px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
html[data-theme="light"] .shortcut-card:hover {
  background: #fff;
  border-color: var(--hp-purple-line);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
}
html[data-theme="light"] .shortcut-card span { color: var(--hp-purple); }
html[data-theme="light"] .shortcut-card small { color: var(--text2); }
html[data-theme="light"] .mini-feature { background: #f8f9fc; border-color: var(--hp-line); }
html[data-theme="light"] .mini-feature span { color: var(--text2); }

html[data-theme="light"] .code-block { background: #f7f8fb; border-color: var(--hp-line); }
html[data-theme="light"] code { background: #f0ecfd; color: #5b35c9; }
html[data-theme="light"] .empty-state { color: var(--text3); }
html[data-theme="light"] .empty-state .icon { color: #b9bfcc; }

html[data-theme="light"] .breadcrumb { color: var(--text3); }
html[data-theme="light"] .breadcrumb a { color: var(--text3); }
html[data-theme="light"] .breadcrumb span { color: var(--text2); }
html[data-theme="light"] .progress-bar { background: #eceef5; }
html[data-theme="light"] .progress-fill { background: linear-gradient(90deg, #673de6, #8b5cf6); }
html[data-theme="light"] hr { border-top-color: var(--hp-line); }

/* Cabeçalhos de página usados em telas internas */
html[data-theme="light"] .content > h1,
html[data-theme="light"] .content > h2 {
  letter-spacing: -.45px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hp-search { width: min(320px, 38vw); }
}

@media (max-width: 900px) {
  html[data-theme="light"] .main { margin-left: 0; }
  html[data-theme="light"] .content { padding: 18px 16px 32px; }
  html[data-theme="light"] .topbar { padding: 0 16px; }
  html[data-theme="light"] .sidebar.open { box-shadow: 8px 0 40px rgba(16, 24, 40, .18); }
  .hp-search { width: min(240px, 42vw); }
  .hp-search kbd { display: none; }
  .hp-search input { padding-right: 14px; }
  .hp-user-meta { display: none; }
  .hp-sidebar-help { display: none; }
}

@media (max-width: 600px) {
  html[data-theme="light"] .topbar-title { font-size: 14px; }
  .hp-search { display: none; }
  .hp-user-chip { padding-left: 0; }
  html[data-theme="light"] .login-box { padding: 30px 22px; }
  html[data-theme="light"] .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Páginas internas — cabeçalho, utilitários e componentes
   ========================================================= */

/* Cabeçalho de página (título + ação principal) */
.hp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.hp-page-head-text { min-width: 0; }
.hp-page-head-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.25;
  color: var(--text);
}
.hp-page-head-text p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--text2); }
.hp-page-head-text p strong { color: var(--text); font-weight: 700; }
.hp-page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-page-head-actions .btn { white-space: nowrap; }
.hp-page-head-actions .hp-ico,
.hpf-form-actions .hp-ico,
.hpf-inline-form .hp-ico,
.hpf-uploadbar .hp-ico { flex-shrink: 0; }

/* Grades reutilizáveis */
.hpg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hpg-grid-2 > .card { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Textos auxiliares */
.hpf-hint { font-size: 12.5px; line-height: 1.55; color: var(--text2); margin: -6px 0 14px; }
.hpf-help { display: block; font-size: 11.5px; line-height: 1.5; color: var(--text3); margin-top: 6px; }
.hpf-muted { color: var(--text3); font-size: 12px; }
.hpf-err { color: #d13438; font-size: 11px; margin-top: 3px; }
.hpf-sep { height: 1px; background: var(--border); margin: 16px 0; }
.hpf-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hpf-inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hpf-inline-form .form-control { flex: 1 1 190px; min-width: 0; }

/* Etiquetas de status */
.hpf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.hpf-pill.is-ok { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: #0f8a5f; }
.hpf-pill.is-warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .32); color: #a8570b; }
.hpf-pill.is-err { background: rgba(209, 52, 56, .1); border-color: rgba(209, 52, 56, .3); color: #c02b2f; }
html:not([data-theme="light"]) .hpf-pill.is-ok { color: #34d399; }
html:not([data-theme="light"]) .hpf-pill.is-warn { color: #f0b45f; }
html:not([data-theme="light"]) .hpf-pill.is-err { color: #f87171; }

/* Blocos de aviso compactos */
.hpf-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  line-height: 1.55;
}
.hpf-note > .hp-ico { flex-shrink: 0; margin-top: 2px; }
.hpf-note strong { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.hpf-note span { display: block; }
.hpf-note.is-warn { background: rgba(245, 158, 11, .09); border-color: rgba(245, 158, 11, .3); }
.hpf-note.is-warn > .hp-ico { color: #b45309; }
.hpf-note.is-ok { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .26); }
.hpf-note.is-ok > .hp-ico { color: #12855c; }

/* Pares rótulo/valor */
.hpf-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
}
.hpf-kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hpf-kv span { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text3); }
.hpf-kv strong { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.hpf-kv strong.is-warn { color: #b45309; }
.hpf-kv strong.is-ok { color: #12855c; }
html:not([data-theme="light"]) .hpf-kv strong.is-warn { color: #f0b45f; }
html:not([data-theme="light"]) .hpf-kv strong.is-ok { color: #34d399; }

.hpf-last-send {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 13px;
  margin: 0 0 14px;
  border-radius: 9px;
  border: 1px dashed var(--border2);
  font-size: 12px;
  color: var(--text2);
}
.hpf-last-send span { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text3); }
.hpf-last-send strong { color: var(--text); }
.hpf-last-send small { color: var(--text3); }

/* Caixa de seleção em linha */
.hpf-switch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
  cursor: pointer;
}
.hpf-switch input { width: 16px; height: 16px; margin-top: 2px; accent-color: #673de6; flex-shrink: 0; }
.hpf-switch strong { display: block; font-size: 12.5px; color: var(--text); }
.hpf-switch small { display: block; font-size: 11.5px; color: var(--text3); margin-top: 1px; }

/* Cartões de escolha (rádio) */
.hpf-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg3);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.hpf-choice:hover { border-color: var(--border3); }
.hpf-choice input { margin-top: 3px; accent-color: #673de6; flex-shrink: 0; }
.hpf-choice strong { display: block; font-size: 12.5px; color: var(--text); }
.hpf-choice small { display: block; font-size: 11.5px; color: var(--text3); margin-top: 1px; line-height: 1.45; }
.hpf-choice:has(input:checked) { border-color: #673de6; background: color-mix(in srgb, #673de6 8%, var(--bg2)); }
.hpf-choice:has(input:checked) strong { color: #673de6; }
html:not([data-theme="light"]) .hpf-choice:has(input:checked) strong { color: #b9a6ff; }

/* =========================================================
   Gerenciador de arquivos
   ========================================================= */
.hpf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hpf-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hpf-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; font-size: 13px; }
.hpf-crumbs a, .hpf-crumbs .cur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  font-weight: 600;
  color: var(--text2);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hpf-crumbs a:hover { background: var(--bg3); color: #673de6; }
.hpf-crumbs .cur { color: var(--text); font-weight: 700; }
.hpf-crumbs .sep { color: var(--text3); display: inline-flex; align-items: center; }
.hpf-crumbs .sep .hp-ico { width: 13px; height: 13px; }
.hpf-crumbs .hpf-crumb-home { padding: 5px 6px; }
.hpf-crumbs .hpf-crumb-home .hp-ico { width: 15px; height: 15px; }

.hpf-bulkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.hpf-check-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); cursor: pointer; }
.hpf-check-label input { width: 15px; height: 15px; accent-color: #673de6; }

.hpf-filter { position: relative; width: min(260px, 100%); }
.hpf-filter input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}
.hpf-filter input:focus { border-color: #673de6; box-shadow: 0 0 0 3px rgba(103, 61, 230, .12); }
.hpf-filter .hp-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }

.hpf-table { width: 100%; border-collapse: collapse; }
.hpf-table th:first-child, .hpf-table td:first-child { width: 42px; padding-right: 4px; }
.hpf-table th:last-child, .hpf-table td:last-child { text-align: right; }
.hpf-table td.hpf-col-size, .hpf-table th.hpf-col-size { white-space: nowrap; }
.hpf-table .hp-file-check { width: 15px; height: 15px; accent-color: #673de6; cursor: pointer; }

/* Cabeçalhos ordenáveis no estilo do gerenciador da Hostinger */
.hpf-table th.hpf-sort { padding: 0; }
.hpf-table th.hpf-sort button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.hpf-table th.hpf-sort button:hover,
.hpf-table th.hpf-sort button:focus-visible { color: #673de6; }
.hpf-table th.hpf-sort button:focus-visible { outline: 2px solid rgba(103, 61, 230, .45); outline-offset: -2px; }
.hpf-sort-ind {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  opacity: 0;
  transition: opacity .15s;
}
.hpf-table th.is-asc .hpf-sort-ind { border-bottom: 5px solid currentColor; opacity: 1; }
.hpf-table th.is-desc .hpf-sort-ind { border-top: 5px solid currentColor; opacity: 1; }
@media (hover: hover) {
  .hpf-table .hpf-actions { opacity: .3; transition: opacity .15s; }
  .hpf-table tr:hover .hpf-actions,
  .hpf-table tr:focus-within .hpf-actions { opacity: 1; }
}

.hpf-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hpf-name-text { min-width: 0; }
.hpf-name a { display: block; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpf-name a:hover { color: #673de6; }
.hpf-name small { display: block; font-size: 10.5px; color: var(--text3); margin-top: 1px; }

.hpf-fileicon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg3);
  color: var(--text2);
}
.hpf-fileicon .hp-ico { width: 18px; height: 18px; }
.hpf-fileicon.is-folder { background: rgba(245, 158, 11, .15); color: #d18b1f; }
.hpf-fileicon.is-archive { background: rgba(139, 92, 246, .16); color: #8b5cf6; }
.hpf-fileicon.is-image { background: rgba(16, 185, 129, .14); color: #12a06d; }
.hpf-fileicon.is-code { background: rgba(59, 130, 246, .15); color: #3b82f6; }
html[data-theme="light"] .hpf-fileicon.is-folder { background: #fdf3e3; color: #b45309; }
html[data-theme="light"] .hpf-fileicon.is-archive { background: #f1ebfe; color: #673de6; }
html[data-theme="light"] .hpf-fileicon.is-image { background: #e8f7f0; color: #12855c; }
html[data-theme="light"] .hpf-fileicon.is-code { background: #eaf1fd; color: #3560c9; }

.hpf-actions { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; flex-wrap: wrap; }
.hpf-ibtn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.hpf-ibtn:hover { background: var(--bg3); border-color: var(--border); color: #673de6; }
.hpf-ibtn.is-danger:hover { background: rgba(209, 52, 56, .1); border-color: rgba(209, 52, 56, .24); color: #d13438; }
.hpf-ibtn:disabled { opacity: .38; cursor: not-allowed; }
.hpf-ibtn .hp-ico { width: 16px; height: 16px; }

.hpf-newfolder {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg3);
}
.hpf-newfolder[hidden] { display: none; }
.hpf-newfolder .form-control { max-width: 260px; }

.hpf-uploadbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  background: var(--bg3);
  transition: border-color .18s, background .18s;
}
.hpf-uploadbar.is-dragover { border-color: #673de6; background: color-mix(in srgb, #673de6 8%, var(--bg2)); }
.hpf-uploadbar-info { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 260px; }
.hpf-uploadbar-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(103, 61, 230, .12); color: #673de6;
}
.hpf-uploadbar-info strong { display: block; font-size: 12.5px; color: var(--text); }
.hpf-uploadbar-info small { display: block; font-size: 11.5px; color: var(--text3); margin-top: 1px; }
.hpf-uploadbar-summary { font-size: 11.5px; color: var(--text2); flex: 1 1 200px; min-width: 0; }
.hpf-uploadbar-summary strong { display: block; font-size: 12px; color: var(--text); }
.hpf-uploadbar-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpf-uploadbar[hidden] { display: none; }

.hpf-dropzone {
  padding: 22px 18px;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  background: var(--bg3);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.hpf-dropzone.is-dragover { border-color: #673de6; background: color-mix(in srgb, #673de6 8%, var(--bg2)); }
.hpf-dropzone-ico {
  width: 44px; height: 44px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(103, 61, 230, .12); color: #673de6;
}
.hpf-dropzone strong { display: block; font-size: 13px; color: var(--text); }
.hpf-dropzone span { display: block; font-size: 12px; color: var(--text2); margin-top: 2px; }
.hpf-dropzone small { display: block; font-size: 11px; color: var(--text3); margin-top: 8px; }

/* =========================================================
   Lista de domínios
   ========================================================= */
.hpd-list { display: flex; flex-direction: column; }
.hpd-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}
.hpd-row:last-child { border-bottom: 0; }
.hpd-ico {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(103, 61, 230, .1);
  color: #673de6;
}
.hpd-ico .hp-ico { width: 18px; height: 18px; }
.hpd-main { min-width: 0; }
.hpd-main strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpd-main span { display: block; font-size: 11.5px; color: var(--text3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpd-main span a { color: var(--text3); }
.hpd-main span a:hover { color: #673de6; }
.hpd-status { display: flex; align-items: center; justify-content: flex-end; }
.hpd-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.hpd-select {
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.hpd-select:focus { outline: none; border-color: #673de6; }
.hpd-empty { padding: 34px 16px; text-align: center; color: var(--text3); }
.hpd-empty .hp-ico { color: #b9bfcc; margin-bottom: 8px; }
.hpd-empty p { font-size: 13px; margin: 0; }
.hpd-empty small { display: block; font-size: 11.5px; margin-top: 4px; color: var(--text3); }

/* Criação de subdomínio (padrão Hostinger) */
.hpsd-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.hpsd-group { display: flex; align-items: stretch; }
.hpsd-group .form-control { border-radius: 8px 0 0 8px; }
.hpsd-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border2);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--bg3);
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hpsd-switch { margin: 2px 0 0; }
.hpsd-folder { margin: 8px 0 0 26px; }
.hpsd-folder[hidden] { display: none; }
.hpsd-folder .form-control { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
@media (max-width: 760px) {
  .hpsd-grid { grid-template-columns: 1fr; }
  .hpsd-folder { margin-left: 0; }
}

/* =========================================================
   Faixa de manutenção
   ========================================================= */
.hp-maint-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  margin: 0 0 16px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 12px;
  background: rgba(245, 158, 11, .1);
}
.hp-maint-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(245, 158, 11, .18);
  color: #b45309;
}
.hp-maint-body { min-width: 0; }
.hp-maint-kicker { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #b45309; }
.hp-maint-title { font-size: 14px; font-weight: 800; color: var(--text); margin-top: 2px; }
.hp-maint-meta { font-size: 12.5px; color: var(--text2); margin-top: 3px; }
.hp-maint-text { font-size: 12.5px; line-height: 1.55; color: var(--text2); margin-top: 6px; }
.hp-maint-actions { margin-top: 8px; }
.hp-maint-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
html:not([data-theme="light"]) .hp-maint-kicker,
html:not([data-theme="light"]) .hp-maint-ico { color: #f0b45f; }

@media (max-width: 1100px) {
  .hpg-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hp-page-head { flex-direction: column; align-items: stretch; }
  .hp-page-head-actions { justify-content: flex-start; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hpf-kv { grid-template-columns: 1fr; }
  .hpd-row { grid-template-columns: 36px minmax(0, 1fr); }
  .hpd-status { grid-column: 2; justify-content: flex-start; }
  .hpd-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hpf-toolbar { align-items: flex-start; }
  .hpf-filter { width: 100%; }
}


/* Fluxo mais simples para criar e localizar subdomínios */
.hpsd-card { scroll-margin-top: 24px; }
.hpd-row { scroll-margin-top: 24px; }
.hpd-public-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #673de6 25%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, #673de6 5%, var(--bg2));
}
.hpd-public-label { margin: 0 !important; color: var(--text3); font-size: 10px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hpd-public-url { max-width: 100%; color: #673de6; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
html:not([data-theme="light"]) .hpd-public-url { color: #c4b5fd; }
.hpd-public-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hpd-public-link small { color: var(--text3); font-size: 11px; line-height: 1.45; }
.hpsd-step-label { display: flex; align-items: center; gap: 9px; margin: 18px 0 9px; color: var(--text); font-size: 13px; font-weight: 750; }
.hpsd-step-label > span { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: #673de6; color: #fff; font-size: 12px; }
.hpsd-step-next { margin-top: 18px; font-size: 12px; }
.hpsd-group { max-width: 620px; }
.hpsd-preview { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.hpsd-preview[hidden] { display: none; }
.hpsd-preview span, .hpsd-help { color: var(--text3); font-size: 11.5px; line-height: 1.5; }
.hpsd-preview a { width: fit-content; color: #673de6; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.hpsd-help { display: block; margin-top: 6px; }
.hpsd-default-info { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg3); color: var(--text2); font-size: 12px; line-height: 1.5; }
.hpsd-default-info strong { color: var(--text); font-size: 12.5px; }
.hpsd-advanced { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); }
.hpsd-advanced summary { padding: 11px 13px; color: var(--text2); font-size: 12px; font-weight: 700; cursor: pointer; }
.hpsd-advanced[open] summary { border-bottom: 1px solid var(--border); color: #673de6; }
.hpsd-advanced-body { display: grid; gap: 12px; padding: 13px; }
.hpsd-advanced-body .form-group { margin: 0; }
.hpsd-options { display: flex; flex-direction: column; gap: 8px; }
.hpsd-option-detail { padding: 0 0 4px 28px; }
.hpsd-option-detail[hidden] { display: none; }
.hpsd-option-detail .form-control { max-width: 620px; }
@media (max-width: 760px) {
  .hpd-public-link { margin-top: 8px; }
  .hpd-public-actions { width: 100%; }
  .hpd-public-actions .btn { flex: 0 0 auto; }
  .hpsd-suffix { max-width: 58%; overflow: hidden; text-overflow: ellipsis; }
}
