 @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@100;300;400;500;600;700;800&display=swap');

 :root {
   --primary: #09090b;
   --primary-dark: #000000;
   --secondary: #27272a;
   --accent: #18181b;
   --accent-gold: linear-gradient(135deg, #18181b, #71717a, #a1a1aa, #e4e4e7, #18181b);
   --gold-text: #27272a;
   --bg: #f4f4f5;
   --card-bg: #ffffff;
   --text-main: #09090b;
   --text-muted: #71717a;
   --nav-gradient: linear-gradient(90deg, #09090b 0%, #18181b 50%, #27272a 100%);
   --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
   --radius: 12px;
   --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
 }

 .hidden {
   display: none !important;
 }

 /* ... existing animations ... */

 @keyframes blurIn {
   from {
     filter: blur(20px);
     opacity: 0;
     transform: scale(1.05);
   }

   to {
     filter: blur(0);
     opacity: 1;
     transform: scale(1);
   }
 }

 @keyframes shimmer {
   0% {
     transform: translateX(-100%) skewX(-20deg);
   }

   100% {
     transform: translateX(200%) skewX(-20deg);
   }
 }

 body {
   margin: 0;
   padding: 0;
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   color: var(--text-main);
   background: #f4f4f5;
   background-image:
     radial-gradient(at 0% 0%, hsla(0, 0%, 98%, 1) 0, transparent 50%),
     radial-gradient(at 50% 0%, hsla(0, 0%, 93%, 1) 0, transparent 50%),
     radial-gradient(at 100% 0%, hsla(0, 0%, 98%, 1) 0, transparent 50%);
   background-attachment: fixed;
   min-height: 100vh;
   overflow-x: hidden;
 }

 /* Efeito de luz sutil que segue o mouse pode ser adicionado via JS, 
   mas por enquanto focamos no gradiente estático premium */

 h1,
 h2,
 h3,
 h4,
 .logo-capa {
   font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
   font-weight: 700;
   letter-spacing: -0.01em;
 }

 /* Força os números a serem sempre Sans-Serif para legibilidade */
 h1#holding_economia,
 h2#holding_custo_inventario,
 h2#holding_custo_holding,
 .valor-card,
 .number-font {
   font-family: 'Inter', sans-serif !important;
   font-weight: 700 !important;
   letter-spacing: -0.5px;
 }

 .reveal {
   opacity: 0;
   transform: translateY(100px) scale(0.95);
   /* Aumentado o deslocamento para ser mais visível */
   transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
   will-change: transform, opacity;
 }

 .reveal.active {
   opacity: 1;
   transform: translateY(0) scale(1);
 }

 @keyframes highlightCard {
   0% {
     box-shadow: 0 0 0 0 rgba(9, 9, 11, 0.25);
     transform: scale(1);
   }

   50% {
     box-shadow: 0 0 0 10px rgba(9, 9, 11, 0);
     transform: scale(1.02);
   }

   100% {
     box-shadow: 0 0 0 0 rgba(9, 9, 11, 0);
     transform: scale(1);
   }
 }

 .highlight-card {
   animation: highlightCard 1.5s ease-out;
 }

 .delay-1 {
   transition-delay: 0.1s;
 }

 .delay-2 {
   transition-delay: 0.2s;
 }

 .delay-3 {
   transition-delay: 0.3s;
 }

 .delay-4 {
   transition-delay: 0.4s;
 }


 /* =========================
   RESET / BASE
========================= */
 * {
   box-sizing: border-box;
 }

 body {
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   background-color: var(--bg);
   color: var(--text-main);
   margin: 0;
   padding: 0;
   line-height: 1.6;
 }

 /* =========================
   MODAL COLAR EXCEL
========================= */
 .modal-colar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(5px);
   z-index: 1000;
   display: flex;
   justify-content: center;
   align-items: center;
 }

 .modal-colar-content {
   background: white;
   padding: 30px;
   border-radius: 20px;
   width: 90%;
   max-width: 500px;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
 }

 .modal-colar-content textarea {
   width: 100%;
   height: 150px;
   margin-top: 15px;
   padding: 15px;
   border: 1px solid #ddd;
   border-radius: 10px;
   font-family: monospace;
   resize: none;
 }

 /* =========================
   NAVBAR (GLOBAL PREMIUM)
========================= */
 .navbar {
   display: grid;
   grid-template-columns: 1fr auto 1fr;
   align-items: center;
   padding: 15px 30px;
   background: var(--nav-gradient);
   color: white;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
   position: sticky;
   top: 0;
   z-index: 1000;
   gap: 15px;
 }

 .logo {
   grid-column: 1;
   justify-self: start;
   font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
   font-size: 20px;
   font-weight: 800;
   letter-spacing: 2px;
   text-transform: uppercase;
   line-height: 1;
   color: #ffffff;
   display: flex;
   align-items: center;
   gap: 8px;
   user-select: none;
   cursor: pointer;
 }

 .logo-brand {
   position: relative;
   color: #ffffff;
   background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .logo:hover .logo-brand {
   background: linear-gradient(135deg, #c9a84c, #f0d78c, #e8c860, #a8862a);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
   transform: scale(1.05);
   letter-spacing: 3px;
 }

 .logo span {
   font-weight: 300;
   opacity: 0.85;
   color: rgba(255, 255, 255, 0.85);
   font-size: 15px;
   letter-spacing: 2.5px;
   transition: opacity 0.4s ease;
 }

 .logo:hover span {
   opacity: 1;
 }

 .menu {
   grid-column: 2;
   justify-self: center;
   display: flex;
   gap: 8px;
   align-items: center;
   flex-wrap: nowrap;
 }

 .nav-user-slot,
 .user-dropdown-wrap {
   grid-column: 3;
   justify-self: end;
   display: flex;
   align-items: center;
   justify-content: flex-end;
 }

 .menu a {
   text-decoration: none;
   color: rgba(255, 255, 255, 0.85);
   padding: 9px 18px;
   border-radius: 100px;
   font-size: 13.5px;
   font-weight: 500;
   transition: all 0.3s ease;
   white-space: nowrap;
 }

 .menu a:hover {
   background: rgba(255, 255, 255, 0.15);
   color: white;
 }

 .menu .active {
   background-color: white;
   color: var(--primary);
   font-weight: 700;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 /* --- BOTÃO DE TRANSIÇÃO GLOBAL (PRÓXIMO PASSO) --- */
 .btn-next {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   background: #09090b;
   color: #ffffff !important;
   border: 1px solid #27272a;
   padding: 16px 40px;
   border-radius: 100px;
   text-decoration: none;
   font-family: 'Outfit', 'Inter', sans-serif;
   font-size: 15px;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
 }

 .btn-next:hover {
   transform: translateY(-4px) scale(1.02);
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
   background: #18181b;
   border-color: #3f3f46;
 }

 .btn-next i,
 .btn-next svg {
   width: 18px;
   height: 18px;
   transition: transform 0.3s ease;
 }

 .btn-next:hover i,
 .btn-next:hover svg {
   transform: translateX(4px);
 }

 /* --- BOTÃO DE TRANSIÇÃO GLOBAL (VOLTAR) --- */
 .btn-prev {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   background: #ffffff;
   color: #18181b !important;
   border: 1.5px solid #e4e4e7;
   padding: 15px 32px;
   border-radius: 100px;
   text-decoration: none !important;
   font-family: 'Outfit', 'Inter', sans-serif;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
   box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
   user-select: none;
 }

 .btn-prev:hover {
   transform: translateY(-2px);
   background: #f4f4f5;
   border-color: #a1a1aa;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
   color: #09090b !important;
 }

 .btn-prev:active {
   transform: translateY(0);
 }

 .btn-prev i,
 .btn-prev svg {
   width: 18px;
   height: 18px;
   transition: transform 0.3s ease;
 }

 .btn-prev:hover i,
 .btn-prev:hover svg {
   transform: translateX(-4px);
 }

 /* --- RESPONSIVIDADE NAVBAR --- */
 @media (max-width: 860px) {
   .navbar {
     padding: 12px 18px;
     justify-content: center;
     gap: 12px;
   }

   .logo {
     width: 100%;
     justify-content: center;
   }

   .menu {
     justify-content: center;
     overflow-x: auto;
     max-width: 100%;
     padding-bottom: 4px;
   }

   .menu a {
     padding: 7px 13px;
     font-size: 12.5px;
   }
 }

 .btn-limpar {
   background-color: white !important;
   color: #e53935 !important;
   border: none;
   padding: 8px 20px !important;
   font-weight: 700 !important;
   border-radius: 100px;
   font-size: 13px !important;
   transition: all 0.3s ease !important;
   display: inline-block;
   margin-left: 15px;
   text-decoration: none;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 }

 .btn-limpar:hover {
   background-color: #fff5f5 !important;
   transform: translateY(-2px);
   box-shadow: 0 6px 15px rgba(229, 57, 53, 0.2);
 }

 /* =========================
   PROGRESS BAR (STEPPER)
========================= */
 .stepper-wrapper {
   display: flex;
   justify-content: space-between;
   margin-top: 20px;
   margin-bottom: 30px;
   position: relative;
   max-width: 800px;
   margin-left: auto;
   margin-right: auto;
 }

 .stepper-item {
   position: relative;
   display: flex;
   flex-direction: column;
   align-items: center;
   flex: 1;
   z-index: 2;
 }

 .stepper-item::before {
   position: absolute;
   content: "";
   border-bottom: 2px solid #e1e8f0;
   width: 100%;
   top: 20px;
   left: -50%;
   z-index: -1;
 }

 .stepper-item:first-child::before {
   content: none;
 }

 .stepper-item .step-counter {
   position: relative;
   z-index: 5;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: #e1e8f0;
   color: #5f738c;
   font-weight: 700;
   margin-bottom: 10px;
   transition: all 0.4s ease;
   border: 2px solid white;
 }

 .stepper-item .step-name {
   color: #5f738c;
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   text-align: center;
   max-width: 100px;
 }

 .stepper-item.active .step-counter {
   background: var(--primary);
   color: white;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 }

 .stepper-item.active .step-name {
   color: var(--primary);
   font-weight: 700;
 }

 .stepper-item.completed .step-counter {
   background: #2e7d32;
   color: white;
 }

 .stepper-item.completed::after {
   position: absolute;
   content: "";
   border-bottom: 2px solid #2e7d32;
   width: 100%;
   top: 20px;
   left: 50%;
   z-index: 1;
 }

 .stepper-item:last-child.completed::after {
   content: none;
 }

 /* =========================
   CONTAINER GERAL
========================= */
 .container_global {
   max-width: min(1820px, 96vw);
   margin: 35px auto;
   padding: 0 30px;
 }

 /* =========================
   TÍTULOS GLOBAIS
========================= */
 h1 {
   font-size: 32px;
   font-weight: 700;
   text-align: center;
   color: var(--primary-dark);
   margin-bottom: 40px;
 }


 h2 {
   font-size: 20px;
   font-weight: 700;
   color: var(--primary);
   margin-top: 0;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 10px;
 }

 /* =========================
   CARDS PREMIUM
========================= */
 .card-premium {
   background: var(--card-bg);
   border-radius: var(--radius);
   padding: 30px;
   box-shadow: var(--shadow-md);
   border: 1px solid rgba(0, 0, 0, 0.08);
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
 }

 .card-premium:hover {
   transform: translateY(-6px);
   box-shadow: var(--shadow-lg);
   border-color: rgba(0, 0, 0, 0.15);
 }

 /* =========================
   INPUTS GLOBAIS
========================= */
 input,
 select {
   width: 100%;
   padding: 12px 16px;
   margin-top: 8px;
   margin-bottom: 16px;
   border-radius: 10px;
   border: 1.5px solid #e4e4e7;
   font-family: inherit;
   font-size: 15px;
   color: var(--text-main);
   background-color: var(--card-bg);
   transition: all 0.2s ease;
 }


 input:focus,
 select:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
 }

 input.filled,
 select.filled {
   border-color: #18181b;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' viewBox='0 -960 960 960' width='20' fill='%2318181b'%3E%3Cpath d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 12px center;
   padding-right: 40px !important;
 }

 label,
 h5 {
   font-size: 13px;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin: 0;
 }

 /* =========================
   BOTÕES (PADRÃO PREMIUM)
========================= */
 button {
   background: var(--primary);
   color: white;
   border: 1px solid #27272a;
   padding: 14px 32px;
   border-radius: 100px;
   cursor: pointer;
   font-weight: 600;
   font-size: 16px;
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
 }

 button:hover {
   background: #18181b;
   transform: translateY(-3px);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
 }

 button:active {
   transform: translateY(-1px);
 }

 /* =========================
   ANIMAÇÃO LOADING CNPJ
========================= */
 .loading-dots::after {
   content: ' .';
   animation: dots 1.5s steps(5, end) infinite;
 }

 @keyframes dots {

   0%,
   20% {
     content: ' .';
   }

   40% {
     content: ' ..';
   }

   60% {
     content: ' ...';
   }

   80%,
   100% {
     content: '';
   }
 }

 /* =========================
   USER AUTH NAV BAR
========================= */
 .user-nav-container {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-left: 15px;
   padding-left: 15px;
   border-left: 1px solid rgba(255, 255, 255, 0.2);
 }

 .user-name {
   font-size: 13.5px;
   font-weight: 600;
   color: rgba(255, 255, 255, 0.9);
   display: flex;
   align-items: center;
   gap: 6px;
   background: rgba(255, 255, 255, 0.1);
   padding: 6px 14px;
   border-radius: 100px;
 }

 .user-name i {
   width: 14px;
   height: 14px;
 }

 .btn-logout {
   background: transparent !important;
   border: 1px solid rgba(255, 255, 255, 0.3) !important;
   color: rgba(255, 255, 255, 0.9) !important;
   font-size: 13.5px !important;
   font-weight: 600 !important;
   padding: 6px 14px !important;
   border-radius: 100px;
   display: flex !important;
   align-items: center;
   gap: 6px;
   transition: all 0.3s ease;
 }

 .btn-logout i {
   width: 14px;
   height: 14px;
 }

 .btn-logout:hover {
   background: rgba(255, 255, 255, 0.2) !important;
   color: white !important;
   border-color: white !important;
 }

 /* ══════════════════════════════════════
     USER DROPDOWN MENU (PREMIUM NAVBAR)
  ══════════════════════════════════════ */
 .user-dropdown-wrap {
   position: relative;
   display: inline-block;
   z-index: 1005;
 }

 .user-dropdown-trigger {
   display: flex;
   align-items: center;
   gap: 9px;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.22);
   border-radius: 100px;
   padding: 5px 14px 5px 6px;
   color: white;
   cursor: pointer;
   font-family: inherit;
   font-size: 13.5px;
   font-weight: 500;
   transition: all 0.2s ease;
   backdrop-filter: blur(8px);
 }

 .user-dropdown-trigger:hover,
 .user-dropdown-trigger.active {
   background: rgba(255, 255, 255, 0.22);
   border-color: rgba(255, 255, 255, 0.4);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
 }

 .user-avatar-circle {
   width: 30px;
   height: 30px;
   border-radius: 50%;
   background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
   color: white;
   font-size: 11.5px;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   letter-spacing: 0.5px;
   border: 1.5px solid rgba(255, 255, 255, 0.6);
   flex-shrink: 0;
 }

 .user-dropdown-name {
   font-weight: 600;
   max-width: 140px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .dropdown-chevron {
   transition: transform 0.2s ease;
   opacity: 0.8;
 }

 .user-dropdown-trigger.active .dropdown-chevron {
   transform: rotate(180deg);
 }

 .user-dropdown-menu {
   position: absolute;
   right: 0;
   top: calc(100% + 10px);
   width: 230px;
   background: #ffffff;
   border-radius: 14px;
   padding: 8px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
   border: 1px solid #edf2fa;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-8px) scale(0.97);
   transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
   z-index: 1050;
 }

 .user-dropdown-menu.show {
   opacity: 1;
   visibility: visible;
   transform: translateY(0) scale(1);
 }

 .ud-header {
   padding: 10px 12px;
 }

 .ud-user-name {
   font-size: 13.5px;
   font-weight: 700;
   color: #1e293b;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .ud-user-email {
   font-size: 11.5px;
   color: #64748b;
   margin-top: 2px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .ud-divider {
   height: 1px;
   background: #f1f5f9;
   margin: 6px 0;
 }

 .ud-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 9px 12px;
   border-radius: 8px;
   font-size: 13px;
   font-weight: 500;
   color: #334155;
   text-decoration: none;
   transition: all 0.15s ease;
 }

 .ud-item svg {
   color: #64748b;
   transition: color 0.15s ease;
   flex-shrink: 0;
 }

 .ud-item:hover {
   background: #f4f4f5;
   color: #09090b;
 }

 .ud-item:hover svg {
   color: #09090b;
 }

 .ud-item.warning:hover {
   background: #fff1f2;
   color: #e53e3e;
 }

 .ud-item.warning:hover svg {
   color: #e53e3e;
 }

 .ud-item.danger {
   color: #dc2626;
 }

 .ud-item.danger svg {
   color: #dc2626;
 }

 .ud-item.danger:hover {
   background: #fef2f2;
   color: #b91c1c;
 }

 .ud-item.danger:hover svg {
   color: #b91c1c;
 }

 /* ══════════════════════════════════════
     MASTER MODAL — OVERLAY & CARD
  ══════════════════════════════════════ */
 @keyframes mmFadeIn {
   from {
     opacity: 0;
   }

   to {
     opacity: 1;
   }
 }

 @keyframes mmSlideUp {
   from {
     opacity: 0;
     transform: translateY(24px) scale(0.97);
   }

   to {
     opacity: 1;
     transform: translateY(0) scale(1);
   }
 }

 @keyframes mmFadeOut {
   to {
     opacity: 0;
   }
 }

 .master-modal-overlay {
   position: fixed;
   inset: 0;
   background: rgba(7, 18, 42, 0.72);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   z-index: 10000;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   animation: mmFadeIn 0.25s ease;
 }

 .master-modal-card {
   width: 100%;
   max-width: 890px;
   min-height: auto;
   max-height: 90vh;
   display: flex;
   flex-direction: column;
   background: #f8fafd;
   border-radius: 24px;
   box-shadow:
     0 32px 80px rgba(0, 0, 0, 0.35),
     0 0 0 1px rgba(0, 0, 0, 0.08);
   overflow: hidden;
   animation: mmSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 }

 /* ── Header ── */
 .master-modal-header {
   background: linear-gradient(135deg, #09090b 0%, #18181b 60%, #27272a 130%);
   padding: 24px 32px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   position: relative;
   overflow: hidden;
 }

 .master-modal-header::before {
   content: '';
   position: absolute;
   right: -30px;
   top: -30px;
   width: 160px;
   height: 160px;
   background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
   pointer-events: none;
 }

 .mh-left {
   display: flex;
   align-items: center;
   gap: 14px;
   z-index: 1;
 }

 .mh-icon-wrap {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   flex-shrink: 0;
 }

 .mh-icon-wrap i {
   width: 20px;
   height: 20px;
 }

 .mh-title {
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   font-size: 18px;
   font-weight: 700;
   color: #fff;
   letter-spacing: -0.2px;
 }

 .mh-sub {
   font-size: 12px;
   color: rgba(255, 255, 255, 0.5);
   margin-top: 2px;
   letter-spacing: 0.3px;
 }

 .master-modal-close {
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: #fff;
   width: 38px;
   height: 38px;
   border-radius: 10px;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s;
   z-index: 1;
   flex-shrink: 0;
   line-height: 1;
 }

 .close-x {
   font-size: 22px;
   font-weight: 300;
   color: #fff;
   line-height: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: 'Inter', Arial, sans-serif;
   opacity: 0.85;
 }

 .master-modal-close:hover {
   background: rgba(255, 255, 255, 0.22);
   border-color: rgba(255, 255, 255, 0.4);
   transform: scale(1.05);
 }

 .master-modal-close:hover .close-x {
   opacity: 1;
 }

 /* ── Body ── */
 .master-modal-body {
   padding: 24px 28px;
   max-height: 80vh;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 16px;
 }

 .master-modal-body::-webkit-scrollbar {
   width: 5px;
 }

 .master-modal-body::-webkit-scrollbar-track {
   background: transparent;
 }

 .master-modal-body::-webkit-scrollbar-thumb {
   background: #dce5f0;
   border-radius: 99px;
 }

 /* ── Inner Cards ── */
 .mm-card {
   background: #fff;
   border: 1px solid #e4ecf7;
   border-radius: 18px;
   overflow: hidden;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
 }

 .mm-card-list {
   display: flex;
   flex-direction: column;
   min-height: auto;
 }

 .mm-card-header {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 18px 20px 14px;
   border-bottom: 1px solid #f0f4fb;
 }

 .mm-card-icon {
   width: 40px;
   height: 40px;
   border-radius: 11px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
 }

 .mm-card-icon i {
   width: 18px;
   height: 18px;
 }

 .mm-card-icon.blue {
   background: rgba(0, 0, 0, 0.06);
   color: #09090b;
 }

 .mm-card-icon.gold {
   background: #f4f4f5;
   color: #09090b;
 }

 .mm-card-title {
   font-size: 14.5px;
   font-weight: 700;
   color: #09090b;
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }

 .mm-card-desc {
   font-size: 12px;
   color: #71717a;
   margin-top: 2px;
 }

 .mm-card-body {
   padding: 16px 20px 20px;
 }

 /* ── Invite Row (input + button) ── */
 .invite-row {
   display: flex;
   gap: 10px;
   align-items: center;
 }

 .invite-email-wrap {
   flex: 1.5;
   position: relative;
   display: flex;
   align-items: center;
 }

 .invite-mail-icon {
   position: absolute;
   left: 14px;
   width: 16px;
   height: 16px;
   color: #a1a1aa;
   pointer-events: none;
 }

 .invite-email-input {
   width: 100%;
   height: 42px;
   box-sizing: border-box;
   padding: 0 14px 0 42px;
   border: 1.5px solid #e4e4e7;
   border-radius: 10px;
   font-size: 13.5px;
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   color: #09090b;
   background: #fafafa;
   outline: none;
   transition: border-color 0.2s, box-shadow 0.2s;
 }

 .invite-email-input::placeholder {
   color: #a1a1aa;
 }

 .invite-email-input:focus {
   border-color: #09090b;
   background: #fff;
   box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
 }

 .invite-actions-wrap {
   flex: 1;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   align-items: stretch;
 }

 .btn-gen-invite,
 .btn-send-email-direct {
   height: 42px;
   padding: 0 12px;
   border-radius: 10px;
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   white-space: nowrap;
   transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
   width: 100%;
   box-sizing: border-box;
 }

 .btn-gen-invite {
   background: #09090b;
   color: #fff;
   border: 1px solid #27272a;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
 }

 .btn-send-email-direct {
   background: #3f3f46;
   color: #fff;
   border: none;
   box-shadow: 0 3px 10px rgba(63, 63, 70, 0.25);
 }

 .btn-gen-invite i,
 .btn-send-email-direct i,
 .btn-gen-invite svg,
 .btn-send-email-direct svg {
   width: 14px;
   height: 14px;
   display: block;
   flex-shrink: 0;
 }

 .btn-gen-invite:hover,
 .btn-send-email-direct:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
 }

 .btn-send-email-direct:hover {
   box-shadow: 0 8px 20px rgba(63, 63, 70, 0.38);
 }

 .btn-gen-invite:active,
 .btn-send-email-direct:active {
   transform: translateY(0);
 }

 .invite-result-btns {
   display: flex;
   gap: 6px;
   align-items: center;
 }

 .btn-email-action {
   background: #f4f4f5;
   color: #09090b;
   border-color: #e4e4e7;
 }

 /* ── Invite Result Card ── */
 .invite-result-card {
   margin-top: 12px;
   background: #fafafa;
   border: 1.5px solid #e4e4e7;
   border-radius: 14px;
   padding: 14px 16px;
 }

 .invite-result-inner {
   display: flex;
   align-items: center;
   gap: 12px;
 }

 .invite-result-icon {
   width: 22px;
   height: 22px;
   color: #09090b;
   flex-shrink: 0;
 }

 .invite-result-text {
   flex: 1;
   min-width: 0;
 }

 .invite-result-label {
   font-size: 11.5px;
   font-weight: 700;
   color: #09090b;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 4px;
 }

 .invite-url-text {
   font-family: 'Courier New', monospace;
   font-size: 12px;
   color: #09090b;
   word-break: break-all;
   line-height: 1.5;
 }

 .btn-copy-link {
   background: #fff;
   color: #09090b;
   border: 1.5px solid #e4e4e7;
   padding: 9px 14px;
   border-radius: 10px;
   font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   font-weight: 700;
   font-size: 13px;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 6px;
   white-space: nowrap;
   transition: all 0.2s;
   flex-shrink: 0;
 }

 .btn-copy-link i {
   width: 14px;
   height: 14px;
 }

 .btn-copy-link:hover {
   background: #f4f4f5;
   border-color: #09090b;
 }

 .btn-copy-link.copied {
   background: #f4f4f5;
   color: #09090b;
   border-color: #09090b;
 }

 /* ── Invite List ── */
 .mm-invite-list {
   padding: 8px 12px 12px;
   display: flex;
   flex-direction: column;
   gap: 8px;
   max-height: 270px;
   overflow-y: auto;
 }

 .mm-invite-list::-webkit-scrollbar {
   width: 5px;
 }

 .mm-invite-list::-webkit-scrollbar-track {
   background: transparent;
 }

 .mm-invite-list::-webkit-scrollbar-thumb {
   background: #d4d4d8;
   border-radius: 99px;
 }

 .mm-invite-list::-webkit-scrollbar-thumb:hover {
   background: #a1a1aa;
 }

 .mm-invite-item {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 12px 14px;
   background: #fafafa;
   border: 1px solid #e4e4e7;
   border-radius: 14px;
   transition: border-color 0.2s, box-shadow 0.2s;
 }

 .mm-invite-item:hover {
   border-color: #d4d4d8;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
 }

 .mii-avatar {
   width: 38px;
   height: 38px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
 }

 .mii-avatar i {
   width: 16px;
   height: 16px;
 }

 .avatar-active {
   background: rgba(0, 0, 0, 0.06);
   color: #09090b;
 }

 .avatar-used {
   background: rgba(100, 116, 139, 0.1);
   color: #64748b;
 }

 .mii-info {
   flex: 1;
   min-width: 0;
 }

 .mii-email {
   font-size: 13.5px;
   font-weight: 600;
   color: #09090b;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .mii-date {
   font-size: 11.5px;
   color: #8fa3be;
   margin-top: 2px;
 }

 .mii-status {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 12px;
   font-weight: 600;
   padding: 5px 11px;
   border-radius: 100px;
   white-space: nowrap;
   flex-shrink: 0;
 }

 .mii-status.active {
   background: rgba(5, 150, 105, 0.1);
   color: #065f46;
 }

 .mii-status.used {
   background: rgba(100, 116, 139, 0.1);
   color: #64748b;
 }

 .mii-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   flex-shrink: 0;
 }

 .dot-active {
   background: #10b981;
   box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
   animation: dotPulse 2s infinite;
 }

 .dot-used {
   background: #94a3b8;
 }

 @keyframes dotPulse {

   0%,
   100% {
     box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
   }

   50% {
     box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08);
   }
 }

 .btn-delete-invite {
   width: 32px;
   height: 32px;
   border-radius: 8px;
   border: 1px solid #fecaca;
   background: #fef2f2;
   color: #dc2626;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
   flex-shrink: 0;
   line-height: 1;
   padding: 0;
 }

 .btn-delete-invite .btn-x-icon {
   font-size: 20px;
   font-weight: 600;
   line-height: 1;
   color: #dc2626;
   font-family: Arial, sans-serif;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-top: -1px;
 }

 .btn-delete-invite i,
 .btn-delete-invite svg {
   width: 14px;
   height: 14px;
   stroke: #dc2626;
   stroke-width: 2.5;
   fill: none;
   display: block;
 }

 .btn-delete-invite:hover {
   background: #dc2626;
   border-color: #dc2626;
   color: #ffffff;
   transform: scale(1.05);
 }

 .btn-delete-invite:hover .btn-x-icon {
   color: #ffffff;
 }

 .btn-delete-invite:hover svg {
   stroke: #ffffff;
 }

 /* ── Empty State ── */
 .mm-empty-state {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 24px 20px;
   min-height: 110px;
   color: #b0bdd0;
 }

 .mm-empty-state i {
   width: 36px;
   height: 36px;
   opacity: 0.5;
 }

 .mm-empty-state p {
   margin: 0;
   font-size: 13.5px;
 }

 /* ══════════════════════════════════════
     WIZARD STEPPER BAR GLOBAL
  ══════════════════════════════════════ */
 .wizard-stepper-bar {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 16px 24px;
   margin: 20px auto 30px auto;
   max-width: 900px;
   background: rgba(255, 255, 255, 0.85);
   backdrop-filter: blur(12px);
   border: 1px solid rgba(226, 232, 240, 0.8);
   border-radius: 100px;
   box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
 }

 body.dark-theme .wizard-stepper-bar {
   background: rgba(30, 41, 59, 0.85);
   border-color: rgba(51, 65, 85, 0.8);
   box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3);
 }

 .stepper-step {
   display: flex;
   align-items: center;
   gap: 8px;
   text-decoration: none;
   color: var(--text-muted, #64748b);
   font-size: 13.5px;
   font-weight: 500;
   transition: all 0.2s ease;
   padding: 6px 12px;
   border-radius: 100px;
 }

 .stepper-circle {
   width: 26px;
   height: 26px;
   border-radius: 50%;
   background: #e2e8f0;
   color: #475569;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 12px;
   font-weight: 700;
   transition: all 0.2s ease;
 }

 body.dark-theme .stepper-circle {
   background: #334155;
   color: #94a3b8;
 }

 .stepper-step.active {
   color: #0f172a;
   font-weight: 700;
   background: rgba(9, 9, 11, 0.06);
 }

 body.dark-theme .stepper-step.active {
   color: #f8fafc;
   background: rgba(255, 255, 255, 0.1);
 }

 .stepper-step.active .stepper-circle {
   background: #09090b;
   color: #ffffff;
   box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.15);
 }

 .stepper-step.completed {
   color: #10b981;
 }

 .stepper-step.completed .stepper-circle {
   background: #10b981;
   color: #ffffff;
 }

 .stepper-line {
   flex: 1;
   height: 2px;
   background: #e2e8f0;
   max-width: 50px;
   border-radius: 2px;
   transition: all 0.2s ease;
 }

 body.dark-theme .stepper-line {
   background: #334155;
 }

 .stepper-line.completed {
   background: #10b981;
 }

 @media (max-width: 768px) {
   .navbar {
     flex-direction: column;
     padding: 12px 16px;
     gap: 12px;
   }

   .menu {
     flex-wrap: wrap;
     justify-content: center;
     gap: 6px;
     width: 100%;
   }

   .menu a {
     padding: 7px 14px;
     font-size: 13px;
   }

   .wizard-stepper-bar {
     padding: 10px 14px;
     overflow-x: auto;
     justify-content: flex-start;
     border-radius: 16px;
   }

   .stepper-label {
     display: none;
   }

   .stepper-step.active .stepper-label {
     display: inline;
   }
 }

 /* ══════════════════════════════════════
     AUTO-SAVE TOAST NOTIFICATION
  ══════════════════════════════════════ */
 .autosave-toast {
   position: fixed;
   bottom: 24px;
   right: 24px;
   z-index: 9999;
   display: flex;
   align-items: center;
   gap: 8px;
   background: rgba(15, 23, 42, 0.9);
   color: #ffffff;
   padding: 10px 18px;
   border-radius: 100px;
   font-size: 13px;
   font-weight: 500;
   box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
   backdrop-filter: blur(8px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   opacity: 0;
   transform: translateY(20px);
   transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
   pointer-events: none;
 }

 .autosave-toast.visible {
   opacity: 1;
   transform: translateY(0);
 }

 .toast-spinner {
   width: 14px;
   height: 14px;
   border: 2px solid rgba(255, 255, 255, 0.3);
   border-top-color: #ffffff;
   border-radius: 50%;
   animation: toastSpin 0.8s linear infinite;
 }

 @keyframes toastSpin {
   to {
     transform: rotate(360deg);
   }
 }

 .toast-check {
   color: #10b981;
   font-weight: bold;
 }

 .toast-warn {
   color: #f59e0b;
 }

 /* ══════════════════════════════════════
     MODAL DE CONFIRMAÇÃO CUSTOMIZADO
  ══════════════════════════════════════ */
 .custom-confirm-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 10000;
   background: rgba(15, 23, 42, 0.65);
   backdrop-filter: blur(8px);
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   animation: mmFadeIn 0.25s ease forwards;
 }

 .custom-confirm-card {
   background: #ffffff;
   border-radius: 20px;
   max-width: 420px;
   width: 100%;
   padding: 28px 24px;
   text-align: center;
   box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
   border: 1px solid #e2e8f0;
   animation: mmSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
 }

 body.dark-theme .custom-confirm-card {
   background: #1e293b;
   border-color: #334155;
   color: #f8fafc;
 }

 .confirm-icon-wrap {
   width: 54px;
   height: 54px;
   border-radius: 50%;
   background: #fef2f2;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 16px auto;
 }

 body.dark-theme .confirm-icon-wrap {
   background: rgba(239, 68, 68, 0.15);
 }

 .confirm-title {
   font-size: 18px;
   font-weight: 700;
   color: #0f172a;
   margin: 0 0 8px 0;
 }

 body.dark-theme .confirm-title {
   color: #f8fafc;
 }

 .confirm-msg {
   font-size: 14px;
   color: #64748b;
   margin: 0 0 24px 0;
   line-height: 1.5;
 }

 body.dark-theme .confirm-msg {
   color: #94a3b8;
 }

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

 .btn-cancel-modal,
 .btn-danger-modal {
   flex: 1;
   padding: 12px 18px;
   border-radius: 12px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s ease;
 }

 .btn-cancel-modal {
   background: #f1f5f9;
   border: 1px solid #cbd5e1;
   color: #475569;
 }

 .btn-cancel-modal:hover {
   background: #e2e8f0;
 }

 body.dark-theme .btn-cancel-modal {
   background: #334155;
   border-color: #475569;
   color: #cbd5e1;
 }

 .btn-danger-modal {
   background: #dc2626;
   border: 1px solid #dc2626;
   color: #ffffff;
 }

 .btn-danger-modal:hover {
   background: #b91c1c;
   border-color: #b91c1c;
   box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
 }

 /* ══════════════════════════════════════
      RESPONSIVIDADE GLOBAL (MOBILE & TABLET)
   ══════════════════════════════════════ */
 @media (max-width: 768px) {

   .modal-colar-content,
   .custom-confirm-card {
     width: 92% !important;
     max-width: 440px !important;
     padding: 20px 16px !important;
   }

   .autosave-toast {
     bottom: 16px;
     right: 16px;
     left: 16px;
     justify-content: center;
     font-size: 12px;
     padding: 8px 14px;
   }

   .floating-support-wrapper {
     bottom: 18px;
     right: 18px;
   }
 }

 /* ══════════════════════════════════════
     WIDGET FLUTUANTE DE SUPORTE (PACE CAPITAL)
  ══════════════════════════════════════ */
 .floating-support-wrapper {
   position: fixed;
   bottom: 26px;
   right: 26px;
   z-index: 995;
 }

 .floating-support-trigger {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   border-radius: 9999px;
   background: #09090b;
   color: #ffffff;
   border: 1px solid rgba(255, 255, 255, 0.16);
   box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.25), 0 4px 10px -2px rgba(0, 0, 0, 0.15);
   cursor: pointer;
   font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.2px;
   transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
   outline: none;
 }

 .floating-support-trigger:hover {
   background: #18181b;
   transform: translateY(-2px);
   box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25);
   border-color: rgba(255, 255, 255, 0.3);
 }

 .floating-support-trigger:active {
   transform: translateY(0);
 }

 .floating-support-trigger .support-icon {
   width: 15px;
   height: 15px;
   color: #ffffff;
   flex-shrink: 0;
   transition: transform 0.25s ease;
 }

 .floating-support-trigger:hover .support-icon {
   transform: scale(1.1);
 }

 /* ══════════════════════════════════════
     MODAL DE SUPORTE TÉCNICO (ZERO EMOJIS)
  ══════════════════════════════════════ */
 .support-modal-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.75);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   z-index: 10000;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   opacity: 1;
   transition: opacity 0.25s ease;
 }

 .support-modal-overlay.hidden {
   display: none;
   opacity: 0;
   pointer-events: none;
 }

 .support-modal-card {
   background: #ffffff;
   border-radius: 20px;
   width: 100%;
   max-width: 520px;
   box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
   border: 1px solid rgba(0, 0, 0, 0.08);
   overflow: hidden;
   display: flex;
   flex-direction: column;
   animation: modalEntrar 0.25s cubic-bezier(0.16, 1, 0.3, 1);
   font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
 }

 .support-modal-header {
   padding: 24px 28px 16px;
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   border-bottom: 1px solid #f4f4f5;
 }

 .support-modal-title {
   margin: 0;
   font-size: 18px;
   font-weight: 700;
   color: #09090b;
   letter-spacing: -0.2px;
 }

 .support-modal-subtitle {
   margin: 4px 0 0;
   font-size: 13px;
   color: #71717a;
   line-height: 1.4;
 }

 .support-modal-close {
   background: none;
   border: none;
   color: #a1a1aa;
   cursor: pointer;
   padding: 4px;
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s;
 }

 .support-modal-close:hover {
   background: #f4f4f5;
   color: #09090b;
 }

 .support-modal-body {
   padding: 24px 28px;
   display: flex;
   flex-direction: column;
   gap: 16px;
 }

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

 .support-form-group label {
   font-size: 12px;
   font-weight: 600;
   color: #3f3f46;
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }

 .support-form-input,
 .support-form-select,
 .support-form-textarea {
   width: 100%;
   padding: 10px 14px;
   border-radius: 10px;
   border: 1px solid #d4d4d8;
   font-size: 13.5px;
   font-family: inherit;
   color: #09090b;
   background: #fafafa;
   transition: all 0.2s ease;
   box-sizing: border-box;
 }

 .support-form-input:focus,
 .support-form-select:focus,
 .support-form-textarea:focus {
   outline: none;
   border-color: #09090b;
   background: #ffffff;
   box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
 }

 .support-form-textarea {
   min-height: 100px;
   resize: vertical;
   line-height: 1.5;
 }

 /* ══════════════════════════════════════
     SEÇÃO DE CAPTURA DE TELA / ANEXO OPCIONAL
     ══════════════════════════════════════ */
 .support-label-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
 }

 .support-optional-badge {
   font-size: 11px;
   font-weight: 500;
   color: #71717a;
   background: #f4f4f5;
   padding: 2px 8px;
   border-radius: 6px;
 }

 .support-screenshot-wrapper {
   background: #fbfbfb;
   border: 1px dashed #d4d4d8;
   border-radius: 12px;
   padding: 12px 14px;
   transition: all 0.2s ease;
 }

 .support-screenshot-wrapper:hover {
   border-color: #a1a1aa;
   background: #f8fafc;
 }

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

 .support-btn-action {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 8px 14px;
   border-radius: 8px;
   border: 1px solid #d4d4d8;
   background: #ffffff;
   color: #18181b;
   font-size: 12.5px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s;
 }

 .support-btn-action:hover {
   background: #f4f4f5;
   border-color: #09090b;
 }

 .support-btn-action svg {
   width: 15px;
   height: 15px;
   color: #18181b;
 }

 .support-btn-action-secondary {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 8px 12px;
   border-radius: 8px;
   border: 1px solid transparent;
   background: transparent;
   color: #52525b;
   font-size: 12.5px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.2s;
 }

 .support-btn-action-secondary:hover {
   background: #f4f4f5;
   color: #09090b;
 }

 .support-btn-action-secondary svg {
   width: 15px;
   height: 15px;
   color: #71717a;
 }

 .support-screenshot-hint {
   margin: 8px 0 0;
   font-size: 11.5px;
   color: #a1a1aa;
   line-height: 1.3;
 }

 .support-screenshot-preview {
   display: flex;
   align-items: center;
   gap: 12px;
   background: #ffffff;
   border: 1px solid #e4e4e7;
   border-radius: 10px;
   padding: 8px 12px;
 }

 .support-screenshot-preview img {
   width: 84px;
   height: 52px;
   object-fit: cover;
   border-radius: 6px;
   border: 1px solid #d4d4d8;
 }

 .support-screenshot-info {
   display: flex;
   flex-direction: column;
   gap: 4px;
   flex: 1;
 }

 .support-screenshot-tag {
   font-size: 12px;
   font-weight: 600;
   color: #09090b;
 }

 .support-btn-remove-print {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   background: none;
   border: none;
   color: #dc2626;
   font-size: 11.5px;
   font-weight: 500;
   cursor: pointer;
   padding: 2px 0;
   transition: color 0.2s;
   width: fit-content;
 }

 .support-btn-remove-print:hover {
   color: #b91c1c;
   text-decoration: underline;
 }

 .support-btn-remove-print svg {
   width: 13px;
   height: 13px;
 }


 .support-modal-footer {
   padding: 16px 28px 24px;
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 12px;
   border-top: 1px solid #f4f4f5;
   background: #fafafa;
 }

 .support-btn-cancel {
   padding: 10px 18px;
   border-radius: 10px;
   border: 1px solid #e4e4e7;
   background: #ffffff;
   color: #52525b;
   font-size: 13.5px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s;
 }

 .support-btn-cancel:hover {
   background: #f4f4f5;
   color: #09090b;
 }

 .support-btn-submit {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 22px;
   border-radius: 10px;
   border: 1px solid #09090b;
   background: #09090b;
   color: #ffffff;
   font-size: 13.5px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s;
 }

 .support-btn-submit:hover {
   background: #27272a;
   border-color: #27272a;
 }

 .support-btn-submit:disabled {
   opacity: 0.6;
   cursor: not-allowed;
 }

 .support-status-alert {
   padding: 12px 14px;
   border-radius: 10px;
   font-size: 13px;
   line-height: 1.4;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 .support-status-alert.success {
   background: #ecfdf5;
   color: #065f46;
   border: 1px solid #a7f3d0;
 }

 .support-status-alert.error {
   background: #fef2f2;
   color: #991b1b;
   border: 1px solid #fecaca;
 }

 /* =========================================================
    SISTEMA DE USUÁRIOS MASTER & PAINEL DE USABILIDADE
    ========================================================= */
 .ud-item.master-item {
   color: #09090b;
   font-weight: 600;
   background: #f8fafc;
   border: 1px solid #e2e8f0;
   margin-bottom: 4px;
 }

 .ud-item.master-item:hover {
   background: #09090b;
   color: #ffffff;
   border-color: #09090b;
 }

 .master-usability-overlay {
   position: fixed;
   inset: 0;
   background: rgba(9, 9, 11, 0.65);
   backdrop-filter: blur(6px);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
 }

 .master-usability-modal {
   width: 100%;
   max-width: 1080px;
   max-height: 90vh;
   background: #ffffff;
   border-radius: 18px;
   border: 1px solid #e4e4e7;
   box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: column;
   overflow: hidden;
   font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
 }

 .master-usability-header {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 16px;
   padding: 22px 26px 18px;
   border-bottom: 1px solid #f1f5f9;
   background: #fafafa;
 }

 .master-usability-badge-row {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 6px;
 }

 .master-pill-badge {
   background: #09090b;
   color: #ffffff;
   font-size: 10.5px;
   font-weight: 700;
   letter-spacing: 0.7px;
   padding: 3px 9px;
   border-radius: 999px;
 }

 .master-subtitle-tag {
   font-size: 12px;
   font-weight: 600;
   color: #64748b;
 }

 .master-usability-title-wrap h2 {
   margin: 0;
   font-size: 20px;
   font-weight: 800;
   color: #09090b;
   letter-spacing: -0.3px;
 }

 .master-usability-title-wrap p {
   margin: 4px 0 0;
   font-size: 13px;
   color: #64748b;
 }

 .master-usability-header-actions {
   display: flex;
   align-items: center;
   gap: 10px;
 }

 .master-btn-refresh {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 8px 14px !important;
   margin: 0 !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   background: #ffffff !important;
   color: #1e293b !important;
   font-size: 12.5px !important;
   font-weight: 600 !important;
   box-shadow: none !important;
   cursor: pointer;
   transition: all 0.15s ease;
 }

 .master-btn-refresh:hover {
   background: #f1f5f9 !important;
   border-color: #cbd5e1 !important;
   transform: none !important;
 }

 .master-btn-close {
   width: 36px !important;
   height: 36px !important;
   min-width: 36px !important;
   padding: 0 !important;
   margin: 0 !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   background: #ffffff !important;
   color: #475569 !important;
   box-shadow: none !important;
   display: inline-flex !important;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.15s ease;
 }

 .master-btn-close svg {
   width: 18px;
   height: 18px;
   flex-shrink: 0;
 }

 .master-btn-close:hover {
   background: #f4f4f5 !important;
   color: #09090b !important;
   transform: none !important;
 }

 .master-kpi-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
   padding: 18px 24px;
   background: #ffffff;
   border-bottom: 1px solid #f1f5f9;
 }

 @media (max-width: 900px) {
   .master-kpi-grid {
     grid-template-columns: repeat(2, 1fr);
   }
 }

 @media (max-width: 520px) {
   .master-kpi-grid {
     grid-template-columns: 1fr;
   }
 }

 .master-kpi-card {
   background: #f8fafc;
   border: 1px solid #e2e8f0;
   border-radius: 12px;
   padding: 15px 16px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   min-height: 92px;
   gap: 6px;
   transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
 }

 .master-kpi-card.is-sales-card {
   background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
   border-color: #a7f3d0;
   cursor: pointer;
 }

 .master-kpi-card.is-sales-card:hover,
 .master-kpi-card.is-sales-card:focus-visible {
   border-color: #059669;
   box-shadow: 0 6px 18px rgba(5, 150, 105, 0.14);
   transform: translateY(-1px);
   outline: none;
 }

 .master-kpi-label-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
 }

 .master-kpi-label {
   font-size: 11px;
   font-weight: 700;
   color: #64748b;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   line-height: 1.3;
 }

 .master-kpi-card.is-sales-card .master-kpi-label {
   color: #065f46;
 }

 .master-kpi-pill-sales {
   font-size: 10.5px;
   font-weight: 700;
   color: #047857;
   background: rgba(16, 185, 129, 0.15);
   padding: 2px 8px;
   border-radius: 999px;
   white-space: nowrap;
 }

 .master-kpi-value {
   font-size: 20px;
   font-weight: 800;
   color: #0f172a;
   line-height: 1.2;
   display: flex;
   align-items: baseline;
   gap: 4px;
 }

 .master-kpi-value.is-sales-value {
   color: #047857;
   font-size: 22px;
 }

 .master-kpi-sub {
   font-size: 11.5px;
   font-weight: 600;
   color: #065f46;
 }

 .master-tab-counter {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 20px;
   height: 20px;
   padding: 0 6px;
   border-radius: 999px;
   font-size: 11px;
   font-weight: 700;
   background: #ecfdf5;
   color: #047857;
 }

 .master-pill-badge.is-sales {
   background: #059669;
 }

 .master-sale-count-btn {
   display: inline-flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 1px;
   min-width: 44px;
   padding: 4px 10px !important;
   margin: 0 !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   background: #f8fafc !important;
   color: #64748b !important;
   box-shadow: none !important;
   cursor: pointer;
   transition: all 0.15s ease;
 }

 .master-sale-count-btn.has-sales {
   background: #ecfdf5 !important;
   border-color: #a7f3d0 !important;
   color: #047857 !important;
 }

 .master-sale-count-btn:hover {
   border-color: #059669 !important;
   transform: none !important;
 }

 .master-sale-count-num {
   font-size: 12.5px;
   font-weight: 800;
   line-height: 1.1;
 }

 .master-sale-count-vol {
   font-size: 10.5px;
   font-weight: 600;
   color: #065f46;
   white-space: nowrap;
 }

 .master-client-cell-wrap {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 6px;
 }

 .master-report-sale-pill {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   padding: 2px 8px !important;
   margin: 0 !important;
   border-radius: 999px !important;
   border: 1px solid #a7f3d0 !important;
   background: #ecfdf5 !important;
   color: #047857 !important;
   font-size: 11px !important;
   font-weight: 700 !important;
   box-shadow: none !important;
   cursor: pointer;
 }

 .master-report-sale-pill:hover {
   background: #d1fae5 !important;
   transform: none !important;
 }

 .master-origin-pill {
   display: inline-flex;
   align-items: center;
   padding: 2px 8px;
   border-radius: 999px;
   font-size: 10.5px;
   font-weight: 700;
 }

 .master-origin-pill.is-report {
   background: #eff6ff;
   color: #1d4ed8;
 }

 .master-origin-pill.is-standalone {
   background: #f4f4f5;
   color: #52525b;
 }

 .master-product-tag {
   display: inline-block;
   padding: 4px 10px;
   border-radius: 8px;
   background: #f8fafc;
   border: 1px solid #e2e8f0;
   color: #0f172a;
   font-weight: 600;
   font-size: 12px;
 }

 .master-sale-obs-preview {
   margin-top: 3px;
   font-size: 11.5px;
   color: #64748b;
   line-height: 1.3;
 }

 .master-sales-toolbar {
   display: flex;
   flex-direction: column;
   gap: 10px;
   margin-bottom: 14px;
 }

 .master-sales-filters {
   margin-bottom: 0 !important;
   flex-wrap: wrap;
 }

 .master-filter-select.compact {
   flex: 0 0 165px !important;
   width: 165px !important;
   min-width: 150px !important;
 }

 .master-sales-actions-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   flex-wrap: wrap;
 }

 .master-sales-actions-right {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap;
 }

 .master-sales-summary {
   font-size: 12.5px;
   font-weight: 700;
   color: #065f46;
   background: #ecfdf5;
   border: 1px solid #a7f3d0;
   padding: 6px 12px;
   border-radius: 999px;
 }

 .master-btn-new-sale {
   display: inline-flex !important;
   align-items: center;
   gap: 6px;
   padding: 9px 16px !important;
   margin: 0 !important;
   border-radius: 10px !important;
   border: 1px solid #047857 !important;
   background: #059669 !important;
   color: #ffffff !important;
   font-size: 12.5px !important;
   font-weight: 700 !important;
   box-shadow: none !important;
   cursor: pointer;
   transition: background 0.15s ease;
 }

 .master-btn-new-sale:hover {
   background: #047857 !important;
   transform: none !important;
 }

 .master-btn-table-action.sale-accent {
   background: #ecfdf5 !important;
   color: #047857 !important;
   border-color: #a7f3d0 !important;
 }

 .master-btn-table-action.sale-accent:hover {
   background: #d1fae5 !important;
   border-color: #059669 !important;
 }

 .master-btn-table-action.danger {
   color: #dc2626 !important;
   border-color: #fecaca !important;
   background: #fff5f5 !important;
 }

 .master-btn-table-action.danger:hover {
   background: #fee2e2 !important;
   border-color: #f87171 !important;
 }

 /* Modal Reutilizável de Cadastro / Edição de Venda */
 .pace-venda-overlay {
   position: fixed;
   inset: 0;
   background: rgba(9, 9, 11, 0.7);
   backdrop-filter: blur(6px);
   z-index: 10050;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
 }

 .pace-venda-modal {
   width: 100%;
   max-width: 580px;
   max-height: 92vh;
   overflow-y: auto;
   background: #ffffff;
   border-radius: 18px;
   border: 1px solid #e4e4e7;
   box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
   font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
 }

 .pace-venda-header {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 14px;
   padding: 20px 24px 16px;
   border-bottom: 1px solid #f1f5f9;
   background: #fafafa;
 }

 .pace-venda-badge {
   display: inline-block;
   background: #059669;
   color: #ffffff;
   font-size: 10px;
   font-weight: 800;
   letter-spacing: 0.7px;
   padding: 3px 9px;
   border-radius: 999px;
   margin-bottom: 6px;
 }

 .pace-venda-header h3 {
   margin: 0;
   font-size: 18px;
   font-weight: 800;
   color: #09090b;
 }

 .pace-venda-header p {
   margin: 4px 0 0;
   font-size: 12.5px;
   color: #64748b;
 }

 .pace-venda-form {
   padding: 20px 24px 22px;
   display: flex;
   flex-direction: column;
   gap: 14px;
 }

 .pace-venda-grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
 }

 @media (max-width: 560px) {
   .pace-venda-grid-2 {
     grid-template-columns: 1fr;
   }
 }

 .pace-venda-field {
   display: flex;
   flex-direction: column;
   gap: 6px;
 }

 .pace-venda-field label {
   font-size: 11.5px;
   font-weight: 700;
   color: #334155;
   text-transform: uppercase;
   letter-spacing: 0.4px;
 }

 .pace-venda-control {
   width: 100% !important;
   margin: 0 !important;
   padding: 10px 12px !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   background: #ffffff !important;
   font-size: 13.5px !important;
   color: #09090b !important;
   outline: none;
   box-sizing: border-box;
 }

 .pace-venda-control:focus {
   border-color: #059669 !important;
   box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
 }

 .pace-venda-textarea {
   resize: vertical;
   min-height: 72px;
   font-family: inherit;
 }

 .pace-venda-alert {
   padding: 10px 12px;
   border-radius: 10px;
   font-size: 12.5px;
   font-weight: 600;
 }

 .pace-venda-alert.error {
   background: #fef2f2;
   border: 1px solid #fecaca;
   color: #b91c1c;
 }

 .pace-venda-footer {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 10px;
   padding-top: 6px;
   border-top: 1px solid #f1f5f9;
 }

 .pace-lista-vendas-modal {
   max-width: 920px;
 }

 .master-nowrap {
   white-space: nowrap;
 }

 .master-tabs-bar {
   display: flex;
   gap: 8px;
   padding: 12px 26px 0;
   background: #ffffff;
   border-bottom: 1px solid #e2e8f0;
 }

 .master-tab-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 16px !important;
   margin: 0 !important;
   border: none !important;
   border-radius: 0 !important;
   border-bottom: 2.5px solid transparent !important;
   background: transparent !important;
   color: #64748b !important;
   box-shadow: none !important;
   font-size: 13.5px !important;
   font-weight: 600 !important;
   cursor: pointer;
   transition: all 0.15s ease;
 }

 .master-tab-btn:hover {
   color: #09090b !important;
   transform: none !important;
 }

 .master-tab-btn.active {
   color: #09090b !important;
   border-bottom-color: #09090b !important;
   font-weight: 700 !important;
 }

 .master-tab-content {
   padding: 18px 26px 24px;
   overflow-y: auto;
   flex: 1;
 }

 .master-filters-row {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 16px;
 }

 .master-filter-input {
   flex: 1 1 auto !important;
   width: auto !important;
   min-width: 240px;
   margin: 0 !important;
   padding: 10px 14px !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   font-size: 13.5px !important;
   outline: none;
 }

 .master-filter-input:focus,
 .master-filter-select:focus {
   border-color: #09090b !important;
 }

 .master-filter-select {
   flex: 0 0 220px !important;
   width: 220px !important;
   min-width: 200px !important;
   margin: 0 !important;
   padding: 10px 14px !important;
   border-radius: 10px !important;
   border: 1px solid #e2e8f0 !important;
   font-size: 13.5px !important;
   background: #ffffff !important;
   outline: none;
 }

 .master-table-container {
   border: 1px solid #e2e8f0;
   border-radius: 12px;
   overflow-x: auto;
 }

 .master-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 13px;
 }

 .master-table th {
   background: #f8fafc;
   color: #475569;
   font-weight: 700;
   text-align: left;
   padding: 12px 16px;
   border-bottom: 1px solid #e2e8f0;
   font-size: 11.5px;
   text-transform: uppercase;
   letter-spacing: 0.4px;
 }

 .master-table td {
   padding: 13px 16px;
   border-bottom: 1px solid #f1f5f9;
   vertical-align: middle;
 }

 .master-table tr:last-child td {
   border-bottom: none;
 }

 .master-table tbody tr:hover {
   background: #f8fafc;
 }

 .master-user-cell {
   display: flex;
   align-items: center;
   gap: 10px;
 }

 .master-user-avatar {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   background: #09090b;
   color: #ffffff;
   font-size: 12px;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
 }

 .master-user-meta {
   display: flex;
   flex-direction: column;
 }

 .master-user-meta strong {
   color: #09090b;
   font-size: 13.5px;
 }

 .master-user-meta span {
   color: #64748b;
   font-size: 12px;
 }

 .master-role-badge {
   display: inline-block;
   padding: 3px 9px;
   border-radius: 999px;
   font-size: 11px;
   font-weight: 700;
 }

 .master-role-badge.role-master {
   background: #09090b;
   color: #ffffff;
 }

 .master-role-badge.role-assessor {
   background: #f1f5f9;
   color: #334155;
 }

 .master-access-cell {
   display: flex;
   flex-direction: column;
   gap: 2px;
 }

 .master-access-date {
   font-weight: 600;
   color: #1e293b;
 }

 .master-access-status {
   font-size: 11.5px;
   font-weight: 600;
 }

 .master-access-status.status-online {
   color: #059669;
 }

 .master-access-status.status-pending {
   color: #94a3b8;
 }

 .master-report-count-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 30px;
   height: 26px;
   padding: 0 9px;
   border-radius: 999px;
   background: #f1f5f9;
   color: #64748b;
   font-weight: 700;
   font-size: 12.5px;
 }

 .master-report-count-badge.has-reports {
   background: #dbeafe;
   color: #1d4ed8;
 }

 .master-advisor-pill {
   display: inline-block;
   padding: 4px 10px;
   border-radius: 8px;
   background: #f1f5f9;
   color: #1e293b;
   font-weight: 600;
   font-size: 12px;
 }

 .master-report-actions {
   display: inline-flex;
   gap: 6px;
   justify-content: flex-end;
 }

 .master-btn-table-action {
   padding: 6px 12px !important;
   margin: 0 !important;
   border-radius: 8px !important;
   border: 1px solid #e2e8f0 !important;
   background: #ffffff !important;
   color: #09090b !important;
   box-shadow: none !important;
   font-size: 12px !important;
   font-weight: 600 !important;
   cursor: pointer;
   transition: all 0.15s ease;
 }

 .master-btn-table-action:hover {
   background: #f1f5f9 !important;
   border-color: #cbd5e1 !important;
   transform: none !important;
 }

 .master-btn-table-action.primary {
   background: #09090b !important;
   color: #ffffff !important;
   border-color: #09090b !important;
 }

 .master-btn-table-action.primary:hover {
   background: #27272a !important;
 }

 .master-empty-cell {
   text-align: center;
   padding: 28px !important;
   color: #64748b;
 }

 @media (max-width: 768px) {
   .master-filters-row {
     flex-direction: column;
   }
 }


/* =========================================================
   MAPEAMENTO DE ATIVOS SEM ESTATE TAX (BTG PACTUAL PÁG. 4)
   ========================================================= */
.ativo-isento-card {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease;
}

.ativo-isento-card:hover {
  border-color: #cbd5e1;
}

.ativo-isento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ativo-isento-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-excluir-ativo-isento {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-excluir-ativo-isento:hover {
  background: #fee2e2;
  color: #dc2626;
}

.btn-adicionar-ativo-isento {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-adicionar-ativo-isento:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.ativo-isento-select {
  width: 100% !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #0f172a !important;
  cursor: pointer;
  outline: none;
}

.ativo-isento-select:focus {
  border-color: #09090b !important;
}

.card-diagnostico-protegido {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  color: #065f46 !important;
}

.card-diagnostico-alerta {
  background: rgba(239, 68, 68, 0.07) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #991b1b !important;
}

.card-diagnostico-info {
  background: rgba(37, 99, 235, 0.06) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  color: #1e40af !important;
}


/* ==========================================================================
   US ESTATE TAX PROGRESSIVO — ESTILOS VISUAIS E COMPONENTES
   ========================================================================== */
.aviso-excedente-estate-tax {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.08);
  border-left: 3.5px solid #dc2626;
  border-radius: 8px;
  font-size: 12px;
  color: #991b1b;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.aviso-excedente-estate-tax.aviso-info {
  background: rgba(37, 99, 235, 0.08);
  border-left-color: #2563eb;
  color: #1e40af;
}

.aviso-excedente-estate-tax.aviso-sucesso {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
  color: #065f46;
}

.estate-tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.estate-tax-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.estate-tax-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.estate-tax-metric-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.estate-tax-tabela-wrapper {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.estate-tax-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.estate-tax-tabela th {
  background: #f8fafc;
  color: #475569;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.estate-tax-tabela td {
  padding: 5px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.estate-tax-tabela tr:last-child td {
  border-bottom: none;
}

.btn-toggle-tabela-estate {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  margin-top: 8px !important;
  line-height: 1.4 !important;
}

.btn-toggle-tabela-estate:hover {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.btn-toggle-tabela-estate svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: currentColor;
  flex-shrink: 0;
}

.btn-toggle-tabela-estate.is-open svg {
  transform: rotate(180deg);
}


/* ==========================================================================
   MODAL POP-UP DE ATIVOS SEM ESTATE TAX & COMPONENTES COMPACTOS
   ========================================================================== */
.bloco-resumo-ativos-isentos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.bloco-resumo-ativos-isentos:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.badge-qtd-ativos-isentos {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-editar-ativos-isentos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-editar-ativos-isentos:hover {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

.modal-ativos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-ativos-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-ativos-header {
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-ativos-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-ativos-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.modal-ativos-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(90vh - 150px);
}

.modal-ativos-callout {
  padding: 10px 14px;
  background: rgba(2, 132, 199, 0.08);
  border-left: 3.5px solid #0284c7;
  border-radius: 8px;
  font-size: 12px;
  color: #0369a1;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-ativos-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-cancelar {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-cancelar:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-modal-salvar {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #09090b;
  background: #09090b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-salvar:hover {
  background: #27272a;
  border-color: #27272a;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
