:root {
  --bg: #050914;
  --bg-soft: #091122;
  --panel: rgba(14, 23, 43, .90);
  --panel-strong: #10192d;
  --panel-soft: #0b1427;
  --text: #f3f7ff;
  --muted: #8ea0bd;
  --line: rgba(112, 146, 205, .14);
  --line-strong: rgba(112, 146, 205, .25);
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --accent-dark: #1d4ed8;
  --danger: #ff6b72;
  --warning: #f4bb62;
  --info: #67b5ff;
  --shadow: 0 22px 70px rgba(0,0,0,.32);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(1000px 520px at 4% -10%, rgba(37,99,235,.16), transparent 62%),
    radial-gradient(900px 500px at 100% 0, rgba(70,120,255,.10), transparent 58%),
    linear-gradient(180deg, #050914, #071023 40%, #040712);
}
a { color: var(--accent-2); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 10, 24, .92);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.brand.big { padding: 0; margin-bottom: 20px; }
.mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #eff6ff;
  background: linear-gradient(145deg, #93c5fd, #2563eb 68%, #1e40af);
  box-shadow: 0 12px 32px rgba(26, 208, 144, .28), inset 0 1px 0 rgba(255,255,255,.65);
}
.brand strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.side-label { padding: 0 10px; color: #687c9f; font-size: .67rem; letter-spacing: .16em; font-weight: 800; }
.side nav { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow-y: auto; }
.side nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b5c2d8;
  font-size: .9rem;
  transition: .18s ease;
}
.side nav a:hover { color: #f8fbff; background: rgba(255,255,255,.035); border-color: var(--line); }
.side nav a.on {
  color: #e9f2ff;
  border-color: rgba(59,130,246,.20);
  background: linear-gradient(90deg, rgba(37,99,235,.16), rgba(37,99,235,.055));
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-ico { width: 22px; text-align: center; color: var(--accent-2); font-weight: 800; }
.side-status {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(37,99,235,.10), 0 0 18px rgba(37,99,235,.8); }
.side-status strong { display:block; font-size:.75rem; }
.side-status small { display:block; margin-top:2px; color:var(--muted); font-size:.68rem; }
.logout button {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.logout button:hover { border-color: rgba(255,107,114,.32); color: #ffc4c7; background: rgba(255,107,114,.06); }
.side-credit { text-align:center; color:#687b99; font-size:.68rem; line-height:1.45; letter-spacing:.04em; }
.side-credit strong { color:var(--accent-2); margin-left:4px; }
.side-credit span { display:block; }

.main { min-width: 0; padding: 0 34px 42px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 -8px 24px;
  padding: 15px 8px;
  background: linear-gradient(180deg, rgba(5,9,20,.96) 65%, rgba(5,9,20,0));
  backdrop-filter: blur(14px);
}
.topbar > div:first-of-type strong { display:block; margin-top:2px; font-size:1.02rem; }
.eyebrow { display:block; color:#7184a5; font-size:.65rem; letter-spacing:.18em; font-weight:800; }
.top-actions { display:flex; align-items:center; gap:10px; }
.avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(145deg,#17284b,#101d37); border:1px solid var(--line-strong); color:var(--accent-2); font-weight:800; }
.menu-toggle { display:none; width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:var(--panel-soft); cursor:pointer; }

.page-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin: 0 0 20px; }
.page-head h1 { margin:0 0 6px; font-size:clamp(1.5rem,2.4vw,2.15rem); letter-spacing:-.035em; }
.page-head p { margin:0; color:var(--muted); line-height:1.55; max-width:760px; }
.page-actions { display:flex; gap:8px; flex-wrap:wrap; }

.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.stat {
  position:relative;
  overflow:hidden;
  min-height:132px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(145deg, rgba(18,29,54,.94), rgba(10,18,37,.92));
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
}
.stat::after { content:""; position:absolute; right:-28px; bottom:-48px; width:120px; height:120px; border-radius:50%; background:rgba(37,99,235,.07); }
.stat-head { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:.78rem; }
.stat-ico { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:rgba(37,99,235,.10); color:var(--accent-2); }
.stat b { display:block; margin-top:16px; font-size:2rem; line-height:1; letter-spacing:-.04em; }
.stat span { display:block; margin-top:7px; color:var(--muted); font-size:.78rem; }
.stat.warn b { color:#ffd391; }
.stat.danger b { color:#ff9ba0; }
.stat.info b { color:#9fcfff; }

.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.card {
  padding:20px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(155deg, rgba(15,25,47,.95), rgba(8,16,33,.94));
  box-shadow:0 14px 44px rgba(0,0,0,.14);
}
.card.tight { padding:0; overflow:hidden; }
.card h2,.card h3 { margin:0 0 13px; font-size:1rem; letter-spacing:-.015em; }
.card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.card-head h2 { margin:0; }
.card-sub { color:var(--muted); font-size:.8rem; }
.steps { margin:0; padding-left:20px; color:var(--muted); line-height:1.8; }
.steps strong,.steps code { color:var(--text); }

.health-list { display:flex; flex-direction:column; gap:10px; }
.health-item { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.health-item:last-child { border-bottom:0; }
.health-item strong { font-size:.86rem; }
.health-item small { display:block; margin-top:3px; color:var(--muted); }
.health-badge { white-space:nowrap; padding:5px 9px; border-radius:999px; font-size:.7rem; font-weight:800; border:1px solid rgba(37,99,235,.25); background:rgba(37,99,235,.10); color:#dbeafe; }
.health-badge.warn { border-color:rgba(244,187,98,.28); background:rgba(244,187,98,.10); color:#ffdca5; }
.health-badge.err { border-color:rgba(255,107,114,.28); background:rgba(255,107,114,.10); color:#ffc2c5; }

.metric-list { display:flex; flex-direction:column; gap:10px; }
.metric-row { display:grid; grid-template-columns:minmax(110px,1fr) 2.3fr auto; gap:12px; align-items:center; }
.metric-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.82rem; }
.metric-bar { height:8px; overflow:hidden; border-radius:999px; background:#071022; border:1px solid var(--line); }
.metric-bar > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent-dark),var(--accent-2)); }
.metric-value { color:var(--muted); font-size:.76rem; min-width:28px; text-align:right; }

.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
th,td { padding:13px 15px; text-align:left; vertical-align:middle; border-bottom:1px solid var(--line); font-size:.86rem; }
th { color:#7488a9; font-weight:700; font-size:.71rem; letter-spacing:.06em; text-transform:uppercase; background:rgba(0,0,0,.12); }
tbody tr:hover { background:rgba(255,255,255,.018); }
tbody tr:last-child td { border-bottom:0; }
.row-warn { background:rgba(244,187,98,.045); }
.muted { color:var(--muted); font-size:.79rem; line-height:1.5; }
.empty-state { padding:34px 20px; text-align:center; color:var(--muted); }
.empty-state strong { display:block; color:var(--text); margin-bottom:5px; }
.acts { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.acts form { display:inline-flex; gap:5px; align-items:center; }

.tag { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:999px; border:1px solid var(--line); font-size:.69rem; font-weight:700; }
.tag.ok { color:#dbeafe; border-color:rgba(37,99,235,.25); background:rgba(37,99,235,.09); }
.tag.warn { color:#ffdda6; border-color:rgba(244,187,98,.28); background:rgba(244,187,98,.09); }
.tag.off { color:#ffc0c3; border-color:rgba(255,107,114,.27); background:rgba(255,107,114,.08); }
.tag.info { color:#b7dcff; border-color:rgba(103,181,255,.28); background:rgba(103,181,255,.08); }

label { display:flex; flex-direction:column; gap:7px; color:var(--muted); font-size:.78rem; font-weight:600; }
label.check { flex-direction:row; align-items:center; gap:8px; color:var(--text); font-weight:500; }
input,select,textarea {
  width:100%;
  border:1px solid var(--line-strong);
  border-radius:11px;
  padding:10px 12px;
  color:var(--text);
  outline:none;
  background:#071022;
  transition:.16s ease;
}
input:focus,select:focus,textarea:focus { border-color:rgba(59,130,246,.48); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
input[type="checkbox"],input[type="radio"] { width:auto; accent-color:var(--accent); }
textarea { resize:vertical; }

.btn {
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 13px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  color:var(--text);
  background:#142443;
  cursor:pointer;
  font-weight:700;
  font-size:.78rem;
  transition:.16s ease;
}
.btn:hover { transform:translateY(-1px); border-color:rgba(96,165,250,.35); background:#1a2e55; }
.btn.primary { border-color:transparent; color:#eff6ff; background:linear-gradient(145deg,#60a5fa,#2563eb); box-shadow:0 10px 26px rgba(37,99,235,.16); }
.btn.ghost { background:transparent; }
.btn.danger { color:#ffc2c5; border-color:rgba(255,107,114,.28); background:rgba(255,107,114,.055); }
.btn.compact { min-height:34px; padding:6px 10px; }
.btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }

.row-form { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.row-form.wrap label { min-width:145px; flex:1; }
.grid-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.grid-form .full { grid-column:1/-1; }
.grid-form hr { grid-column:1/-1; width:100%; border:0; border-top:1px solid var(--line); }
.filter-bar { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.filter-bar label { min-width:220px; flex:1; }

.flash { display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:12px 14px; border-radius:13px; border:1px solid var(--line); }
.flash > span { width:25px; height:25px; flex:0 0 25px; display:grid; place-items:center; border-radius:8px; font-weight:900; }
.flash.ok { color:#dbeafe; border-color:rgba(37,99,235,.22); background:rgba(37,99,235,.09); }
.flash.ok > span { color:#eff6ff; background:var(--accent); }
.flash.err { color:#ffd0d2; border-color:rgba(255,107,114,.24); background:rgba(255,107,114,.08); }
.flash.err > span { background:var(--danger); color:#31070a; }
.flash.warn { color:#ffe0b0; border-color:rgba(244,187,98,.24); background:rgba(244,187,98,.08); }

.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(440px,100%); padding:30px; border:1px solid var(--line-strong); border-radius:24px; background:linear-gradient(155deg,rgba(14,24,46,.98),rgba(5,10,23,.98)); box-shadow:var(--shadow); }
.login-card::before { content:""; display:block; width:76px; height:3px; margin:-30px auto 27px; border-radius:0 0 8px 8px; background:linear-gradient(90deg,transparent,var(--accent),transparent); }
.login-card form { display:flex; flex-direction:column; gap:13px; }
.login-card .btn { min-height:46px; margin-top:4px; }
.login-card .hint { margin:16px 0 0; color:var(--muted); font-size:.76rem; text-align:center; line-height:1.5; }
.login-credit { margin-top:18px; padding-top:15px; border-top:1px solid var(--line); text-align:center; color:#7183a2; font-size:.7rem; }
.login-credit strong { color:var(--accent-2); margin-left:4px; }
.login-credit span { display:block; margin-top:3px; }

.tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; padding:6px; border:1px solid var(--line); border-radius:14px; background:rgba(8,16,34,.78); }
.tab { padding:9px 13px; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; font-weight:700; font-size:.78rem; }
.tab:hover { color:var(--text); background:rgba(255,255,255,.035); }
.tab.on { color:#eff6ff; background:linear-gradient(145deg,#60a5fa,#2563eb); }
.tab-panel { display:none; }
.tab-panel.on { display:block; }

.dns-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:12px; }
.dns-card { display:flex; flex-direction:column; gap:11px; padding:15px; border:1px solid var(--line); border-radius:15px; background:#081126; }
.dns-card.off { opacity:.68; border-style:dashed; }
.dns-card-head { display:flex; align-items:center; justify-content:space-between; }
.dns-idx { color:var(--muted); font-size:.76rem; font-weight:800; }
.dns-acts { margin-top:4px; }
.dns-list .hidden-form { display:none; }
.upload-row { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-start; }
.upload-box { flex:1; min-width:240px; display:flex; flex-direction:column; gap:10px; padding:15px; border:1px dashed var(--line-strong); border-radius:14px; background:#081126; }
.preview-img { max-width:260px; max-height:150px; object-fit:contain; padding:6px; border:1px solid var(--line); border-radius:13px; background:#050914; }
.brand-form { margin-bottom:8px; }

.integration-box { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#081126; }
.integration-box code { display:block; margin-top:5px; color:#b8c8e3; word-break:break-all; }
.integration-box strong { font-size:.86rem; }
.integration-actions { display:flex; flex-wrap:wrap; gap:8px; }
.channel-live { display:inline-flex; align-items:center; gap:7px; }
.channel-live::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--danger); box-shadow:0 0 0 4px rgba(255,107,114,.10); }

.panel-footer { display:flex; justify-content:space-between; gap:16px; margin-top:30px; padding:17px 0 0; border-top:1px solid var(--line); color:#657896; font-size:.72rem; }
.panel-footer span:first-child { color:#8ea1bf; }

@media (max-width: 1180px) {
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:1fr; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns:1fr; }
  .side { position:fixed; left:0; top:0; width:278px; transform:translateX(-105%); transition:.22s ease; box-shadow:30px 0 70px rgba(0,0,0,.45); }
  .side.open { transform:translateX(0); }
  .main { padding:0 20px 34px; }
  .menu-toggle { display:grid; place-items:center; }
  .topbar { justify-content:flex-start; }
  .top-actions { margin-left:auto; }
  .grid-2 { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .main { padding:0 14px 28px; }
  .topbar { min-height:70px; margin-bottom:16px; }
  .top-actions .btn { display:none; }
  .stats { grid-template-columns:1fr 1fr; gap:10px; }
  .stat { min-height:112px; padding:15px; }
  .stat b { font-size:1.65rem; }
  .page-head { display:block; }
  .page-actions { margin-top:12px; }
  .grid-form { grid-template-columns:1fr; }
  .card { padding:16px; }
  .panel-footer { flex-direction:column; }
  .metric-row { grid-template-columns:minmax(90px,1fr) 1.5fr auto; }
}

/* Integração 2.1 */
.save-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:16px 0;
  padding:16px 18px;
  border:1px solid rgba(59,130,246,.24);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(37,99,235,.10),rgba(10,19,39,.94));
}
.save-bar strong { display:block; font-size:.88rem; }
.save-bar small { display:block; margin-top:4px; color:var(--muted); font-size:.75rem; }
.media-preview { display:flex; align-items:center; gap:14px; padding:13px; border:1px solid var(--line); border-radius:14px; background:#081126; }
.media-preview strong,.media-preview small { display:block; }
.media-preview small { margin-top:5px; color:var(--muted); line-height:1.45; }
.media-preview.wide .preview-img { max-width:360px; }
.wallpaper-preview { width:min(360px,100%); aspect-ratio:16/8; object-fit:cover; }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.option-card { flex-direction:row!important; align-items:flex-start!important; gap:10px!important; padding:13px; border:1px solid var(--line); border-radius:13px; background:#081126; cursor:pointer; }
.option-card strong,.option-card small { display:block; }
.option-card small { margin-top:3px; color:var(--muted); font-weight:400; }
.flow-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.flow-card { min-height:130px; padding:16px; border:1px solid var(--line); border-radius:15px; background:#081126; }
.flow-card > span { width:30px; height:30px; display:grid; place-items:center; margin-bottom:18px; border-radius:10px; color:#eff6ff; background:linear-gradient(145deg,#60a5fa,#2563eb); font-weight:900; }
.flow-card strong,.flow-card small { display:block; }
.flow-card small { margin-top:6px; color:var(--muted); line-height:1.5; }
.rank { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:rgba(37,99,235,.10); color:var(--accent-2); font-weight:900; }
.log-box { white-space:pre-wrap; overflow:auto; max-height:360px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#050914; color:#b8c6dc; }
.dns-card:first-child { border-color:rgba(59,130,246,.34); box-shadow:0 0 0 1px rgba(59,130,246,.08),0 16px 34px rgba(0,0,0,.14); }
.dns-card .btn.primary.compact { color:#eff6ff; }

@media (max-width: 900px) {
  .flow-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .media-preview { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .save-bar { align-items:stretch; flex-direction:column; }
  .option-grid,.flow-grid { grid-template-columns:1fr; }
  .save-bar .btn { width:100%; }
}

/* Debug Log 3.0 */
.status-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:29px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.06em;
  white-space:nowrap;
}
.status-pill i { width:8px; height:8px; flex:0 0 8px; border-radius:50%; }
.status-pill.success { color:#dbeafe; border-color:rgba(37,99,235,.26); background:rgba(37,99,235,.08); }
.status-pill.success i { background:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,.10); }
.status-pill.warning { color:#ffe0aa; border-color:rgba(244,187,98,.28); background:rgba(244,187,98,.09); }
.status-pill.warning i { background:var(--warning); box-shadow:0 0 0 4px rgba(244,187,98,.10); }
.status-pill.danger { color:#ffd0d3; border-color:rgba(255,107,114,.30); background:rgba(255,107,114,.09); }
.status-pill.danger i { background:var(--danger); box-shadow:0 0 0 4px rgba(255,107,114,.10); }

.dns-mode-card { position:relative; overflow:hidden; }
.dns-mode-card::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; right:-90px; bottom:-105px; pointer-events:none; }
.dns-mode-card.mode-ok { border-color:rgba(37,99,235,.24); }
.dns-mode-card.mode-ok::after { background:rgba(37,99,235,.07); }
.dns-mode-card.mode-warn { border-color:rgba(244,187,98,.25); }
.dns-mode-card.mode-warn::after { background:rgba(244,187,98,.07); }
.dns-mode-form { display:flex; flex-direction:column; align-items:flex-start; gap:13px; margin-top:15px; }
.flow-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }

.debug-state-actions { margin-top:14px; }
.debug-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.debug-action-grid form,.debug-action-grid form .btn { width:100%; }
.debug-toolbar { position:sticky; top:82px; z-index:18; backdrop-filter:blur(16px); }
.debug-filters { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(170px,.8fr) minmax(240px,1.6fr) auto; gap:12px; align-items:end; }
.debug-search { min-width:0; }
.debug-only-errors { min-height:43px; white-space:nowrap; }
.debug-list { display:flex; flex-direction:column; gap:13px; }
.debug-card {
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--line);
  border-left-width:4px;
  border-radius:17px;
  background:linear-gradient(155deg,rgba(14,24,46,.97),rgba(6,13,29,.97));
  box-shadow:0 14px 42px rgba(0,0,0,.14);
}
.debug-card[hidden] { display:none!important; }
.debug-card.status-normal { border-left-color:var(--accent); }
.debug-card.status-alerta { border-left-color:var(--warning); }
.debug-card.status-falha { border-left-color:var(--danger); background:linear-gradient(155deg,rgba(42,21,23,.78),rgba(18,12,13,.96)); }
.debug-card-head { display:flex; align-items:center; gap:9px; min-width:0; }
.debug-card-head time { margin-left:auto; color:var(--muted); font-size:.7rem; white-space:nowrap; }
.debug-channel { padding:5px 8px; border-radius:8px; color:#9fb0cb; background:rgba(255,255,255,.035); font-size:.64rem; font-weight:800; letter-spacing:.08em; }
.debug-select { display:grid; place-items:center; cursor:pointer; }
.debug-select input { width:17px; height:17px; accent-color:var(--accent); }
.debug-card-body { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-top:15px; }
.debug-card-body h3 { margin:0; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.96rem; color:#edf5ff; word-break:break-word; }
.debug-card-body p { margin:6px 0 0; color:var(--muted); line-height:1.5; }
.debug-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:15px; }
.debug-meta > div { min-width:0; padding:10px 11px; border:1px solid var(--line); border-radius:11px; background:rgba(4,10,24,.58); }
.debug-meta span,.debug-meta strong { display:block; }
.debug-meta span { color:#6f82a3; font-size:.64rem; text-transform:uppercase; letter-spacing:.06em; }
.debug-meta strong { margin-top:4px; color:#b8c8df; font-size:.74rem; word-break:break-all; }
.debug-details { margin-top:12px; border-top:1px solid var(--line); padding-top:11px; }
.debug-details summary { color:#91a4c1; cursor:pointer; font-size:.75rem; font-weight:700; }
.debug-json { max-height:440px; margin:11px 0 0; padding:14px; overflow:auto; white-space:pre-wrap; word-break:break-word; border:1px solid var(--line); border-radius:12px; color:#b5c4db; background:#030713; font-size:.72rem; line-height:1.55; }
.copy-error { border-color:rgba(255,107,114,.35)!important; color:#ffd0d3!important; }

@media (max-width: 1000px) {
  .debug-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .debug-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .debug-toolbar { position:static; }
  .debug-filters,.debug-action-grid,.debug-meta,.flow-grid-3 { grid-template-columns:1fr; }
  .debug-card-head { flex-wrap:wrap; }
  .debug-card-head time { width:100%; margin-left:26px; }
  .debug-card-body { flex-direction:column; }
  .debug-card-body .btn { width:100%; }
}

/* Recursos 5.0: planos, auditoria, jogos manuais e diagnóstico persistente de DNS */
.plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.plan-card { padding:16px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(150deg,rgba(14,24,46,.95),rgba(5,11,25,.97)); }
.plan-card label { margin-bottom:11px; }
.plan-card .btn { margin-top:2px; }
.renew-inline { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.renew-inline select { width:120px; min-width:110px; }
.dns-status-stack { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.dns-probe { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; margin:12px 0; border:1px solid var(--line); border-radius:12px; background:rgba(4,10,24,.62); }
.dns-probe .probe-dot { width:10px; height:10px; flex:0 0 10px; border-radius:50%; margin-top:4px; }
.dns-probe > div { min-width:0; }
.dns-probe strong,.dns-probe small { display:block; }
.dns-probe strong { font-size:.76rem; letter-spacing:.04em; }
.dns-probe small { margin-top:4px; color:var(--muted); font-size:.69rem; line-height:1.45; word-break:break-word; }
.dns-probe.ok { border-color:rgba(37,99,235,.25); }
.dns-probe.ok .probe-dot { background:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,.10); }
.dns-probe.warn { border-color:rgba(255,107,114,.28); background:rgba(45,17,20,.38); }
.dns-probe.warn .probe-dot { background:var(--danger); box-shadow:0 0 0 4px rgba(255,107,114,.10); }
.dns-probe.info .probe-dot { background:#6cb8ff; box-shadow:0 0 0 4px rgba(108,184,255,.10); }
.audit-list { display:flex; flex-direction:column; gap:11px; }
.audit-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-left-width:4px; border-radius:14px; background:rgba(7,14,31,.82); }
.audit-card.normal { border-left-color:var(--accent); }
.audit-card.alerta { border-left-color:var(--warning); }
.audit-card.falha { border-left-color:var(--danger); background:rgba(42,18,20,.52); }
.audit-status { display:flex; align-items:center; gap:7px; min-width:86px; font-size:.65rem; font-weight:900; letter-spacing:.06em; }
.audit-status i { width:9px; height:9px; border-radius:50%; background:var(--accent); }
.audit-card.alerta .audit-status i { background:var(--warning); }
.audit-card.falha .audit-status i { background:var(--danger); }
.audit-main { min-width:0; }
.audit-main strong { display:block; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#eef5ff; font-size:.82rem; word-break:break-word; }
.audit-main p { margin:4px 0; color:var(--muted); font-size:.76rem; }
.audit-main small { color:#6f82a3; }
@media (max-width:760px) {
  .plan-grid { grid-template-columns:1fr; }
  .audit-card { grid-template-columns:1fr; align-items:start; }
  .audit-status { min-width:0; }
  .audit-card .btn { width:100%; }
}

/* Premium Navy 5.2 */
:root {
  --bg: #050914;
  --bg-soft: #091122;
  --panel: rgba(14, 23, 43, .92);
  --panel-strong: #10192d;
  --panel-soft: #0b1427;
  --text: #f3f7ff;
  --muted: #8ea0bd;
  --line: rgba(112, 146, 205, .14);
  --line-strong: rgba(112, 146, 205, .25);
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --accent-dark: #1d4ed8;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 16px;
}

body {
  background:
    radial-gradient(980px 520px at 6% -12%, rgba(37, 99, 235, .18), transparent 62%),
    radial-gradient(820px 440px at 100% 0, rgba(14, 165, 233, .10), transparent 58%),
    linear-gradient(180deg, #050914 0%, #071024 46%, #040713 100%);
}

.side {
  gap: 14px;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, rgba(5, 10, 24, .97), rgba(7, 14, 31, .94));
  border-right-color: rgba(96, 134, 199, .16);
  box-shadow: 18px 0 55px rgba(0,0,0,.18);
}
.brand { padding: 2px 6px 10px; }
.mark {
  color: #f8fbff;
  background: linear-gradient(145deg, #60a5fa, #2563eb 62%, #1e3a8a);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .30), inset 0 1px 0 rgba(255,255,255,.42);
}
.brand small { color: #6f83a6; }
.side nav { gap: 12px; padding-right: 2px; }
.nav-group { display:flex; flex-direction:column; gap:4px; }
.nav-group-label {
  padding: 0 10px 5px;
  color: #586c91;
  font-size: .61rem;
  line-height: 1;
  letter-spacing: .16em;
  font-weight: 900;
}
.side nav a { min-height: 41px; padding: 8px 10px; border-radius: 11px; color:#aebcd3; }
.side nav a:hover { color:#f5f8ff; background:rgba(96,165,250,.055); border-color:rgba(96,165,250,.13); }
.side nav a.on {
  color:#f7faff;
  border-color:rgba(96,165,250,.23);
  background:linear-gradient(90deg,rgba(37,99,235,.22),rgba(37,99,235,.07));
  box-shadow:inset 3px 0 0 #60a5fa, 0 8px 20px rgba(0,0,0,.12);
}
.nav-ico { color:#73b3ff; }
.side-status { padding:10px 11px; background:rgba(37,99,235,.06); border-color:rgba(96,165,250,.16); }
.status-dot { background:#60a5fa; box-shadow:0 0 0 5px rgba(37,99,235,.13),0 0 18px rgba(96,165,250,.72); }

.main { padding:0 30px 38px; }
.topbar {
  min-height:72px;
  margin-bottom:20px;
  background:linear-gradient(180deg,rgba(5,9,20,.97) 66%,rgba(5,9,20,0));
}
.avatar { background:linear-gradient(145deg,#17284b,#101d37); color:#93c5fd; }
.page-head { margin-bottom:18px; padding: 2px 0; }
.page-head h1 { font-size:clamp(1.45rem,2.2vw,2rem); }
.page-head p { max-width:800px; }

.card {
  padding:18px;
  margin-bottom:14px;
  border-color:rgba(112,146,205,.14);
  background:linear-gradient(155deg,rgba(15,25,48,.96),rgba(7,15,33,.95));
  box-shadow:0 14px 38px rgba(0,0,0,.16);
}
.card:hover { border-color:rgba(96,165,250,.20); }
.card-head { margin-bottom:12px; }
.card-kicker {
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:5px 8px;
  border:1px solid rgba(96,165,250,.20);
  border-radius:999px;
  color:#9ec9ff;
  background:rgba(37,99,235,.08);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.08em;
}

.stats { gap:12px; }
.stat {
  min-height:122px;
  padding:17px;
  background:linear-gradient(145deg,rgba(18,31,60,.96),rgba(9,18,39,.94));
}
.stat::after { background:rgba(37,99,235,.08); }
.stat-ico { background:rgba(37,99,235,.13); color:#8fc2ff; }
.compact-stats .stat { min-height:104px; padding:15px 16px; }
.compact-stats .stat b { margin-top:11px; font-size:1.65rem; }
.compact-stats .stat span { margin-top:5px; }

input, select, textarea {
  border-color:rgba(112,146,205,.24);
  background:#071022;
}
input:hover,select:hover,textarea:hover { border-color:rgba(96,165,250,.34); }
input:focus,select:focus,textarea:focus { border-color:rgba(96,165,250,.65); box-shadow:0 0 0 3px rgba(37,99,235,.13); }
.btn { background:#142443; border-color:rgba(112,146,205,.24); }
.btn:hover { border-color:rgba(96,165,250,.42); background:#1a2e55; }
.btn.primary {
  color:#f8fbff;
  background:linear-gradient(145deg,#3b82f6,#2563eb 62%,#1d4ed8);
  box-shadow:0 10px 26px rgba(37,99,235,.24);
}
.btn.primary:hover { background:linear-gradient(145deg,#60a5fa,#2563eb 68%,#1e40af); }
.tag.ok,.health-badge,.status-pill.success {
  color:#dbeafe;
  border-color:rgba(96,165,250,.28);
  background:rgba(37,99,235,.10);
}
.status-pill.success i,.audit-status i,.dns-probe.ok .probe-dot {
  background:#60a5fa;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.flash.ok { color:#dbeafe; border-color:rgba(96,165,250,.25); background:rgba(37,99,235,.11); }
.flash.ok > span { color:#fff; background:#2563eb; }
.metric-bar { background:#071022; }
.metric-bar > span { background:linear-gradient(90deg,#1d4ed8,#60a5fa); }

/* DNS reorganizado */
.dns-summary-grid,
.dns-tools-grid,
.debug-control-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.dns-summary-grid > .card,
.dns-tools-grid > .card,
.debug-control-grid > .card { height:calc(100% - 14px); }
.dns-mode-card.mode-ok { border-color:rgba(96,165,250,.25); }
.dns-mode-card.mode-ok::after { background:rgba(37,99,235,.09); }
.dns-flow-panel .flow-card { min-height:104px; }
.dns-flow-panel .flow-card > span {
  margin-bottom:12px;
  color:#fff;
  background:linear-gradient(145deg,#60a5fa,#2563eb);
}
.dns-tool-card .grid-form { gap:11px; }
.dns-list { padding-bottom:16px; }
.dns-cards { grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:11px; }
.dns-card {
  gap:9px;
  padding:14px;
  background:linear-gradient(150deg,rgba(11,22,47,.98),rgba(6,13,29,.98));
}
.dns-card:first-child {
  border-color:rgba(96,165,250,.42);
  box-shadow:0 0 0 1px rgba(37,99,235,.12),0 16px 34px rgba(0,0,0,.18);
}
.dns-probe { margin:8px 0; background:rgba(4,10,24,.62); }
.dns-acts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.dns-acts .btn { width:100%; }
.save-bar {
  border-color:rgba(96,165,250,.26);
  background:linear-gradient(145deg,rgba(37,99,235,.13),rgba(9,18,39,.94));
}

/* Personalização em cards menores */
.branding-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px; }
.branding-grid .card { margin-bottom:0; }
.brand-identity { grid-column:span 7; }
.brand-colors { grid-column:span 5; }
.brand-menu { grid-column:span 5; }
.brand-announcement { grid-column:span 7; }
.brand-background,.brand-support { margin-bottom:14px; }
.brand-card { position:relative; overflow:hidden; }
.brand-card::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#60a5fa,rgba(37,99,235,.18));
}
.brand-card .grid-form { gap:11px; }
.brand-colors .grid-form { grid-template-columns:1fr; }
.brand-background .grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
.brand-support .grid-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
.brand-support .grid-form .full { grid-column:1/-1; }
.option-grid { gap:8px; }
.option-card {
  padding:11px;
  background:rgba(7,16,34,.74);
  border-color:rgba(112,146,205,.16);
}
.option-card:hover { border-color:rgba(96,165,250,.28); background:rgba(37,99,235,.07); }
.media-preview { padding:11px; background:#071022; }
.preview-img { background:#050914; }
.brand-upload .upload-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.upload-box { min-width:0; padding:14px; background:#071022; border-color:rgba(96,165,250,.22); }

/* Debug e auditoria compactos */
.debug-control-card { margin-bottom:14px; }
.debug-toolbar {
  top:76px;
  background:linear-gradient(155deg,rgba(13,24,47,.97),rgba(7,15,33,.96));
}
.compact-toolbar { padding:15px 16px; }
.compact-toolbar .card-head { margin-bottom:10px; }
.debug-filters { gap:9px; }
.debug-list { gap:10px; }
.debug-card {
  padding:15px 16px;
  border-radius:14px;
  background:linear-gradient(155deg,rgba(14,24,46,.97),rgba(6,13,29,.97));
}
.debug-card.status-normal { border-left-color:#3b82f6; }
.debug-card-body { margin-top:11px; }
.debug-card-body h3 { color:#edf5ff; }
.debug-meta { gap:7px; margin-top:11px; }
.debug-meta > div { padding:8px 9px; background:rgba(4,10,24,.58); }
.debug-details { margin-top:10px; padding-top:9px; }
.debug-json { background:#030713; }
.audit-list { gap:8px; }
.audit-card {
  padding:11px 12px;
  border-radius:12px;
  background:rgba(7,14,31,.84);
}
.audit-card.normal { border-left-color:#3b82f6; }
.audit-main p { line-height:1.4; }

.login-card {
  background:linear-gradient(155deg,rgba(14,24,46,.98),rgba(5,10,23,.98));
  border-color:rgba(96,165,250,.24);
}
.tabs { background:rgba(8,16,34,.78); }
.tab.on { color:#fff; background:linear-gradient(145deg,#3b82f6,#2563eb); }

@media (max-width: 1080px) {
  .brand-identity,.brand-colors,.brand-menu,.brand-announcement { grid-column:span 6; }
  .brand-support .grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .dns-summary-grid,.dns-tools-grid,.debug-control-grid { grid-template-columns:1fr; }
  .dns-summary-grid > .card,.dns-tools-grid > .card,.debug-control-grid > .card { height:auto; }
  .branding-grid { grid-template-columns:1fr; }
  .brand-identity,.brand-colors,.brand-menu,.brand-announcement { grid-column:auto; }
  .brand-background .grid-form,.brand-support .grid-form { grid-template-columns:1fr; }
  .brand-upload .upload-row { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .main { padding:0 13px 26px; }
  .dns-acts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .compact-stats .stat { min-height:96px; }
}


/* =========================================================
   Point Panel Premium 5.2 — alinhamento e acabamento global
   ========================================================= */
:root {
  --panel-blue:#2563eb;
  --panel-blue-light:#60a5fa;
  --panel-blue-deep:#071329;
  --premium-border:rgba(118,159,226,.22);
  --premium-border-hover:rgba(96,165,250,.46);
  --premium-surface:linear-gradient(155deg,rgba(16,29,56,.98),rgba(6,14,31,.98));
  --premium-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
}

/* Cabeçalhos também passam a fazer parte da hierarquia de cards */
.page-head {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
  border:1px solid var(--premium-border);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(18,34,67,.93),rgba(7,15,33,.97));
  box-shadow:0 15px 38px rgba(0,0,0,.16);
  overflow:hidden;
}
.page-head::after {
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-150px;
  top:-170px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(59,130,246,.18),transparent 67%);
  pointer-events:none;
}
.page-head > * { position:relative; z-index:1; }
.page-eyebrow {
  display:block;
  margin-bottom:7px;
  color:#7fb8ff;
  font-size:.63rem;
  font-weight:900;
  letter-spacing:.13em;
}
.page-actions { align-items:center; }
.page-actions form { margin:0; }

/* Cards com alinhamento, profundidade e espaçamento consistentes */
.card {
  border-radius:17px;
  border-color:var(--premium-border);
  background:var(--premium-surface);
  box-shadow:var(--premium-shadow);
}
.card::selection { background:rgba(59,130,246,.36); }
.card-head { align-items:flex-start; gap:14px; }
.card-head h2 { letter-spacing:-.015em; }
.card-sub { max-width:680px; }
.section-heading-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 12px;
  padding:15px 17px;
  border:1px solid rgba(96,165,250,.17);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(13,26,52,.78),rgba(7,15,32,.88));
}
.section-heading-card h2 { margin:6px 0 3px; font-size:1rem; }
.section-heading-card p { margin:0; color:var(--muted); font-size:.76rem; }
.section-badge {
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid rgba(96,165,250,.24);
  border-radius:999px;
  color:#a9d0ff;
  background:rgba(37,99,235,.10);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.08em;
}
.compact-section-heading { margin-top:20px; }

/* Botões premium em todas as telas */
.btn {
  position:relative;
  isolation:isolate;
  min-height:40px;
  padding:9px 15px;
  border-radius:11px;
  border-color:rgba(121,158,219,.28);
  background:linear-gradient(145deg,#182d52,#10213f);
  box-shadow:0 8px 19px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.04);
  letter-spacing:.01em;
  overflow:hidden;
}
.btn::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:0;
  background:linear-gradient(110deg,transparent 10%,rgba(255,255,255,.08) 48%,transparent 75%);
  transform:translateX(-80%);
  transition:opacity .18s ease,transform .35s ease;
}
.btn:hover::after { opacity:1; transform:translateX(80%); }
.btn:hover {
  transform:translateY(-2px);
  border-color:var(--premium-border-hover);
  background:linear-gradient(145deg,#203b6a,#14294d);
  box-shadow:0 13px 26px rgba(0,0,0,.20),0 0 0 1px rgba(96,165,250,.08);
}
.btn:active { transform:translateY(0); box-shadow:0 5px 14px rgba(0,0,0,.18); }
.btn.primary {
  border-color:rgba(125,181,255,.30);
  background:linear-gradient(145deg,#60a5fa 0%,#347ff0 35%,#2563eb 70%,#1d4ed8 100%);
  box-shadow:0 12px 27px rgba(37,99,235,.30),inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.primary:hover {
  background:linear-gradient(145deg,#7cb8ff 0%,#3b82f6 40%,#2563eb 72%,#1e40af 100%);
  box-shadow:0 16px 32px rgba(37,99,235,.38),0 0 0 1px rgba(147,197,253,.12);
}
.btn.ghost { background:rgba(8,18,39,.54); backdrop-filter:blur(8px); }
.btn.danger {
  color:#ffd2d5;
  border-color:rgba(255,107,114,.30);
  background:linear-gradient(145deg,rgba(122,35,43,.34),rgba(69,21,29,.28));
}
.btn.danger:hover { border-color:rgba(255,125,132,.48); background:linear-gradient(145deg,rgba(147,45,53,.48),rgba(82,25,33,.40)); }
.btn.compact { min-height:35px; border-radius:10px; }
.btn-wide { width:100%; margin-top:auto; }
.btn-icon { display:inline-grid; place-items:center; font-size:.95rem; line-height:1; }

/* Campos mais claros e alinhados */
label { line-height:1.35; }
input,select,textarea {
  min-height:42px;
  border-radius:11px;
  border-color:rgba(117,151,207,.25);
  background:linear-gradient(180deg,#071227,#060f21);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
textarea { min-height:104px; }
input[type="file"] { padding:8px; }
input[type="file"]::file-selector-button {
  margin-right:10px;
  padding:8px 11px;
  border:1px solid rgba(96,165,250,.24);
  border-radius:8px;
  color:#ddebff;
  background:#13284b;
  cursor:pointer;
  font-weight:700;
}
.grid-form { align-items:start; }

/* Central de imagens no topo */
.brand-media-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.brand-media-card {
  display:flex;
  flex-direction:column;
  gap:13px;
  min-height:100%;
  margin:0;
  padding:17px;
}
.brand-media-card::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,#60a5fa,#2563eb,transparent 84%);
}
.brand-media-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:12px; }
.brand-media-head h2 { margin:1px 0 4px; font-size:.96rem; }
.brand-media-head p { margin:0; color:var(--muted); font-size:.74rem; line-height:1.45; }
.media-icon,.brand-card-icon {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(96,165,250,.24);
  border-radius:12px;
  color:#b9daff;
  background:linear-gradient(145deg,rgba(59,130,246,.18),rgba(37,99,235,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  font-weight:900;
}
.brand-media-preview {
  min-height:130px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px;
  border:1px solid rgba(107,144,205,.18);
  border-radius:13px;
  background:rgba(3,9,21,.55);
}
.brand-media-preview img {
  width:128px;
  height:104px;
  object-fit:contain;
  flex:0 0 128px;
  border:1px solid rgba(112,149,210,.20);
  border-radius:11px;
  background:#030817;
}
.wallpaper-preview-area img { width:180px; flex-basis:180px; object-fit:cover; aspect-ratio:16/9; height:auto; }
.brand-media-preview strong,.brand-media-preview small { display:block; }
.brand-media-preview small { margin-top:5px; color:var(--muted); font-size:.72rem; line-height:1.4; }
.empty-media-icon {
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  flex:0 0 78px;
  border:1px dashed rgba(96,165,250,.28);
  border-radius:16px;
  color:#6faeff;
  background:rgba(37,99,235,.06);
  font-size:1.5rem;
}
.premium-file-field {
  padding:11px 12px;
  border:1px dashed rgba(96,165,250,.27);
  border-radius:12px;
  background:rgba(37,99,235,.045);
}
.premium-file-field > span { color:#a9c9ee; font-size:.72rem; }

/* Cards de personalização compactos e rigorosamente alinhados */
.premium-brand-form { margin-top:2px; }
.branding-grid { align-items:stretch; }
.branding-grid > .card { height:100%; }
.brand-card { min-width:0; }
.brand-card .card-head { min-height:58px; }
.brand-card-icon { width:36px; height:36px; font-size:.77rem; }
.brand-identity { grid-column:span 7; }
.brand-colors { grid-column:span 5; }
.brand-menu { grid-column:span 5; }
.brand-announcement { grid-column:span 7; }
.brand-background,.brand-support { margin-top:14px; margin-bottom:0; }
.inline-help {
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:10px 11px;
  border:1px solid rgba(96,165,250,.14);
  border-radius:11px;
  background:rgba(37,99,235,.045);
}
.inline-help > span {
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  flex:0 0 20px;
  border-radius:7px;
  color:#d7eaff;
  background:#1d4ed8;
  font-size:.68rem;
  font-weight:900;
}
.inline-help p { margin:1px 0 0; color:var(--muted); font-size:.72rem; line-height:1.4; }
.color-input-wrap { display:grid; grid-template-columns:46px minmax(0,1fr); gap:8px; }
.color-input-wrap input[type="color"] { min-height:42px; padding:4px; cursor:pointer; }
.palette-preview {
  display:flex;
  align-items:center;
  min-height:44px;
  gap:7px;
  padding:9px 10px;
  border:1px solid rgba(112,146,205,.17);
  border-radius:11px;
  background:rgba(4,10,23,.50);
}
.palette-preview span { width:26px; height:26px; border-radius:8px; background:var(--swatch); box-shadow:0 0 0 1px rgba(255,255,255,.12); }
.palette-preview p { margin:0 0 0 4px; color:var(--muted); font-size:.72rem; }
.background-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:13px; }
.choice-card {
  position:relative;
  min-height:76px;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:10px!important;
  padding:12px;
  border:1px solid rgba(112,146,205,.18);
  border-radius:13px;
  background:rgba(5,12,27,.60);
  cursor:pointer;
  transition:.16s ease;
}
.choice-card:hover { border-color:rgba(96,165,250,.36); background:rgba(37,99,235,.065); }
.choice-card input { position:absolute; opacity:0; pointer-events:none; }
.choice-dot {
  width:20px;
  height:20px;
  flex:0 0 20px;
  border:1px solid rgba(128,164,224,.38);
  border-radius:7px;
  background:#071328;
}
.choice-card input:checked + .choice-dot { border-color:#75b4ff; background:#2563eb; box-shadow:inset 0 0 0 5px #08152d,0 0 0 3px rgba(37,99,235,.12); }
.choice-card strong,.choice-card small { display:block; }
.choice-card small { margin-top:4px; color:var(--muted); font-weight:400; line-height:1.35; }
.compact-choice { min-height:68px; }
.option-grid { grid-template-columns:1fr; }
.option-card {
  position:relative;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center!important;
  min-height:57px;
  gap:10px!important;
  padding:10px 11px;
}
.option-card input { position:absolute; opacity:0; pointer-events:none; }
.option-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:#b8d9ff; background:rgba(37,99,235,.11); }
.option-check { width:19px; height:19px; border:1px solid rgba(128,164,224,.34); border-radius:6px; background:#071328; }
.option-card input:checked ~ .option-check { border-color:#75b4ff; background:#2563eb; box-shadow:inset 0 0 0 4px #08152d; }
.switch-row {
  position:relative;
  min-height:60px;
  flex-direction:row!important;
  align-items:center!important;
  gap:11px!important;
  padding:11px 12px;
  border:1px solid rgba(112,146,205,.18);
  border-radius:13px;
  background:rgba(5,12,27,.58);
}
.switch-row input { position:absolute; opacity:0; pointer-events:none; }
.switch-ui { position:relative; width:42px; height:23px; flex:0 0 42px; border-radius:999px; background:#152442; border:1px solid rgba(125,159,216,.25); transition:.18s ease; }
.switch-ui::after { content:""; position:absolute; width:17px; height:17px; left:2px; top:2px; border-radius:50%; background:#879ab8; transition:.18s ease; }
.switch-row input:checked + .switch-ui { background:#2563eb; border-color:#64a7fa; }
.switch-row input:checked + .switch-ui::after { left:21px; background:#fff; box-shadow:0 2px 7px rgba(0,0,0,.30); }
.switch-row strong,.switch-row small { display:block; }
.switch-row small { margin-top:3px; color:var(--muted); font-weight:400; }

/* Barra final vira card de ação premium */
.premium-save-bar {
  position:sticky;
  bottom:14px;
  z-index:8;
  margin:16px 0 0;
  padding:13px 15px;
  border:1px solid rgba(96,165,250,.32);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(18,37,73,.96),rgba(7,17,37,.97));
  box-shadow:0 18px 42px rgba(0,0,0,.30),0 0 0 1px rgba(37,99,235,.06);
  backdrop-filter:blur(14px);
}
.premium-save-bar > div { display:flex; align-items:center; gap:11px; }
.save-icon { width:34px; height:34px; display:grid; place-items:center; flex:0 0 34px; border-radius:11px; color:#fff; background:linear-gradient(145deg,#60a5fa,#2563eb); box-shadow:0 8px 18px rgba(37,99,235,.26); font-weight:900; }
.btn-save { min-width:220px; }

/* Elementos que antes ficavam soltos recebem o mesmo acabamento */
.filter-bar,.integration-box,.tabs,.save-bar:not(.premium-save-bar) {
  border-color:var(--premium-border);
  background:linear-gradient(145deg,rgba(13,25,50,.90),rgba(6,14,31,.94));
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}
.table-wrap { border-radius:13px; }
th { background:rgba(3,9,21,.38); }
tbody tr { transition:background .14s ease; }

/* Responsividade */
@media (max-width:1080px) {
  .brand-media-grid { grid-template-columns:1fr; }
  .brand-media-preview { min-height:118px; }
}
@media (max-width:900px) {
  .page-head { align-items:flex-start; padding:18px; }
  .page-actions { width:100%; }
  .page-actions .btn,.page-actions form,.page-actions form .btn { width:100%; }
  .background-mode-grid { grid-template-columns:1fr; }
  .premium-save-bar { position:static; }
}
@media (max-width:680px) {
  .page-head { padding:16px; border-radius:15px; }
  .section-heading-card { align-items:flex-start; }
  .section-badge { display:none; }
  .brand-media-head { grid-template-columns:auto minmax(0,1fr); }
  .brand-media-head .tag { grid-column:2; justify-self:start; }
  .brand-media-preview { align-items:flex-start; flex-direction:column; }
  .brand-media-preview img,.wallpaper-preview-area img { width:100%; height:auto; flex-basis:auto; max-height:190px; }
  .empty-media-icon { width:58px; height:58px; flex-basis:58px; }
  .premium-save-bar,.premium-save-bar > div { align-items:stretch; flex-direction:column; }
  .btn-save { min-width:0; width:100%; }
}

/* =========================================================
   Point Panel Premium 5.3 — navegação desktop e mobile
   ========================================================= */
:root {
  --sidebar-width: 292px;
  --touch-target: 44px;
}

html { scroll-behavior:smooth; }
body { overflow-x:hidden; }
body.nav-open { overflow:hidden; touch-action:none; }

button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid rgba(125,181,255,.92);
  outline-offset:3px;
}

.shell { grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.side {
  width:var(--sidebar-width);
  gap:13px;
  padding:18px 14px calc(15px + env(safe-area-inset-bottom));
  overflow:hidden;
}
.side-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:56px;
}
.side-head .brand {
  min-width:0;
  flex:1;
  padding:2px 5px 9px;
}
.side-head .brand > div { min-width:0; }
.side-head .brand strong,.side-head .brand small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.side-close {
  display:none;
  width:40px;
  height:40px;
  flex:0 0 40px;
  place-items:center;
  border:1px solid rgba(120,157,220,.24);
  border-radius:12px;
  color:#dbeafe;
  background:linear-gradient(145deg,#14284a,#0b1830);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  cursor:pointer;
  font-size:1.45rem;
  line-height:1;
}
.side-close:hover { border-color:rgba(96,165,250,.48); background:#19345f; }

.side nav {
  min-height:0;
  gap:14px;
  padding:3px 4px 4px 2px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(96,165,250,.28) transparent;
}
.side nav::-webkit-scrollbar { width:6px; }
.side nav::-webkit-scrollbar-thumb { border-radius:999px; background:rgba(96,165,250,.24); }
.nav-group {
  gap:6px;
  padding:9px;
  border:1px solid rgba(110,148,211,.10);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(13,25,48,.60),rgba(4,11,25,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015);
}
.nav-group-label {
  padding:2px 7px 4px;
  color:#63799f;
  font-size:.60rem;
  letter-spacing:.15em;
}
.side nav a {
  position:relative;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:48px;
  padding:6px 9px 6px 7px;
  border:1px solid transparent;
  border-radius:12px;
  color:#b8c6db;
  background:rgba(7,15,31,.34);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:-.005em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012);
}
.side nav a::before {
  content:"";
  position:absolute;
  left:-1px;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:0 99px 99px 0;
  background:transparent;
  box-shadow:none;
  transition:.18s ease;
}
.side nav a:hover {
  transform:translateX(2px);
  color:#f8fbff;
  border-color:rgba(96,165,250,.24);
  background:linear-gradient(90deg,rgba(37,99,235,.13),rgba(18,38,72,.65));
  box-shadow:0 9px 22px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
}
.side nav a.on {
  color:#fff;
  border-color:rgba(100,167,250,.36);
  background:linear-gradient(100deg,rgba(37,99,235,.34),rgba(22,55,105,.75) 58%,rgba(12,29,59,.78));
  box-shadow:0 12px 27px rgba(9,31,70,.35),inset 0 1px 0 rgba(255,255,255,.07);
}
.side nav a.on::before {
  background:#7bb8ff;
  box-shadow:0 0 18px rgba(96,165,250,.92);
}
.nav-ico {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(112,160,229,.18);
  border-radius:11px;
  color:#86bfff;
  background:linear-gradient(145deg,rgba(37,99,235,.17),rgba(37,99,235,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  font-size:.88rem;
}
.side nav a:hover .nav-ico,.side nav a.on .nav-ico {
  color:#fff;
  border-color:rgba(132,190,255,.32);
  background:linear-gradient(145deg,#438cf6,#2159c5);
  box-shadow:0 7px 18px rgba(37,99,235,.26),inset 0 1px 0 rgba(255,255,255,.15);
}
.nav-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-arrow {
  color:#60779d;
  font-size:1.1rem;
  text-align:center;
  transition:.18s ease;
}
.side nav a:hover .nav-arrow,.side nav a.on .nav-arrow { color:#a9d2ff; transform:translateX(2px); }

.side-status {
  min-height:61px;
  margin-top:1px;
  padding:11px 12px;
  border-radius:14px;
}
.side-status > div { min-width:0; }
.side-status strong,.side-status small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logout button {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:9px 12px;
  border-radius:12px;
  font-weight:700;
  background:linear-gradient(145deg,rgba(16,31,58,.86),rgba(8,17,35,.78));
}
.logout button span {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(255,107,114,.08);
}

.main { width:100%; max-width:1900px; margin-inline:auto; padding:0 clamp(18px,2.3vw,38px) 42px; }
.topbar {
  min-width:0;
  min-height:76px;
  margin-inline:-2px;
  padding-inline:2px;
}
.topbar-title { min-width:0; }
.topbar-title strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.menu-toggle {
  position:relative;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:13px;
  border-color:rgba(116,158,224,.28);
  background:linear-gradient(145deg,#17315b,#0d1d39);
  box-shadow:0 10px 24px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.05);
}
.menu-toggle span {
  display:block;
  width:19px;
  height:2px;
  margin:2px auto;
  border-radius:99px;
  background:#dcebff;
  transition:.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-4px) rotate(-45deg); }
.nav-overlay {
  position:fixed;
  inset:0;
  z-index:44;
  display:block;
  visibility:hidden;
  opacity:0;
  border:0;
  padding:0;
  background:rgba(1,5,14,.68);
  backdrop-filter:blur(4px);
  transition:opacity .22s ease,visibility .22s ease;
  cursor:pointer;
}

/* Botões com dimensões previsíveis em mouse e toque */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  white-space:nowrap;
  text-align:center;
}
.btn.compact { min-height:38px; }
.acts .btn,.integration-actions .btn,.page-actions .btn { align-self:stretch; }

/* Tabelas e formulários continuam utilizáveis em telas estreitas */
.table-wrap {
  width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(96,165,250,.30) rgba(5,12,27,.5);
}
.table-wrap::-webkit-scrollbar { height:8px; }
.table-wrap::-webkit-scrollbar-thumb { border-radius:99px; background:rgba(96,165,250,.30); }
.table-wrap table { min-width:680px; }
input,select,textarea { width:100%; max-width:100%; }
img { max-width:100%; }

@media (min-width:981px) {
  .side { transform:none!important; }
  .side[aria-hidden="true"] { visibility:visible; }
  .nav-overlay { display:none; }
}

@media (max-width:1180px) and (min-width:981px) {
  :root { --sidebar-width:272px; }
  .side { padding-inline:12px; }
  .main { padding-inline:22px; }
}

@media (max-width:980px) {
  :root { --sidebar-width:min(330px,88vw); }
  .shell { display:block; }
  .side {
    position:fixed;
    inset:0 auto 0 0;
    z-index:50;
    width:var(--sidebar-width);
    height:100dvh;
    max-height:100dvh;
    padding-top:calc(14px + env(safe-area-inset-top));
    transform:translate3d(-106%,0,0);
    transition:transform .24s cubic-bezier(.22,.8,.25,1);
    box-shadow:34px 0 80px rgba(0,0,0,.54);
  }
  .side.open { transform:translate3d(0,0,0); }
  .side-close { display:grid; }
  .side nav { padding-bottom:8px; }
  .nav-overlay { display:block; }
  body.nav-open .nav-overlay { visibility:visible; opacity:1; }
  .main { max-width:none; padding:0 18px 34px; }
  .topbar {
    top:0;
    min-height:70px;
    margin:0 -4px 17px;
    padding:calc(10px + env(safe-area-inset-top)) 4px 10px;
  }
  .menu-toggle { display:grid; place-content:center; }
  .topbar-title { flex:1; }
  .top-actions { margin-left:0; }
  .page-head { align-items:flex-start; }
  .grid-2,.dashboard-grid { grid-template-columns:1fr; }
}

@media (max-width:760px) {
  .main { padding-inline:13px; }
  .topbar { gap:10px; }
  .topbar-title .eyebrow { font-size:.58rem; }
  .topbar-title strong { max-width:48vw; font-size:.92rem; }
  .top-api-btn { display:none!important; }
  .avatar { width:38px; height:38px; flex:0 0 38px; }
  .page-head {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:16px;
  }
  .page-head h1 { font-size:1.42rem; }
  .page-head p { font-size:.84rem; }
  .page-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .page-actions > *,.page-actions form,.page-actions .btn,.page-actions form .btn { width:100%; }
  .stats { grid-template-columns:1fr 1fr; }
  .card { padding:15px; border-radius:15px; }
  .card-head { flex-direction:column; align-items:stretch; }
  .card-head > .btn,.card-head > form,.card-head > form .btn { width:100%; }
  .filter-bar { display:grid; grid-template-columns:1fr; align-items:stretch; }
  .filter-bar label,.filter-bar .btn,.filter-bar form,.filter-bar form .btn { min-width:0; width:100%; }
  .acts { display:grid; grid-template-columns:1fr; width:100%; }
  .acts form,.acts .btn,.acts form .btn { width:100%; }
  .integration-box { align-items:stretch; flex-direction:column; }
  .integration-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .integration-actions .btn { width:100%; }
  .tabs { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; -webkit-overflow-scrolling:touch; }
  .tab { flex:0 0 auto; min-height:42px; }
  .save-bar { align-items:stretch; flex-direction:column; }
  .save-bar .btn { width:100%; }
  .panel-footer { align-items:flex-start; }
}

@media (max-width:540px) {
  :root { --sidebar-width:min(340px,92vw); }
  .side { padding-inline:11px; }
  .nav-group { padding:8px; }
  .side nav a { min-height:50px; grid-template-columns:38px minmax(0,1fr) 18px; font-size:.88rem; }
  .nav-ico { width:38px; height:38px; }
  .main { padding-inline:10px; padding-bottom:26px; }
  .topbar { margin-inline:0; }
  .topbar-title strong { max-width:44vw; }
  .stats { grid-template-columns:1fr; }
  .stat { min-height:105px; }
  .metric-row { grid-template-columns:1fr auto; }
  .metric-bar { grid-column:1/-1; grid-row:2; }
  .brand-media-card,.card { padding:14px; }
  .brand-media-head { grid-template-columns:auto minmax(0,1fr); }
  .brand-media-head .tag { grid-column:2; justify-self:start; }
  .brand-media-preview { flex-direction:column; align-items:stretch; }
  .table-wrap { margin-inline:-4px; width:calc(100% + 8px); }
  .btn,.btn.compact { min-height:44px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

/* Premium 5.4 — cadastro de DNS em prioridade */
.dns-priority-card {
  position:relative;
  overflow:hidden;
  margin-bottom:14px;
  border-color:rgba(96,165,250,.36);
  background:
    radial-gradient(circle at 92% 8%,rgba(59,130,246,.18),transparent 32%),
    linear-gradient(145deg,rgba(12,29,61,.98),rgba(6,15,33,.98));
  box-shadow:0 18px 42px rgba(0,0,0,.20),0 0 0 1px rgba(37,99,235,.08);
}
.dns-priority-card::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,#60a5fa,#2563eb 58%,transparent 94%);
}
.section-eyebrow {
  display:block;
  margin-bottom:5px;
  color:#86bfff;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.12em;
}
.dns-priority-form { margin-top:4px; }
.dns-priority-action {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:2px;
}
.dns-priority-action small {
  max-width:540px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
  text-align:right;
}
.dns-tools-single { grid-template-columns:minmax(0,1fr); }
.dns-tools-single > .card { height:auto; }

@media (max-width:760px) {
  .dns-priority-action { align-items:stretch; flex-direction:column; }
  .dns-priority-action .btn { width:100%; }
  .dns-priority-action small { max-width:none; text-align:left; }
}
