/**
 * GORDINHO PERSONALIZADOS — ADMIN DASHBOARD STYLES
 * Identidade Visual Premium: Verde Floresta Profundo (#06180E, #0A2717), Amarelo Ouro (#FAB818) & Verde Esmeralda (#22C55E)
 */

/* ==========================================================================
   RESET & FUNDAÇÃO
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body.admin-body {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  background-color: #06180E;
  color: #F1F5F9;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere Glows */
body.admin-body::before {
  content: '';
  position: fixed;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(250, 184, 24, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.admin-body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.admin-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TELA DE LOGIN / AUTENTICAÇÃO
   ========================================================================== */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.admin-auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, #0F3822 0%, #0A2717 100%);
  border: 1px solid rgba(250, 184, 24, 0.35);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(250, 184, 24, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: authCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.admin-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FAB818, #22C55E, #FAB818);
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.auth-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.auth-title span {
  color: #FAB818;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #8FB49C;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #D2E4D8;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  padding-right: 46px;
  background: #06180E;
  border: 1px solid rgba(250, 184, 24, 0.25);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.1rem;
  color: #FFFFFF;
  letter-spacing: 0.15em;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #FAB818;
  box-shadow: 0 0 0 3px rgba(250, 184, 24, 0.2);
}

.auth-toggle-pin {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8FB49C;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.auth-toggle-pin:hover {
  color: #FAB818;
}

.auth-hint {
  font-size: 0.78rem;
  color: #8FB49C;
}

.auth-hint strong {
  color: #FAB818;
}

.auth-error {
  font-size: 0.85rem;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.auth-error.visible {
  display: block;
}

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FAB818 0%, #E5A50E 100%);
  color: #0A2717;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(250, 184, 24, 0.3);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #FFC738 0%, #FAB818 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(250, 184, 24, 0.45);
}

.auth-back-link {
  margin-top: 18px;
  display: inline-block;
  font-size: 0.85rem;
  color: #8FB49C;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: #FAB818;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER DO PAINEL
   ========================================================================== */
.admin-header {
  background: rgba(10, 39, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 184, 24, 0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.admin-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.admin-brand-info {
  display: flex;
  flex-direction: column;
}

.admin-brand-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.admin-brand-title span {
  color: #FAB818;
}

.admin-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22C55E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-brand-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-view-catalog {
  background: rgba(34, 197, 94, 0.15);
  color: #86EFAC;
  border-color: rgba(34, 197, 94, 0.35);
}

.btn-view-catalog:hover {
  background: rgba(34, 197, 94, 0.25);
  color: #FFFFFF;
  border-color: #22C55E;
  transform: translateY(-1px);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #FFFFFF;
  border-color: #EF4444;
}

/* ==========================================================================
   DASHBOARD HERO & KPIS
   ========================================================================== */
.admin-main {
  padding: 36px 0 70px;
}

.admin-hero-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.admin-page-title span {
  color: #FAB818;
}

.admin-page-desc {
  font-size: 0.95rem;
  color: #8FB49C;
  margin-top: 4px;
}

/* Grid de KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: linear-gradient(145deg, #0F3822 0%, #0A2717 100%);
  border: 1px solid rgba(250, 184, 24, 0.18);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 184, 24, 0.4);
}

.kpi-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-items {
  background: rgba(250, 184, 24, 0.15);
  color: #FAB818;
}

.kpi-icon-categories {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

.kpi-icon-active {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.kpi-icon-storage {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8FB49C;
  margin-top: 3px;
}

/* ==========================================================================
   TOOLBAR DE AÇÕES & FILTROS
   ========================================================================== */
.admin-toolbar-card {
  background: #0F3822;
  border: 1px solid rgba(250, 184, 24, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 300px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8FB49C;
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: #06180E;
  border: 1px solid rgba(250, 184, 24, 0.22);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  outline: none;
  border-color: #FAB818;
  box-shadow: 0 0 0 3px rgba(250, 184, 24, 0.18);
}

.admin-select {
  padding: 11px 16px;
  background: #06180E;
  border: 1px solid rgba(250, 184, 24, 0.22);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s;
}

.admin-select:focus {
  outline: none;
  border-color: #FAB818;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #FAB818 0%, #E5A50E 100%);
  color: #0A2717;
  box-shadow: 0 4px 14px rgba(250, 184, 24, 0.35);
}

.btn-admin-primary:hover {
  background: linear-gradient(135deg, #FFC738 0%, #FAB818 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 184, 24, 0.5);
}

.btn-admin-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #D2E4D8;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(250, 184, 24, 0.4);
}

.btn-admin-danger-outline {
  background: transparent;
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-admin-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #FFFFFF;
  border-color: #EF4444;
}

/* ==========================================================================
   TABELA DE PRODUTOS / ITENS
   ========================================================================== */
.table-card {
  background: #0A2717;
  border: 1px solid rgba(250, 184, 24, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #0F3822;
  padding: 16px 20px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8FB49C;
  border-bottom: 1px solid rgba(250, 184, 24, 0.15);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(250, 184, 24, 0.03);
}

/* Imagem da Tabela */
.table-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #06180E;
  border: 1px solid rgba(250, 184, 24, 0.2);
  display: block;
}

/* Nome & ID */
.table-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-item-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.table-item-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: #8FB49C;
}

/* Badges e Categorias */
.badge-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #86EFAC;
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(250, 184, 24, 0.15);
  color: #FDE047;
  border: 1px solid rgba(250, 184, 24, 0.3);
  white-space: nowrap;
}

/* Status Switch / Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.status-pill.active {
  background: rgba(34, 197, 94, 0.16);
  color: #86EFAC;
  border-color: rgba(34, 197, 94, 0.4);
}

.status-pill.inactive {
  background: rgba(148, 163, 184, 0.14);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.3);
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Ações da Tabela */
.table-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #D2E4D8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-table-action.action-edit:hover {
  border-color: #FAB818;
  color: #FAB818;
}

.btn-table-action.action-clone:hover {
  border-color: #22C55E;
  color: #22C55E;
}

.btn-table-action.action-delete:hover {
  border-color: #EF4444;
  color: #EF4444;
}

/* Empty State */
.table-empty-state {
  padding: 60px 20px;
  text-align: center;
}

.table-empty-state svg {
  color: #8FB49C;
  opacity: 0.6;
  margin-bottom: 16px;
}

.table-empty-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.table-empty-desc {
  font-size: 0.9rem;
  color: #8FB49C;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   MODAL DE EDIÇÃO / CRIAÇÃO (COM LIVE PREVIEW PROFISSIONAL)
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
}

.admin-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  width: 100%;
  max-width: 1140px;
  height: 90vh;
  max-height: 90vh;
  background: linear-gradient(180deg, #0D331E 0%, #072213 100%);
  border: 1px solid rgba(250, 184, 24, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 184, 24, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-card form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

@keyframes modalScaleUp {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.admin-modal-header {
  flex-shrink: 0;
  padding: 18px 28px;
  background: #0B2C1A;
  border-bottom: 1px solid rgba(250, 184, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
}

.admin-modal-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.admin-modal-title span {
  color: #FAB818;
}

.modal-header-sub {
  font-size: 0.84rem;
  color: #8FB49C;
  margin-top: 2px;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8FB49C;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
}

.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.admin-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.admin-modal-body::-webkit-scrollbar {
  width: 8px;
}

.admin-modal-body::-webkit-scrollbar-track {
  background: rgba(6, 24, 14, 0.5);
  border-radius: 4px;
}

.admin-modal-body::-webkit-scrollbar-thumb {
  background: rgba(250, 184, 24, 0.35);
  border-radius: 4px;
}

.admin-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 184, 24, 0.6);
}

@media (max-width: 950px) {
  .admin-modal-card {
    height: 95vh;
    max-height: 95vh;
  }
  .admin-modal-body {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
}

/* Formulário e Seções em Cards */
.modal-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-card {
  background: rgba(10, 39, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.form-section-card:focus-within {
  border-color: rgba(250, 184, 24, 0.35);
}

.form-label-primary {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: block;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #D2E4D8;
  margin-bottom: 6px;
  display: block;
}

.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.label-hint {
  font-size: 0.75rem;
  color: #8FB49C;
}

.input-subhint {
  display: block;
  font-size: 0.76rem;
  color: #8FB49C;
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  background: #05160D;
  border: 1px solid rgba(250, 184, 24, 0.25);
  border-radius: 10px;
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  color: #FFFFFF;
  transition: all 0.2s;
}

.form-control::placeholder {
  color: #5A7E65;
}

.form-control:focus {
  outline: none;
  border-color: #FAB818;
  background: #082013;
  box-shadow: 0 0 0 3px rgba(250, 184, 24, 0.2);
}

.form-control-lg {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 13px 16px;
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: #0A2717;
  color: #FFFFFF;
  padding: 8px;
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
  line-height: 1.45;
}

/* Sugestões de Badges Rápidos */
.badge-suggestions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.badge-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(250, 184, 24, 0.12);
  border: 1px solid rgba(250, 184, 24, 0.3);
  color: #FDE047;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.badge-chip:hover {
  background: rgba(250, 184, 24, 0.26);
  border-color: #FAB818;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.badge-chip-clear {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94A3B8;
}

.badge-chip-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
}

/* Upload de Foto Moderno */
.photo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.photo-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(34, 197, 94, 0.16);
  color: #86EFAC;
  border: 1px dashed rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-upload:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: #22C55E;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-clear-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-photo:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #FFFFFF;
  border-color: #EF4444;
}

.photo-url-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.photo-url-label {
  font-size: 0.78rem;
  color: #8FB49C;
}

/* Configurações Avançadas */
.form-details-advanced {
  background: rgba(10, 39, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.advanced-toggle {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #D2E4D8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.advanced-toggle::-webkit-details-marker {
  display: none;
}

.advanced-toggle:hover {
  color: #FAB818;
  background: rgba(255, 255, 255, 0.03);
}

.advanced-content {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Switch Ativo */
.checkbox-switch-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 39, 23, 0.5);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.checkbox-switch-wrap:hover {
  border-color: rgba(34, 197, 94, 0.45);
}

.checkbox-switch-wrap input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  width: 44px;
  height: 24px;
  background: #334155;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.switch-ui::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.checkbox-switch-wrap input:checked + .switch-ui {
  background: #22C55E;
}

.checkbox-switch-wrap input:checked + .switch-ui::before {
  transform: translateX(20px);
}

.switch-text {
  display: flex;
  flex-direction: column;
}

.switch-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}

.switch-desc {
  font-size: 0.78rem;
  color: #8FB49C;
}

/* ==========================================================================
   COLUNA DE PRÉ-VISUALIZAÇÃO (LIVE PREVIEW STAGE)
   ========================================================================== */
.modal-preview-col {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.preview-stage-box {
  background: linear-gradient(180deg, #0A2717 0%, #06180E 100%);
  border: 1px solid rgba(250, 184, 24, 0.25);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86EFAC;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.preview-hint-text {
  font-size: 0.8rem;
  color: #8FB49C;
  margin: 8px 0 16px;
  text-align: center;
}

/* Réplica do Card de Catálogo 1:1 */
.preview-catalog-card {
  width: 100%;
  max-width: 320px;
  background: rgba(19, 68, 42, 0.85);
  border: 1px solid rgba(250, 184, 24, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 184, 24, 0.08);
  display: flex;
  flex-direction: column;
}

.preview-card-media {
  position: relative;
  width: 100%;
  height: 190px;
  background: #06180E;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

/* Placeholder Ilustrado */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8FB49C;
  padding: 12px;
}

.placeholder-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(250, 184, 24, 0.1);
  border: 1px dashed rgba(250, 184, 24, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAB818;
  margin-bottom: 8px;
}

.placeholder-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.placeholder-sub {
  font-size: 0.72rem;
  color: #8FB49C;
  margin-top: 2px;
}

.preview-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 24, 14, 0.9);
  border: 1px solid rgba(250, 184, 24, 0.4);
  color: #FAB818;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 24, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.preview-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.preview-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22C55E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.preview-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 8px;
}

.preview-card-spec {
  font-size: 0.8rem;
  color: #D2E4D8;
  margin-bottom: 8px;
  line-height: 1.35;
}

.preview-card-desc {
  font-size: 0.78rem;
  color: #8FB49C;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 39, 23, 0.6);
  gap: 10px;
}

.preview-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #06180E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
}

.preview-stepper-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #D2E4D8;
  user-select: none;
}

.preview-stepper-val {
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.preview-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  user-select: none;
}

/* Card de Dica */
.preview-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(250, 184, 24, 0.08);
  border: 1px solid rgba(250, 184, 24, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  max-width: 320px;
}

.tip-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tip-content strong {
  font-size: 0.8rem;
  color: #FAB818;
  display: block;
}

.tip-content p {
  font-size: 0.74rem;
  color: #D2E4D8;
  line-height: 1.35;
  margin-top: 2px;
}

/* Footer do Modal */
.admin-modal-footer {
  flex-shrink: 0;
  padding: 16px 28px;
  background: #0B2C1A;
  border-top: 1px solid rgba(250, 184, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}

.btn-admin-save {
  padding: 12px 24px;
  font-size: 0.98rem;
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO (EXCLUSÃO / RESET)
   ========================================================================== */
.confirm-modal-card {
  width: 100%;
  max-width: 460px;
  background: #0A2717;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.confirm-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.confirm-desc {
  font-size: 0.9rem;
  color: #8FB49C;
  margin-bottom: 24px;
}

.confirm-desc strong {
  color: #FAB818;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   TOASTS DE NOTIFICAÇÃO
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #0F3822;
  border: 1px solid rgba(250, 184, 24, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.toast.toast-success .toast-icon {
  color: #22C55E;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
}

.toast.toast-error .toast-icon {
  color: #EF4444;
}

.toast.toast-warning {
  border-color: rgba(250, 184, 24, 0.5);
}

.toast.toast-warning .toast-icon {
  color: #FAB818;
}

.toast-msg {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-fadeout {
  transform: translateX(100%);
  opacity: 0;
}
/* Refinamento do painel: hierarquia, operação e telas menores */
body.admin-body { background: #081d12; }
body.admin-body::before, body.admin-body::after { display: none; }
.admin-header { background: #0c281a; }
.admin-main { padding-top: 32px; }
.admin-page-title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; }
.admin-page-desc { max-width: 65ch; }
.storage-notice { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 18px; margin: 20px 0 24px; border: 1px solid #466649; border-radius: 10px; color: #c3d9c9; font-size: .85rem; }
.storage-notice strong { color: #f6d47c; }
.kpi-grid { gap: 0; border: 1px solid #34513e; border-radius: 12px; overflow: hidden; }
.kpi-card { background: #0d2a1b; border: 0; border-radius: 0; box-shadow: none; padding: 20px; }
.kpi-card:hover { transform: none; }
.kpi-icon-wrap { display: none; }
.kpi-label { text-transform: none; letter-spacing: 0; color: #bdd2c4; }
.kpi-value { font-variant-numeric: tabular-nums; }
.admin-toolbar-card { display: flex; flex-direction: column-reverse; align-items: stretch; box-shadow: none; background: #0c281a; padding: 20px; gap: 20px; }
.toolbar-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.toolbar-filters { min-width: 0; display: flex; flex-wrap: wrap; }
.search-input-wrap { min-width: 200px; flex: 1 1 260px; }
.admin-select { max-width: 100%; }
#btn-clear-filters { order: 5; }
.maintenance-menu { position: relative; }
.maintenance-menu summary { cursor: pointer; padding: 11px 14px; border: 1px solid #4c6854; border-radius: 8px; font-size: .9rem; color: #dce8df; }
.maintenance-actions { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 12px; width: 260px; background: #123722; border: 1px solid #4c6854; border-radius: 12px; box-shadow: 0 12px 24px #0005; }
.table-card { box-shadow: none; border-color: #34513e; }
.table-summary { padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #34513e; }
#results-count { color: #c4d8ca; font-size: .9rem; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .8rem; }
.bulk-actions label { display: flex; align-items: center; gap: 7px; }
.bulk-actions select { background: #102f1e; color: #e8f2ec; border: 1px solid #52725b; padding: 9px; border-radius: 6px; max-width: 100%; }
input[type=checkbox] { accent-color: #fab818; width: 17px; height: 17px; }
.row-select { margin-right: 8px; vertical-align: middle; }
.table-item-img { vertical-align: middle; }
.admin-table th:first-child { width: 105px !important; }
.admin-table th { color: #bfd5c7; text-transform: none; letter-spacing: 0; }
.table-item-name { overflow-wrap: anywhere; }
.table-item-id { color: #b1c7b8; }
.btn-table-action { width: 38px; height: 38px; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
:focus-visible { outline: 3px solid #fab818; outline-offset: 3px; }
::selection { background: #fab818; color: #102016; }
.form-control { caret-color: #fab818; }
.form-section-card { background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid #34513e; border-radius: 0; padding: 0 0 22px; margin-bottom: 22px; }
.preview-stage-box { box-shadow: none; border: 0; background: transparent; }
.live-dot-pulse { animation: none; }
.admin-modal-card { box-shadow: 0 20px 60px #0006; }
.admin-modal-footer { gap: 12px; }
#import-options { margin: 20px 0; text-align: left; }
#import-options p { margin-top: 10px; font-size: .85rem; color: #bdd2c4; }
.confirm-modal-card { max-height: 90dvh; overflow-y: auto; }
@media (max-width: 760px) {
  .admin-container { padding: 0 16px; }
  .admin-header-inner { flex-wrap: wrap; gap: 18px; }
  .admin-header-actions { width: 100%; justify-content: space-between; }
  .admin-brand-title { font-size: 1.1rem; }
  .admin-hero-title-wrap { margin-bottom: 16px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-card { padding: 16px; }
  .kpi-value { font-size: 1.5rem; }
  .admin-toolbar-card { padding: 14px; }
  .toolbar-filters > * { flex: 1 1 100%; min-width: 0; width: 100%; }
  .toolbar-actions > .btn-admin { flex: 1 1 auto; }
  .maintenance-menu { flex: 1 1 auto; }
  .maintenance-menu summary { text-align: center; }
  .maintenance-actions { width: min(260px,calc(100vw - 64px)); }
  .table-summary { padding: 16px; }
  .bulk-actions { width: 100%; }
  .admin-table, .admin-table tbody { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px 12px; padding: 18px 14px; border-bottom: 1px solid #34513e; }
  .admin-table td { display: block; padding: 0; border: 0; text-align: left; }
  .admin-table td:first-child { grid-row: 1 / 4; }
  .admin-table td:nth-child(4), .admin-table td:nth-child(5) { display: none; }
  .admin-table td:nth-child(6) { grid-column: 2; }
  .admin-table td:last-child { grid-column: 1 / -1; }
  .table-actions-group { justify-content: flex-end; gap: 12px; }
  .btn-table-action { width: 44px; height: 44px; }
  .table-item-img { width: 60px; height: 60px; margin-top: 8px; }
  .admin-modal-overlay { padding: 8px; }
  .admin-modal-card { width: 100%; height: 96dvh; max-height: 96dvh; }
  .admin-modal-header, .admin-modal-footer { padding: 16px; }
  .admin-modal-title { font-size: 1.25rem; overflow-wrap: anywhere; }
  .modal-preview-col { position: static; }
  .photo-upload-actions { flex-wrap: wrap; }
  .btn-primary-upload { width: 100%; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.btn-admin-primary, .btn-admin-primary:hover { box-shadow: none; }
.toast.toast-error .toast-icon, .btn-admin-danger-outline { color: #ff9b9b; }
.checkbox-switch-wrap input:focus-visible + .switch-ui { outline: 3px solid #fab818; outline-offset: 4px; }

/* ==========================================================================
   KPI GRID (6 CARDS RESPONSIVE)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.kpi-icon-b2b {
  background: rgba(14, 165, 233, 0.16);
  color: #38BDF8;
}

.kpi-icon-retail {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
}

.kpi-icon-partners {
  background: rgba(168, 85, 247, 0.16);
  color: #C084FC;
}

/* ==========================================================================
   STORAGE NOTICE ENHANCED
   ========================================================================== */
.storage-notice {
  background: rgba(10, 39, 23, 0.7);
  border: 1px solid rgba(250, 184, 24, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.storage-notice-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.storage-notice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  color: #C4D8CA;
}
.storage-notice-text strong {
  color: #FAB818;
}

/* ==========================================================================
   TABS DE NAVEGAÇÃO
   ========================================================================== */
.admin-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0A2717;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(250, 184, 24, 0.2);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  background: transparent;
  color: #94A3B8;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.admin-tab-btn:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(250, 184, 24, 0.18) 0%, rgba(34, 197, 94, 0.12) 100%);
  color: #FAB818;
  border-color: rgba(250, 184, 24, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  border: 1px solid currentColor;
}

.admin-tab-pane {
  display: none;
  animation: tabFadeIn 0.25s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   BADGES DE PÚBLICO-ALVO NA TABELA E NO PREVIEW
   ========================================================================== */
.badge-audience {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-audience-b2b {
  background: rgba(14, 165, 233, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.badge-audience-cliente {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-audience-all {
  background: rgba(34, 197, 94, 0.14);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.preview-card-publico {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 24, 14, 0.85);
  backdrop-filter: blur(8px);
  color: #FAB818;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(250, 184, 24, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 184, 24, 0.15);
  color: #FAB818;
  border: 1px solid rgba(250, 184, 24, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   SEÇÃO & GRID DE CATEGORIAS
   ========================================================================== */
.section-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.section-pane-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
}

.section-pane-title span {
  color: #FAB818;
}

.section-pane-desc {
  font-size: 0.9rem;
  color: #8FB49C;
  margin-top: 2px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cat-overview-card {
  background: linear-gradient(145deg, #0F3822 0%, #0A2717 100%);
  border: 1px solid rgba(250, 184, 24, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cat-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 184, 24, 0.45);
}

.cat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cat-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cat-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(250, 184, 24, 0.18);
  color: #FAB818;
  border: 1px solid rgba(250, 184, 24, 0.3);
}

.cat-card-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #C4D8CA;
}

.cat-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-stat-row strong {
  color: #F1F5F9;
}

.btn-cat-filter {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ADE80;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-cat-filter:hover {
  background: #22C55E;
  color: #06180E;
  border-color: #22C55E;
}

/* ==========================================================================
   SEÇÃO & TABELA DE PARCEIROS B2B
   ========================================================================== */
.pane-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-whatsapp-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-whatsapp-lead:hover {
  background: #25D366;
  color: #06180E;
  border-color: #25D366;
  transform: translateY(-1px);
}

.partner-company-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.partner-cnpj-sub {
  font-size: 0.78rem;
  color: #8FB49C;
  font-family: monospace;
}

/* ==========================================================================
   SEÇÃO SISTEMA & MANUTENÇÃO
   ========================================================================== */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.system-panel-card {
  background: linear-gradient(145deg, #0F3822 0%, #0A2717 100%);
  border: 1px solid rgba(250, 184, 24, 0.2);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.panel-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(250, 184, 24, 0.15);
  color: #FAB818;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.panel-card-sub {
  font-size: 0.82rem;
  color: #8FB49C;
  margin-top: 2px;
}

.form-change-pin {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.backup-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backup-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.backup-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.backup-item-info strong {
  font-size: 0.92rem;
  color: #FFFFFF;
}

.backup-item-info span {
  font-size: 0.8rem;
  color: #8FB49C;
}

.backup-action-item.danger-zone {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.storage-metrics-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.storage-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #C4D8CA;
}

.storage-meter-labels strong {
  color: #FAB818;
}

.storage-progress-bar {
  width: 100%;
  height: 10px;
  background: #06180E;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(250, 184, 24, 0.2);
}

.storage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E 0%, #FAB818 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.storage-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  font-size: 0.85rem;
}

.storage-detail-row {
  display: flex;
  justify-content: space-between;
  color: #8FB49C;
}

.storage-detail-row strong {
  color: #F1F5F9;
}

.modal-card-sm {
  max-width: 520px;
}
