/* =========================================================
   DARK • NeoGlass UI — Base + Sidebar em quadrados (integrado)
   ========================================================= */

/* -------------------- Reset e Base -------------------- */
* { margin:0; padding:0; box-sizing:border-box; font-family: Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto; }
:where(html, body){ height:100%; }
html:focus-within { scroll-behavior:smooth; }

/* Tema dark (forçado) + Tokens */
:root{
  color-scheme: dark;

  /* Paleta */
  --bg: #000000;
  --fg: #e7ebf4;
  --muted: #d8d8d8;

  /* Superfícies (vidro) */
  --surface: #000000;
  --surface-2: #c4fdf0;
  --border: rgba(0, 0, 0, 0.589); /* BORDAS DE TUDO */
  --ring: rgba(0, 0, 0, 0.35);

  /* Acentos */
  --brand: #00c2ff;
  --brand-2: #6b5cff;
  --success: #22c55e;
  --error: #ef4444;
  --warn: #eab308;

  /* Sombra/Raio */
  --shadow-1: 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 18px 48px rgba(0,0,0,.55);
  --radius-lg: 14px;
  --radius-md: 10px;

  /* Tipografia fluida */
  --fs-12: clamp(.75rem, .7rem + .2vw, .82rem);
  --fs-14: clamp(.85rem, .8rem + .25vw, .95rem);
  --fs-16: clamp(.98rem, .92rem + .35vw, 1.08rem);
  --fs-18: clamp(1.08rem, 1.02rem + .45vw, 1.22rem);

  /* Largura da sidebar fixa */
  --sidebar-w: 250px;
}

/* ===== Fundo corrigido (não corta ao rolar) ===== */
html{
  background:
    radial-gradient(1200px 600px at 10% -10%, #16161636, transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, #030303, transparent 60%),
    linear-gradient(180deg, #030303, #030303 40%, #030303);
  background-attachment: fixed;
}
body{
  background: transparent;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Seleção / Scrollbar */
::selection{ background: rgba(255, 255, 255, 0.35); color:#fffdfd; }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, 0.22); border-radius:10px; border:2px solid transparent; background-clip:content-box; }
*::-webkit-scrollbar-track{ background: transparent; }

/* -------------------- Container principal -------------------- */
/* Sidebar fixa exige compensação na área de conteúdo */
.container{ display:flex; min-height:100%; padding-left: var(--sidebar-w); }

/* -------------------- Sidebar fixa (QUADRADOS) -------------------- */
.sidebar{
  position: fixed;
  inset: 0 auto 0 0;           /* top:0; right:auto; bottom:0; left:0 */
  width: var(--sidebar-w);
  height: 100vh;
  overflow: hidden;            /* sem scroll na sidebar */
  padding: 10px 8px;           /* mais justa */
  color:#ffffff;
  background: var(--surface);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-1);
}
.sidebar .logo h2{
  margin-bottom:10px; text-align:center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color: transparent;
  font-weight:900; letter-spacing:.4px; text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
}

/* ====== LOGO FIXA “SONECA CENTER” ====== */
.sidebar .logo{
  width:100%;
  text-align:center;
  margin-bottom:16px;
  position:sticky;
  top:0;
  z-index:10;
  background: var(--surface);
  border-bottom:1px solid var(--border);
  padding:12px 0;
  backdrop-filter: blur(14px) saturate(160%);
}



/* Grade de ícones (quadrados), SEM texto */
.sidebar .menu{
  display:grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 por linha */
  gap:6px;
  justify-items:center;
  padding:0;
  margin:6px 0 0;
  list-style:none;
}
.sidebar .menu li{ margin:0; list-style:none; }
.sidebar .menu li[style*="font-weight:bold"]{ display:none; } /* esconde títulos (Bot/Consultas/...) */

/* Botão quadrado */
.sidebar .menu li a{
  position: relative;
  width:68px; height:68px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition:.22s ease;
  display:block;
  overflow:hidden;            /* garante que o conteúdo respeite o raio */
}

/* Imagem cobrindo 100% do botão com cantos arredondados */
.sidebar .menu li a img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;          /* cobre 100% do container */
  border-radius: inherit;     /* herda os 14px do botão */
  display:block;
  pointer-events:none;        /* clique é no <a> */
}

/* Foco/hover */
.sidebar .menu li a:hover,
.sidebar .menu li a:focus-visible{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

/* -------------------- Conteúdo principal -------------------- */
.content{
  flex:1; padding:32px; width:100%; max-width:1400px; margin-inline:auto;
  min-height: 100vh;
}

/* -------------------- Cards -------------------- */
.cards{ display:flex; gap:20px; margin-bottom:20px; flex-wrap:wrap; }
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(160%);
  padding:22px; border-radius: var(--radius-lg);
  flex:1 1 260px; text-align:center;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
  position:relative; overflow:hidden;
}
.card::after{
  content:""; position:absolute; inset: -2px; pointer-events:none;
  background: radial-gradient(300px 120px at 20% -20%, #f8f6f675, transparent 60%),
              radial-gradient(300px 120px at 120% 0%, #ffffff70, transparent 60%);
  mix-blend-mode: screen;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card h3{ margin-bottom:8px; font-size: var(--fs-18); color: var(--fg); }
.card p{ color: var(--muted); font-size: var(--fs-14); line-height:1.5; }

/* Barra de progresso */
.card .progress{
  width:100%; height:12px; border-radius:999px; overflow:hidden; margin-top:12px;
  background: rgba(255, 255, 255, 0.06); border:1px solid var(--border);
}
.card .progress-bar{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  transition: width .6s ease;
  border-radius:999px;
}

/* -------------------- Alertas -------------------- */
.alert{
  padding:12px; margin:12px 0; border-radius:12px; color:#0b0f16; font-weight:800; letter-spacing:.2px;
  border:1px solid transparent;
}
.alert.success{ background: color-mix(in oklab, var(--success) 88%, rgb(255, 255, 255) 12%); box-shadow: 0 6px 22px rgba(34,197,94,.25); }
.alert.error{   background: color-mix(in oklab, var(--error) 88%, rgb(255, 255, 255) 12%);   box-shadow: 0 6px 22px rgba(239,68,68,.25); }

/* -------------------- Modal -------------------- */
.modal{
  display:none; position:fixed; inset:0;
  background: rgb(0, 0, 0); backdrop-filter: blur(8px);
  justify-content:center; align-items:center; z-index:1000;
  animation: fadeIn .25s ease;
}
.modal-content{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 16px;
  width:min(720px, 92vw); max-height:85vh; overflow-y:auto; position:relative;
  padding: 28px;
  box-shadow: var(--shadow-2);
}
.close{
  position:absolute; top:10px; right:14px; font-size:24px; cursor:pointer;
  color: var(--muted); transition:.15s ease;
}
.close:hover{ transform: scale(1.08); color:#ffffff; }
.modal-content h2{ margin-bottom:14px; font-size: var(--fs-18); color:#ffffff; }
.modal-content input,
.modal-content button,
.modal-content select,
.modal-content textarea{
  width:100%; padding:12px; margin:6px 0;
  border-radius:10px; border:1px solid var(--border);
  background: rgba(179, 179, 179, 0.082); color:#c50404; font-size: var(--fs-14);
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus{
  outline:none; box-shadow:0 0 0 4px var(--ring); border-color:transparent;
}
.modal-content textarea{ resize:none; min-height:110px; }
.modal-content button{
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#11423c; font-weight:900;
  border:none; cursor:pointer; transition:.18s ease;
  text-shadow: 0 0 18px rgba(255,255,255,.2);
}
.modal-content button:hover{ transform: translateY(-1px); filter:brightness(1.05); }

/* -------------------- Seções -------------------- */
.section{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:22px; margin-bottom:20px;
  box-shadow: var(--shadow-1);
}
.section h2{
  margin-bottom:12px; color:#161b22; font-size: var(--fs-18); font-weight:900;
  border-left:5px solid transparent; padding-left:10px;
  background: linear-gradient(90deg, #14181f, #6e6e6e52) left center/100% 100% no-repeat; /* MEXER AQUI */
  -webkit-background-clip: padding-box;
  border-image: linear-gradient(180deg, var(--brand), var(--brand-2)) 1;
  border-left: 5px solid;
}

/* Grid utilitária */
.section-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.section-full{ grid-column:1 / -1; }

/* -------------------- Ações rápidas -------------------- */
.floatArea{ display:flex; flex-direction:column; gap:14px; }
.floatArea button{
  width:100%; font-weight:900; border-radius:12px; padding:12px;
  background: linear-gradient(135deg,var(--success), #1fb355); color:#111111;
  border:none; cursor:pointer; transition:.18s ease; box-shadow:0 10px 22px rgba(34,197,94,.22);
}
.floatArea button:hover{ transform: translateY(-1px) scale(1.02); }

/* -------------------- Clientes / Saldos -------------------- */
.saldoItem{
  padding:12px; margin:8px 0; border:1px solid var(--border); border-radius:12px;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  background: var(--surface-2);
  transition:.22s ease;
}
.saldoItem:hover{ background: rgba(255,255,255,.06); transform: translateY(-2px); }
.saldoItem span{
  flex:1; font-size: var(--fs-14); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#000000;
}
.saldoItem button{
  width:40px; min-width:40px; max-width:40px; height:30px; padding:0; font-size:12px;
  border-radius:8px; cursor:pointer; transition:.18s ease;
  background: linear-gradient(135deg,var(--brand),var(--brand-2)); color:#131313; border:none;
  display:grid; place-items:center; box-shadow: 0 8px 18px rgba(0,194,255,.25);
}
.saldoItem button:hover{ filter:brightness(1.1); transform: translateY(-1px); }
.saldoItem button.addSaldo{
  background: linear-gradient(135deg,var(--success), #1fb355); color:#131313;
}

/* -------------------- Pedidos -------------------- */
.pedidoItem{
  background: var(--surface); padding:12px; margin:10px 0; border-radius:12px;
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  border:1px solid var(--border); transition:.22s ease; box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.pedidoItem:hover{ background: rgba(255,255,255,.06); transform: translateY(-2px); }
.pedidoItem strong{ color:#000000; font-size: var(--fs-14); }
.pedidoItem span{
  flex:1; margin-right:8px; font-size: var(--fs-14); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color: var(--muted);
}
.pedidoItem button{
  width:40px; min-width:40px; max-width:40px; height:30px; padding:0; font-size:12px;
  border-radius:8px; cursor:pointer; transition:.18s ease;
  background: linear-gradient(135deg,#25d366,#1fb355); color:#0b0f16; border:none;
  display:grid; place-items:center; box-shadow: 0 8px 18px rgba(31,179,85,.22);
}
.pedidoItem button:hover{ transform: translateY(-1px); filter: brightness(1.08); }

/* =========================================================
   LOGIN • Estilo idêntico ao mock (dark + verde), alinhado ao tema
   ========================================================= */

#loginOverlay{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;

  /* usa o mesmo fundo que o tema */
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107,92,255,.22), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(0,194,255,.16), transparent 60%),
    rgba(0,0,0,.78);
  backdrop-filter: blur(14px) saturate(150%);
  animation: fadeIn .35s ease;
}

/* Cartão com cantos grandes e aspecto fosco */
.login-box{
  width: min(420px, 92vw);
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22,26,35,.92), rgba(18,22,30,.88));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 28px 64px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
  text-align: center;
  color: #ffffff;
}

/* brilho suave interno */
.login-box::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(360px 160px at 30% -8%, rgba(3, 3, 3, 0.14), transparent 60%),
    radial-gradient(420px 180px at 120% -10%, rgba(107,92,255,.12), transparent 70%);
  mix-blend-mode: screen;
  pointer-events:none;
}

/* ---------- Marca (logo + 2 linhas) ---------- */
.login-brand{
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.login-brand .brand-mark{
  width: 200px; height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.788));
}
.login-brand .brand-line1{
  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.15rem);
  color: #ffffff;
  text-transform: uppercase;
}
.login-brand .brand-line2{
  margin-top: -4px;
  font-weight: 400;
  letter-spacing: .35em;
  font-size: clamp(.9rem, .8rem + .7vw, 1.05rem);
  text-transform: uppercase;
  color: #16f28b; /* verde vivo do botão */
  text-shadow: 0 0 18px rgba(22,242,139,.35);
}

/* Se preferir manter teu <h2>, ele vira subtítulo discreto */
.login-box h2{
  margin: 10px 0 12px;
  font-size: 0.95rem;
  font-weight: 400;
  color: #ffffff;
}

/* Inputs foscos, grandes e arredondados (iguais ao mock) */
.login-box input{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  margin: 10px 0;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #1b212c;          /* fosco escuro */
  color: #ffffff;
  font-size: 0.98rem;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s;
  box-shadow: 0 6px 18px rgba(0,0,0,.25) inset;
}
.login-box input::placeholder{ color:#92a0b7; }
.login-box input:focus{
  outline: none;
  border-color: rgba(0,194,255,.35);
  box-shadow: 0 0 0 3px rgba(0,194,255,.25);
  background: #1e2632;
}

/* Botão verde com sombra forte e raio grande */
.login-box button{
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  margin-top: 14px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: #0b0f16;
  cursor: pointer;
  background: linear-gradient(180deg, #22e07b, #11c45f);
  box-shadow:
    0 14px 32px rgba(17,196,95,.35),
    0 2px 0 rgba(0,0,0,.35) inset;
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
}
.login-box button:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.login-box button:active{
  transform: translateY(0);
  filter: brightness(.96);
}

/* Estado de carregamento opcional (mesma estrutura do teu JS) */
.login-box button.is-loading{
  color: transparent !important;
  position: relative;
}
.login-box button.is-loading::after{
  content:"";
  position:absolute; inset:0; margin:auto;
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.8);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

/* Mensagem de erro abaixo do botão */
#loginMsg{
  margin-top: 10px;
  color: #ff7c7c !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,0,0,.25);
}

/* Responsivo (deixa tudo mais “gordinho” e legível no mobile) */
@media (max-width: 420px){
  .login-box{
    width: min(380px, 92vw);
    padding: 24px 18px 18px;
    border-radius: 22px;
  }
  .login-brand .brand-mark{ width: 76px; height: 76px; }
  .login-brand .brand-line1{ letter-spacing: .1em; }
  .login-brand .brand-line2{ letter-spacing: .28em; }
  .login-box input{ height: 46px; border-radius: 13px; }
  .login-box button{ height: 52px; border-radius: 15px; }
}

/* animações de base */
@keyframes spin { to { transform: rotate(360deg); } }


/* -------------------- Utilitários -------------------- */
.hidden{ display:none !important; }
.center{ display:grid; place-items:center; }

/* -------------------- Animações -------------------- */
@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

/* -------------------- Responsividade -------------------- */
@media (max-width: 1100px){
  .section-grid{ grid-template-columns: 1fr; }
  .cards{ gap:16px; }
}
@media (max-width: 860px){
  .sidebar{ width: min(82vw, var(--sidebar-w)); }
  .container{ padding-left: 0; }
  .container.with-sidebar{ padding-left: var(--sidebar-w); }
  .content{ padding:24px; }
}
@media (max-width: 560px){
  .cards{ gap:14px; }
  .card{ padding:18px; }
  .saldoItem span, .pedidoItem span{ font-size: var(--fs-12); }
}

/* -----------------------------------------------------
   OPCIONAL (fallback via CSS sem <img>):
   Se quiser usar só CSS (sem <img>), remova as <img>,
   descomente o bloco abaixo e mantenha os IDs mapeados.
------------------------------------------------------ */

.sidebar .menu li a::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--icon);
  background-repeat:no-repeat;
  background-position:center;
  background-size: cover;
  border-radius: inherit;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}
#btnStatus            { --icon: url("/BOTVENDA/paineladmin/logo/status.png"); }
#btnAddBicos          { --icon: url("/BOTVENDA/paineladmin/logo/addbicos.png"); }
#btnApagarDuplicados  { --icon: url("/BOTVENDA/paineladmin/logo/apagarduplicados.png"); }
#btnBaixarBicos       { --icon: url("/BOTVENDA/paineladmin/logo/exploradorarquivos.png"); }
#btnLimparBicos       { --icon: url("/BOTVENDA/paineladmin/logo/clean.png"); }
#btnClientes          { --icon: url("/BOTVENDA/paineladmin/logo/clients.png"); }
#btnReloadBases       { --icon: url("/BOTVENDA/paineladmin/logo/recarregarbases.png"); }
#btnPedidos           { --icon: url("/BOTVENDA/paineladmin/logo/pedidos.png"); }
#btnUploadLogo        { --icon: url("/BOTVENDA/paineladmin/logo/upload.png"); }
#btnListarCpfs        { --icon: url("/BOTVENDA/paineladmin/logo/listar.png"); }
#btnAjeitarBase       { --icon: url("/BOTVENDA/paineladmin/logo/normalize.png"); }
#btnConfiguracoes     { --icon: url("/BOTVENDA/paineladmin/logo/valores.png"); }
#btnConfigurarBonus   { --icon: url("/BOTVENDA/paineladmin/logo/bonus.png"); }
#btnPlacasLocal       { --icon: url("/BOTVENDA/paineladmin/logo/placa2.png"); }
#btnChecker99         { --icon: url("/BOTVENDA/paineladmin/logo/checker99.png"); }
#btnGerarVeiculos     { --icon: url("/BOTVENDA/paineladmin/logo/gerarveiculos.png"); }
#btnRemoverDuplicados { --icon: url("/BOTVENDA/paineladmin/logo/checkerduplicados.png"); }
#btnGateways { --icon: url("/BOTVENDA/paineladmin/logo/gateways.png"); }
#abrirCriarLogin { --icon: url("/BOTVENDA/paineladmin/logo/criarlogin.png"); }
#btnGerenciarLogins { --icon: url("/BOTVENDA/paineladmin/logo/gerenciarlogin.png"); }
#btnAdminUpdates { --icon: url("/BOTVENDA/paineladmin/logo/notificar.png"); }
#btnImagens { --icon: url("/BOTVENDA/paineladmin/logo/imagens.png"); }

/* ====== LOGO FIXA “SONECA CENTER” ====== */
.sidebar .logo{
  width:100%;
  text-align:center;
  margin-bottom:16px;
  position:sticky;
  top:0;
  z-index:10;
  background: var(--surface);
  border-bottom:1px solid var(--border);
  padding:12px 0;
  backdrop-filter: blur(14px) saturate(160%);
}

.sidebar .logo-img{
  width:calc(var(--sidebar-w) - 40px); /* ocupa quase toda a largura */
  max-width:220px;
  height:auto;
  object-fit:contain;
  border-radius:5px;
  transition: transform .25s ease, filter .25s ease;
}

.sidebar .logo-img:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0,194,255,.4));
}



/* título de seção na grade da sidebar */
.sidebar .menu-title {
  grid-column: 1 / -1;               /* ocupa as 3 colunas */
  margin: 8px 0 4px;
  padding: 8px 10px;
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 12.5px;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: left;                  /* <<< alinha o texto à esquerda */
  justify-self: start;               /* <<< garante que o elemento grude no início do grid */
}


/*===================================================*/
/* =========================================================
   STATUS EM TEMPO REAL • NeoGlass UI (Dark + Futurista)
   ========================================================= */

/* Container da seção */
.section {
  background: #161b22;
  border: 1px solid #14181f;
  border-radius: 18px;
  box-shadow: 0 10px 28px #14181f;
  padding: 30px 25px;
  backdrop-filter: blur(14px) saturate(160%);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.section:hover {
  border-color: #181818c9;
  box-shadow: 0 14px 38px #181818c9;
}

/* Título da seção */
.section h2 {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, #1a191900, #24242400) 1;
  padding-left: 12px;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0);
}

/* ===== GRID DAS BASES ===== */
.baseStatus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* ===== CARD INDIVIDUAL ===== */
.baseCard {
  background: #161b22;
  border: 1px solid #14181f;
  border-radius: 14px;
  box-shadow: 0 6px 22px #14181f;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px) saturate(140%);
}

.baseCard:hover {
  transform: translateY(-4px);
  border-color: #f7f1f12d;
  box-shadow: 0 10px 28px #ffffff2d;
}

/* Brilho interno */
.baseCard::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(300px 120px at 50% -20%, rgba(245, 240, 240, 0.918), transparent 70%),
              radial-gradient(300px 120px at 120% 0%, #f8f6f6, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ===== TEXTOS ===== */
.baseCard h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 194, 255, 0.3);
}

.baseCard p {
  margin: 3px 0;
  font-size: 0.9rem;
  color: #ffffff;
}

/* ===== BARRA DE PROGRESSO ===== */
.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  background: #f8f8f814;
  border: 1px solid #ffffff14;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #6b5cff);
  box-shadow: 0 0 18px rgba(0, 194, 255, 0.45);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ===== ESTADOS DE BASES ===== */
.baseCard.active .progress-bar {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.baseCard.error .progress-bar {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.baseCard.loading .progress-bar {
  background: linear-gradient(90deg, #eab308, #facc15);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.4);
  animation: pulseGlow 1.6s ease-in-out infinite alternate;
}

/* ===== Animação do carregamento ===== */
@keyframes pulseGlow {
  from {
    filter: brightness(1);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
  }
  to {
    filter: brightness(1.3);
    box-shadow: 0 0 28px rgba(234, 179, 8, 0.55);
  }
}

/* ===== Responsivo ===== */
@media (max-width: 600px) {
  .section {
    padding: 20px;
  }
  .baseCard {
    padding: 18px;
  }
  .baseCard h4 {
    font-size: 1rem;
  }
}
/* ===== Indicador de estado (canto superior direito) ===== */
.baseCard {
  position: relative; /* garante posicionamento do indicador */
}

/* bolinha base */
.baseCard .state-indicator{
  position:absolute;
  top:12px; right:12px;
  width:24px; height:24px;
  border-radius:50%;
  filter: drop-shadow(0 0 10px rgba(0,194,255,.55));
  pointer-events:none;
}

/* ---------- LOADING: spinner com conic-gradient ---------- */
.baseCard.loading .state-indicator{
  /* anel oco com brilho */
  background:
    conic-gradient(from 0turn, #00d1ff 0 25%, transparent 25% 100%);
  -webkit-mask:
    radial-gradient(farthest-side, transparent 58%, #000 60%);
          mask:
    radial-gradient(farthest-side, transparent 58%, #000 60%);
  box-shadow: 0 0 16px rgba(0, 194, 255, .55);
  animation: spin .9s linear infinite, glowPulse 1.6s ease-in-out infinite alternate;
}

/* ---------- ACTIVE: check sólido ---------- */
.baseCard.active .state-indicator{
  background-color:#22c55e;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.17 4.83 12 3.41 13.41 9 19l12-12-1.41-1.41z"/></svg>') no-repeat center / 85% 85%;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.17 4.83 12 3.41 13.41 9 19l12-12-1.41-1.41z"/></svg>') no-repeat center / 85% 85%;
  box-shadow: 0 0 14px rgba(34,197,94,.55);
}

/* ---------- ERROR: triângulo de alerta ---------- */
.baseCard.error .state-indicator{
  background-color:#ef4444;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V9h2v5z"/></svg>') no-repeat center / 90% 90%;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V9h2v5z"/></svg>') no-repeat center / 90% 90%;
  box-shadow: 0 0 14px rgba(239,68,68,.55);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowPulse {
  from { filter: drop-shadow(0 0 8px rgba(0,194,255,.4)); }
  to   { filter: drop-shadow(0 0 18px rgba(0,194,255,.8)); }
}

.hidden{ display:none !important; }
.mainBtn{
  padding:12px 14px; border:0; border-radius:12px; font-weight:900; cursor:pointer;
  background: linear-gradient(135deg,var(--brand),var(--brand-2)); color:#0b0f16;
  box-shadow: 0 10px 24px rgba(0,194,255,.25);
  transition: transform .15s ease, filter .15s ease;
}
.mainBtn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --accent: #00bfff;
  --accent2: #007acc;
  --text: #c9d1d9;
  --text-light: #e6edf3;
  --border: #30363d;
  --error: #ff4d4f;
  --success: #16a34a;
  --radius: 10px;
}

/* -------------------- Geral -------------------- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
}

.container {
  display: flex;
  width: 100%;
}

/* -------------------- Conteúdo -------------------- */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg);
}
/* =========================
   Gateways • Neon Glass UI
   ========================= */
:root{
  --gw-bg: rgba(12,16,24,.65);
  --gw-bg-2: rgba(12,16,24,.45);
  --gw-border: rgba(255,255,255,.08);
  --gw-ring: rgba(0,194,255,.35);
  --gw-fg: #e8edf7;
  --gw-muted: #9fb0c8;

  --gw-brand: #00c2ff;
  --gw-brand-2: #6b5cff;
  --gw-ok: #22c55e;
  --gw-error: #ef4444;

  --gw-radius-lg: 16px;
  --gw-radius-md: 12px;
  --gw-shadow-1: 0 10px 28px rgba(0,0,0,.35);
  --gw-shadow-2: 0 18px 48px rgba(0,0,0,.55);
}

.hidden{ display:none !important; }

/* Container do painel */
.gw-panel{
  background: var(--gw-bg);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--gw-shadow-1);
  padding: 20px 20px 16px;
  color: var(--gw-fg);
  position: relative;
  overflow: hidden;
}
.gw-panel::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 180px at 20% -10%, rgba(0,194,255,.16), transparent 65%),
    radial-gradient(520px 240px at 120% -10%, rgba(107,92,255,.14), transparent 70%);
  mix-blend-mode: screen;
  pointer-events:none;
}

.gw-header{
  display:flex; align-items:center; gap:12px; justify-content:space-between;
  margin-bottom: 14px;
}
.gw-title{
  font-weight:900; letter-spacing:.3px;
  font-size: clamp(1.05rem,.9rem + .7vw,1.35rem);
  display:flex; align-items:center; gap:10px;
}
.gw-title .dot{
  width:10px; height:10px; border-radius:999px;
  background:linear-gradient(90deg,var(--gw-brand),var(--gw-brand-2));
  box-shadow:0 0 16px rgba(0,194,255,.5);
}
.gw-muted{ color:#9fb0c8; font-weight:600; }

/* Abas (pílulas) */
.pill-tabs{
  display:flex; flex-wrap:wrap; gap:8px;
  background: var(--gw-bg-2);
  border:1px solid var(--gw-border);
  border-radius: 999px;
  padding: 6px;
}
.pill-tabs .pill{
  border:1px solid transparent;
  background: transparent;
  color: var(--gw-fg);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight:800;
  transition: .18s ease;
}
.pill-tabs .pill:hover{ background: rgba(255,255,255,.05); }
.pill-tabs .pill.active{
  background: linear-gradient(135deg, var(--gw-brand), var(--gw-brand-2));
  color:#0b0f16;
  box-shadow: 0 10px 22px rgba(0,194,255,.25);
}

/* Blocos */
.gw-card{
  background: var(--gw-bg-2);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  padding: 12px 14px;
  box-shadow: var(--gw-shadow-1);
}
.gw-stack{ display:flex; gap:10px; flex-wrap:wrap; }

/* Grid de campos */
.gw-grid{
  display:grid;
  grid-template-columns: repeat(2,minmax(220px,1fr));
  gap:14px;
}
.gw-full{ grid-column: 1 / -1; }

.gw-field label{
  display:block; margin-bottom:6px; font-weight:800; letter-spacing:.2px; color:#fff;
}

.gw-input, .gw-select{
  width:100%;
  padding:11px 12px;
  border-radius: 12px;
  border:1px solid var(--gw-border);
  background: rgba(255,255,255,.05);
  color: var(--gw-fg);
  font-size: .98rem;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.gw-input::placeholder{ color: var(--gw-muted); }
.gw-input:focus, .gw-select:focus{
  outline: none; box-shadow: 0 0 0 4px var(--gw-ring); border-color: transparent;
}

.provider-section{
  background: var(--gw-bg-2);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 16px;
  box-shadow: var(--gw-shadow-1);
}

/* Ações */
.gw-actions{
  display:flex; gap:10px; justify-content:flex-end; align-items:center; margin-top:12px;
}
.btn-main{
  border:0; cursor:pointer; font-weight:900; letter-spacing:.2px;
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gw-brand), var(--gw-brand-2));
  color:#0b0f16;
  box-shadow: 0 14px 32px rgba(0,194,255,.28), 0 2px 0 rgba(0,0,0,.35) inset;
  transition: transform .15s ease, filter .15s ease;
}
.btn-main:hover{ transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost{
  background: transparent; color: var(--gw-fg);
  border:1px solid var(--gw-border); padding: 10px 14px; border-radius: 12px; font-weight:800; cursor:pointer;
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

.gw-msg{ font-weight:800; }
.gw-msg.ok{ color: var(--gw-ok); }
.gw-msg.err{ color: var(--gw-error); }

/* Responsivo */
@media (max-width: 860px){
  .gw-grid{ grid-template-columns: 1fr; }
}
[data-section].active {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}
/* tabela gerenciar logins */
.mg-table { width:100%; }
.mg-row { display:grid; grid-template-columns: 2fr 1.2fr 1.6fr 1fr; gap:12px; padding:12px 14px; align-items:center; }
.mg-head { font-weight:700; opacity:.9; border-bottom:1px solid #1f2937; background:rgba(255,255,255,.02); }
.mg-row:not(.mg-head){ border-bottom:1px solid #111827; }
.mg-actions { display:flex; gap:8px; justify-content:flex-end; }
.btn-danger { background:#ef4444; border:none; padding:8px 12px; border-radius:10px; color:#fff; cursor:pointer; }
.btn-danger:hover { filter:brightness(1.1); }
.spin { display:flex; align-items:center; gap:6px; }
.spin > button { width:36px; height:36px; border-radius:10px; border:1px solid #1f2937; background:#0b1220; color:#cbd5e1; cursor:pointer; }
.spin > input { width:90px; text-align:center; }


/* BOTAO GATEWAYS ON */
/* ===== Painel Gateway Horizontal ===== */
#gatewayCard.gateway-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #060a11a8;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 16px;
  background: #060b13a8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: "Inter", system-ui, sans-serif;
  flex-wrap: wrap; /* quebra bonito em telas menores */
}

/* Radio invisível */
#gatewayCard input[type="radio"] {
  display: none;
}

/* Texto dos botões (pills) */
#gatewayCard label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  color: #ffffffce;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

#gatewayCard label:hover {
  background: #f1f5f9;
}

#gatewayCard input[type="radio"]:checked + span {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  box-shadow: 0 3px 8px rgba(59,130,246,0.3);
}

/* Divisor entre opções */
#gatewayCard .divider {
  font-weight: 600;
  color: #999;
  user-select: none;
}

/* Botão Salvar */
#gatewayCard button#gwSaveBtn {
  margin-left: 18px;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #060a11a8;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(22,163,74,0.3);
  transition: all 0.15s ease;
}

#gatewayCard button#gwSaveBtn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#gatewayCard #gwStatus {
  margin-left: 10px;
  font-size: 14px;
  color: #111;
  font-weight: 500;
}

/* Mobile responsivo */
@media (max-width: 640px) {
  #gatewayCard.gateway-inline {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  #gatewayCard .divider { display: none; }
  #gatewayCard button#gwSaveBtn { margin-left: 0; width: 100%; }
}



/* testes */

/* ====== MURAL DE ATUALIZAÇÕES (HOME) ====== */

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

/* "cartão de crédito" horizontal */
.update-card{
  position:relative;
  width:260px;           /* largura */
  min-height:140px;      /* altura parecida com cartão */
  border-radius:16px;
  overflow:hidden;
  background: radial-gradient(circle at 0 0, rgba(148,163,184,.12), transparent 55%),
              rgba(15,23,42,.96);
  border:1px solid rgba(148,163,184,.25);
  box-shadow: 0 14px 30px rgba(0,0,0,.65);
  display:flex;
  flex-direction:row;
  backdrop-filter: blur(4px);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .22s ease;
}

.update-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0,0,0,.75);
  border-color: rgba(0,194,255,.55);
}

/* coluninha da imagem */
.update-card__media{
  width:32%;              /* faixinha lateral */
  min-width:70px;
  background: radial-gradient(circle at 20% 0, rgba(0,194,255,.45), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(107,92,255,.35), transparent 55%),
              rgba(15,23,42,1);
  display:flex;
  align-items:center;
  justify-content:center;
}
.update-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* corpo do card */
.update-card__body{
  flex:1;
  padding:10px 10px 9px 10px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4px;
}

.update-card__tag{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(226,232,240,.96);
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.45);
}

.update-card__title{
  font-size:.87rem;
  font-weight:700;
  color:#e5f0ff;
  margin-top:2px;
}

.update-card__desc{
  font-size:.78rem;
  color:rgba(148,163,184,.96);
  max-height:3.2em;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* footer */
.update-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:4px;
  font-size:.72rem;
  color:rgba(148,163,184,.8);
}

.update-card__pill{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

/* variações de status */
.update-card--online .update-card__pill{
  border-color: rgba(34,197,94,.85);
  color:#bbf7d0;
  background:rgba(22,163,74,.12);
}
.update-card--alerta .update-card__pill{
  border-color: rgba(234,179,8,.9);
  color:#facc15;
  background:rgba(202,138,4,.12);
}
.update-card--offline .update-card__pill{
  border-color: rgba(239,68,68,.9);
  color:#fecaca;
  background:rgba(239,68,68,.12);
}
.update-card--novo .update-card__pill{
  border-color: rgba(255, 0, 0, 0.993);
  color:#fecaca;
  background:rgba(239,68,68,.12);
}
.update-card--info .update-card__pill{
  border-color: rgba(255, 0, 0, 0.9);
  color:#bfdbfe;
  background:rgba(37,99,235,.12);
}

/* ====== PAINEL ADMIN – FORM / LIST ====== */

.updates-admin{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap:18px;
}
@media (max-width: 980px){
  .updates-admin{
    grid-template-columns: 1fr;
  }
}

.updates-form{
  background: rgba(15,23,42,.9);
  border-radius:14px;
  border:1px solid rgba(148,163,184,.25);
  padding:14px 14px 12px;
  box-shadow:0 12px 26px rgba(0,0,0,.55);
}

.updates-form-row{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:10px;
}
@media (max-width: 720px){
  .updates-form-row{
    grid-template-columns: 1fr;
  }
}

.updates-field{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:8px;
}
.updates-field label{
  font-size:.8rem;
  color:rgba(148,163,184,.9);
  letter-spacing:.03em;
  text-transform:uppercase;
}
.updates-field input,
.updates-field textarea,
.updates-field select{
  background:#020617;
  border-radius:10px;
  border:1px solid rgba(30,64,175,.7);
  padding:8px 10px;
  color:#e5e7eb;
  font-size:.88rem;
  outline:none;
  resize:vertical;
  min-height:36px;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.updates-field textarea{
  min-height:70px;
}
.updates-field input:focus,
.updates-field textarea:focus,
.updates-field select:focus{
  border-color: rgba(56,189,248,.9);
  box-shadow: 0 0 0 1px rgba(15,23,42,1), 0 0 0 2px rgba(56,189,248,.34);
  background:#020617;
}

.updates-actions{
  margin-top:4px;
  display:flex;
  justify-content:flex-end;
}

/* lista de cards existentes */
.updates-list-wrap{
  background: rgba(15,23,42,.9);
  border-radius:14px;
  border:1px solid rgba(148,163,184,.25);
  padding:14px 14px 10px;
  box-shadow:0 12px 26px rgba(0,0,0,.55);
}
.updates-list-wrap h3{
  margin:0 0 8px;
  font-size:.95rem;
  font-weight:800;
}

.updates-admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:360px;
  overflow:auto;
}

.updates-admin-item{
  display:flex;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(15,23,42,.92);
  border:1px solid rgba(15,23,42,.9);
  transition:.15s ease;
}
.updates-admin-item:hover{
  border-color: rgba(56,189,248,.55);
  background:rgba(15,23,42,.96);
}

.updates-admin-main{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.updates-admin-title{
  display:flex;
  align-items:center;
  gap:6px;
}
.updates-admin-title strong{
  font-size:.9rem;
}
.updates-admin-tag{
  padding:1px 7px;
  border-radius:999px;
  background:#020617;
  border:1px solid rgba(148,163,184,.4);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#e5e7eb;
}
.updates-admin-desc{
  font-size:.8rem;
  color:rgba(148,163,184,.95);
}
.updates-admin-meta{
  display:flex;
  justify-content:space-between;
  font-size:.74rem;
  color:rgba(148,163,184,.85);
}

.updates-admin-status{
  padding:1px 7px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.updates-admin-status--online{
  border-color: rgba(34,197,94,.85);
  color:#bbf7d0;
}
.updates-admin-status--alerta{
  border-color: rgba(234,179,8,.9);
  color:#facc15;
}
.updates-admin-status--offline{
  border-color: rgba(239,68,68,.9);
  color:#fecaca;
}
.updates-admin-status--novo{
  border-color: rgb(255, 0, 0);
  color:#fecaca;
}

.updates-admin-delete{
  align-self:center;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid rgba(239,68,68,.8);
  background:rgba(127,29,29,.15);
  color:#fecaca;
  font-size:.8rem;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.updates-admin-delete:hover{
  background:rgba(127,29,29,.35);
}
/* TESTE */

/* Container principal do módulo Imagens */
.card-advanced{
  margin-top: 22px;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.2), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59,130,246,0.18), transparent 50%),
              #020617;
  border-radius: 18px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(148,163,184,.28);
  box-shadow:
    0 18px 40px rgba(15,23,42,.9),
    0 0 0 1px rgba(15,23,42,.9);
}

.card-advanced-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

.card-advanced-header h2{
  margin:0;
  font-size:1.05rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#e2e8f0;
}

.card-advanced-header p{
  margin:4px 0 0;
  font-size:.8rem;
  color:rgba(148,163,184,.9);
}

/* Botão outline reaproveitando cores do painel */
.btn-outline{
  border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  background:radial-gradient(circle at 0 0, rgba(56,189,248,.25), transparent 55%),
             rgba(15,23,42,.96);
  padding:7px 14px;
  font-size:.78rem;
  color:#e5f3ff;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:all .18s ease;
}

.btn-outline:hover{
  border-color:rgba(56,189,248,.85);
  box-shadow:0 0 0 1px rgba(56,189,248,.7),
             0 10px 30px rgba(15,23,42,.9);
  transform:translateY(-1px);
}

/* Grid de imagens */
.imagens-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
}

/* Card individual de imagem */
.imagem-card{
  position:relative;
  border-radius:14px;
  padding:10px 10px 12px;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,.24), transparent 55%),
    rgba(15,23,42,.98);
  border:1px solid rgba(148,163,184,.28);
  box-shadow:
    0 10px 26px rgba(0,0,0,.65),
    0 0 0 1px rgba(15,23,42,1);
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:.8rem;
  overflow:hidden;
}

/* Thumb */
.imagem-thumb-wrap{
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.9);
  background:radial-gradient(circle at 0 0, rgba(148,163,184,.25), transparent 55%),
             rgba(15,23,42,1);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:96px;
}

.imagem-thumb{
  max-width:100%;
  max-height:120px;
  display:block;
}

/* Nome do arquivo */
.imagem-name{
  font-size:.78rem;
  font-weight:600;
  color:#e5e7eb;
  word-break:break-all;
}

/* meta (tamanho, data) */
.imagem-meta{
  font-size:.72rem;
  color:rgba(148,163,184,.9);
  display:flex;
  justify-content:space-between;
  gap:8px;
}

/* Linha de ações */
.imagem-actions{
  margin-top:6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}

.badge-soft{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(148,163,184,.9);
  background:rgba(15,23,42,.92);
}

.imagem-btn-replace{
  border-radius:999px;
  border:1px solid rgba(96,165,250,.75);
  background:radial-gradient(circle at 0 0, rgba(59,130,246,.5), transparent 55%),
             rgba(15,23,42,.98);
  color:#e5f3ff;
  font-size:.74rem;
  padding:5px 10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:all .18s ease;
}

.imagem-btn-replace:hover{
  box-shadow:0 10px 30px rgba(15,23,42,.95);
  transform:translateY(-1px);
}

/* Mensagens */
.imagens-empty{
  font-size:.8rem;
  color:rgba(148,163,184,.85);
  padding:10px 4px 4px;
}

.imagens-loading{
  font-size:.8rem;
  color:rgba(148,163,184,.85);
  padding:10px 4px;
}








/* Seção admin genérica */
.admin-section {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #07172c 0, #020915 55%, #020713 100%);
  border: 1px solid rgba(0, 247, 255, 0.04);
}

.admin-section-header h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-section-header .text-muted {
  margin: 0;
  font-size: .85rem;
  color: #7f96aa;
}

/* Grid de features */
.feature-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

/* Card de cada ferramenta */
.feature-card {
  position: relative;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(4, 16, 31, 0.92);
  border: 1px solid rgba(0, 247, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .65);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.feature-card-title {
  font-size: .92rem;
  font-weight: 600;
  color: #e7f5ff;
}

.feature-card-sub {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6d8498;
}

.feature-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: .7rem;
  color: #5a7084;
}

/* Botão/etiqueta de status (clicável) */
.feature-status-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
}

.feature-status-pill:hover {
  transform: translateY(-1px);
}

/* Cores por status */
.feature-status--online {
  background: rgba(0, 247, 255, 0.1);
  border-color: rgba(0, 247, 255, 0.35);
  color: #5ff6ff;
}

.feature-status--instavel {
  background: rgba(255, 184, 77, 0.09);
  border-color: rgba(255, 184, 77, 0.55);
  color: #ffd892;
}

.feature-status--manutencao {
  background: rgba(255, 121, 40, 0.08);
  border-color: rgba(255, 121, 40, 0.6);
  color: #ffb48b;
}

.feature-status--offline {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.6);
  color: #ff9a9a;
}

.feature-status--novo {
  background: rgba(255, 80, 80, 0.568);
  border-color: rgb(255, 0, 0);
  color: #ff9a9a;
}

.feature-key-label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .7rem;
  opacity: .75;
}

.feature-updated {
  font-size: .7rem;
  opacity: .7;
}


/* SISTEMA DE PAGAMENTO LOGIN */
/* Botão pequenininho abaixo do login */
.btn-ghost-small {
  margin-top: 10px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #f97373;
  color: #f97373;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost-small:hover {
  background: #f97373;
  color: #0b0b0b;
}
