/* global.css */
/* Orkanta Financial - Global Styles */

/* Typography & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('../../admin/assets/css/suporte.css');

:root {
  --primary: #0B3D91;
  --navy: #0A1F44;
  --gold: #C9A227;
  --bg: #F4F6FA;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-soft: #64748B;
  --border: #E2E8F0;

  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-card: 14px;
  --radius-button: 10px;
  --radius-input: 10px;
  --shadow-card: 0 10px 30px rgba(2, 6, 23, 0.05);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.05);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.flex {
  display: flex;
}

.hidden {
  display: none;
}

/* Layout Shell */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.content {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1000;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sidebar__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #082a63);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition), border-left var(--transition);
}

.nav__item a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav__item--active a {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  color: #fff;
}

.nav__icon {
  width: 18px;
  opacity: 0.8;
}

.sidebar__footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: #fff;
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 900;
}

.header__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

#menu-toggle {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--text-main);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0A1F44);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.logout {
  padding: 10px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
}

.logout:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Main content */
.main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - var(--header-height));
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.35s ease forwards;
}

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

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.muted {
  color: var(--text-soft);
}

/* Balance Card */
.balance__label {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.balance__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.bank-list {
  display: grid;
  gap: 12px;
}

.bank-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.bank-pill__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-pill__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #0A1F44);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.bank-pill__name {
  font-weight: 600;
}

.bank-pill__balance {
  font-weight: 700;
  color: var(--primary);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table thead {
  background: #F1F5F9;
}

.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  color: var(--text-main);
}

.table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: #F8FAFC;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.tag--success {
  background: rgba(11, 61, 145, 0.08);
  color: var(--primary);
}

.tag--warning {
  background: rgba(201, 162, 39, 0.12);
  color: #8a6b12;
}

.tag--soft {
  background: #F1F5F9;
  color: var(--text-soft);
}

.icon-edit {
  color: var(--primary);
  font-size: 16px;
  transition: color var(--transition);
}

.icon-edit:hover {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: #093477;
}

.btn--secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.label {
  font-weight: 600;
  color: var(--text-main);
}

.input {
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  transition: border var(--transition), box-shadow var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

/* =========================
   LOGIN PAGE (Premium Split)
========================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(1200px 800px at 20% 20%, rgba(11,61,145,0.25), transparent 60%),
              radial-gradient(900px 700px at 85% 55%, rgba(201,162,39,0.18), transparent 55%),
              linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  padding: 24px;
}

/* container do login (esquerda form / direita hero) */
.login-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 460px 1fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

/* card do formulário */
.login-card {
  width: 100%;
  background: rgba(255,255,255,0.96);
  border-radius: 0;
  padding: 44px 42px;
  box-shadow: none;
  border: 0;
  animation: fadeInUp 0.35s ease forwards;
}

/* lado direito (imagem/hero) */
.login-hero {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(900px 700px at 30% 20%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(135deg, rgba(10,31,68,0.92), rgba(11,61,145,0.78));
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--login-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,31,68,0.65), rgba(10,31,68,0.88));
}

.login-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 46px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,0.92);
}

.login-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.login-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
}

.login-hero__title {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.login-hero__subtitle {
  margin: 0;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}

.login-hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.kpi {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.kpi__label {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}

.kpi__value {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #fff;
}

.kpi__value span {
  color: var(--gold);
}

/* topo do card */
.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.18);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.login-subtitle {
  margin: 0 0 22px;
  color: var(--text-soft);
}

/* refinando inputs/botão (premium) */
.input {
  height: 50px;
  border-radius: 12px;
}

.btn.btn--primary {
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(11,61,145,0.20);
}

.btn.btn--primary:hover {
  transform: translateY(-1px);
}

.support-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.support-link:hover {
  color: var(--primary);
}

/* Charts */
.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--text-soft);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 992px) {
  #menu-toggle {
    display: inline-flex;
  }

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

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: var(--sidebar-width);
    transition: left var(--transition);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 800;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .header {
    padding: 0 20px;
  }

  .main {
    padding: 20px;
  }

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

  /* login quebra para 1 coluna */
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero {
    display: none;
  }
}

@media (max-width: 768px) {
  #menu-toggle {
    display: inline-flex;
  }

  .header__title {
    font-size: 18px;
  }

  .header__actions {
    gap: 12px;
  }

  .logout {
    padding: 8px 12px;
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px;
  }

  .balance__value {
    font-size: 26px;
  }

  .header {
    padding: 0 16px;
  }

  .main {
    padding: 18px 16px 24px;
  }

  .btn {
    width: 100%;
  }
}

/* Utility spacing for stacked sections */
.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
    ICONE DE "?" com informações de upload
========================= */
/* ===== Help Icon ===== */
.help-icon{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid var(--ctl-border);
  background: var(--ctl-bg);
  color: var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all .2s ease;
  font-size:13px;
}
.help-icon:hover{
  background: var(--primary);
  color:#fff;
}

/* ===== Help Popover ===== */
.help-popover{
  position:absolute;
  margin-top:10px;
  max-width:340px;
  background: var(--ctl-bg);
  border:1px solid var(--ctl-border);
  border-radius:14px;
  padding:16px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
  display:none;
  z-index:999;
}
.help-popover.show{
  display:block;
}

.help-content{
  font-size:.85rem;
  color: var(--ctl-text);
  line-height:1.5;
}

/* ===============================================================
    ESTILOS PARA O DASHBOARD CLIENT
================================================================= */  
/* global.css */
/* Orkanta Financial - Global Styles */

/* Typography & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #0B3D91;
  --navy: #0A1F44;
  --gold: #C9A227;
  --bg: #F4F6FA;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-soft: #64748B;
  --border: #E2E8F0;

  /* Controls (help popover etc.) */
  --ctl-bg: #FFFFFF;
  --ctl-border: #E2E8F0;
  --ctl-text: #1E293B;

  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-card: 14px;
  --radius-button: 10px;
  --radius-input: 10px;
  --shadow-card: 0 10px 30px rgba(2, 6, 23, 0.05);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.05);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.flex { display: flex; }
.hidden { display: none; }

/* Layout Shell */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.content {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1000;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sidebar__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #082a63);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition), border-left var(--transition);
}

.nav__item a:hover { background: rgba(255, 255, 255, 0.06); }

.nav__item--active a {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  color: #fff;
}

.nav__icon { width: 18px; opacity: 0.8; }

.sidebar__footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: #fff;
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 900;
}

.header__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

#menu-toggle { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--text-main);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0A1F44);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.logout {
  padding: 10px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
}

.logout:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Main content */
.main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - var(--header-height));
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.35s ease forwards;
}

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

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.muted { color: var(--text-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #093477; }

.btn--secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.label { font-weight: 600; color: var(--text-main); }

.input {
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  transition: border var(--transition), box-shadow var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

/* =========================
   LOGIN PAGE (Premium Split)
========================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(1200px 800px at 20% 20%, rgba(11,61,145,0.25), transparent 60%),
              radial-gradient(900px 700px at 85% 55%, rgba(201,162,39,0.18), transparent 55%),
              linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  padding: 24px;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 460px 1fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.login-card {
  width: 100%;
  background: rgba(255,255,255,0.96);
  border-radius: 0;
  padding: 44px 42px;
  box-shadow: none;
  border: 0;
  animation: fadeInUp 0.35s ease forwards;
}

.login-hero {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(900px 700px at 30% 20%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(135deg, rgba(10,31,68,0.92), rgba(11,61,145,0.78));
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--login-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,31,68,0.65), rgba(10,31,68,0.88));
}

.login-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 46px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,0.92);
}

.login-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.login-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
}

.login-hero__title {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.login-hero__subtitle {
  margin: 0;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}

.login-hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.kpi {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.kpi__label {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}

.kpi__value {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #fff;
}

.kpi__value span { color: var(--gold); }

.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.18);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.login-subtitle {
  margin: 0 0 22px;
  color: var(--text-soft);
}

.input { height: 50px; border-radius: 12px; }

.btn.btn--primary {
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(11,61,145,0.20);
}

.btn.btn--primary:hover { transform: translateY(-1px); }

.support-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.support-link:hover { color: var(--primary); }

/* Charts */
.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

/* Responsive */
@media (max-width: 992px) {
  .grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-hero { display: none; }
  .main { padding: 20px; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px; }
  .main { padding: 18px 16px 24px; }
  .btn { width: 100%; }
}

/* =========================
    ICONE DE "?" com informações de upload
========================= */
.help-icon{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid var(--ctl-border);
  background: var(--ctl-bg);
  color: var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all .2s ease;
  font-size:13px;
}
.help-icon:hover{
  background: var(--primary);
  color:#fff;
}

.help-popover{
  position:absolute;
  margin-top:10px;
  max-width:340px;
  background: var(--ctl-bg);
  border:1px solid var(--ctl-border);
  border-radius:14px;
  padding:16px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
  display:none;
  z-index:999;
}
.help-popover.show{ display:block; }

.help-content{
  font-size:.85rem;
  color: var(--ctl-text);
  line-height:1.5;
}

/* =========================
   CLIENT PORTAL (simple)
========================= */
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  color: var(--text-soft);
}

@media (max-width: 992px) {
  .container { padding: 20px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* =========================
   MOBILE SIDEBAR FIX
========================= */
@media (max-width: 992px) {
  #menu-toggle {
    display: inline-flex !important;
  }

  .layout {
    grid-template-columns: 1fr !important;
  }

  .content {
    min-width: 0;
  }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: -280px !important;
    width: var(--sidebar-width);
    height: 100vh;
    transition: left var(--transition);
    z-index: 1000;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    left: 0 !important;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 900;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Client header: contract + session menu */
.header--contract {
  min-height: var(--header-height);
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.header__contract-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.header__contract-text {
  font-size: 12px;
  color: var(--text-soft);
  max-width: min(54vw, 720px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__contract-status {
  font-size: 11px;
  padding: 4px 10px;
}

.user-session {
  position: relative;
}

.user-pill {
  min-height: 46px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.user-pill:hover,
.user-pill:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
  outline: none;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0A1F44);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-meta .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.user-meta .role {
  font-size: 11px;
  color: var(--text-soft);
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.14);
  padding: 6px;
  display: none;
  z-index: 960;
}

.user-menu.open {
  display: block;
}

.user-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-menu__item:hover {
  background: rgba(11, 61, 145, 0.08);
}

.modal-open {
  overflow: hidden;
}

.session-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 33, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1200;
}

.session-modal-overlay.open {
  display: flex;
}

.session-modal {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.2);
}

.session-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.session-modal__title {
  margin: 0;
  font-size: 18px;
  color: var(--text-main);
}

.session-modal__close {
  border: 1px solid var(--border);
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-main);
  cursor: pointer;
}

.session-modal__close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.session-modal__body {
  padding: 18px;
}

.session-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.session-stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.session-stat-card__title {
  font-size: 12px;
  color: var(--text-soft);
}

.session-stat-card__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.session-stat-card__subtitle {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
}

@media (max-width: 992px) {
  .header--contract {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__contract-text {
    max-width: 58vw;
  }

  .session-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header--contract {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header--contract .header__actions {
    gap: 10px;
  }

  .header__contract-text {
    max-width: 100%;
  }

  .user-meta {
    display: none;
  }

  .user-pill {
    min-height: 40px;
    padding: 4px 9px 4px 4px;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
}
