/* 
  CAFINVEST - TEMA CLARO (MODERNO)
  Plataforma de investimento - Design profissional e acessível
  Congruente com tema escuro
*/

:root {
  --primary-blue: #006cb4;
  --primary-dark: #004472;
  --accent-gold: #ff9900;
  --light-bg: #ffffff;
  --light-bg-2: #f5f9ff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-light: #e0e0e0;
  --success: #00ff00;
  --danger: #ff0000;
}

/* AUTH / STATUS PAGES */
body.auth-page,
body.status-page {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4fb 100%);
  color: #24435f;
}

.auth-page .form-container,
.status-page .main,
.auth-page .container {
  width: min(720px, calc(100% - 32px));
  margin: 36px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(0, 68, 114, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(0, 68, 114, 0.1);
}

.auth-page .login-container,
.auth-page .login-form,
.auth-page .registration-form,
.auth-page .recovery-container {
  width: 100%;
}

.auth-page .registration-form,
.auth-page .recovery-container {
  display: none;
}

.auth-page .text-center,
.status-page .main {
  text-align: center;
}

.auth-page h2,
.auth-page .container h2,
.status-page .main h1 {
  margin: 0 0 10px;
  color: var(--primary-blue);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.auth-page p,
.status-page .main p {
  color: #4e6174;
  font-size: 16px;
  line-height: 1.65;
}

.auth-page form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-page .form-group {
  display: grid;
  gap: 7px;
}

.auth-page label {
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-page input,
.auth-page select,
.auth-page textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 108, 180, 0.28);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
}

.auth-page button,
.auth-page input[type="submit"] {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-page button:hover,
.auth-page input[type="submit"]:hover {
  background: var(--primary-dark);
}

.auth-page .switch-form-link,
.status-page .main a {
  color: var(--primary-blue);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.auth-page .switch-form-link:hover,
.status-page .main a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.status-page .status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(0, 108, 180, 0.1);
  color: var(--primary-blue);
  font-size: 34px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .auth-page .form-container,
  .status-page .main,
  .auth-page .container {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 22px 16px;
    border-radius: 14px;
  }
}

/* CONTACT PAGE */
body.contact-page {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4fb 100%);
  color: #24435f;
}

.contact-page .main {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(0, 108, 180, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(0, 68, 114, 0.1);
}

.contact-page .main > .roadmap:first-child h1 {
  margin: 0 0 18px;
  color: var(--primary-blue);
  font-size: clamp(34px, 4vw, 50px);
  text-align: center;
  line-height: 1.12;
}

.contact-page .main p {
  color: #4e6174;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.contact-page .main a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}

.contact-page .main a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-page .main a[aria-label="Chat on WhatsApp"] img {
  display: inline-block;
  max-width: 220px;
  height: auto;
  margin: 8px auto 18px;
}

.contact-page .formulario {
  width: min(620px, 100%);
  margin: 22px auto 34px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(0, 108, 180, 0.16);
  border-radius: 16px;
  background: rgba(245, 249, 255, 0.92);
}

.contact-page .formulario h2 {
  margin: 16px 0 8px;
  color: var(--primary-dark);
  font-size: 17px;
  text-align: left;
}

.contact-page .formulario input[type="text"],
.contact-page .formulario textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 108, 180, 0.28);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
}

.contact-page .formulario textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-page .formulario .submit {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.contact-page .formulario .submit:hover {
  background: var(--primary-dark);
}

.contact-page .main hr {
  border: 0;
  height: 2px;
  margin: 30px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 108, 180, 0.24), transparent);
}

.contact-page table.roadmap {
  width: 100%;
  margin: 22px auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 108, 180, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.contact-page table.roadmap th,
.contact-page table.roadmap td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 108, 180, 0.1);
  color: #4e6174;
  text-align: left;
}

.contact-page table.roadmap th {
  background: rgba(0, 108, 180, 0.08);
  color: var(--primary-dark);
}

.contact-page table.roadmap tr:last-child td {
  border-bottom: 0;
}

.contact-page .titulo {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 768px) {
  .contact-page .main {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 22px 16px;
  }

  .contact-page table.roadmap {
    display: block;
    overflow-x: auto;
  }
}

.contact-page .main {
  width: min(1828px, calc(100% - 36px));
  border-color: rgba(0, 68, 114, 0.34);
}

.contact-page .main > .roadmap:first-child,
.contact-page .main > p,
.contact-page .main > br {
  display: block;
  text-align: center;
}

.contact-page .formulario {
  width: min(1468px, 82vw);
  max-width: 100%;
  margin: 26px auto 32px;
  border-color: rgba(0, 68, 114, 0.34);
  background: #eaf3fb;
}

.contact-page .formulario form {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-page .formulario h2 {
  text-align: center;
  color: var(--primary-dark);
}

.contact-page .formulario input[type="text"],
.contact-page .formulario textarea {
  text-align: center;
  border-color: rgba(0, 68, 114, 0.42);
  background: rgba(255, 255, 255, 0.86);
}

.contact-page .formulario .submit {
  display: block;
  width: auto;
  min-height: 32px;
  margin: 12px auto 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--primary-blue);
  color: #ffffff;
}

.contact-page table.roadmap {
  table-layout: auto;
  border-color: rgba(0, 68, 114, 0.34);
  background: rgba(255, 255, 255, 0.78);
}

.contact-page table.roadmap th,
.contact-page table.roadmap td {
  text-align: center;
}

.contact-page table.roadmap:nth-of-type(1) {
  width: min(320px, 100%);
}

.contact-page table.roadmap:nth-of-type(2) {
  width: min(620px, 100%);
}

.contact-page table.roadmap:nth-of-type(3) {
  width: min(360px, 100%);
}

.contact-page table.roadmap:nth-of-type(2) td:nth-child(2) {
  text-align: left;
}

.contact-page table.roadmap .titulo {
  display: inline-block;
  font-size: clamp(22px, 2vw, 30px);
  border-bottom: 2px solid var(--primary-blue);
}

/* PRIVACY PAGE */
body.privacy-page {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4fb 100%);
  color: #24435f;
}

.privacy-page .main {
  width: min(980px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(0, 108, 180, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(0, 68, 114, 0.1);
}

.privacy-page .main > h1:first-of-type {
  margin: 0 0 24px;
  color: var(--primary-blue);
  font-size: clamp(34px, 4vw, 52px);
  text-align: center;
  line-height: 1.12;
}

.privacy-page .main h2 {
  margin: 30px 0 12px;
  color: var(--primary-dark);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
}

.privacy-page .main p,
.privacy-page .main li,
.privacy-page .main span {
  color: #4e6174 !important;
  font-size: 16px;
  line-height: 1.8;
}

.privacy-page .main ol {
  padding-left: 24px;
  margin: 14px 0 22px;
}

.privacy-page .main li {
  margin: 8px 0;
}

.privacy-page .main a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}

.privacy-page .main a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.privacy-page .main hr {
  border: 0;
  height: 2px;
  margin: 0 0 24px;
  background: linear-gradient(90deg, transparent, rgba(0, 108, 180, 0.24), transparent);
}

@media (max-width: 768px) {
  .privacy-page .main {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .privacy-page .main p,
  .privacy-page .main li,
  .privacy-page .main span {
    font-size: 15px;
  }
}

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

html {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  background-attachment: fixed;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

body.home-page {
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--light-bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* THEME SWITCHER */
.caf-theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  pointer-events: auto;
}

/* LANGUAGE SWITCHER (same visual family as theme switcher) */
.language-switcher {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid var(--border-light) !important;
}

.language-switcher .lang-slider {
  background-color: #ccc !important;
  border: 1px solid var(--border-light) !important;
}

.language-switcher .lang-slider:before {
  background-color: white !important;
  color: var(--primary-blue) !important;
}

.language-switcher input:checked + .lang-slider {
  background-color: #e8f5e9 !important;
  border-color: var(--primary-dark) !important;
}

.caf-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.caf-switch input {
  opacity: 0;
  width: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
  background-color: var(--primary-blue);
  border-color: var(--primary-dark);
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: white;
}

/* HEADER */
header {
  background: var(--light-bg);
  border-bottom: 2px solid var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

div.header {
  padding: 20px;
  text-align: center;
  background: var(--light-bg);
  transition: all 0.3s ease;
}

div.header.active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

div.fake {
  visibility: hidden;
  height: 0;
}

div.fake.active {
  visibility: visible;
  height: 80px;
}

/* Header Typography */
.header h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 10px 0 5px 0;
  letter-spacing: 1px;
}

.header.active h1 {
  font-size: 24px;
}

.header h2 {
  font-size: 18px;
  font-weight: 400;
  color: var(--primary-dark);
  margin: 0;
}

.header .navitemssp h2,
.header .dropbtn h2,
.header .dropdown-content a,
.header .navitemssp.logout,
.header .navitemssp.login h2 {
  color: var(--primary-dark) !important;
}

/* Navigation */
div.header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 30px;
}

div.header.active nav {
  gap: 15px;
  margin-top: 0;
}

div.header nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

div.header nav li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

div.header nav li:hover {
  transform: translateY(-2px);
}

div.header nav li strong {
  font-size: 20px;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

.header a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 15px;
}

.header a:hover {
  color: var(--primary-dark);
}

img.logo {
  width: clamp(68px, 8.2vw, 106px);
  height: clamp(86px, 10.4vw, 136px);
  object-fit: cover;
  padding: 0;
  border: none;
  border-radius: 50% / 42%;
  background: transparent;
  clip-path: ellipse(46% 50% at 50% 50%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  filter: drop-shadow(0 1px 6px rgba(0, 108, 180, 0.12));
}

/* CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  height: 300px;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  text-align: center;
  animation: slideIn 0.5s ease;
}

.slide.active {
  display: flex;
}

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

.slide-content {
  text-align: center;
  color: white;
  animation: fadeInUp 0.6s ease;
  max-width: 980px;
  margin: 0 auto;
}

.slide > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

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

.slide-content h2 {
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.08;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  opacity: 0.95;
}

.carousel-container .prev,
.carousel-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-container .prev:hover,
.carousel-container .next:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-container .prev {
  left: 20px;
}

.carousel-container .next {
  right: 20px;
}

/* MAJOR INDEXES */
div.parent {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 15px;
  margin: 30px auto;
  max-width: 95%;
  border: 1px solid #d9e3ef;
  overflow: hidden;
}

div.majorindexes {
  display: flex;
  gap: 20px;
  color: #1f2c3a;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  animation: scroll-horizontal 30s linear infinite;
  white-space: nowrap;
  padding: 5px 0;
}

@keyframes scroll-horizontal {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

div.majorindexes:hover {
  animation-play-state: paused;
  cursor: pointer;
}

.majorindexes .indexes {
  border-collapse: separate;
  border-spacing: 14px 0;
}

.majorindexes .indexes td {
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
}

.majorindexes .indexes td .ticker-name,
.majorindexes .indexes td .ticker-last {
  display: inline-block;
}

.majorindexes .indexes td .ticker-name {
  color: inherit;
  margin-right: 8px;
}

.majorindexes .indexes td .ticker-last {
  color: #6d8092;
  margin-left: 8px;
}

/* Ticker positive (GREEN) */
.positive,
td.positive {
  color: #00ff00 !important;
  font-weight: bold;
  background: rgba(0, 255, 0, 0.15) !important;
  padding: 2px 6px;
  border-radius: 3px;
  text-shadow: 0 0 2px rgba(0, 255, 0, 0.3);
}

/* Ticker negative (RED) */
.negative,
td.negative {
  color: #ff0000 !important;
  font-weight: bold;
  background: rgba(255, 0, 0, 0.15) !important;
  padding: 2px 6px;
  border-radius: 3px;
  text-shadow: 0 0 2px rgba(255, 0, 0, 0.3);
}

/* MAIN CONTAINER */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

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

/* GREETING SECTION */
.greeting-section {
  margin-bottom: 40px;
}

.greeting-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-blue);
  animation: slideUp 0.6s ease;
}

.greeting-section .greeting-card {
  border-left-color: var(--primary-blue) !important;
}

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

.greeting-card h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.greeting-card .date {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.greeting-card .quote {
  font-size: 16px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
}

/* NEWS SECTION */
.news-section {
  margin-bottom: 40px;
}

.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-light);
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary-blue);
}

.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* CTA SECTION */
.cta-section {
  margin: 60px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 108, 180, 0.2);
  animation: slideUp 0.6s ease;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.cta-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.cta-btn {
  padding: 14px 40px;
  background: var(--accent-gold);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background: #ff8700;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* FOOTER */
.foot {
  background: linear-gradient(to bottom, #f4f8fd, #eaf2fb);
  color: var(--text-dark);
  padding: 50px 20px 30px 20px;
  margin-top: 60px;
  border-top: 3px solid var(--primary-blue);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.footer-section p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--primary-dark);
}

.foot .playstore-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 180px;
  margin-top: 6px;
  overflow: hidden;
}

.foot .playstore-badge,
.foot #playstore-badge {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.versao {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-light);
}

/* SCROLL TO TOP BUTTON */
#topbt {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  padding: 12px 16px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 108, 180, 0.3);
  font-weight: bold;
}

#topbt:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 108, 180, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  html,
  body.home-page {
    overflow-x: hidden;
  }

  body.home-page .main-container {
    padding: 16px 12px;
  }

  .header h1 {
    font-size: 24px;
  }

  div.header nav ul {
    gap: 15px;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .carousel-container {
    height: 200px;
  }

  .slide {
    padding: 18px 56px;
  }

  body.home-page .news-tabs {
    gap: 0;
    justify-content: space-between;
  }

  body.home-page .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .greeting-card {
    padding: 30px 20px;
  }

  .greeting-card h1 {
    font-size: 28px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-card h2 {
    font-size: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html,
  body.home-page {
    overflow-x: hidden;
  }

  body.home-page .news-section,
  body.home-page .tab-content,
  body.home-page .newst {
    overflow-x: hidden;
  }

  div.header nav ul {
    gap: 10px;
    font-size: 12px;
  }

  .header a span {
    display: none;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .carousel-container {
    min-height: 240px;
  }

  .slide {
    padding: 20px 72px 20px 20px;
  }

  .carousel-container .prev {
    left: 12px;
  }

  .carousel-container .next {
    right: 12px;
  }

  .carousel-container .prev,
  .carousel-container .next {
    padding: 10px 15px;
    font-size: 18px;
  }

  .greeting-card h1 {
    font-size: 22px;
  }

  body.home-page .parent {
    max-width: calc(100% - 24px);
    margin: 20px 12px;
  }

  body.home-page .greeting-card,
  body.home-page .news-card {
    width: 100%;
    min-width: 0;
  }

  body.home-page .newst {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  body.home-page .cadanew {
    min-height: 0;
  }

  .cta-btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  #topbt {
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    font-size: 16px;
  }
}

/* DASHBOARD V2 - light theme refinements */
.dashboard-v2 .caf-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}

.dashboard-v2 .caf-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

.dashboard-v2 .caf-switch input:checked + .caf-slider {
  background-color: var(--primary-blue);
  border-color: var(--primary-dark);
}

.dashboard-v2 .caf-switch input:checked + .caf-slider:before {
  transform: translateX(26px);
}

.dashboard-v2 .form-container {
  width: min(1800px, 99%);
  margin: 0 auto 16px;
  padding: 0 10px;
}

.dashboard-v2 .login-container {
  width: 100%;
  margin: 0 auto;
}

.dashboard-v2 .recovery-container {
  width: min(1720px, 99%);
  margin: 12px auto;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 108, 180, 0.2);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
}

.dashboard-v2 .recovery-container h1,
.dashboard-v2 .recovery-container h2 {
  word-break: break-word;
}

.dashboard-v2 .header nav ul {
  gap: 18px;
}

/* EDUCATION PAGES */
body.education-page,
body.education-lesson-page {
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4fb 100%);
  color: #24435f;
}

.education-page .main,
.education-lesson-page .main {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(0, 108, 180, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(0, 68, 114, 0.1);
}

.education-page .main > h1:first-child,
.education-lesson-page .main > h1:first-child {
  margin: 0 0 16px;
  color: var(--primary-blue);
  font-size: clamp(34px, 4vw, 50px);
  text-align: center;
}

.education-page .main > p,
.education-page .main li,
.education-lesson-page .main > p,
.education-lesson-page .main li,
.education-lesson-page .educ p,
.education-lesson-page .educ li {
  color: #4e6174;
  font-size: 16px;
  line-height: 1.8;
}

.education-page .main a,
.education-lesson-page .main a,
.education-lesson-page .educ a {
  color: var(--primary-blue);
}

.education-page .main strong,
.education-lesson-page .main strong,
.education-page .main b,
.education-lesson-page .main b {
  color: var(--primary-dark);
}

.education-page .responsive-video-unique,
.education-lesson-page .responsive-video-unique {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 108, 180, 0.2);
  border-radius: 16px;
  display: block;
  margin: 24px auto;
  background: #dfe8f2;
}

.education-page .subscriber-warning,
.education-lesson-page .subscriber-warning {
  width: min(100%, 860px);
  margin: 0 auto 24px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(0, 108, 180, 0.18);
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.education-page .subscribe-link,
.education-lesson-page .subscribe-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.education-page hr,
.education-lesson-page hr {
  border: 0;
  height: 1px;
  margin: 28px 0;
  background: rgba(0, 108, 180, 0.16);
}

.education-page .roadmap {
  width: min(100%, 760px);
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.education-page .roadmap th {
  padding: 20px 18px 12px;
  background: rgba(0, 108, 180, 0.08);
  text-align: center;
  border-bottom: 1px solid rgba(0, 108, 180, 0.14);
}

.education-page .roadmap td {
  padding: 0;
  border-bottom: 1px solid rgba(0, 108, 180, 0.08);
}

.education-page .roadmap tr:last-child td {
  border-bottom: 0;
}

.education-page .roadmap a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #30506c;
}

.education-page .roadmap a:hover {
  background: rgba(0, 108, 180, 0.08);
  color: var(--primary-blue);
}

.education-page .titulo {
  color: var(--primary-blue);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}

.education-lesson-page .educ {
  margin: 24px auto 0;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(0, 108, 180, 0.14);
  background: rgba(245, 250, 255, 0.92);
}

.education-lesson-page .educ h1,
.education-lesson-page .educ h2,
.education-lesson-page .educ h3 {
  color: var(--primary-blue);
  text-align: center;
  line-height: 1.25;
}

.education-lesson-page .educ h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 22px;
}

.education-lesson-page .educ h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 30px 0 16px;
}

.education-lesson-page .educ h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 24px 0 14px;
}

.education-lesson-page .educ ul {
  padding-left: 24px;
}

.education-lesson-page .educ img {
  display: block;
  max-width: min(100%, 1000px);
  width: auto;
  height: auto;
  margin: 24px auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 68, 114, 0.12);
}

.education-lesson-page .educ em {
  display: block;
  text-align: center;
  color: #6f8398;
}

.education-lesson-page #index {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  display: none;
  border: 1px solid rgba(0, 108, 180, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-blue);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 68, 114, 0.12);
}

.education-lesson-page #index:hover {
  background: var(--primary-blue);
  color: #fff;
}

@media (max-width: 768px) {
  .education-page .main,
  .education-lesson-page .main {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .education-page .roadmap,
  .education-lesson-page .educ {
    width: 100%;
  }

  .education-lesson-page .educ {
    padding: 22px 16px;
  }

  .education-lesson-page #index,
  #topbt {
    bottom: 18px;
    padding: 10px 14px;
  }

  .education-lesson-page #index {
    left: 18px;
  }
}

.dashboard-v2 .header h1 {
  font-size: 48px;
}

.dashboard-v2 .header h2 {
  font-size: 14px;
}

.dashboard-v2 .majorindexes {
  font-size: 13px;
  letter-spacing: 0.8px;
}

.dashboard-v2 #dashPatr canvas,
.dashboard-v2 #dashFlow canvas,
.dashboard-v2 #dashInvest canvas {
  background: rgba(245, 249, 255, 0.9);
  border: 1px solid rgba(0, 108, 180, 0.2);
  border-radius: 12px;
  padding: 8px;
  width: 100% !important;
  max-width: 100% !important;
}

.dashboard-v2 #chart-container-custom,
.dashboard-v2 #flowChartsContainer,
.dashboard-v2 #analysesSection,
.dashboard-v2 #heatmapCarousel {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.dashboard-v2 #flowTableContainer,
.dashboard-v2 #investTableContainer,
.dashboard-v2 #patrimonyTableContainer {
  max-height: 62vh;
  overflow: auto;
}

.dashboard-v2 .table-responsive {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 10px;
  background: #fff;
}

.dashboard-v2 table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.dashboard-v2 table th,
.dashboard-v2 table td {
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 108, 180, 0.1);
}

.dashboard-v2 .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.dashboard-v2 .table-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.dashboard-v2 .table-toolbar .table-search {
  width: min(460px, 100%);
  border: 1px solid rgba(0, 108, 180, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  padding: 8px 10px;
}

.dashboard-v2 .modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(9, 20, 31, 0.42);
  backdrop-filter: blur(2px);
}

.dashboard-v2 .modal.show,
.dashboard-v2 .modal[style*="display: block"] {
  display: block;
}

.dashboard-v2 .modal-dialog,
.dashboard-v2 .modal-content {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  margin: 8vh auto;
}

.dashboard-v2 .modal-content {
  position: relative;
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  border: 1px solid rgba(0, 108, 180, 0.25);
  box-shadow: 0 10px 30px rgba(0, 68, 114, 0.2);
}

.dashboard-v2 .modal .close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dashboard-v2 .foot {
  background: linear-gradient(to bottom, #f4f8fd, #eaf2fb);
  border-top: 3px solid var(--primary-blue);
  text-align: center;
  padding: 28px 16px;
  margin-top: 40px;
}

.dashboard-v2 .foot p {
  display: block;
  margin: 6px 0;
}

.dashboard-v2 .foot span.foott {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 700;
}

.dashboard-v2 .foot span.versao {
  color: var(--text-light);
  font-size: 12px;
  word-spacing: normal;
}

.dashboard-v2 .foot a {
  color: var(--text-light);
}

.dashboard-v2 .foot a:hover {
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .dashboard-v2 .kpi-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dashboard-v2 .header h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .dashboard-v2 .recovery-container {
    width: 99%;
    padding: 10px;
    border-radius: 10px;
  }

  .dashboard-v2 .kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-v2 .table-toolbar {
    align-items: stretch;
  }

  .dashboard-v2 .table-toolbar .table-search,
  .dashboard-v2 .table-toolbar button {
    width: 100%;
  }

  .dashboard-v2 table {
    min-width: 620px;
  }

  .dashboard-v2 .header nav {
    gap: 12px;
  }

  .dashboard-v2 .header nav ul {
    gap: 12px;
  }

  .dashboard-v2 .header h1 {
    font-size: 32px;
  }
}

/* DASHBOARD V2 - screenshot-driven polish */
.dashboard-v2 {
  font-size: 15px;
}

.dashboard-v2 .form-container,
.dashboard-v2 .login-container {
  width: 100%;
}

.dashboard-v2 .header .navitemssp {
  display: inline-block;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-v2 .header .navitemssp h1 {
  font-size: clamp(38px, 4vw, 52px);
  margin: 0;
}

.dashboard-v2 .header .navitemssp h2 {
  font-size: clamp(16px, 1.5vw, 24px);
  margin: 0;
}

.dashboard-v2 .user-options .submenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dashboard-v2 .user-options .submenu .navitemssp {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 108, 180, 0.08);
}

.dashboard-v2 .recovery-container label,
.dashboard-v2 .recovery-container p,
.dashboard-v2 .recovery-container span,
.dashboard-v2 .recovery-container th,
.dashboard-v2 .recovery-container td {
  font-size: 13px;
}

.dashboard-v2 .recovery-container input,
.dashboard-v2 .recovery-container select,
.dashboard-v2 .recovery-container textarea {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 108, 180, 0.35);
  font-size: 13px;
  line-height: 1.2;
}

.dashboard-v2 .recovery-container button,
.dashboard-v2 .recovery-container .btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-v2 .recovery-container table {
  min-width: 820px;
}

.dashboard-v2 .recovery-container .table-responsive {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .dashboard-v2 {
    font-size: 14px;
  }

  .dashboard-v2 .header .navitemssp h1 {
    font-size: 34px;
  }

  .dashboard-v2 .header .navitemssp h2 {
    font-size: 15px;
  }

  .dashboard-v2 .recovery-container table {
    min-width: 640px;
  }
}

/* DASHBOARD V2 - header balance override */
.dashboard-v2 .header {
  padding: 18px 16px 14px;
}

.dashboard-v2 .header nav {
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.dashboard-v2 .header nav ul {
  gap: 12px 18px;
}

.dashboard-v2 img.logo {
  width: clamp(68px, 7vw, 96px);
  height: clamp(86px, 9vw, 122px);
  object-fit: cover;
  padding: 0;
  border: none;
  border-radius: 50% / 42%;
  clip-path: ellipse(46% 50% at 50% 50%);
}

.dashboard-v2 .header .navitemssp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dashboard-v2 .header .navitemssp h1 {
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 0;
}

.dashboard-v2 .header .navitemssp h2 {
  font-size: clamp(12px, 1.2vw, 16px);
  margin: 0;
}

.dashboard-v2 .user-options {
  width: 100%;
}

.dashboard-v2 .user-options > ul,
.dashboard-v2 .user-options .submenu {
  justify-content: center;
  flex-wrap: wrap;
}

.dashboard-v2 .user-options .submenu {
  margin-top: 6px;
  gap: 6px;
}

.dashboard-v2 .user-options .submenu .navitemssp {
  padding: 4px 10px;
  font-size: 12px;
}

.dashboard-v2 .navitemssp[data-dash-nav] {
  border: 0;
  cursor: pointer;
  color: var(--primary-dark);
  font-family: inherit;
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.dashboard-v2 .navitemssp[data-dash-nav]:hover,
.dashboard-v2 .navitemssp[data-dash-nav].is-active {
  background: rgba(0, 108, 180, 0.14);
  color: var(--primary-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 108, 180, 0.26);
}

.dashboard-v2 .user-options .logout {
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: rgba(0, 108, 180, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-v2 .form-container {
  width: min(1840px, calc(100% - 24px));
  margin: 0 auto 24px;
  padding: 0;
}

.dashboard-v2 .login-container,
.dashboard-v2 .content {
  width: 100%;
  margin: 0 auto;
}

.dashboard-v2 .recovery-container,
.dashboard-v2 .content .cabeca {
  width: min(1220px, 100%);
  margin: 16px auto;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 68, 114, 0.08);
}

.dashboard-v2 #dashHome {
  width: min(860px, 100%);
}

.dashboard-v2 #dashPatr,
.dashboard-v2 #dashFlow,
.dashboard-v2 #dashInvest,
.dashboard-v2 .content .cabeca {
  width: min(1220px, 100%);
}

.dashboard-v2 .recovery-container h1,
.dashboard-v2 .content .cabeca h1 {
  color: var(--primary-blue);
  font-size: clamp(26px, 2.4vw, 36px);
  text-align: center;
  margin-bottom: 18px;
}

.dashboard-v2 .recovery-container h2 {
  color: var(--primary-dark);
  font-size: clamp(18px, 1.6vw, 24px);
  text-align: center;
  margin: 22px 0 14px;
}

.dashboard-v2 .recovery-container hr,
.dashboard-v2 .content .cabeca hr {
  border: 0;
  height: 2px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.dashboard-v2 .responsive-video-unique {
  display: block;
  width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 18px auto;
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 14px;
  background: #eaf2fb;
}

.dashboard-v2 .highlight-link {
  text-decoration: none;
}

.dashboard-v2 .highlight-text,
.dashboard-v2 .highlight-text-b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.16);
  color: #8a4c00;
  font-weight: 700;
}

.dashboard-v2 .kpi-card {
  border: 1px solid rgba(0, 108, 180, 0.24);
  border-radius: 10px;
  background: rgba(245, 249, 255, 0.9);
  padding: 12px 14px;
  text-align: center;
}

.dashboard-v2 .kpi-card .kpi-label {
  display: block;
  color: #3d6f96;
  font-size: 12px;
  margin-bottom: 4px;
}

.dashboard-v2 .kpi-card .kpi-value {
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 800;
}

.dashboard-v2 .kpi-card .kpi-value.positive {
  color: #1e7b4f;
}

.dashboard-v2 .kpi-card .kpi-value.negative {
  color: #b1412f;
}

.dashboard-v2 .form-group,
.dashboard-v2 .text-center {
  text-align: center;
}

.dashboard-v2 .recovery-container .form-control,
.dashboard-v2 .recovery-container input,
.dashboard-v2 .recovery-container select,
.dashboard-v2 .recovery-container textarea {
  width: min(100%, 460px);
  background: #ffffff;
  color: var(--text-dark);
}

.dashboard-v2 .recovery-container button,
.dashboard-v2 .recovery-container .btn,
.dashboard-v2 .content button {
  border: 1px solid rgba(0, 108, 180, 0.25);
  background: var(--primary-blue);
  color: #fff;
}

.dashboard-v2 .recovery-container button:hover,
.dashboard-v2 .recovery-container .btn:hover,
.dashboard-v2 .content button:hover {
  background: var(--primary-dark);
}

.dashboard-v2 .btn-danger,
.dashboard-v2 #deleteBtn {
  background: #d94c4c !important;
  border-color: #c43d3d !important;
  color: #fff !important;
}

.dashboard-v2 .btn-warning {
  background: #ffb84d !important;
  border-color: #e99a18 !important;
  color: #2c1b00 !important;
}

.dashboard-v2 table th {
  color: var(--primary-dark);
  background: rgba(0, 108, 180, 0.08);
  font-weight: 700;
}

.dashboard-v2 table td {
  color: #2d465a;
}

.dashboard-v2 table tr:hover td {
  background: rgba(0, 108, 180, 0.05);
}

.dashboard-v2 #chart-container-custom,
.dashboard-v2 #heatmapCarousel,
.dashboard-v2 #flowChartsContainer,
.dashboard-v2 #analysesSection,
.dashboard-v2 #chartContainerTall,
.dashboard-v2 .log-container {
  width: 100% !important;
  max-width: none !important;
}

.dashboard-v2 .log-container {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 12px;
  background: rgba(245, 249, 255, 0.74);
}

.dashboard-v2 #removeEntrySection,
.dashboard-v2 #removeYearSection,
.dashboard-v2 .form-group.text-center {
  max-width: 520px;
  margin: 14px auto;
  padding: 14px;
  border: 1px solid rgba(0, 108, 180, 0.18);
  border-radius: 12px;
  background: rgba(245, 249, 255, 0.74);
}

.dashboard-v2 .subscriber-warning {
  text-align: center;
}

.dashboard-v2 .subscribe-link {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 768px) {
  .dashboard-v2 .header {
    padding: 14px 10px 12px;
  }

  .dashboard-v2 .header nav {
    gap: 10px;
  }

  .dashboard-v2 img.logo {
    width: 58px;
    height: 74px;
  }

  .dashboard-v2 .header .navitemssp h1 {
    font-size: 28px;
  }

  .dashboard-v2 .header .navitemssp h2 {
    font-size: 13px;
  }

  .dashboard-v2 .form-container {
    width: calc(100% - 16px);
  }

  .dashboard-v2 .recovery-container,
  .dashboard-v2 .content .cabeca {
    padding: 16px 10px;
  }
}

/* ===== Legacy markup compatibility (index_teste.php / reusable) ===== */
.language-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 99999;
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  transition: .3s;
}

.lang-slider:before {
  position: absolute;
  content: "PT";
  left: 3px;
  bottom: 3px;
  width: 24px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 9px;
  font-weight: 700;
  transition: .3s;
}

.lang-switch input:checked + .lang-slider:before {
  content: "EN";
  transform: translateX(19px);
}

.lang-switch input:checked + .lang-slider {
  background: #e8f5e9;
  border-color: var(--primary-blue);
}

.header {
  position: relative;
  z-index: 350;
  overflow: visible;
}

.header nav {
  margin-top: 0;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 360;
}

.header nav ul {
  align-items: center;
  gap: 20px;
}

.header nav .logo {
  width: 82px;
  height: 102px;
}

.user-options {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 390;
}

.user-options ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.user-options .navitemssp h2,
.user-options .navitemssp.logout {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.dropbtn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  padding: 8px;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.dropdown-content a:hover {
  background: rgba(0, 108, 180, 0.1);
}

.carousel-container {
  z-index: 1;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  text-align: center;
}

.carousel-slide h1 {
  max-width: 960px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.2;
}

.carousel-slide h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 500;
  opacity: 0.95;
}

.carousel-slide a {
  color: inherit;
  text-decoration: none;
}

.news {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 16px;
}

.cabeca h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.frasen p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 18px;
  font-style: italic;
}

.tab {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.tablinks {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.tablinks:hover,
.tablinks.active {
  color: #fff;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.newst {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-height: 660px;
  overflow-y: auto;
  padding-right: 8px;
}

.cadanew {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dce6f2;
  border-top: 3px solid var(--primary-blue);
  border-radius: 12px;
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 6px 18px rgba(0, 68, 114, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cadanew:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 108, 180, 0.14);
}

.cadanew h3 {
  margin-bottom: 12px;
}

.cadanew a {
  text-decoration: none;
}

.cadanew a:hover .titulo {
  color: var(--primary-blue);
}

.titulo {
  font-size: 20px;
  line-height: 1.28;
  color: #004472;
  font-weight: 700;
}

.news-meta {
  margin-bottom: 4px;
}

.stitulo {
  font-size: 12px;
  opacity: 0.85;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.texto {
  font-size: 14px;
  line-height: 1.7;
  color: #253547;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsimg { width: 100%; height: auto; border-radius: 10px; margin-top: 10px; }
.foot { margin-top: 36px; }

@media (max-width: 900px) {
  .header nav { min-height: 110px; }
  .header nav ul { gap: 14px; }
  .header nav .logo { width: 68px; height: 88px; }
  .user-options { top: -2px; }
  .user-options .navitemssp h2,
  .user-options .navitemssp.logout { font-size: 16px; }
  .newst {
    grid-template-columns: 1fr;
    max-height: 620px;
  }
}

@media (max-width: 640px) {
  .newst {
    grid-template-columns: 1fr;
    max-height: 560px;
  }
}

/* COMPANIES PAGE */
.companies-page .companies-page-main {
  padding-top: 28px;
}

.companies-page .companies-intro-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce6f2;
  border-left: 4px solid var(--primary-blue);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
  padding: 28px 28px 22px;
  margin-bottom: 24px;
}

.companies-page .companies-section-title,
.companies-page .main > h1:first-child {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.companies-page .main > p {
  color: #31465e;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.companies-page .responsive-video-unique {
  display: block;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 18px auto 24px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
  background: #fff;
}

.companies-page .subscriber-warning {
  background: #fff6f6;
  border: 1px solid #ffd0d0;
  border-left: 4px solid #cc2f2f;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #7a1f1f;
}

.companies-page .subscribe-link {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.companies-page .video-container {
  margin-top: 18px;
}

.companies-page .companies-search-form {
  margin: 6px 0 16px;
}

.companies-page #searchbox {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid #cfe0f2;
  background: #fff;
  color: var(--text-dark);
  font-size: 16px;
  padding: 0 18px;
  box-shadow: inset 0 1px 2px rgba(0, 68, 114, 0.04);
}

.companies-page #searchbox::placeholder {
  color: #6f8196;
}

.companies-page .companies-sector-select {
  width: min(100%, 380px);
  margin: 0 auto 12px;
  position: relative;
}

.companies-page .companies-sector-select h1 {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 0 0 10px;
  text-align: center;
}

.companies-page .companies-sector-select select {
  display: none;
}

.companies-page .select-selected {
  background: #fff;
  border: 1px solid #cfe0f2;
  color: var(--text-dark);
  padding: 14px 42px 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  text-align: center;
  font-weight: 600;
}

.companies-page .select-selected:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  transform: translateY(-65%) rotate(45deg);
}

.companies-page .select-selected.select-arrow-active:after {
  transform: translateY(-35%) rotate(-135deg);
}

.companies-page .select-items {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 68, 114, 0.14);
  max-height: 320px;
  overflow-y: auto;
}

.companies-page .select-items div {
  padding: 10px 14px;
  cursor: pointer;
  text-align: center;
  color: #31465e;
}

.companies-page .select-items div:hover,
.companies-page .same-as-selected {
  background: rgba(0, 108, 180, 0.08);
  color: var(--primary-dark);
}

.companies-page .select-hide {
  display: none;
}

.companies-page .companies-table-wrap {
  margin-top: 18px;
}

.companies-page .companies-collapsible {
  border: 1px solid #dce6f2;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
}

.companies-page .companies-table-heading,
.companies-page .collapsfull > .title {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 700;
  text-align: center;
}

.companies-page .companies-collapsible > summary::-webkit-details-marker {
  display: none;
}

.companies-page .companies-table-scroll {
  overflow: auto;
}

.companies-page #emplist,
.companies-page .setores,
.companies-page .balancos {
  width: 100%;
  border-collapse: collapse;
}

.companies-page .balancos {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.companies-page #emplist th,
.companies-page #emplist td,
.companies-page .balancos th,
.companies-page .balancos td {
  border-bottom: 1px solid #e3ebf5;
  padding: 11px 12px;
  vertical-align: top;
  white-space: nowrap;
}

.companies-page #emplist th,
.companies-page .balancos th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f8fe;
  color: var(--primary-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.companies-page #emplist td,
.companies-page .balancos td {
  color: #31465e;
  font-size: 14px;
}

.companies-page #emplist tr:nth-child(even) td,
.companies-page .balancos tr:nth-child(even) td {
  background: rgba(0, 108, 180, 0.025);
}

.companies-page #emplist a {
  color: var(--primary-blue);
}

.companies-page .elcol,
.companies-page .elind {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
  padding: 18px;
  margin: 18px 0;
}

.companies-page .elcol summary {
  cursor: pointer;
}

.companies-page .title {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 20px;
}

.companies-page .logoe {
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  margin-top: 10px;
}

.companies-page .graficos {
  width: 100%;
  min-height: 320px;
  margin: 18px 0;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 68, 114, 0.08);
  padding: 12px;
}

@media (max-width: 900px) {
  .companies-page .companies-intro-panel {
    padding: 22px 18px 18px;
  }

  .companies-page .companies-table-heading,
  .companies-page .collapsfull > .title {
    font-size: 28px;
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .companies-page #emplist th,
  .companies-page #emplist td,
  .companies-page .balancos th,
  .companies-page .balancos td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .companies-page #searchbox {
    min-height: 48px;
    font-size: 15px;
  }
}

body.sniffer-page {
  overflow-x: hidden;
}

.sniffer-page .main,
.sniffer-page .Tickers,
.sniffer-page .Moedas {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 0;
}

.sniffer-page .main {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce6f2;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 68, 114, 0.08);
  padding: 28px 28px 32px;
}

.sniffer-page .main > h1:first-child {
  color: var(--primary-dark);
  font-size: 36px;
  margin: 0 0 20px;
}

.sniffer-page .main > p,
.sniffer-page .main li,
.sniffer-page .Tickerind p {
  color: #31465e;
  line-height: 1.7;
  font-size: 16px;
}

.sniffer-page .main a,
.sniffer-page .Tickerind a {
  color: var(--primary-blue);
}

.sniffer-page .main strong,
.sniffer-page .main b,
.sniffer-page .Tickerind strong {
  color: #103a5e;
}

.sniffer-page .video-container {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
}

.sniffer-page .responsive-video-unique {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  display: block;
  margin: 24px auto;
  border: 1px solid #dce6f2;
  border-radius: 16px;
  background: #f5f9fd;
  box-shadow: 0 12px 28px rgba(0, 68, 114, 0.08);
}

.sniffer-page .subscriber-warning {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 0;
  background: rgba(255, 241, 235, 0.96);
  border: 1px solid rgba(217, 92, 57, 0.24);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #7c2f22;
  box-shadow: 0 12px 28px rgba(0, 68, 114, 0.08);
}

.sniffer-page .subscribe-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb028, #ff9900);
  color: #1c2d40;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(255, 153, 0, 0.18);
}

.sniffer-page .tableint,
.sniffer-page .Tickerind {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce6f2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 68, 114, 0.08);
}

.sniffer-page .tableint {
  margin: 20px 0;
  padding: 18px 20px;
}

.sniffer-page .tableint h2,
.sniffer-page .tableint li,
.sniffer-page .ferbov {
  color: #31465e;
}

.sniffer-page .Tickers,
.sniffer-page .Moedas {
  display: grid;
  gap: 18px;
}

.sniffer-page .Tickerind {
  padding: 18px 20px;
}

.sniffer-page .Tickerind p {
  margin: 0;
}

.sniffer-page .collapse {
  display: block;
  margin-top: 18px;
}

.sniffer-page .collapse .title {
  display: block;
  width: 100%;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 18px;
  border: 1px solid #c5d9ee;
  border-radius: 12px;
  background: rgba(240, 247, 252, 0.98);
  list-style: none;
}

.sniffer-page .collapse .title::-webkit-details-marker {
  display: none;
}

.sniffer-page .collapse img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #dce6f2;
  background: rgba(245, 249, 253, 0.98);
}

/* Header active section marker */
.education-page .header nav > ul > li:nth-last-child(1) .navitemssp::before,
.education-lesson-page .header nav > ul > li:nth-last-child(1) .navitemssp::before,
.sniffer-page .dropdown .navitemssp::before,
.companies-page-pt .header .companies-active::before,
.dashboard-v2 .user-options .dashboard::before {
  content: "Cafinvest";
  display: block;
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}

.education-page .header nav > ul > li:nth-child(2) h1,
.education-lesson-page .header nav > ul > li:nth-child(2) h1,
.sniffer-page .header nav > ul > li:nth-child(2) h1,
.companies-page-pt .header nav > ul > li:nth-child(2) h1,
.dashboard-v2 .header nav > ul > li:nth-child(2) h1 {
  display: none;
}

.education-page .header nav > ul > li:nth-last-child(1) .navitemssp,
.education-lesson-page .header nav > ul > li:nth-last-child(1) .navitemssp,
.sniffer-page .dropdown .navitemssp,
.companies-page-pt .header .companies-active,
.dashboard-v2 .user-options .dashboard {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .sniffer-page .main,
  .sniffer-page .Tickers,
  .sniffer-page .Moedas,
  .sniffer-page .video-container,
  .sniffer-page .subscriber-warning {
    width: calc(100% - 20px);
  }

  .sniffer-page .main {
    padding: 22px 18px 24px;
  }

  .sniffer-page .main > h1:first-child {
    font-size: 30px;
  }

  .sniffer-page .main > p,
  .sniffer-page .main li,
  .sniffer-page .Tickerind p {
    font-size: 15px;
  }

  .sniffer-page .Tickerind,
  .sniffer-page .tableint {
    padding: 16px;
  }

  .sniffer-page .collapse .title {
    font-size: 17px;
    padding: 13px 14px;
  }
}

/* MOBILE HEADER - shared modern layout */
@media (max-width: 900px) {
  .language-switcher,
  .caf-theme-switcher {
    top: 10px;
    padding: 6px 8px;
    border-radius: 16px;
  }

  .language-switcher {
    left: 10px;
  }

  .caf-theme-switcher {
    right: 10px;
  }

  body.home-page,
  body.dashboard-v2 {
    overflow-x: hidden;
  }

  header {
    overflow: visible;
  }

  div.header,
  div.header.active,
  .dashboard-v2 .header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 54px 10px 12px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
  }

  div.header.active {
    position: sticky;
    top: 0;
  }

  div.fake.active {
    height: 0;
  }

  div.header nav,
  .dashboard-v2 .header nav {
    width: 100%;
    min-height: 0;
    margin: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  div.header nav > ul,
  .dashboard-v2 .header nav > ul {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0 4px 8px;
    scrollbar-width: thin;
  }

  div.header nav > ul > li,
  .dashboard-v2 .header nav > ul > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    transform: none !important;
  }

  div.header nav .logo,
  .dashboard-v2 img.logo {
    width: 52px;
    height: 66px;
    min-width: 52px;
    object-fit: cover;
  }

  .header .navitemssp {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 4px;
    white-space: nowrap;
  }

  .header .navitemssp h1,
  .dashboard-v2 .header .navitemssp h1 {
    font-size: 24px;
    line-height: 1;
    margin: 0;
  }

  .header .navitemssp h2,
  .header .dropbtn h2,
  .dashboard-v2 .header .navitemssp h2 {
    font-size: 13px;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
  }

  .user-options,
  .dashboard-v2 .user-options {
    position: static;
    inset: auto;
    order: 2;
    width: 100%;
    transform: none;
    overflow: visible;
    padding: 0 4px;
  }

  .dashboard-v2 .user-options {
    order: -1;
  }

  .user-options > ul,
  .dashboard-v2 .user-options > ul {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
    scrollbar-width: thin;
  }

  .user-options > ul > li,
  .dashboard-v2 .user-options > ul > li {
    flex: 0 0 auto;
  }

  .user-options .navitemssp h2,
  .user-options .navitemssp.logout {
    font-size: 13px;
    white-space: nowrap;
  }

  .dashboard-v2 .user-options > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
  }

  .dashboard-v2 .user-options > ul > li:first-child {
    text-align: center;
  }

  .dashboard-v2 .user-options .submenu {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
    scrollbar-width: thin;
  }

  .dashboard-v2 .user-options .submenu .navitemssp,
  .dashboard-v2 .user-options .logout {
    flex: 0 0 auto;
    padding: 7px 10px;
    min-height: 32px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .dropdown {
    position: static;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .dropdown-content {
    position: fixed;
    top: 112px;
    left: 12px;
    right: 12px;
    transform: none;
    min-width: 0;
    max-height: min(300px, 60vh);
    overflow-y: auto;
  }

  .carousel-container {
    height: 300px;
  }
}
