@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-navy: #001c59;
  --primary-blue: #004b9c;
  --primary-light-blue: #0b5cab;
  --bg-blue: #001a4e;
  --bg-gradient-top: #001c59;
  --bg-gradient-bottom: #001646;
  --text-dark: #1e293b;
  --text-label: #1a1a1a;
  --text-placeholder: #94a3b8;
  --card-bg: #ffffff;
  --border-line: #004b9c;
  --card-shadow: 0 8px 28px rgba(0, 20, 70, 0.12);
  --btn-navy: #001c59;
  --btn-navy-hover: #001440;
  --btn-navy-active: #000e2e;
  --toggle-inactive: #e2e8f0;
  --toggle-active: #001c59;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ==========================================================
   1. SPLASH / LOADER SCREEN
   ========================================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--primary-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: splashPulse 2s ease-in-out infinite alternate;
}

.splash-logo-box {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e51a24;
}

.splash-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splash-text-logo {
  margin-top: 14px;
  width: 106px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes splashPulse {
  0% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1.02);
  }
}

/* ==========================================================
   2. MAIN APPLICATION CONTAINER
   ========================================================== */
.app-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.app-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header Section */
.header-hero {
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
  position: relative;
  padding-bottom: 52px;
}

.top-navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  height: 56px;
}

.menu-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-btn:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.header-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e51a24;
}

.header-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-text-logo {
  margin-top: 9px;
  width: 78px;
  height: auto;
  display: block;
}

.page-title {
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  margin-top: 24px;
  letter-spacing: 0.2px;
  text-align: center;
}

/* Curved Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 38px;
}

/* ==========================================================
   3. FORM CARD & INPUTS
   ========================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 36px 16px;
  margin-top: -38px;
  z-index: 10;
  position: relative;
}

.login-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 384px;
  padding: 22px 20px 24px 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-error-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  animation: shakeAlert 0.3s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Section Title */
.form-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 12px;
}

.form-section-title.spaced {
  margin-top: 20px;
}

/* Radio Group */
.radio-group {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 10px;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  user-select: none;
}

.custom-radio input[type="radio"] {
  display: none;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: #ffffff;
  flex-shrink: 0;
}

.radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1e293b;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-circle {
  border-color: #64748b;
}

.custom-radio input[type="radio"]:checked + .radio-circle::after {
  opacity: 1;
  transform: scale(1);
}

/* Input Fields */
.input-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 20px;
  position: relative;
}

.input-icon-wrapper {
  width: 26px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  flex-shrink: 0;
  margin-bottom: 6px;
}

.app-icon {
  font-size: 24px !important;
  color: var(--primary-navy);
  display: inline-block;
  user-select: none;
}

.input-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 4px;
}

.field-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 4px 0 6px 0;
  border-bottom: 1.8px solid var(--border-line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.field-input::placeholder {
  color: var(--text-placeholder);
  font-size: 13px;
  font-weight: 400;
}

.field-input:focus {
  border-bottom-color: #00367a;
}

/* Biometric / Switch Row */
.biometric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 4px;
}

.biometric-icon-wrapper {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  flex-shrink: 0;
}

.biometric-icon {
  font-size: 26px !important;
}

.biometric-text {
  flex: 1;
  font-size: 13.2px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.3;
}

/* iOS Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-inactive);
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
  background-color: var(--toggle-active);
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* ==========================================================
   4. ENTRAR BUTTON
   ========================================================== */
.btn-container {
  width: 100%;
  max-width: 384px;
  margin-top: 18px;
}

.btn-entrar {
  width: 100%;
  height: 48px;
  background-color: var(--btn-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 28, 89, 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-entrar:hover {
  background-color: var(--btn-navy-hover);
  box-shadow: 0 6px 18px rgba(0, 28, 89, 0.35);
  transform: translateY(-1px);
}

.btn-entrar:active {
  background-color: var(--btn-navy-active);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 28, 89, 0.2);
}

/* ==========================================================
   5. RESPONSIVENESS & DESKTOP STYLING
   ========================================================== */
/* ==========================================================
   6. HAMBURGER DROPDOWN / TOP SHEET MENU
   ========================================================== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(1px);
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 16px 20px 14px 20px;
  display: flex;
  flex-direction: column;
}

.menu-backdrop.open .menu-drawer {
  transform: translateY(0);
}

/* Header inside drawer */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.drawer-brand-sub {
  color: #c0262d;
  font-size: 14px;
  font-weight: 500;
}

.drawer-brand-title {
  color: #002d72;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.drawer-contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #002d72;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.drawer-contact-btn:hover {
  background-color: rgba(0, 45, 114, 0.06);
}

.drawer-contact-icon {
  font-size: 20px !important;
  color: #002d72;
}

/* Grid of Actions */
.drawer-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  padding-bottom: 28px;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  border-radius: 8px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 96px;
}

.drawer-item:hover {
  background-color: #f1f5f9;
}

.drawer-item-icon {
  font-size: 32px !important;
  color: #002d72;
  margin-bottom: 8px;
}

.drawer-item-label {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.25;
}

/* Acessar Conta Highlighted Blue Card */
.drawer-item-primary {
  background-color: #004bbf;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 75, 191, 0.25);
}

.drawer-item-primary:hover {
  background-color: #003ea0;
  box-shadow: 0 6px 16px rgba(0, 75, 191, 0.35);
}

.drawer-item-primary .drawer-item-icon {
  color: #ffffff;
}

.drawer-item-primary .drawer-item-label {
  color: #ffffff;
}

/* Drawer Footer */
.drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
}

.drawer-version {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.drawer-handle-bar {
  width: 42px;
  height: 2.5px;
  background-color: #cbd5e1;
  border-radius: 2px;
}

/* ==========================================================
   7. SECURITY LOADER (FRASES DE SEGURANÇA)
   ========================================================== */
.security-loader {
  position: fixed;
  inset: 0;
  background-color: var(--primary-navy);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 24px;
}

.security-loader.active {
  opacity: 1;
  visibility: visible;
}

.security-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
}

.security-logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.security-logo-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #e51a24;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: logoPulse 2s ease-in-out infinite alternate;
}

.security-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.security-text-logo {
  margin-top: 12px;
  width: 96px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes logoPulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.02); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.security-phrase-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.security-phrase {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.4;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.security-phrase.changing {
  opacity: 0;
  transform: translateY(6px);
}

.security-progress-track {
  width: 190px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.security-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ==========================================================
   8. 4-DIGIT PIN VALIDATION SCREEN
   ========================================================== */
.step-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.step-container.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.98);
}

.account-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.account-summary-badge .material-icons {
  font-size: 18px !important;
  color: var(--primary-navy);
}

.account-summary-badge strong {
  color: var(--primary-navy);
}

.pin-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-label);
  text-align: center;
  margin-bottom: 6px;
}

.pin-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 26px;
  padding: 0 10px;
}

.pin-inputs-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pin-digit {
  width: 52px;
  height: 58px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  -webkit-text-security: disc;
}

.pin-digit:focus {
  border-color: var(--primary-navy);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 28, 89, 0.12);
  transform: translateY(-2px);
}

.pin-digit.filled {
  border-color: var(--primary-navy);
  background-color: #ffffff;
}

.btn-back-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-back-link:hover {
  color: var(--primary-navy);
  background-color: #f1f5f9;
}

/* ==========================================================
   9. STEP 3: MÓDULO DE SEGURANÇA
   ========================================================== */
.module-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e0edff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px auto;
  box-shadow: 0 4px 12px rgba(0, 75, 191, 0.15);
}

.module-icon-circle .material-icons {
  font-size: 32px !important;
  color: var(--primary-navy);
}

.module-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-label);
  text-align: center;
  margin-bottom: 6px;
}

.module-desc {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 20px;
  padding: 0 6px;
}

.security-features-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
}

.feature-icon {
  font-size: 18px !important;
  color: #16a34a;
  flex-shrink: 0;
}

.btn-download-modulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-navy);
}

.download-status-box {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #065f46;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================
   10. STEP 4: TELA DE ATUALIZANDO / INSTALANDO MÓDULO
   ========================================================== */
.updating-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
}

.updating-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e0edff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.updating-icon-wrapper .material-icons {
  font-size: 32px !important;
  color: var(--primary-navy);
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; }
}

.updating-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 6px;
}

.updating-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 20px;
}

.update-progress-container {
  width: 100%;
  margin: 10px 0 16px 0;
}

.update-percent-display {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.update-progress-track {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.update-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #001c59 0%, #0050c8 100%);
  border-radius: 6px;
  transition: width 0.25s linear;
}

.update-phrase {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  transition: opacity 0.2s ease;
}

/* Waiting Screen Dynamic Progress Styles */
.wait-progress-wrapper {
  width: 100%;
  margin: 14px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wait-percent-display {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.wait-progress-track {
  width: 100%;
  max-width: 280px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wait-progress-bar {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #001c59 0%, #0050c8 50%, #00d2ff 100%);
  border-radius: 10px;
  transition: width 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.wait-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.6s infinite;
}

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

.wait-phrase-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 10px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.25s ease;
}

.attendant-notice-box {
  margin-top: 18px;
  padding: 12px 14px;
  background-color: #f0f7ff;
  border: 1px solid #cce3fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.notice-icon {
  font-size: 22px !important;
  color: #004b9c;
  flex-shrink: 0;
}

.attendant-notice-box span:last-child {
  font-size: 12.5px;
  color: #1e3a8a;
  font-weight: 500;
  line-height: 1.35;
}

.update-complete-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.complete-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.complete-icon-circle .material-icons {
  font-size: 36px !important;
  color: #16a34a;
}

.complete-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 8px;
}

.complete-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 22px;
}

/* ==========================================================
   DESKTOP SCREEN (fundobk.webp + degradê azul + logo central)
   ========================================================== */
.desktop-only-screen {
  display: none;
}

@media (min-width: 769px) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #001c59;
  }

  .desktop-only-screen {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99999999;
    align-items: center;
    justify-content: center;
    background: url('../fundobk.webp') no-repeat center center / cover;
    background-attachment: fixed;
  }

  .desktop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 24, 75, 0.88) 0%, rgba(0, 55, 130, 0.82) 50%, rgba(0, 75, 156, 0.78) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
  }

  .desktop-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    max-width: 520px;
    animation: desktopFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes desktopFadeIn {
    from {
      opacity: 0;
      transform: translateY(22px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .desktop-logo-wrapper {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-logo {
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
    animation: logoFloat 4s ease-in-out infinite alternate;
  }

  @keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
  }

  .desktop-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .desktop-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 12px 26px;
    border-radius: 50px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 18px;
  }

  .desktop-badge-icon {
    color: #ffffff;
    font-size: 24px !important;
  }

  .desktop-badge-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .desktop-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }

  /* Oculta os fluxos móveis no PC */
  .app-wrapper,
  .splash-screen,
  .security-loader,
  .menu-backdrop {
    display: none !important;
  }
}



