:root{--blue:#00265f;--blue2:#063b88;--red:#d10b16;--bg:#f4f7fb;--text:#071832;--muted:#6b7280;--line:#e5e7eb;--green:#0f9f6e;--yellow:#b7791f}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.top{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 32px;box-shadow:0 2px 20px #001a3d12;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--blue);font-weight:800}.brand small{display:block;font-size:11px;text-transform:uppercase}.mark{width:44px;height:44px;border-radius:9px;background:linear-gradient(145deg,#00327a,#001b4f);color:#f20d19;border:3px solid #fff;box-shadow:0 0 0 2px var(--blue);display:grid;place-items:center;font-size:30px;font-weight:900;font-style:italic}.top nav{display:flex;gap:22px;align-items:center;font-weight:700;font-size:14px}.top nav a:last-child,.btn{background:var(--blue);color:#fff;padding:13px 18px;border-radius:8px;border:0;font-weight:800;cursor:pointer}.btn.red{background:var(--red)}.btn.green{background:var(--green)}main{min-height:calc(100vh - 130px)}.hero{min-height:480px;background:linear-gradient(90deg,#001c49dd,#001c4960),url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1600') center/cover;color:#fff;display:flex;align-items:center;padding:55px}.hero h1{font-size:52px;max-width:620px}.search{background:#fff;padding:18px;border-radius:14px;display:grid;grid-template-columns:repeat(5,1fr);gap:12px;max-width:1050px}.search input,.search select,.form input,.form select,.form textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff}.section{padding:42px 55px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border-radius:14px;box-shadow:0 8px 25px #001a3d12;overflow:hidden}.card .p{padding:20px}.property img{width:100%;height:210px;object-fit:cover}.price{color:var(--red);font-size:22px;font-weight:900}.panel{display:grid;grid-template-columns:260px 1fr;min-height:100vh}aside{background:#001d47;color:#fff;padding:24px;display:flex;flex-direction:column;gap:10px}aside a{padding:13px 12px;border-radius:8px}aside a:hover{background:#ffffff18}.content{padding:32px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.kpi{background:#fff;border-radius:12px;padding:20px;box-shadow:0 8px 24px #001a3d10}.kpi b{display:block;font-size:28px;color:var(--blue)}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #001a3d10}.table th,.table td{padding:14px;border-bottom:1px solid var(--line);text-align:left}.badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;text-transform:capitalize}.badge.ok{background:#def7ec;color:#057a55}.badge.warn{background:#fdf6b2;color:#92400e}.badge.danger{background:#fde8e8;color:#c81e1e}.badge.info{background:#dbeafe;color:#1d4ed8}.badge.muted{background:#eee;color:#555}.form{background:#fff;border-radius:14px;padding:24px;box-shadow:0 8px 25px #001a3d12;display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form .full{grid-column:1/-1}.gallery{display:grid;grid-template-columns:2fr 1fr;gap:15px}.gallery img{width:100%;border-radius:12px;object-fit:cover}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login .box{width:100%;max-width:430px;background:#fff;padding:32px;border-radius:16px;box-shadow:0 16px 40px #001a3d20}footer{text-align:center;padding:26px;color:#6b7280}.alert{padding:14px;border-radius:10px;margin:12px 0;background:#fee2e2;color:#991b1b}.okmsg{padding:14px;border-radius:10px;margin:12px 0;background:#dcfce7;color:#166534}@media(max-width:900px){.grid,.cards,.search,.form{grid-template-columns:1fr}.panel{grid-template-columns:1fr}aside{position:relative}.hero h1{font-size:36px}.top{padding:0 14px}.top nav{gap:8px;font-size:12px}.section{padding:24px}}


/* Hotfix login - campos alinhados */
.login .box{max-width:460px;}
.login label{display:block;margin:12px 0 6px;font-weight:700;color:var(--text);}
.login input{display:block;width:100%;margin-top:7px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:15px;outline:none;}
.login input:focus{border-color:var(--blue2);box-shadow:0 0 0 3px rgba(6,59,136,.12);}
.login .btn{width:100%;margin-top:12px;}
.login p{text-align:center;margin-top:18px;}
.login .brand{margin-bottom:18px;}
.login h2{margin:8px 0 18px;font-size:28px;}


/* V4 ajustes de marca e dashboard */
.brand-img{gap:10px}.brand-img .logo-img{height:54px;width:auto;max-width:250px;object-fit:contain;display:block}.top .brand-img .logo-img{height:50px}.login .brand-img .logo-img{height:72px;max-width:310px}.panel aside .brand-img{background:#fff;border-radius:12px;padding:10px;margin-bottom:10px}.panel aside .brand-img .logo-img{height:auto;width:100%;max-width:190px}.menu-badge{background:#d10b16;color:#fff;border-radius:999px;padding:2px 7px;margin-left:6px;font-size:12px}.btn-mini{display:inline-block;background:var(--blue);color:#fff;padding:7px 10px;border-radius:7px;font-weight:800;font-size:12px}.btn-mini.danger{background:var(--red)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.form small{display:block;color:var(--muted);margin-top:6px}@media(max-width:900px){.two-cols{grid-template-columns:1fr}.brand-img .logo-img{max-width:190px}.top .brand-img .logo-img{height:40px}}

/* V4.1 marca pública maior e legível */
.public-brand{min-width:300px;gap:12px;align-items:center;}
.public-brand .brand-logo{width:58px;height:58px;object-fit:contain;border-radius:10px;display:block;}
.public-brand .brand-title{display:flex;flex-direction:column;line-height:1.05;color:var(--blue);white-space:nowrap;}
.public-brand .brand-title b{font-size:20px;font-weight:900;letter-spacing:.2px;}
.public-brand .brand-title small{font-size:11px;font-weight:900;letter-spacing:.1px;}
.top{height:92px;}
.side-brand .logo-img{width:100%;height:auto;max-width:210px;object-fit:contain;display:block;}
.panel aside .side-brand{background:#fff;border-radius:12px;padding:14px;margin-bottom:12px;justify-content:center;}
.gallery>img{min-height:360px;}
@media(max-width:900px){.public-brand{min-width:auto}.public-brand .brand-logo{width:46px;height:46px}.public-brand .brand-title b{font-size:16px}.public-brand .brand-title small{font-size:9px}.top{height:auto;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.top nav{width:100%;justify-content:center;margin-top:10px}.gallery{grid-template-columns:1fr}}
/* V5 imóveis, fotos e logos */
.public-brand .logo-horizontal{height:72px;max-width:440px;width:auto;object-fit:contain;display:block}.top{height:104px}.side-brand{background:#fff;border-radius:12px;padding:10px!important;margin-bottom:10px;justify-content:center}.side-brand .logo-panel{width:160px;max-height:86px;object-fit:contain;display:block}.login .logo-horizontal{height:76px;max-width:360px}.photo-placeholder{height:210px;width:100%;background:linear-gradient(135deg,#001d47,#063b88);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:relative;overflow:hidden}.photo-placeholder .watermark{position:absolute;font-size:42px;font-weight:900;opacity:.09;letter-spacing:2px;transform:rotate(-8deg)}.photo-placeholder strong{font-size:24px;z-index:1}.photo-placeholder small{z-index:1;opacity:.9}.gallery-placeholder{grid-column:1/-1;border-radius:14px;overflow:hidden}.gallery-placeholder .photo-placeholder{height:430px}.thumb{height:135px;margin-bottom:10px;object-fit:cover}.photos-admin{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:18px 0}.photos-admin div{background:#fff;border-radius:12px;padding:10px;box-shadow:0 6px 18px #001a3d14}.photos-admin img{width:100%;height:110px;object-fit:cover;border-radius:8px}.photos-admin a{color:var(--blue);font-weight:700;font-size:13px}.preview-placeholder{max-width:420px;margin:14px 0;border-radius:14px;overflow:hidden}.actions{font-size:13px;line-height:1.8}.checkbox{display:flex!important;gap:10px;align-items:center}.checkbox input{width:auto!important}.property .photo-placeholder{border-radius:0}.brand-img{display:inline-flex;align-items:center}@media(max-width:900px){.public-brand .logo-horizontal{height:56px;max-width:280px}.side-brand .logo-panel{width:130px}.top{height:auto}}

/* V5.1 - login compacto, tema escuro e fotos de capa */
.login{background:linear-gradient(145deg,#001d47 0%,#063b88 58%,#00132f 100%);position:relative;}
.login .box{background:#fff;color:#071832;border:1px solid rgba(255,255,255,.12);}
.login-brand{justify-content:center;margin-bottom:12px;}
.login-brand .logo-panel{width:190px;max-height:82px;object-fit:contain;display:block;}
.login .box h2{text-align:center;}
.theme-toggle{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#071832;display:grid;place-items:center;cursor:pointer;font-size:18px;box-shadow:0 8px 22px #001a3d20;flex:0 0 auto;}
.panel-theme{position:fixed;right:18px;top:18px;z-index:20;}
.login-theme{position:fixed;right:18px;top:18px;z-index:20;}
.photo-uploader{border:2px dashed #cbd5e1;border-radius:14px;padding:18px;background:#f8fafc;}
.photo-uploader input{background:#fff;}
.photo-uploader strong{display:block;margin-bottom:6px;color:var(--blue);}
.cover-badge{display:inline-block;background:var(--red);color:#fff;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;margin:6px 0;}
.photos-admin .cover-actions{display:flex;flex-direction:column;gap:4px;margin-top:8px;}
.photos-admin .cover-actions a{display:block;}
html.dark-mode{--bg:#07111f;--text:#e5e7eb;--muted:#9ca3af;--line:#243247;--blue:#60a5fa;--blue2:#93c5fd;}
html.dark-mode body{background:#07111f;color:#e5e7eb;}
html.dark-mode .top,html.dark-mode .card,html.dark-mode .kpi,html.dark-mode .table,html.dark-mode .form,html.dark-mode .login .box{background:#0f1b2d;color:#e5e7eb;border:1px solid #243247;box-shadow:0 8px 28px #00000040;}
html.dark-mode .top{background:#0b1627;}
html.dark-mode .top nav a:not(:last-child){color:#e5e7eb;}
html.dark-mode aside{background:#020b1b;}
html.dark-mode aside a:hover{background:#ffffff14;}
html.dark-mode .panel aside .side-brand,html.dark-mode .side-brand,html.dark-mode .brand-img,html.dark-mode .login-brand{background:#fff!important;border-radius:12px;padding:8px;}
html.dark-mode .public-brand{background:#fff;border-radius:12px;padding:6px 10px;}
html.dark-mode .table th,html.dark-mode .table td{border-color:#243247;}
html.dark-mode .form input,html.dark-mode .form select,html.dark-mode .form textarea,html.dark-mode .login input,html.dark-mode .search input,html.dark-mode .search select{background:#111f33;color:#e5e7eb;border-color:#304157;}
html.dark-mode .search{background:#0f1b2d;border:1px solid #243247;}
html.dark-mode footer{color:#9ca3af;}
html.dark-mode .theme-toggle{background:#111f33;color:#fbbf24;border-color:#304157;}
html.dark-mode .photo-uploader{background:#111f33;border-color:#304157;}
html.dark-mode .photo-uploader strong{color:#e5e7eb;}
html.dark-mode .photo-placeholder{background:linear-gradient(135deg,#020b1b,#0b3476);}
@media(max-width:900px){.login-brand .logo-panel{width:150px;max-height:64px}.theme-toggle{width:38px;height:38px}.panel-theme{right:12px;top:12px}.login-theme{right:12px;top:12px}}
/* Ajuste final de tamanho dos logos */
.side-brand .logo-panel{width:120px;max-height:60px;}
.login-brand .logo-panel{width:160px;max-height:70px;}
@media(max-width:900px){.side-brand .logo-panel{width:105px;max-height:54px}.login-brand .logo-panel{width:135px;max-height:58px}}

/* V5.2 - hierarquias, logo escuro, tema e responsividade */
.top{gap:18px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.top-actions nav{display:flex;align-items:center;gap:14px}.top-actions nav a:last-child{background:var(--blue);color:#fff;padding:12px 16px;border-radius:8px}.theme-toggle{display:flex;align-items:center;justify-content:center;line-height:1;overflow:hidden}.theme-toggle span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:18px;line-height:1;transform:translateY(0)}
.logo-dark-only{display:none!important}.logo-light{display:block}.dark-logo{height:72px;max-width:440px;width:auto;object-fit:contain}.side-brand .logo-panel{width:118px;max-height:58px;object-fit:contain}.login-brand .logo-panel{width:145px!important;max-height:58px!important;object-fit:contain}.login .box .brand{margin-bottom:8px}.home-link{background:#ffffff14!important;font-weight:800}.user-role{display:inline-block;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.actions-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.inline-form{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.inline-form select{padding:8px;border:1px solid var(--line);border-radius:8px}.mini-select{max-width:150px}.dashboard-list{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.lead-box{background:#fff;border-radius:14px;padding:22px;box-shadow:0 8px 25px #001a3d12}.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.role-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}.role-card input{width:auto!important;margin-right:6px}.login select,.login .box select{display:block;width:100%;margin-top:7px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:15px}.login .hint{font-size:13px;color:#6b7280;text-align:center;margin:10px 0 0}.panel aside .side-brand{padding:8px!important}.public-brand{background:transparent!important;padding:0!important}.public-brand .logo-horizontal{height:68px}.footer-actions{position:fixed;right:18px;top:18px;z-index:30;display:flex;gap:8px;align-items:center}
html.dark-mode .logo-light{display:none!important}html.dark-mode .logo-dark-only{display:block!important}html.dark-mode .public-brand,html.dark-mode .brand-img,html.dark-mode .side-brand,html.dark-mode .login-brand{background:transparent!important;border:none!important;padding:0!important}html.dark-mode .lead-box,html.dark-mode .role-card{background:#0f1b2d;color:#e5e7eb;border-color:#243247}html.dark-mode .user-role{background:#172554;color:#bfdbfe}html.dark-mode .login select,html.dark-mode .login .box select,.inline-form select{background:#111f33;color:#e5e7eb;border-color:#304157}
@media(max-width:900px){.top{align-items:flex-start}.top-actions{width:100%;justify-content:flex-end;gap:8px}.top-actions nav{gap:6px;flex-wrap:wrap;justify-content:flex-end}.top-actions nav a{font-size:12px}.top-actions nav a:last-child{padding:9px 11px}.theme-toggle{width:38px;height:38px}.theme-toggle span{font-size:16px}.dashboard-list,.role-grid{grid-template-columns:1fr}.public-brand .logo-horizontal{height:50px;max-width:265px}.dark-logo{height:50px;max-width:265px}.login-brand .logo-panel{width:120px!important;max-height:50px!important}.side-brand .logo-panel{width:98px;max-height:48px}.content{padding:24px 16px}.table{font-size:13px}.table th,.table td{padding:10px}}

/* V5.3 - logotipo escuro enviado e painel mais limpo */
html.dark-mode .logo-dark-only .dark-logo,
.logo-dark-only .dark-logo{height:72px;max-width:500px;width:auto;object-fit:contain;display:block;}
html.dark-mode .top{background:#050b16;border-bottom:1px solid #15233a;}
html.dark-mode .public-brand{background:transparent!important;box-shadow:none!important;}
/* Painel admin/cliente: tira caixa branca do logo e usa cor do padrão */
.panel aside .side-brand,
html.dark-mode .panel aside .side-brand{
  background:linear-gradient(145deg,#062e6b,#001633)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:16px!important;
  padding:12px!important;
  margin-bottom:14px!important;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 24px rgba(0,0,0,.18);
}
.panel aside .side-brand .logo-light{display:block!important;}
.panel aside .side-brand .logo-dark-only{display:none!important;}
.panel aside .side-brand .logo-panel{width:118px!important;max-height:64px!important;object-fit:contain;filter:none;}
html.dark-mode .panel aside .side-brand .logo-light{display:none!important;}
html.dark-mode .panel aside .side-brand .logo-dark-only{display:block!important;}
html.dark-mode .panel aside .side-brand .logo-panel{width:150px!important;max-height:70px!important;}
/* Login: logo menor e sem estourar */
.login-brand{background:transparent!important;border:none!important;padding:0!important;}
.login-brand .logo-panel{width:155px!important;max-width:80%!important;max-height:62px!important;object-fit:contain;}
html.dark-mode .login-brand .logo-panel{width:210px!important;max-width:95%!important;max-height:72px!important;}
/* Botão tema fixo bem enquadrado */
.theme-toggle{position:relative;padding:0!important;text-align:center;line-height:1!important;}
.theme-toggle span,.theme-toggle{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Arial,sans-serif;}
.theme-toggle span{display:flex!important;align-items:center!important;justify-content:center!important;font-size:17px!important;line-height:1!important;width:100%!important;height:100%!important;transform:none!important;}
.login-theme{position:fixed;right:18px;top:18px;z-index:50;}
/* Ajuste mobile */
@media(max-width:900px){
  .login-brand .logo-panel{width:135px!important;max-height:56px!important;}
  html.dark-mode .login-brand .logo-panel{width:185px!important;max-height:64px!important;}
  .panel aside .side-brand{min-height:74px;padding:10px!important;}
  .panel aside .side-brand .logo-panel{width:96px!important;max-height:52px!important;}
  html.dark-mode .panel aside .side-brand .logo-panel{width:130px!important;max-height:58px!important;}
  .theme-toggle span{font-size:15px!important;}
}

/* V5.3.1 - logo claro atualizado, login centralizado e botão de tema corrigido */
.logo-light .logo-horizontal{
  height:72px;
  max-width:520px;
  width:auto;
  object-fit:contain;
  display:block;
}
.logo-dark-only .dark-logo{
  height:72px!important;
  max-width:520px!important;
  width:auto!important;
  object-fit:contain!important;
}
.login .box{
  align-items:stretch;
}
.login .box .login-brand,
.login-brand{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  margin:0 auto 16px auto!important;
}
.login-brand .logo-panel{
  width:260px!important;
  max-width:92%!important;
  max-height:92px!important;
  height:auto!important;
  object-fit:contain!important;
}
html.dark-mode .login-brand .logo-panel{
  width:260px!important;
  max-width:92%!important;
  max-height:92px!important;
}
.panel-theme,
.login-theme{
  position:fixed!important;
  right:18px!important;
  top:18px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:9999!important;
}
.theme-toggle{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  padding:0!important;
}
.theme-toggle span{
  width:42px!important;
  height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:17px!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
.panel aside .side-brand{
  background:linear-gradient(145deg,#062e6b,#001633)!important;
  border:1px solid rgba(255,255,255,.16)!important;
}
.panel aside .side-brand .logo-panel{
  width:150px!important;
  max-width:92%!important;
  max-height:74px!important;
  height:auto!important;
}
html.dark-mode .panel aside .side-brand .logo-panel{
  width:150px!important;
  max-width:92%!important;
  max-height:74px!important;
}
@media(max-width:900px){
  .logo-light .logo-horizontal,
  .logo-dark-only .dark-logo{
    height:52px!important;
    max-width:300px!important;
  }
  .login-brand .logo-panel,
  html.dark-mode .login-brand .logo-panel{
    width:220px!important;
    max-height:78px!important;
  }
  .panel-theme,
  .login-theme{
    right:12px!important;
    top:12px!important;
  }
  .theme-toggle,
  .theme-toggle span{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
  }
  .theme-toggle span{font-size:15px!important;}
}

/* V5.3.2 - ajuste solicitado: logo claro novo, caixa branca no tema claro e azul no tema escuro */
/* Site público: tema claro usa o novo logo enviado; tema escuro mantém o logo escuro */
.logo-light .logo-horizontal,
.public-brand .logo-horizontal{
  height:72px!important;
  max-width:520px!important;
  width:auto!important;
  object-fit:contain!important;
  display:block!important;
}
.logo-dark-only .dark-logo{
  height:72px!important;
  max-width:520px!important;
  width:auto!important;
  object-fit:contain!important;
  display:block!important;
}

/* Painéis admin/cliente: tema claro com caixa branca */
.panel aside .side-brand{
  background:#ffffff!important;
  border:1px solid rgba(0,38,95,.12)!important;
  border-radius:16px!important;
  box-shadow:0 10px 24px rgba(0,26,61,.14)!important;
  padding:12px!important;
  margin-bottom:14px!important;
  min-height:88px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.panel aside .side-brand .logo-light{display:block!important;}
.panel aside .side-brand .logo-dark-only{display:none!important;}
.panel aside .side-brand .logo-panel{
  width:170px!important;
  max-width:94%!important;
  max-height:78px!important;
  height:auto!important;
  object-fit:contain!important;
}

/* Painéis admin/cliente: tema escuro com caixa azul no padrão do site */
html.dark-mode .panel aside .side-brand{
  background:linear-gradient(145deg,#063b88,#001d47)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
}
html.dark-mode .panel aside .side-brand .logo-light{display:none!important;}
html.dark-mode .panel aside .side-brand .logo-dark-only{display:block!important;}
html.dark-mode .panel aside .side-brand .logo-panel{
  width:170px!important;
  max-width:94%!important;
  max-height:78px!important;
}

/* Login e cadastro: logo centralizado e proporcional */
.login .box .login-brand,
.login-brand{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  margin:0 auto 18px auto!important;
}
.login-brand .logo-panel,
html.dark-mode .login-brand .logo-panel{
  width:280px!important;
  max-width:94%!important;
  max-height:100px!important;
  height:auto!important;
  object-fit:contain!important;
}

/* Botão de tema: fixa no canto superior direito e mantém emoji dentro da bolinha */
.panel-theme,
.login-theme{
  position:fixed!important;
  right:18px!important;
  top:18px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:99999!important;
}
.theme-toggle{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  padding:0!important;
  line-height:1!important;
}
.theme-toggle span{
  width:42px!important;
  height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:17px!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

@media(max-width:900px){
  .logo-light .logo-horizontal,
  .public-brand .logo-horizontal,
  .logo-dark-only .dark-logo{
    height:54px!important;
    max-width:315px!important;
  }
  .login-brand .logo-panel,
  html.dark-mode .login-brand .logo-panel{
    width:235px!important;
    max-height:84px!important;
  }
  .panel aside .side-brand,
  html.dark-mode .panel aside .side-brand{
    min-height:78px!important;
    padding:10px!important;
  }
  .panel aside .side-brand .logo-panel,
  html.dark-mode .panel aside .side-brand .logo-panel{
    width:135px!important;
    max-height:62px!important;
  }
  .panel-theme,
  .login-theme{
    right:12px!important;
    top:12px!important;
  }
  .theme-toggle,
  .theme-toggle span{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
  }
  .theme-toggle span{font-size:15px!important;}
}

/* V5.3.3 - correções de retorno, tela de aguardando aprovação e logo centralizado */
.waiting-box{text-align:center;}
.waiting-box .login-brand{margin-left:auto!important;margin-right:auto!important;justify-content:center!important;display:flex!important;}
.waiting-box h2{text-align:center!important;margin-top:18px!important;}
.waiting-box p{text-align:center!important;line-height:1.5;}
.waiting-btn{display:inline-flex!important;align-items:center;justify-content:center;margin:16px auto 0!important;width:auto!important;min-width:190px;}
.login .box .login-brand{margin-left:auto!important;margin-right:auto!important;justify-content:center!important;text-align:center!important;}
.login .box .login-brand img{display:block;margin:0 auto;}

/* V5.4 - códigos PLATA e gerenciador de fotos estilo anúncio */
.property-code{display:inline-block;background:#eaf1ff;color:var(--blue);font-weight:800;border-radius:999px;padding:4px 10px;margin:6px 0;letter-spacing:.4px}.property-code.detail{margin-right:8px}.photos-workspace{border:1px solid #dbe5f4;background:#f8fbff;border-radius:18px;padding:18px;margin-bottom:18px}.photos-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.photos-head strong{font-size:18px;color:var(--blue);display:block}.photos-head small{display:block;color:#64748b;margin-top:4px}.dropzone{min-height:150px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:.2s}.dropzone input{display:none}.dropzone .upload-icon{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;font-size:30px;line-height:45px;margin-bottom:8px}.dropzone.is-dragover{background:#e9f2ff;border-color:var(--blue);transform:scale(1.01)}.upload-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:14px}.upload-card,.photo-tile{position:relative;cursor:grab}.upload-card:active,.photo-tile:active{cursor:grabbing}.upload-card{background:#fff;border-radius:14px;padding:10px;box-shadow:0 6px 18px #001a3d14;display:flex;flex-direction:column;gap:7px}.upload-card img{width:100%;height:110px;object-fit:cover;border-radius:10px}.upload-card small{font-size:12px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-card button{border:0;background:#fee2e2;color:#991b1b;border-radius:8px;padding:6px;font-weight:700;cursor:pointer}.photos-admin.sortable-existing{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));margin-bottom:16px}.photos-admin .photo-tile{border:2px solid transparent}.photos-admin .photo-tile:first-child{border-color:#ef4444}.cover-badge.soft{background:#e2e8f0;color:#334155}.photos-admin .photo-tile:first-child:before,.upload-card:first-child:before{content:'Capa';position:absolute;top:7px;left:7px;background:#ef4444;color:#fff;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;z-index:2}html.dark-mode .property-code{background:#10294f;color:#dbeafe}html.dark-mode .photos-workspace{background:#0f1c2e;border-color:#24364f}html.dark-mode .photos-head strong{color:#fff}html.dark-mode .photos-head small{color:#b6c4d8}html.dark-mode .upload-card,html.dark-mode .photos-admin div{background:#16243a}html.dark-mode .upload-card small{color:#dbeafe}html.dark-mode .dropzone.is-dragover{background:#152b4c}

/* V5.5 - destaque em carrossel, busca por código e lightbox */
.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.section-title-row h2{margin-bottom:4px}.section-title-row p{margin:0;color:var(--muted)}.featured-carousel{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 2px 18px}.featured-carousel::-webkit-scrollbar{display:none}.featured-track{display:flex;gap:22px;min-width:max-content}.featured-card{width:340px;min-width:340px;scroll-snap-align:start}.featured-card img,.featured-card .photo-placeholder{height:230px}.carousel-buttons{display:flex;gap:10px}.carousel-btn{width:44px;height:44px;border-radius:999px;border:0;background:var(--blue);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:grid;place-items:center}.carousel-btn:hover{background:var(--red)}.code-search{margin-top:18px;background:#ffffffee;border-radius:14px;padding:14px;max-width:560px;color:var(--text);box-shadow:0 8px 24px #001a3d18}.code-search label{font-weight:900;display:block;margin-bottom:8px;color:var(--blue)}.code-search div{display:grid;grid-template-columns:auto 1fr auto;gap:0;align-items:center}.code-search span,.code-inline span{background:#edf4ff;border:1px solid var(--line);border-right:0;border-radius:9px 0 0 9px;padding:13px 12px;font-weight:900;color:var(--blue)}.code-search input,.code-inline input{border-radius:0 9px 9px 0!important}.code-search .btn{border-radius:9px;margin-left:10px}.code-inline{display:flex;align-items:center}.code-inline input{min-width:90px}.detail-gallery .main-photo{border:0;background:transparent;padding:0;position:relative;cursor:zoom-in;text-align:left}.detail-gallery .main-photo img{height:430px}.detail-gallery .main-photo span{position:absolute;right:14px;bottom:14px;background:#000b;color:#fff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:13px}.thumb-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.thumb-button{border:0;background:transparent;padding:0;cursor:zoom-in}.thumb-button img{height:135px}.lightbox{position:fixed;inset:0;background:#000e;z-index:9999;display:none;align-items:center;justify-content:center;padding:28px}.lightbox.open{display:flex}.lightbox img{max-width:92vw;max-height:84vh;object-fit:contain;border-radius:12px;box-shadow:0 16px 50px #000}.lightbox-close,.lightbox-arrow{position:absolute;border:0;background:#ffffff22;color:#fff;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(6px)}.lightbox-close{right:24px;top:24px;width:46px;height:46px;border-radius:999px;font-size:32px}.lightbox-arrow{top:50%;transform:translateY(-50%);width:54px;height:76px;border-radius:16px;font-size:54px}.lightbox-arrow.left{left:24px}.lightbox-arrow.right{right:24px}.lightbox-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#ffffff22;color:#fff;border-radius:999px;padding:8px 14px;font-weight:900}html.dark-mode .code-search{background:#101c2e;color:#fff}html.dark-mode .code-search label,html.dark-mode .code-search span,html.dark-mode .code-inline span{color:#fff}html.dark-mode .code-search span,html.dark-mode .code-inline span{background:#10294f;border-color:#263c5f}@media(max-width:900px){.section-title-row{align-items:flex-start;flex-direction:column}.featured-card{width:82vw;min-width:82vw}.code-search div{grid-template-columns:auto 1fr}.code-search .btn{grid-column:1/-1;margin-left:0;margin-top:10px}.detail-gallery .main-photo img{height:280px}.thumb-grid{grid-template-columns:repeat(3,1fr)}.thumb-button img{height:90px}.lightbox-arrow{width:42px;height:58px;font-size:42px}.lightbox-arrow.left{left:8px}.lightbox-arrow.right{right:8px}.lightbox-close{right:12px;top:12px}}

/* V5.5.1 - busca por código integrada e filtros estilo classificados */
.search.search-home{grid-template-columns:1.05fr 1.35fr 1.05fr 1fr 1fr auto;align-items:stretch;gap:12px;max-width:1180px}
.search .code-field,.filters-classified .code-field{display:flex;align-items:stretch;min-width:150px;height:100%}
.search .code-field span,.filters-classified .code-field span{display:flex;align-items:center;background:#edf4ff;border:1px solid var(--line);border-right:0;border-radius:12px 0 0 12px;padding:0 12px;font-weight:900;color:var(--blue);white-space:nowrap;letter-spacing:.2px}
.search .code-field input,.filters-classified .code-field input{border-radius:0 12px 12px 0!important;min-width:74px;width:100%;height:100%;padding-left:10px}
.search.search-home .btn{height:100%;white-space:nowrap}
.filters-classified{grid-template-columns:minmax(190px,1.5fr) minmax(150px,.9fr) minmax(140px,.9fr) minmax(140px,.9fr) minmax(140px,.9fr) minmax(140px,.9fr) minmax(125px,.8fr) minmax(110px,.75fr) minmax(120px,.75fr) auto auto;align-items:stretch;gap:10px;background:#f7faff;border:1px solid #dbe5f4;border-radius:18px;padding:14px;box-shadow:0 12px 30px #001a3d0d}
.filters-classified input,.filters-classified select,.filters-classified .btn{min-height:46px}
.btn.ghost{background:#fff;color:var(--blue);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn.ghost:hover{border-color:var(--blue)}
html.dark-mode .filters-classified{background:#101c2e;border-color:#24364f;box-shadow:none}
html.dark-mode .search .code-field span,html.dark-mode .filters-classified .code-field span{background:#10294f;border-color:#263c5f;color:#fff}
html.dark-mode .btn.ghost{background:#16243a;color:#fff;border-color:#263c5f}
@media(max-width:1180px){.search.search-home{grid-template-columns:repeat(3,1fr)}.search.search-home .btn{grid-column:auto}.filters-classified{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.search.search-home,.filters-classified{grid-template-columns:1fr}.search .code-field,.filters-classified .code-field{height:46px}.search.search-home .btn,.filters-classified .btn{width:100%}}

/* V5.6 — UX, filtros responsivos, menu mobile e tema persistente */
html{color-scheme:light;}
html.dark-mode{color-scheme:dark;}
html.light-mode{color-scheme:light!important;}
body{overflow-x:hidden;}
.top{overflow:visible;}
.desktop-nav{display:flex;}
.mobile-menu-btn{display:none;width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;box-shadow:0 8px 22px #001a3d12;}
.mobile-menu-btn span{display:block;width:20px;height:2px;background:var(--blue);border-radius:999px;}
.mobile-menu-backdrop{position:fixed;inset:0;background:#0008;z-index:80;opacity:0;pointer-events:none;transition:.2s;}
.mobile-drawer{position:fixed!important;right:0;top:0;bottom:0;width:min(86vw,360px);background:#fff;color:var(--text);z-index:90;transform:translateX(104%);transition:.25s ease;box-shadow:-12px 0 36px #0003;padding:18px!important;display:flex!important;gap:18px!important;}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px;}
.mobile-drawer-logo .logo-horizontal{height:48px;max-width:230px;object-fit:contain;}
.mobile-close{width:42px;height:42px;border-radius:999px;border:0;background:#eef3fb;color:var(--blue);font-size:30px;cursor:pointer;line-height:1;}
.mobile-drawer nav{display:flex;flex-direction:column;gap:6px;font-weight:800;}
.mobile-drawer nav a{padding:14px;border-radius:12px;color:var(--text);}
.mobile-drawer nav a:hover{background:#eef3fb;}
body.mobile-menu-open .mobile-menu-backdrop{opacity:1;pointer-events:auto;}
body.mobile-menu-open .mobile-drawer{transform:translateX(0);}
html.dark-mode .mobile-menu-btn{background:#111f33;border-color:#304157;}
html.dark-mode .mobile-menu-btn span{background:#fff;}
html.dark-mode .mobile-drawer{background:#0f1b2d;color:#e5e7eb;border-left:1px solid #243247;}
html.dark-mode .mobile-drawer-head{border-color:#243247;}
html.dark-mode .mobile-drawer nav a{color:#e5e7eb;}
html.dark-mode .mobile-drawer nav a:hover,html.dark-mode .mobile-close{background:#15243a;color:#fff;}

.filters-classified{display:block!important;width:100%;max-width:100%;overflow:hidden;}
.filters-primary-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;width:100%;}
.filters-primary-row>input{flex:1 1 210px;min-width:180px;}
.filters-primary-row>select{flex:1 1 138px;min-width:132px;}
.filters-primary-row>.code-field{flex:0 1 164px;min-width:150px;}
.filters-primary-row>.btn{flex:0 0 auto;min-height:46px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;}
.filter-popup-btn{background:#10294f!important;color:#fff!important;}
.advanced-filter-drawer{position:fixed;right:0;top:0;bottom:0;width:min(94vw,430px);background:#fff;color:var(--text);z-index:100;transform:translateX(105%);transition:.25s ease;box-shadow:-18px 0 45px #0003;padding:24px;overflow:auto;border-left:1px solid var(--line);}
.filters-open .advanced-filter-drawer{transform:translateX(0);}
.filters-open:before{content:'';position:fixed;inset:0;background:#0007;z-index:99;}
.filter-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line);}
.filter-panel-head strong{font-size:24px;color:var(--blue);}
.filter-panel-head button{width:42px;height:42px;border-radius:999px;border:0;background:#eef3fb;color:var(--blue);font-size:30px;cursor:pointer;line-height:1;}
.filter-panel-grid{display:grid;grid-template-columns:1fr;gap:14px;}
.filter-panel-grid label{font-weight:900;color:var(--text);display:flex;flex-direction:column;gap:8px;}
.filter-panel-grid select,.filter-panel-grid input{min-height:46px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;color:var(--text);}
.filter-panel-actions{position:sticky;bottom:-24px;background:linear-gradient(180deg,#ffffffcc,#fff 45%);display:flex;gap:10px;justify-content:flex-end;margin:22px -24px -24px;padding:18px 24px;border-top:1px solid var(--line);}
.filter-panel-actions .btn{min-height:46px;}
html.dark-mode .advanced-filter-drawer{background:#0f1b2d;color:#e5e7eb;border-color:#243247;}
html.dark-mode .filter-panel-head{border-color:#243247;}
html.dark-mode .filter-panel-head strong,html.dark-mode .filter-panel-grid label{color:#e5e7eb;}
html.dark-mode .filter-panel-grid select,html.dark-mode .filter-panel-grid input{background:#111f33;color:#e5e7eb;border-color:#304157;}
html.dark-mode .filter-panel-actions{background:linear-gradient(180deg,#0f1b2dcc,#0f1b2d 45%);border-color:#243247;}
html.dark-mode .filter-panel-head button{background:#15243a;color:#fff;}

/* reforço para o tema claro escolhido pelo usuário vencer modo escuro do Android */
html.light-mode body{background:var(--bg)!important;color:var(--text)!important;}
html.light-mode .top,html.light-mode .card,html.light-mode .kpi,html.light-mode .table,html.light-mode .form,html.light-mode .login .box,html.light-mode .search{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;}
html.light-mode input,html.light-mode select,html.light-mode textarea{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;}
html.light-mode .mobile-drawer{background:#fff!important;color:var(--text)!important;}

@media(max-width:1180px){
  .filters-primary-row>input{flex-basis:260px;}
  .filters-primary-row>select{flex-basis:150px;}
  .filters-primary-row>.btn{flex:1 1 120px;}
}
@media(max-width:760px){
  .desktop-nav{display:none!important;}
  .mobile-menu-btn{display:flex;}
  .top{align-items:center!important;flex-wrap:nowrap!important;height:auto!important;padding:10px 12px!important;}
  .top-actions{width:auto!important;margin-left:auto!important;}
  .public-brand .logo-horizontal{height:46px!important;max-width:230px!important;}
  .filters-classified{padding:12px!important;border-radius:16px!important;}
  .filters-primary-row{gap:9px;}
  .filters-primary-row>input,.filters-primary-row>select,.filters-primary-row>.code-field,.filters-primary-row>.btn{flex:1 1 100%;min-width:0;width:100%;}
  .filters-primary-row>select[name="tipo"],.filters-primary-row>select[name="valor_min"],.filters-primary-row>select[name="valor_max"]{display:none;}
  .filter-popup-btn{display:flex!important;}
  .theme-toggle,.mobile-menu-btn{width:40px!important;height:40px!important;min-width:40px!important;}
  .theme-toggle span{font-size:15px!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;width:100%!important;height:100%!important;}
  .section{padding-left:16px!important;padding-right:16px!important;}
}
@media(min-width:761px){
  .filter-popup-btn{display:inline-flex;}
}

/* V5.7 cadastro por perfil e locatário */
.cadastro-box [data-role-field]{display:none}.login .box.cadastro-box{max-width:520px}.user-role{text-transform:none}.lead-box{background:rgba(0,43,91,.06);border:1px solid rgba(0,43,91,.12);border-radius:18px;padding:20px;margin:18px 0}.dark-mode .lead-box{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
.top .desktop-nav a[href*="tipo=locatario"]{font-weight:800}.mobile-drawer nav a[href*="tipo=locatario"]{font-weight:800}
.form-note{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.35}.form-grid{background:#fff;border-radius:14px;padding:24px;box-shadow:0 8px 25px #001a3d12;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{font-weight:700}.form-grid input,.form-grid select{width:100%;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-top:6px}.form-grid input:disabled{background:#f1f5f9;color:#64748b;cursor:not-allowed}.form-actions{grid-column:1/-1}.dark-mode .form-grid{background:#0f1b2e}.dark-mode .form-grid input,.dark-mode .form-grid select{background:#101f35;border-color:#263b5f;color:#fff}.dark-mode .form-grid input:disabled{background:#0b1626;color:#94a3b8}@media(max-width:760px){.form-grid{grid-template-columns:1fr}}

/* V5.8.1 - usuários compacto, dados pessoais refinado e antifraude */
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.page-head h1{margin:0 0 6px}.page-head p{margin:0;color:var(--muted)}
.users-list{display:grid;gap:14px}.user-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px #001a3d10;padding:16px}.user-main{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:start}.user-main h3{margin:0 0 8px;font-size:20px}.user-main p{margin:5px 0}.verify-line{display:flex;flex-wrap:wrap;gap:8px;color:#475569}.verify-line span{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.user-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.user-edit-row{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px;align-items:end}.user-edit-row label{font-weight:800;color:#0f172a}.user-edit-row select{display:block;min-width:190px;margin-top:6px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff}.profile-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 30px #001a3d12;padding:24px;max-width:1050px}.profile-section{padding:18px;border:1px solid #eef2f7;border-radius:16px;margin-bottom:16px;background:linear-gradient(180deg,#fff,#fbfdff)}.profile-section h3{margin:0 0 6px;color:var(--blue)}.profile-section p{margin:0 0 16px;color:var(--muted)}.clean-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.clean-grid label{font-weight:800}.clean-grid input{margin-top:7px}.clean-grid input:disabled{background:#eef2f7;color:#64748b;border-color:#dbe3ef}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.btn-mini{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:9px;background:var(--blue);color:#fff;font-weight:800;border:0}.btn-mini.danger{background:var(--red)}
html.dark-mode .user-card,html.dark-mode .profile-card,html.dark-mode .profile-section{background:#0f1b2d;border-color:#243247;color:#e5e7eb;box-shadow:none}html.dark-mode .profile-section{background:linear-gradient(180deg,#0f1b2d,#0b1424)}html.dark-mode .page-head p,html.dark-mode .profile-section p{color:#94a3b8}html.dark-mode .verify-line span{background:#172554;border-color:#263b70;color:#dbeafe}html.dark-mode .user-edit-row{border-color:#243247}html.dark-mode .user-edit-row label,.dark-mode .clean-grid label{color:#e5e7eb}html.dark-mode .user-edit-row select,html.dark-mode .clean-grid input{background:#111f33;color:#e5e7eb;border-color:#304157}html.dark-mode .clean-grid input:disabled{background:#0a1322;color:#94a3b8;border-color:#243247}
@media(max-width:900px){.user-main{grid-template-columns:1fr}.user-actions{justify-content:flex-start}.clean-grid{grid-template-columns:1fr}.user-edit-row select{min-width:100%;width:100%}.user-edit-row .btn{width:100%}.profile-card{padding:16px}.content{overflow-x:hidden}}

/* V5.8.2 - limpeza CRECI manual e Dados pessoais profissional */
.users-list{max-width:1180px}.user-card{padding:14px 16px}.user-main{grid-template-columns:minmax(0,1fr) auto}.user-main h3{font-size:18px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.user-main p{font-size:14px;line-height:1.45}.verify-line span{font-size:11px;text-transform:uppercase;letter-spacing:.02em}.user-actions .btn-mini{white-space:nowrap}.user-edit-row{background:#f8fafc;border:1px solid #edf2f7;border-radius:12px;padding:12px;margin-top:12px}.user-edit-row label{font-size:13px}.user-edit-row select{min-width:165px;padding:10px 12px}.user-edit-row .btn{padding:11px 15px}
.profile-card{max-width:1120px;margin-top:18px;padding:0;border:0;background:transparent;box-shadow:none}.profile-section{position:relative;background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:24px;margin-bottom:18px;box-shadow:0 14px 34px rgba(0,26,61,.08);overflow:hidden}.profile-section:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,var(--blue),var(--red))}.profile-section h3{font-size:22px;margin:0 0 8px;color:var(--blue)}.profile-section p{margin:0 0 20px;color:#64748b;line-height:1.5}.clean-grid{display:grid!important;grid-template-columns:repeat(2,minmax(240px,1fr));gap:18px}.clean-grid label{display:block;font-size:14px;font-weight:900;color:#10203b}.clean-grid input{width:100%;display:block;margin-top:8px;padding:14px 15px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;color:#0f172a;font-size:15px;outline:none;transition:border .2s,box-shadow .2s,background .2s}.clean-grid input:focus{border-color:#0b4aa2;box-shadow:0 0 0 4px rgba(11,74,162,.10)}.clean-grid input:disabled{background:#f1f5f9;color:#475569;border-color:#dbe3ef;cursor:not-allowed}.form-note{display:block;margin-top:6px;color:#64748b;font-size:12px}.profile-card .form-actions{display:flex;justify-content:flex-end;background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:18px 24px;box-shadow:0 14px 34px rgba(0,26,61,.06)}.profile-card .form-actions .btn{min-width:210px}.okmsg,.alert{max-width:1120px;border-radius:14px;padding:14px 16px;font-weight:700}
html.dark-mode .user-edit-row{background:#0b1424;border-color:#243247}html.dark-mode .profile-card{background:transparent}html.dark-mode .profile-section,html.dark-mode .profile-card .form-actions{background:#0f1b2d;border-color:#243247;box-shadow:none}html.dark-mode .profile-section h3{color:#dbeafe}html.dark-mode .profile-section p{color:#94a3b8}html.dark-mode .clean-grid label{color:#e5e7eb}html.dark-mode .clean-grid input{background:#111f33;color:#e5e7eb;border-color:#304157}html.dark-mode .clean-grid input:disabled{background:#0a1322;color:#94a3b8;border-color:#243247}
@media(max-width:900px){.user-main{grid-template-columns:1fr}.user-actions{justify-content:flex-start}.user-edit-row{display:grid;grid-template-columns:1fr;align-items:stretch}.user-edit-row select,.user-edit-row .btn{width:100%;min-width:0}.clean-grid{grid-template-columns:1fr!important}.profile-section{padding:20px 16px}.profile-card .form-actions{padding:16px}.profile-card .form-actions .btn{width:100%}}

/* V5.8.3 - Dados pessoais e foto de perfil */
.profile-shell{display:grid;gap:20px;max-width:1180px;width:100%}.form-panel{background:var(--card,#fff);border:1px solid var(--border,rgba(11,35,72,.12));border-radius:22px;padding:22px;box-shadow:0 18px 45px rgba(0,0,0,.08)}body.dark .form-panel,[data-theme="dark"] .form-panel{background:#102033;border-color:#274462;box-shadow:0 18px 50px rgba(0,0,0,.25)}.profile-hero-card{padding:24px}.profile-avatar-block{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.profile-avatar-xl{width:116px;height:116px;flex:0 0 116px}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;object-fit:cover;background:#e8eef8;color:#0b3470;font-weight:900;border:3px solid rgba(255,255,255,.8);box-shadow:0 10px 25px rgba(0,0,0,.16)}.avatar-sm{width:38px;height:38px;font-size:13px}.avatar-md{width:58px;height:58px;font-size:18px}.avatar-xl{width:116px;height:116px;font-size:38px}.avatar-empty span{display:block}.profile-hero-card h2{margin:0 0 6px;font-size:28px;color:var(--text,#001a3d)}.profile-hero-card p{margin:0 0 12px;color:var(--muted,#65758b)}body.dark .profile-hero-card h2,[data-theme="dark"] .profile-hero-card h2{color:#fff}body.dark .profile-hero-card p,[data-theme="dark"] .profile-hero-card p{color:#cbd5e1}.file-btn{display:inline-flex!important;align-items:center;gap:8px;border-radius:14px;background:#0b3470;color:#fff!important;padding:12px 16px;font-weight:800;cursor:pointer;margin:6px 0 8px}.file-btn input{display:none}.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.section-title-row h3{font-size:22px;margin:0 0 6px;color:var(--text,#001a3d)}.section-title-row p{margin:0;color:var(--muted,#64748b)}body.dark .section-title-row h3,[data-theme="dark"] .section-title-row h3{color:#fff}body.dark .section-title-row p,[data-theme="dark"] .section-title-row p{color:#cbd5e1}.lock-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:8px 12px;background:#e9f2ff;color:#0b3470;font-weight:900}.profile-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important}.profile-grid label{display:flex!important;flex-direction:column!important;gap:8px!important;font-weight:800;color:var(--text,#001a3d)}body.dark .profile-grid label,[data-theme="dark"] .profile-grid label{color:#fff}.profile-grid input,.profile-grid select{width:100%!important;min-height:48px!important;border-radius:12px!important;border:1px solid var(--border,#d5dfed)!important;background:var(--input,#fff)!important;color:var(--text,#001a3d)!important;padding:0 14px!important;font-size:15px!important}.profile-grid input:disabled{background:#edf2f7!important;color:#64748b!important;cursor:not-allowed}body.dark .profile-grid input,body.dark .profile-grid select,[data-theme="dark"] .profile-grid input,[data-theme="dark"] .profile-grid select{background:#14263b!important;border-color:#33506e!important;color:#fff!important}body.dark .profile-grid input:disabled,[data-theme="dark"] .profile-grid input:disabled{background:#263342!important;color:#aeb8c6!important}.form-note{display:block;color:var(--muted,#64748b);font-size:13px}.sticky-actions{display:flex;justify-content:flex-end;padding:0 4px 10px}.big-btn{min-height:50px;padding:0 22px!important;border-radius:14px!important}.user-main{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}.user-avatar-cell{display:flex;align-items:center;justify-content:center}.user-info-cell{min-width:0}.user-info-cell p{overflow-wrap:anywhere}.users-list .avatar{background:#e9f2ff}.theme-dark .avatar-empty,body.dark .avatar-empty,[data-theme="dark"] .avatar-empty{background:#1e3a5f;color:#fff;border-color:#274462}@media(max-width:900px){.profile-grid{grid-template-columns:1fr 1fr}.user-main{grid-template-columns:auto 1fr}.user-actions{grid-column:1/-1;justify-content:flex-start!important}.profile-avatar-block{align-items:flex-start}}@media(max-width:620px){.profile-grid{grid-template-columns:1fr}.form-panel{padding:16px;border-radius:18px}.profile-avatar-block{justify-content:center;text-align:center}.profile-avatar-xl{margin:auto}.sticky-actions{justify-content:stretch}.sticky-actions .btn{width:100%}.section-title-row{flex-direction:column}.user-main{grid-template-columns:1fr;text-align:left}.user-avatar-cell{justify-content:flex-start}}

/* V5.8.4 - Dados pessoais realmente estilizado, avatar menor e leads com excluir */
.personal-page{max-width:1180px;width:100%;display:grid;gap:22px;margin-top:18px}.personal-hero,.personal-card,.admin-card{background:#fff;border:1px solid #dbe5f1;border-radius:24px;box-shadow:0 18px 45px rgba(0,26,61,.10);padding:24px}.personal-hero{display:flex;align-items:center;gap:24px;background:linear-gradient(135deg,#ffffff,#f6f9ff)}.personal-avatar-wrap{width:104px;height:104px;flex:0 0 104px;display:grid;place-items:center}.personal-avatar-wrap .avatar,.personal-page .avatar.avatar-xl{width:104px!important;height:104px!important;max-width:104px!important;max-height:104px!important;border-radius:999px!important;object-fit:cover!important;display:inline-flex!important}.personal-hero-info{min-width:0}.personal-kicker{display:inline-block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#0b4aa2;margin-bottom:5px}.personal-hero h2{font-size:30px;line-height:1.1;margin:0 0 8px;color:#061b3d}.personal-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.profile-pill{display:inline-flex;align-items:center;border-radius:999px;background:#eaf2ff;color:#0b3470;padding:6px 10px;font-size:13px;font-weight:900}.profile-upload-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;background:#0b3470;color:#fff!important;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer;box-shadow:0 10px 22px rgba(11,52,112,.18)}.profile-upload-btn input{display:none!important}.profile-help{margin:10px 0 0;color:#64748b;font-size:13px}.personal-card{position:relative;overflow:hidden}.personal-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#0b3470,#df001b)}.personal-card-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.personal-card-head h3{font-size:24px;line-height:1.1;margin:0 0 8px;color:#061b3d}.personal-card-head p{margin:0;color:#64748b;line-height:1.5}.personal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.personal-grid label{display:flex!important;flex-direction:column!important;gap:8px!important;font-weight:900;color:#10203b}.personal-grid input,.personal-grid select{width:100%!important;min-height:50px!important;border-radius:14px!important;border:1px solid #d6e1ef!important;background:#fff!important;color:#0f172a!important;padding:0 15px!important;font-size:15px!important;outline:none!important;box-sizing:border-box!important}.personal-grid input:focus{border-color:#0b4aa2!important;box-shadow:0 0 0 4px rgba(11,74,162,.10)!important}.personal-grid input:disabled{background:#eef3f9!important;color:#64748b!important;border-color:#dbe3ef!important;cursor:not-allowed!important}.lock-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:9px 13px;background:#fff3cd;color:#7a4b00;font-weight:900;border:1px solid #ffe6a0}.personal-actions{display:flex;justify-content:flex-end}.personal-actions .btn{min-height:52px;border-radius:15px!important;padding:0 26px!important;font-weight:900!important}.users-list .avatar.avatar-md,.user-avatar-cell .avatar{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;border-radius:999px!important;object-fit:cover!important;font-size:14px!important}.users-list .avatar.avatar-sm{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}.user-card{overflow:hidden}.table-responsive{width:100%;overflow-x:auto}.leads-card{margin-bottom:22px}.leads-table td{vertical-align:middle}.leads-table td:nth-child(4),.leads-table td:nth-child(5){max-width:360px;white-space:normal}.btn-mini.danger{background:#dc2626!important;color:#fff!important;border:0}.btn-mini.danger:hover{filter:brightness(.95)}
html.dark-mode .personal-hero,html.dark-mode .personal-card,html.dark-mode .admin-card{background:#0f1b2d!important;border-color:#24364f!important;box-shadow:none!important;color:#e5e7eb!important}html.dark-mode .personal-hero{background:linear-gradient(135deg,#0f1b2d,#0b1424)!important}html.dark-mode .personal-kicker{color:#93c5fd!important}html.dark-mode .personal-hero h2,html.dark-mode .personal-card-head h3,html.dark-mode .personal-grid label{color:#fff!important}html.dark-mode .personal-card-head p,html.dark-mode .profile-help{color:#b6c4d8!important}html.dark-mode .profile-pill{background:#17345b!important;color:#dbeafe!important}html.dark-mode .personal-grid input,html.dark-mode .personal-grid select{background:#14263b!important;border-color:#33506e!important;color:#fff!important}html.dark-mode .personal-grid input:disabled{background:#263342!important;color:#aeb8c6!important;border-color:#394b61!important}html.dark-mode .lock-pill{background:#1d2f4c!important;color:#fde68a!important;border-color:#334155!important}html.dark-mode .profile-upload-btn{background:#4ea1ff!important;color:#001a3d!important}
@media(max-width:980px){.personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-hero{align-items:flex-start}}@media(max-width:620px){.personal-hero{flex-direction:column;text-align:center;align-items:center}.personal-badges{justify-content:center}.personal-card,.personal-hero{padding:18px;border-radius:20px}.personal-grid{grid-template-columns:1fr}.personal-card-head{flex-direction:column}.personal-actions .btn{width:100%}.personal-avatar-wrap,.personal-avatar-wrap .avatar,.personal-page .avatar.avatar-xl{width:92px!important;height:92px!important;max-width:92px!important;max-height:92px!important}}


/* V5.9 - leads por anunciante, carrossel suave e anunciante público */
.advertiser-box{display:flex;flex-direction:column;gap:4px;background:linear-gradient(135deg,#eef5ff,#fff);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:14px 0 18px;color:var(--text)}
.advertiser-box strong{color:var(--blue);text-transform:uppercase;font-size:12px;letter-spacing:.08em}.advertiser-box span{font-weight:900;font-size:18px}.advertiser-box small{color:var(--muted);font-weight:800}.lead-interest-form input:required,.lead-interest-form textarea:required{border-left:4px solid var(--blue)}
.featured-carousel{scroll-behavior:smooth;will-change:scroll-position}.featured-carousel.auto-running .featured-track{transition:transform .45s ease}.carousel-btn{transition:transform .2s ease, background .2s ease}.carousel-btn:hover{transform:translateY(-2px)}
html.dark-mode .advertiser-box{background:linear-gradient(135deg,#13253d,#0c1727);border-color:#284466;color:#fff}html.dark-mode .advertiser-box strong,html.dark-mode .advertiser-box small{color:#bcd6ff}
@media(max-width:700px){.advertiser-box span{font-size:16px}.leads-table td,.leads-table th{min-width:130px}}

/* V5.9.3 - exclusão de contas e redistribuição */
.danger-account-card{border:1px solid rgba(220,38,38,.22);box-shadow:0 18px 42px rgba(220,38,38,.07)}
.lock-pill.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.account-delete-grid{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:18px;align-items:stretch;margin-top:14px}
.associated-box{border-radius:18px;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid rgba(15,35,72,.10);padding:18px;display:flex;flex-direction:column;gap:6px}
.associated-box strong{font-size:14px;color:#334155}.associated-box b{font-size:38px;color:#0b2348;line-height:1}.associated-box small{color:#64748b}
.delete-account-form{border-radius:18px;background:#fff;border:1px solid rgba(15,35,72,.10);padding:18px;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:end}
.btn.danger,.btn-mini.danger{background:#dc2626!important;color:#fff!important;border-color:#dc2626!important}.btn.danger:hover,.btn-mini.danger:hover{filter:brightness(.94)}
.user-delete-row{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:10px;padding:12px 14px;border-top:1px dashed rgba(15,35,72,.18);font-size:13px;color:#64748b}
.user-delete-row span b{color:#0f172a}
.dark-mode .associated-box{background:linear-gradient(135deg,#101827,#0b2348);border-color:rgba(255,255,255,.10)}
.dark-mode .associated-box strong,.dark-mode .associated-box b{color:#fff}.dark-mode .associated-box small{color:#cbd5e1}
.dark-mode .delete-account-form{background:#0f172a;border-color:rgba(255,255,255,.10)}
.dark-mode .user-delete-row{border-color:rgba(255,255,255,.12);color:#cbd5e1}.dark-mode .user-delete-row span b{color:#fff}
@media(max-width:760px){.account-delete-grid,.delete-account-form{grid-template-columns:1fr}.user-delete-row{flex-direction:column;align-items:flex-start}.user-delete-row .btn-mini{width:100%;text-align:center}}

/* V5.9.4 - Refinamento Dados Pessoais */
.personal-actions{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  margin:28px 0 34px!important;
  padding:0!important;
}
.personal-actions .btn,
.personal-actions .big-btn{
  min-width:260px!important;
  min-height:54px!important;
  border-radius:16px!important;
  box-shadow:0 14px 28px rgba(78,161,255,.18)!important;
}
.delete-account-form{
  border-radius:20px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid #dbe5f1!important;
  padding:20px!important;
  display:grid!important;
  grid-template-columns:minmax(240px,1fr) auto!important;
  gap:16px!important;
  align-items:end!important;
}
.delete-account-form label{
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  font-weight:900!important;
  color:#10203b!important;
}
.delete-account-form input[name="confirmar_exclusao"]{
  width:100%!important;
  min-height:50px!important;
  border-radius:14px!important;
  border:1px solid #d6e1ef!important;
  background:#fff!important;
  color:#0f172a!important;
  padding:0 15px!important;
  font-size:15px!important;
  outline:none!important;
  box-sizing:border-box!important;
}
.delete-account-form input[name="confirmar_exclusao"]:focus{
  border-color:#0b4aa2!important;
  box-shadow:0 0 0 4px rgba(11,74,162,.10)!important;
}
.delete-account-form .btn.danger{
  min-height:50px!important;
  border-radius:14px!important;
  padding:0 22px!important;
  white-space:nowrap!important;
}
.account-delete-grid{
  display:grid!important;
  grid-template-columns:320px 1fr!important;
  gap:18px!important;
  align-items:stretch!important;
}
.associated-box{
  border-radius:20px!important;
  padding:20px!important;
}
html.dark-mode .delete-account-form{
  background:#0b1424!important;
  border-color:#24364f!important;
}
html.dark-mode .delete-account-form label{
  color:#fff!important;
}
html.dark-mode .delete-account-form input[name="confirmar_exclusao"]{
  background:#14263b!important;
  border-color:#33506e!important;
  color:#fff!important;
}
@media(max-width:760px){
  .personal-actions{margin:22px 0 28px!important;}
  .personal-actions .btn{width:100%!important;min-width:0!important;}
  .account-delete-grid,
  .delete-account-form{grid-template-columns:1fr!important;}
  .delete-account-form .btn.danger{width:100%!important;}
}

/* V5.9.6 - indicadores do menu lateral */
.panel aside a{position:relative;display:flex;align-items:center;gap:6px;justify-content:flex-start}
.panel aside a .menu-badge{margin-left:auto;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#e50914;color:#fff;font-size:12px;font-weight:900;line-height:1;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.panel aside a .menu-dot{width:9px;height:9px;border-radius:999px;background:#e50914;display:inline-block;margin-left:auto;box-shadow:0 0 0 3px rgba(229,9,20,.15)}
.light-mode .panel aside a .menu-badge,.light-mode .panel aside a .menu-dot{box-shadow:0 0 0 2px rgba(0,0,0,.06)}
