/* =========================================
   GRANHUB | CSS COMPLETO ATUALIZADO
   compatível com o HTML completo enviado
========================================= */

:root {
  --bg-main: #eef4ff;
  --bg-soft: #f7faff;
  --panel: #ffffff;
  --panel-2: #f3f7ff;
  --panel-3: #eaf1ff;

  --primary: #1f4da0;
  --primary-2: #2d61bf;
  --primary-3: #4d7fe0;
  --primary-soft: #dbe7ff;

  --text: #16315f;
  --text-soft: #5e779b;
  --text-muted: #7f95b5;

  --line: #d9e4f7;
  --line-2: #c8d7f0;

  --success: #23d18b;
  --danger: #ff5d73;

  --shadow-xl: 0 28px 80px rgba(18, 49, 95, 0.16);
  --shadow-lg: 0 18px 45px rgba(18, 49, 95, 0.12);
  --shadow-md: 0 12px 28px rgba(18, 49, 95, 0.09);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --container: 1680px;
  --sidebar-width: 320px;
  --header-height: 88px;

  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f3f7ff 0%, #edf4ff 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* =========================================
   FUNDO
========================================= */

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blur-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
}

.blur-ball-1 {
  width: 420px;
  height: 420px;
  left: -90px;
  top: -110px;
  background: rgba(31, 77, 160, 0.20);
  animation: floatBall1 12s ease-in-out infinite;
}

.blur-ball-2 {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -120px;
  background: rgba(77, 127, 224, 0.16);
  animation: floatBall2 14s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 77, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 77, 160, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 90%);
}

/* =========================================
   LOADER
========================================= */

.screen-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(31, 77, 160, 0.12), transparent 22%),
    linear-gradient(180deg, #eef4ff 0%, #e8f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.screen-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.screen-loader__content {
  text-align: center;
}

.loader-logo-box {
  width: auto;
  min-width: 180px;
  min-height: 80px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  animation: floatMiniLoader 4s ease-in-out infinite;
}

.loader-logo-img {
  max-width: 230px;
  max-height: 90px;
  object-fit: contain;
}

.screen-loader__content p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* =========================================
   LOGIN PAGE
========================================= */

.login-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 28px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-layout {
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(760px, 1fr);
  gap: 42px;
  align-items: center;
}

/* =========================================
   CELULAR
========================================= */

.login-showcase {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-showcase__glow {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 77, 160, 0.16), rgba(77, 127, 224, 0.08), transparent 70%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.phone-visual {
  position: relative;
  transform: perspective(1200px) rotateY(8deg) rotateX(2deg);
  animation: floatPhone 5.5s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: 320px;
  height: 680px;
  border-radius: 42px;
  background: linear-gradient(145deg, #0d1a31, #223659 48%, #0a1324);
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 36px 70px rgba(18, 49, 95, 0.22);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #09101d;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #1f4da0 0%, #2456b3 23%, #ffffff 23.2%, #ffffff 100%);
  position: relative;
  padding: 16px 16px 16px;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px 8px;
}

.phone-topbar__icons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-header {
  padding: 8px 8px 4px;
}

.phone-logo-wrap {
  width: 100%;
  min-height: 80px;
  display: grid;
  place-items: center;
}

.phone-logo {
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}

.phone-profile-card {
  margin-top: 12px;
  background: linear-gradient(135deg, #eff5ff, #ffffff);
  border: 1px solid #d8e4f8;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 24px rgba(18, 49, 95, 0.08);
}

.phone-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e4ff, #eef4ff);
  border: 1px solid #cad8f0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-profile-info h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px;
}

.phone-profile-info p {
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

.phone-menu-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.phone-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #dce7f8;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(18, 49, 95, 0.06);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.phone-menu-item i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
}

.phone-menu-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 20px rgba(18, 49, 95, 0.09);
}

.phone-footer-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1f4da0, #2d61bf);
  color: #fff;
  padding: 18px;
  box-shadow: 0 18px 26px rgba(31, 77, 160, 0.2);
}

.phone-footer-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.phone-footer-card span {
  color: #e4edff;
  font-size: 0.82rem;
}

/* =========================================
   PAINEL LOGIN
========================================= */

.login-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-panel {
  position: relative;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-xl);
  border: 1px solid #dbe6f8;
  overflow: hidden;
}

.login-panel__logo {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 260px;
  min-height: 70px;
  display: grid;
  place-items: center;
  z-index: 3;
}

.floating-card {
  animation: floatMiniTop 4s ease-in-out infinite;
}

.brand-logo-img {
  max-width: 290px;
  max-height: 70px;
  object-fit: contain;
}

.login-panel__content {
  position: relative;
  z-index: 2;
  padding: 110px 50px 34px;
}

.login-heading {
  text-align: left;
  margin-bottom: 22px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #e9f1ff;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-heading h2 {
  font-size: 3rem;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 14px;
}

.login-heading p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 860px;
}

/* =========================================
   SUPORTE / TUTORIAL
========================================= */

.login-support-strip {
  margin-bottom: 22px;
  border-radius: 24px;
  padding: 18px 18px;
  background: linear-gradient(135deg, #edf4ff, #f7fbff);
  border: 1px solid #d6e3f7;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.login-support-strip__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.login-support-strip__content {
  flex: 1;
  min-width: 220px;
}

.login-support-strip__content strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1rem;
}

.login-support-strip__content p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tutorial-btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 77, 160, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tutorial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(31, 77, 160, 0.22);
}

/* =========================================
   FORM
========================================= */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group label {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.input-wrap {
  position: relative;
}

.input-wrap i.fa-key {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #6c86ac;
  font-size: 1rem;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 62px;
  border-radius: 19px;
  border: 1px solid #d3dff4;
  background: #ffffff;
  padding: 0 56px 0 50px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.input-wrap input::placeholder {
  color: #8aa0c0;
  font-weight: 500;
}

.input-wrap input:focus {
  border-color: #9cb8eb;
  box-shadow: 0 0 0 5px rgba(31, 77, 160, 0.08);
  transform: translateY(-1px);
}

.toggle-visibility {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #5f7eab;
  transition: background var(--transition), color var(--transition);
}

.toggle-visibility:hover {
  background: #edf4ff;
  color: var(--primary);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.remember-access {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.remember-access input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.forgot-token-btn {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  transition: color var(--transition), transform var(--transition);
}

.forgot-token-btn:hover {
  color: #173d81;
  transform: translateX(2px);
}

.btn-login {
  margin-top: 2px;
  min-height: 64px;
  border-radius: 20px;
  border: 1px solid rgba(31, 77, 160, 0.14);
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--primary-3));
  background-size: 200% 200%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 16px 34px rgba(31, 77, 160, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: gradientShift 5s ease infinite;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(31, 77, 160, 0.24);
}

.btn-login__icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================
   CARDS LOGIN
========================================= */

.login-infos {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.login-info-card {
  border-radius: 22px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #edf4ff, #f8fbff);
  border: 1px solid #dae6f8;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.login-info-card i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.login-info-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.login-info-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =========================================
   LEGAL BOX
========================================= */

.login-legal-box {
  margin-top: 22px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, #edf4ff, #f8fbff);
  border: 1px solid #d9e5f7;
}

.login-legal-box__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 10px;
}

.login-legal-box__head i {
  color: var(--primary);
}

.login-legal-box p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-legal-links a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  transition: background var(--transition), transform var(--transition);
}

.login-legal-links a:hover {
  background: #dce8ff;
  transform: translateY(-1px);
}

.bottom-access-banner {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dbe6f8;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-access-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bottom-access-banner__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1.2rem;
}

.bottom-access-banner__left strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
}

.bottom-access-banner__left p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(35, 209, 139, 0.1);
  border: 1px solid rgba(35, 209, 139, 0.16);
  color: #189e68;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-pill i {
  font-size: 0.65rem;
  color: #23d18b;
}

/* =========================================
   PORTAL INTERNO
========================================= */

.portal-page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 22px;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
}

.portal-header {
  position: sticky;
  top: 14px;
  z-index: 90;
  height: var(--header-height);
  max-width: var(--container);
  margin: 0 auto 20px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dbe6f8;
  box-shadow: 0 16px 34px rgba(18, 49, 95, 0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 20px;
}

.portal-header__left,
.portal-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand {
  display: flex;
  align-items: center;
}

.portal-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.portal-search {
  position: relative;
  width: 100%;
}

.portal-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.portal-search input {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 1px solid #d6e2f5;
  background: #f8fbff;
  color: var(--text);
  padding: 0 18px 0 48px;
  outline: none;
}

.portal-search input::placeholder {
  color: var(--text-muted);
}

.header-icon-btn,
.mobile-menu-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f2f7ff;
  border: 1px solid #d8e4f7;
  position: relative;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.header-icon-btn:hover,
.mobile-menu-btn:hover {
  transform: translateY(-2px);
  background: #e8f0ff;
  border-color: #cbdaf2;
}

.header-icon-btn.danger:hover {
  background: #fff0f3;
  border-color: #ffd5dd;
  color: #d64c65;
}

.header-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mobile-menu-btn {
  display: none;
}

.portal-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 20px;
}

.portal-sidebar {
  position: sticky;
  top: 118px;
  align-self: start;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #dbe6f8;
  box-shadow: 0 14px 30px rgba(18, 49, 95, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.client-profile-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
  border: 1px solid #d7e3f7;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-profile-card__avatar,
.profile-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #edf4ff);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid #d2def3;
}

.client-profile-card__avatar img,
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-profile-card__info span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.client-profile-card__info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.client-profile-card__info p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stat {
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dce7f8;
  padding: 14px 10px;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: var(--text);
}

.mini-stat span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.sidebar-link i {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f2f7ff;
  color: var(--primary);
}

.sidebar-link:hover,
.sidebar-link.active {
  transform: translateX(4px);
  background: #edf4ff;
  border-color: #d5e2f5;
  color: var(--text);
}

.support-box {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(135deg, #edf9f3, #f8fffb);
  border: 1px solid #d7f2e4;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.support-box i {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #daf8e8;
  color: #18a36a;
  font-size: 1.1rem;
}

.support-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.support-box p {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.portal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-section {
  display: none;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid #dbe6f8;
  box-shadow: 0 14px 30px rgba(18, 49, 95, 0.08);
  padding: 26px;
  overflow: hidden;
}

.content-section.active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.portal-hero__main {
  display: grid;
  grid-template-columns: 1.2fr 380px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-text {
  border-radius: 28px;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
  border: 1px solid #d8e4f8;
  padding: 28px;
}

.hero-badge,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #e9f1ff;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.08;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-text h1 span {
  color: var(--primary-3);
}

.hero-text h1 strong {
  color: var(--text);
}

.hero-text p {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn,
.project-btn,
.document-download,
.modal-btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-btn.primary,
.project-btn.primary,
.modal-btn.primary,
.document-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 24px rgba(31, 77, 160, 0.16);
}

.hero-btn.secondary,
.project-btn.secondary,
.modal-btn.secondary {
  background: #f4f8ff;
  color: var(--primary);
  border: 1px solid #d8e4f7;
}

.hero-highlight-card {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
  border: 1px solid #d9e5f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-highlight-card__top span {
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.hero-highlight-card__top strong {
  font-size: 1.8rem;
  display: block;
  color: var(--text);
}

.hero-highlight-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.hero-highlight-item {
  border-radius: 18px;
  padding: 16px 12px;
  background: #f8fbff;
  text-align: center;
  border: 1px solid #dce7f8;
}

.hero-highlight-item i {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.hero-highlight-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.category-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.category-banner {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  padding: 22px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-banner:hover {
  transform: translateY(-6px);
}

.category-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(4, 10, 22, 0.65));
  z-index: -1;
}

.banner-civil {
  background:
    linear-gradient(135deg, rgba(31, 77, 160, 0.78), rgba(45, 97, 191, 0.72)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.banner-sst {
  background:
    linear-gradient(135deg, rgba(31, 77, 160, 0.78), rgba(77, 127, 224, 0.72)),
    url("https://images.unsplash.com/photo-1581092335397-9583eb92d232?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.banner-arq {
  background:
    linear-gradient(135deg, rgba(24, 63, 132, 0.78), rgba(77, 127, 224, 0.72)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.category-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.category-banner__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.3rem;
}

.category-banner__content h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.category-banner__content p {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  font-size: 0.95rem;
}

.category-banner__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.overview-card,
.glass-card {
  border-radius: 22px;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #dce7f8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.overview-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  font-size: 1.2rem;
  color: var(--primary);
}

.overview-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.overview-card strong {
  font-size: 1.45rem;
  color: var(--text);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 8px 0 10px;
  color: var(--text);
}

.section-heading p {
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 760px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card,
.empty-state-card,
.profile-main-card,
.profile-side-card,
.document-item {
  border-radius: 24px;
  background: #f9fbff;
  border: 1px solid #dce7f8;
  box-shadow: 0 10px 22px rgba(18, 49, 95, 0.06);
}

.project-card {
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #ccd9f0;
}

.project-card__top,
.project-card__meta,
.project-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card__top {
  margin-bottom: 16px;
}

.project-badge,
.project-status,
.document-tag,
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-badge {
  background: #eaf1ff;
  color: var(--primary);
}

.project-status {
  background: rgba(35, 209, 139, 0.12);
  color: #189f68;
}

.project-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.project-card__body p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}

.project-card__meta {
  padding-top: 14px;
  border-top: 1px solid #e2eaf8;
}

.project-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.project-card__actions {
  margin-top: 18px;
}

.project-btn {
  flex: 1;
  min-width: 150px;
}

.empty-state-card {
  padding: 28px;
  text-align: center;
  grid-column: 1 / -1;
}

.empty-state-card__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1.6rem;
}

.empty-state-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text);
}

.empty-state-card p {
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.document-item {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.document-item__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.document-item__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1.25rem;
}

.document-item__content h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--text);
}

.document-item__content p {
  color: var(--text-soft);
  line-height: 1.65;
}

.document-item__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.document-tag {
  background: #edf4ff;
  color: var(--primary);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.25fr 400px;
  gap: 18px;
}

.profile-main-card,
.profile-side-card {
  padding: 24px;
}

.profile-main-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2ebf8;
  margin-bottom: 20px;
}

.profile-main-info h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text);
}

.profile-main-info p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.profile-status {
  background: rgba(35, 209, 139, 0.12);
  color: #189f68;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-info-item,
.profile-summary-item {
  border-radius: 18px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dce7f8;
}

.profile-info-item span,
.profile-summary-item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.profile-info-item strong,
.profile-summary-item strong {
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

.profile-side-card h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--text);
}

.profile-summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-side-card__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2ebf8;
}

.profile-side-card__footer p {
  color: var(--text-soft);
  line-height: 1.75;
}

/* =========================================
   MODAL / TOAST
========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 24, 48, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal {
  width: 100%;
  max-width: 520px;
  position: relative;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #dce7f8;
  box-shadow: var(--shadow-xl);
  padding: 32px 28px 28px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f2f7ff;
  border: 1px solid #d8e4f7;
}

.custom-modal__icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbe7ff, #edf4ff);
  color: var(--primary);
  font-size: 1.6rem;
}

.custom-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}

.custom-modal p {
  color: var(--text-soft);
  line-height: 1.8;
}

.custom-modal__actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 320px;
  max-width: 420px;
  border-radius: 18px;
  padding: 15px 16px;
  background: #ffffff;
  border: 1px solid #dce7f8;
  box-shadow: 0 12px 28px rgba(18, 49, 95, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 0.35s ease;
}

.toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast.success .toast__icon {
  background: rgba(35, 209, 139, 0.14);
  color: #179e67;
}

.toast.error .toast__icon {
  background: rgba(255, 93, 115, 0.14);
  color: #e25369;
}

.toast.info .toast__icon {
  background: #e9f1ff;
  color: var(--primary);
}

.toast__content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
  color: var(--text);
}

.toast__content p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #edf3ff;
}

::-webkit-scrollbar-thumb {
  background: #c9d8f0;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #afc4e6;
}

/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 1450px) {
  .login-layout {
    grid-template-columns: minmax(320px, 480px) minmax(640px, 1fr);
    gap: 28px;
  }
}

@media (max-width: 1320px) {
  .portal-hero__main {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .category-banners {
    grid-template-columns: 1fr;
  }

  .overview-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-showcase {
    order: 2;
    min-height: auto;
  }

  .login-panel-wrap {
    order: 1;
  }

  .login-panel__content {
    padding: 110px 34px 30px;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: fixed;
    top: 110px;
    left: 18px;
    bottom: 18px;
    width: min(340px, calc(100vw - 36px));
    z-index: 130;
    transform: translateX(-120%);
    transition: transform 0.35s ease;
  }

  .portal-sidebar.active {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: grid;
  }
}

@media (max-width: 980px) {
  .phone-visual {
    transform: none;
  }

  .phone-frame {
    width: 292px;
    height: 620px;
  }

  .portal-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px;
  }

  .portal-header__center {
    order: 3;
  }

  .portal-header__right {
    justify-content: flex-end;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .document-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .login-page {
    padding: 18px 12px;
  }

  .login-panel__content {
    padding: 100px 20px 24px;
  }

  .login-panel__logo {
    min-width: 220px;
    width: calc(100% - 30px);
  }

  .brand-logo-img {
    max-width: 220px;
    max-height: 58px;
  }

  .login-heading h2 {
    font-size: 2.15rem;
  }

  .login-support-strip {
    align-items: flex-start;
  }

  .login-infos {
    grid-template-columns: 1fr;
  }

  .bottom-access-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-cards,
  .profile-grid,
  .client-mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 22px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .content-section {
    padding: 20px;
  }

  .portal-page {
    padding: 14px;
  }

  .toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .phone-frame {
    width: 262px;
    height: 570px;
  }

  .phone-screen {
    padding: 14px 12px 12px;
  }

  .phone-logo {
    max-width: 130px;
    max-height: 46px;
  }

  .phone-profile-card {
    padding: 14px;
  }

  .phone-menu-item {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  .login-panel {
    border-radius: 24px;
  }

  .login-heading h2 {
    font-size: 1.8rem;
  }

  .btn-login {
    min-height: 58px;
    padding: 0 18px;
  }

  .tutorial-btn,
  .hero-btn,
  .project-btn,
  .document-download,
  .modal-btn {
    width: 100%;
  }

  .login-legal-links {
    flex-direction: column;
  }

  .login-legal-links a {
    justify-content: center;
  }

  .portal-logo-img {
    height: 38px;
  }

  .header-icon-btn,
  .mobile-menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

/* =========================================
   ANIMAÇÕES
========================================= */

@keyframes floatBall1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 35px) scale(1.08);
  }
}

@keyframes floatBall2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-25px, -30px) scale(1.07);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.68;
  }
}

@keyframes floatPhone {
  0%, 100% {
    transform: perspective(1200px) rotateY(8deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(8deg) rotateX(2deg) translateY(-10px);
  }
}

@keyframes floatMiniTop {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes floatMiniLoader {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}