    :root {
      --primary: #78b72a;
      --primary-hover: #669c24;
      --accent-yellow: #ffb20f;
      --accent-red: #ff4b3e;
      --accent-blue: #44ccff;
      --ink: #494947;
      --bg-main: #f4f7fb;
      --border-color: #e2e8f0;
      --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
      --header-bg: #ffffff;
      --sidebar-bg: #ffffff;
      --text-muted: #94a3b8;
    }

    body {
      font-family: 'Sora', sans-serif;
      bbackground: radial-gradient(circle at top left, #ffb20f1a, transparent 60%),
                  radial-gradient(circle at bottom right, #44ccff1a, transparent 55%),
                  var(--bg-main);
      color: #0f172a;
      overflow-x: hidden;
    }

    /* Campos de formulário */
    input,
    textarea,
    select {
      border: 1px solid #cbd5e1 !important;
      border-radius: 10px !important;
      padding: 10px 12px !important;
      outline: none;
      transition: all 0.15s ease;
      background: #fff;
      width: 100%;
      font-size: 0.9rem;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: var(--primary) !important;
      box-shadow: 0 0 0 3px rgba(120, 183, 42, 0.15);
    }

    .logo-img {
      max-height: 42px;
      width: auto;
      object-fit: contain;
    }

    /* SIDEBAR – inspirado no Minia (claro, com borda e highlight à esquerda) */
    .sidebar {
      width: 250px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border-color);
      z-index: 50;
      position: fixed;
      height: 100vh;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
    }

    .sidebar-header {
      padding: 1.5rem 1.5rem 1.25rem;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .sidebar-header-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--text-muted);
      font-weight: 800;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.7rem 1rem;
      margin: 0.15rem 0.8rem;
      border-radius: 8px;
      color: #64748b;
      font-weight: 600;
      font-size: 0.85rem;
      transition: 0.18s;
      cursor: pointer;
      white-space: nowrap;
      border: 1px solid transparent;
    }

    .nav-item:hover {
      background: #f1f5f9;
      color: var(--ink);
      border-color: #e2e8f0;
    }

    .nav-item.active {
      background: #f0fdf4;
      color: var(--primary);
      border-color: rgba(120,183,42,0.45);
      box-shadow: 0 0 0 1px rgba(120,183,42,0.2);
    }

    .nav-item.active::before {
      content: "";
      position: absolute;
      left: -4px;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 70%;
      border-radius: 999px;
      background: var(--primary);
    }

    .sidebar-section-label {
      margin-top: 1.5rem;
      padding: 0.75rem 1.5rem 0.25rem;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .sidebar-footer {
      padding: 1rem 1.5rem 1.5rem;
      border-top: 1px solid var(--border-color);
      margin-top: auto;
    }

    .sidebar-logout-btn {
      font-size: 0.8rem;
      font-weight: 700;
      color: #64748b;
      background: transparent;
      border: none;
      padding: 0.4rem 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .sidebar-logout-btn:hover {
      color: #ef4444;
    }

    /* MAIN – layout estilo Minia: header branco + cards claros */
    .main-content {
      margin-left: 250px;
      padding: 1.75rem 2rem 2.5rem;
      width: calc(100% - 250px);
      min-height: 100vh;
    }

    @media (max-width: 1024px) {
      .sidebar {
        display: none;
      }
      .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.25rem 1rem 2rem;
      }
    }

    /* Header principal */
    .main-header {
      background: var(--header-bg);
      border-radius: 12px;
      border: 1px solid var(--border-color);
      padding: 1.25rem 1.5rem;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 1.5rem;
    }

    .main-header-title {
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: #0f172a;
    }

    .main-header-sub {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.3rem;
    }

    /* Cards / containers */
    .acorn-card {
      background: #ffffff;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
      box-shadow: var(--card-shadow);
      transition: all 0.2s ease;
    }

    .acorn-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
      border-color: rgba(120,183,42,0.35);
    }

    .view-section {
      display: none;
    }

    .view-section.active {
      display: block !important;
      animation: fadeIn 0.2s ease;
    }

    #details-page {
      will-change: transform;
    }

    body.details-open {
      overflow: hidden;
    }


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

    /* Cards de imóveis */
    .tinder-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      transition: 0.22s ease;
      cursor: pointer;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
      position: relative;
    }

    .tinder-card::after {
      content: attr(data-asset-code);
      position: absolute;
      top: 12px;
      left: 12px;
      font-size: 0.65rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.82);
      color: #f9fafb;
      backdrop-filter: blur(8px);
    }

    .tinder-card:hover {
      transform: translateY(-3px);
      border-color: var(--primary);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    }

    /* Botões principais */
    .btn-primary {
      background: linear-gradient(120deg, var(--primary), #5fa01f);
      color: white;
      font-weight: 700;
      border-radius: 999px;
      padding: 10px 22px;
      cursor: pointer;
      border: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
      box-shadow: 0 10px 24px rgba(120, 183, 42, 0.28);
      font-size: 0.78rem;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .btn-primary:hover {
      background: linear-gradient(120deg, var(--primary-hover), #4f8a1b);
      transform: translateY(-1px);
      filter: brightness(1.03);
      box-shadow: 0 16px 32px rgba(88, 132, 36, 0.38);
    }

    .btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 7px 18px rgba(88, 132, 36, 0.34);
    }

    .btn-stellar {
      background: #111827;
      color: white;
      font-size: 0.65rem;
      padding: 6px 12px;
      border-radius: 999px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid #374151;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .btn-stellar:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    /* Modal detalhes (mantendo a lógica, só suavizando) */
    #modal-detalhes {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.88);
      backdrop-filter: blur(10px);
      z-index: 1000;
      padding: 2rem 1rem;
      overflow-y: auto;
      align-items: flex-start;
      justify-content: center;
    }

    .modal-container {
      background: #0b1220;
      width: 100%;
      max-width: 1120px;
      border-radius: 20px;
      position: relative;
      margin: auto;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
      border: 1px solid rgba(148, 163, 184, 0.45);
    }

    .modal-container > #modal-content {
      color: #e5e7eb;
    }

    .money-input-group {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
    }

    .money-input-group .prefix {
      position: absolute;
      left: 16px;
      font-weight: 800;
      color: #94a3b8;
      pointer-events: none;
      z-index: 10;
    }

    .money-input-group input {
      padding-left: 48px !important;
      width: 100%;
      font-size: 1.05rem;
      font-weight: 800;
      border-radius: 12px !important;
    }

    .progress-fill {
      transition: width 1s ease;
      background: linear-gradient(90deg, var(--accent-yellow), var(--primary));
    }

    input[type=range] {
      accent-color: var(--primary);
      cursor: pointer;
    }

    /* Loading */
    #loading-screen {
      backdrop-filter: blur(4px);
    }

    /* Login */
    #login-screen {
      background:
        radial-gradient(circle at top left, #ffb20f1a, transparent 55%),
        radial-gradient(circle at bottom right, #44ccff22, transparent 55%),
        #0b1220;
    }

    #login-screen .max-w-md {
      background: #0b1220;
      color: #e5e7eb;
      border: 1px solid #1f2937;
      box-shadow: 0 24px 64px rgba(15, 23, 42, 0.75);
      position: relative;
      overflow: hidden;
      border-radius: 18px;
    }

    #login-screen .max-w-md::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top, #78b72a22, transparent 55%);
      pointer-events: none;
    }

    #auth-title {
      letter-spacing: 0.18em;
      font-size: 0.85rem;
      text-transform: uppercase;
      color: #9ca3af;
    }

    /* Dashboard cards de resumo */
    #home-dashboard .acorn-card {
      position: relative;
      overflow: hidden;
    }

    #home-dashboard .acorn-card::after {
      content: "";
      position: absolute;
      right: -40px;
      bottom: -40px;
      width: 130px;
      height: 130px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(148, 163, 184, 0.18), transparent 65%);
    }

    /* Carteira destaque & Academy mantêm lógica, só herdando novo estilo */
    #carteira .acorn-card.bg-slate-900 {
      background: radial-gradient(circle at top, #0f172a, #020617);
      box-shadow: 0 20px 48px rgba(15, 23, 42, 0.8);
      border-radius: 14px;
    }

    #ensino .acorn-card {
      border-radius: 14px;
    }

    /* Tabelas */
    th {
      font-size: 0.7rem;
      letter-spacing: 0.16em;
    }

    table {
      border-collapse: separate;
      border-spacing: 0 6px;
    }

    tbody tr {
      transition: all 0.2s ease;
      border-radius: 10px;
    }

    tbody tr:hover {
      background: rgba(120,183,42,0.06);
      transform: translateY(-1px);
    }

    /* Badge suitability */
    #suitability-badge {
      background: rgba(120, 183, 42, 0.12);
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(120, 183, 42, 0.35);
      font-size: 0.6rem;
    }

    /* Animação das barras de nota */
    @keyframes fill-bar {
      from {
        width: 0%;
      }
    }

    .animate-fill-bar {
      animation: fill-bar 1.2s ease-out forwards;
    }

    /* Hover nos docs */
    #modal-content [onclick*="downloadDoc"] {
      transition: all 0.2s ease;
    }

    #modal-content [onclick*="downloadDoc"]:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(120, 183, 42, 0.3);
    }

    /* barra de rolagem fininha no painel */
    #notif-list {
      scrollbar-width: thin;
      scrollbar-color: #78b72a rgba(226, 232, 240, 0.7);
    }
    #notif-list::-webkit-scrollbar {
      width: 6px;
    }
    #notif-list::-webkit-scrollbar-thumb {
      background: #78b72a;
      border-radius: 999px;
    }
    #notif-list::-webkit-scrollbar-track {
      background: rgba(241, 245, 249, 0.8);
    }

    #venda-qtd {
      padding-left: 55px !important;
    }
