/* AdVision Station · OpenVision Core - Design System Idêntico ao Dashboard */
:root {
  --bg: #040605;
  --bg-2: #080b0a;
  --panel: rgba(255, 255, 255, .022);
  --panel-2: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .11);
  --neon-line: rgba(43, 255, 136, .26);
  --txt: #f2f5f3;
  --dim: #8d968f;
  --faint: #565e58;
  --neon: #2bff88;
  --neon-2: #15d96b;
  --neon-dark: #0a5c34;
  --warn: #ffc46b;
  --bad: #ff6f6f;
  --disp: 'Unbounded', sans-serif;
  --sans: 'Sora', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(43, 255, 136, .25);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(43, 255, 136, .18);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 255, 136, .35);
}

/* ========================================= */
/* BACKGROUND EFFECTS (IDÊNTICO AO DASHBOARD)*/
/* ========================================= */
.bgfx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bgfx .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 700px at 8% -10%, rgba(43, 255, 136, .09), transparent 62%),
    radial-gradient(800px 600px at 105% 5%, rgba(43, 255, 136, .045), transparent 58%),
    radial-gradient(700px 900px at 50% 120%, rgba(43, 255, 136, .035), transparent 60%);
}

.bgfx .grid {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 25%, transparent 78%);
}

.bgfx .vign {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, rgba(0, 0, 0, .65) 100%);
}

/* ========================================= */
/* TELA DE LOGIN DO ADMIN                    */
/* ========================================= */
.admin-login-screen {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--neon-line);
  border-radius: 24px;
  padding: 2.75rem 2.25rem 2.25rem;
  background: linear-gradient(175deg, #0d1310, #070a08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .85), 0 0 35px rgba(43, 255, 136, .07);
  backdrop-filter: blur(16px);
  text-align: center;
  animation: pop .55s var(--ease);
}

@keyframes pop {
  from { transform: translateY(22px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.mark-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.mark-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(43, 255, 136, .45));
}

.mark-wrapper::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 255, 136, .2), transparent 68%);
  animation: halo 3.4s ease-in-out infinite;
}

@keyframes halo {
  50% { inset: -9px; opacity: .45; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(43, 255, 136, .06);
  border: 1px solid var(--neon-line);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 9px var(--neon);
  animation: blink 2.2s infinite;
}

@keyframes blink {
  50% { opacity: .25; }
}

.brand-title {
  font-family: var(--disp);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.brand-title em {
  color: var(--neon);
  font-style: normal;
}

.system-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
  margin-bottom: 0.5rem;
}

.login-desc {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.login-footer {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.login-footer span {
  color: var(--neon);
  opacity: .8;
}

/* ========================================= */
/* TOP NAV (IDÊNTICO AO DASHBOARD)           */
/* ========================================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 2rem;
  background: rgba(4, 6, 5, .78);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: all .3s var(--ease);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(43, 255, 136, .4));
}

.mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 255, 136, .2), transparent 68%);
  animation: halo 3.4s ease-in-out infinite;
}

.logo .brand {
  display: flex;
  flex-direction: column;
}

.logo .t2 {
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo .t2 em {
  color: var(--neon);
  font-style: normal;
}

.logo .t1 {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-top: 4px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.user-mark {
  width: 26px;
  height: 26px;
  background: rgba(43, 255, 136, .12);
  border: 1px solid var(--neon-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--neon);
}

.username {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  padding: 2px;
}

.btn-icon:hover {
  color: var(--bad);
}

/* ========================================= */
/* WRAP & SECTION HEADERS                    */
/* ========================================= */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 30px 90px;
}

.shead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.shead .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--neon);
  opacity: .75;
  letter-spacing: .12em;
}

.shead h2 {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shead .ln {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.shead .note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

/* ========================================= */
/* METRIC KPI CARDS (IDÊNTICO AO .KPIS)      */
/* ========================================= */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kpi {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s;
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: var(--neon-line);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kpi-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  font-weight: 600;
}

.kpi-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: var(--faint);
  letter-spacing: .1em;
}

.kpi-tag.neon {
  color: var(--neon);
  background: rgba(43, 255, 136, .1);
  border: 1px solid var(--neon-line);
}

.kpi-val {
  font-family: var(--disp);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin-bottom: 6px;
}

.kpi-val.neon {
  color: var(--neon);
  text-shadow: 0 0 24px rgba(43, 255, 136, .35);
}

.kpi-val.domain-text {
  font-size: 19px;
  color: var(--neon);
  word-break: break-all;
}

.kpi-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

/* ========================================= */
/* CONTROLES E ABAS DE FILTRO (.SEG / .MTAB) */
/* ========================================= */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  color: var(--faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 1rem 0 2.75rem;
  font-family: var(--mono);
  color: var(--txt);
  font-size: 11.5px;
  letter-spacing: .04em;
  outline: none;
  transition: all .25s var(--ease);
}

.search-box input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(43, 255, 136, .09);
  background: rgba(255, 255, 255, .04);
}

/* Abas estilo .seg / .mtab do dashboard */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.mtab {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--faint);
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: .06em;
  transition: all .3s var(--ease);
}

.mtab:hover {
  color: var(--txt);
}

.mtab.active {
  color: #031a0e;
  background: linear-gradient(140deg, var(--neon), var(--neon-2));
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(43, 255, 136, .3);
}

.mtab .pt {
  font-size: 9px;
  opacity: .75;
  margin-left: 4px;
}

/* ========================================= */
/* GRID DE CLIENTES (.INS / .TW STYLE)       */
/* ========================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.client-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .35s, transform .35s var(--ease);
}

.client-card:hover {
  border-color: var(--neon-line);
  transform: translateY(-2px);
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar {
  width: 40px;
  height: 40px;
  background: rgba(43, 255, 136, .08);
  border: 1px solid var(--neon-line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neon);
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(43, 255, 136, .4);
}

.client-name {
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--txt);
}

.client-user {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

.client-user strong {
  color: var(--dim);
}

.badge-status {
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge-status.active {
  color: var(--neon);
  background: rgba(43, 255, 136, .11);
  border: 1px solid var(--neon-line);
}

.badge-status.inactive {
  color: var(--bad);
  background: rgba(255, 111, 111, .09);
  border: 1px solid rgba(255, 111, 111, .25);
}

/* Link Box */
.link-box {
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.link-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--neon);
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-copy:hover {
  color: var(--neon);
}

/* Dashboard Status Box */
.dashboard-status-box {
  background: rgba(255, 255, 255, .02);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px dashed var(--line);
}

.dashboard-status-box.has-file {
  border-style: solid;
  border-color: rgba(43, 255, 136, .18);
  background: rgba(43, 255, 136, .02);
}

.dash-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  margin-bottom: 0.35rem;
}

.dash-meta-row:last-child {
  margin-bottom: 0;
}

.dash-file-name {
  font-weight: 500;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.dash-file-size {
  color: var(--faint);
  font-size: 10.5px;
}

.dash-pending {
  color: var(--warn);
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card Actions Modernizado em 2 Linhas */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.card-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-actions-row .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.card-actions-row .btn-icon {
  flex: 0 0 38px;
  width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========================================= */
/* BOTÕES (.BTN IDÊNTICO AO DASHBOARD)       */
/* ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  transition: all .25s var(--ease);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  color: var(--txt);
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.btn.primary, .btn-primary {
  background: linear-gradient(140deg, var(--neon), var(--neon-2));
  color: #031a0e;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(43, 255, 136, .28);
}

.btn.primary:hover, .btn-primary:hover {
  color: #031a0e;
  box-shadow: 0 6px 30px rgba(43, 255, 136, .5);
}

.btn.danger, .btn-danger {
  background: rgba(255, 111, 111, .09);
  color: var(--bad);
  border: 1px solid rgba(255, 111, 111, .25);
}

.btn.danger:hover, .btn-danger:hover {
  background: rgba(255, 111, 111, .16);
  border-color: var(--bad);
}

.btn-secondary {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--dim);
}

.btn-block {
  width: 100%;
}

/* Formulários (.fld) */
.input-group, .fld {
  margin-bottom: 16px;
  text-align: left;
}

.input-group label, .fld label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--faint);
  margin-bottom: 8px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  color: var(--txt);
  outline: none;
  transition: all .25s var(--ease);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(43, 255, 136, .09);
}

.input-with-action {
  display: flex;
  gap: 6px;
}

.btn-sm-action {
  background: var(--panel);
  border: 1px solid var(--neon-line);
  color: var(--neon);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}

.btn-sm-action:hover {
  background: rgba(43, 255, 136, .12);
}

.field-hint {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 5px;
}

.field-hint span {
  color: var(--neon);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12.5px;
  color: var(--dim);
  cursor: pointer;
}

/* ========================================= */
/* MODAIS (.MODAL IDÊNTICO AO DASHBOARD)     */
/* ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, .85);
  backdrop-filter: blur(14px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.show {
  display: flex;
  animation: fadeIn .3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.modal-dialog {
  width: min(520px, 100%);
  border: 1px solid var(--neon-line);
  border-radius: 24px;
  background: linear-gradient(175deg, #0d1310, #070a08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .85), 0 0 35px rgba(43, 255, 136, .06);
  animation: pop .45s var(--ease);
  overflow: hidden;
}

.modal-header {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.mhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.mhead h3 {
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--txt);
}

.msub {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 4px;
}

.close {
  font-size: 22px;
  color: var(--faint);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.close:hover {
  color: var(--bad);
  background: rgba(255, 111, 111, .08);
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, .25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--neon);
  background: rgba(43, 255, 136, .06);
  border: 1px solid var(--neon-line);
  padding: 7px 13px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

/* Drop Zone Upload */
.drop-zone {
  border: 1px dashed var(--neon-line);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(43, 255, 136, .02);
  cursor: pointer;
  transition: all .25s var(--ease);
  margin-bottom: 1.25rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--neon);
  background: rgba(43, 255, 136, .06);
  box-shadow: 0 0 25px rgba(43, 255, 136, .1);
}

.drop-icon {
  color: var(--neon);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(43, 255, 136, .35));
}

.drop-zone h4 {
  font-family: var(--disp);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 0.35rem;
}

.drop-zone p {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 0.75rem;
}

.file-types-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  background: rgba(43, 255, 136, .08);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--neon-line);
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel-2);
  border: 1px solid var(--neon-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.file-badge {
  background: var(--neon);
  color: #031a0e;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 6px;
}

.file-details {
  flex: 1;
}

.file-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--txt);
}

.file-size {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.btn-remove-file {
  background: none;
  border: none;
  color: var(--bad);
  font-size: 1.25rem;
  cursor: pointer;
}

.progress-container {
  margin-top: 1rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-2), var(--neon));
  box-shadow: 0 0 10px rgba(43, 255, 136, .5);
  transition: width 0.3s;
}

.progress-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  text-align: center;
}

/* ========================================= */
/* TOAST NOTIFICATIONS (.TOAST IDÊNTICO)     */
/* ========================================= */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(10, 14, 12, .96);
  border: 1px solid var(--neon-line);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 13px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .7);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast .35s var(--ease);
  max-width: 90vw;
  white-space: nowrap;
}

.toast.error {
  border-color: rgba(255, 111, 111, .4);
  color: var(--bad);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: var(--disp);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Alerts */
.alert-box {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  margin-bottom: 1rem;
}

.alert-box.danger {
  background: rgba(255, 111, 111, .09);
  border: 1px solid rgba(255, 111, 111, .3);
  color: var(--bad);
}

/* Responsividade */
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .wrap { padding: 20px 18px 70px; }
  .top-nav { padding: 12px 1rem; }
  .hide-sm { display: none; }
  .controls-bar { flex-direction: column; align-items: stretch; }
  .seg { overflow-x: auto; }
}

/* --- Estilos do Compilador de Mês (XLSX + JSON) --- */
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .import-grid { grid-template-columns: 1fr; }
}
.btn-accent {
  background: rgba(43, 255, 136, 0.12);
  color: var(--neon);
  border: 1px solid var(--neon-line);
}
.btn-accent:hover {
  background: rgba(43, 255, 136, 0.22);
  border-color: var(--neon);
  box-shadow: 0 0 15px rgba(43, 255, 136, 0.2);
}
.import-summary-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(43, 255, 136, 0.05);
  border: 1px solid rgba(43, 255, 136, 0.3);
  border-radius: 14px;
  text-align: left;
}
.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.import-summary-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.import-summary-item .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
}
.import-summary-item .val {
  font-family: var(--disp);
  font-size: 14px;
  color: var(--txt);
  margin-top: 4px;
  font-weight: 700;
}

.modal-dialog-lg {
  width: min(680px, 95vw);
}

.import-dz {
  padding: 1.5rem 1rem !important;
  margin-bottom: 0 !important;
}

.import-dz.has-file {
  border-color: var(--neon) !important;
  background: rgba(43, 255, 136, 0.08) !important;
}

.import-dz.has-file .drop-icon {
  color: #fff !important;
}

