/* =========================================================
   FINANCEL UI v3.2 — Enhancements incrementais globais
   Correções inputs / botões / bottom-nav responsivo
   ========================================================= */

:root {
  --fin-btn-height: 48px;
  --fin-btn-radius: 14px;
  --fin-input-height: 48px;
  --fin-input-radius: 14px;
}

/* -------------------------
   BOTÕES PADRÃO GLOBAL
-------------------------- */

.btn-main,
.btn-header-primary,
.lanc-save-btn,
button[type="submit"] {
  height: var(--fin-btn-height);
  padding: 0 22px;
  font-size: 15px;
  border-radius: var(--fin-btn-radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all .25s ease-in-out;
  text-transform: none;
}

.btn-danger {
  height: var(--fin-btn-height);
  padding: 0 18px;
  font-size: 15px;
  border-radius: var(--fin-btn-radius);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239,68,68,0.92), rgba(127,29,29,0.9));
  color: #fff;
  border: 1px solid rgba(239,68,68,0.6);
  box-shadow: 0 10px 24px rgba(239,68,68,0.18);
  cursor: pointer;
}

.btn-danger:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-danger[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-main svg {
  width: 20px;
  height: 20px;
}

.btn-main:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* -------------------------
   INPUTS PADRONIZADOS
-------------------------- */

.lanc-input,
.lanc-select {
  height: var(--fin-input-height);
  border-radius: var(--fin-input-radius);
  font-size: 15px;
  padding: 0 16px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(4,18,39,0.45);
  color: var(--text-main);
  transition: all .25s ease-in-out;
}

.lanc-select-wrap select {
  height: var(--fin-input-height);
}

.lanc-input:focus,
.lanc-select:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 12px rgba(250,204,21,.35);
}

/* espaçamento entre campos */
.lanc-field {
  margin-bottom: 18px !important;
}

/* -------------------------
   BOTTOM NAV
-------------------------- */

.bottom-nav {
  height: 70px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 10%, rgba(250,204,21,0.08), transparent 60%),
    linear-gradient(145deg, rgba(4,18,39,0.97), rgba(4,18,39,0.94));
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}

.bottom-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2px;
}

.bottom-link {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  opacity: .88;
  color: var(--text-soft);
  transition: all .25s ease-in-out;
  padding: 4px 0;
}

.bottom-link svg {
  width: 22px;
  height: 22px;
}

.bottom-link.active {
  color: var(--gold-300);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(250,204,21,.65);
}

.bottom-link:hover {
  color: var(--gold-300);
  transform: translateY(-1px);
}

/* -------------------------
   MOBILE FIXES
-------------------------- */

@media (max-width: 480px) {
  .lanc-input,
  .lanc-select {
    font-size: 14px;
  }
  .bottom-link svg {
    width: 20px;
    height: 20px;
  }
  .bottom-link {
    font-size: 10px;
  }
  .btn-main {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .lanc-input,
  .lanc-select {
    height: 44px;
    font-size: 13px;
    padding: 0 14px;
  }
  .btn-main {
    height: 44px;
    font-size: 13px;
    padding: 0 18px;
  }
  .bottom-link {
    font-size: 9px;
    gap: 2px;
  }
  .bottom-link svg {
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   FINANCEL GOLD BUTTON V4 — PADRÃO DASHBOARD
   ========================================================= */
.btn-main {
  background: linear-gradient(145deg, #FFD642, #FFAE00) !important;
  border: none !important;
  color: #0a0a0a !important;
  border-radius: 14px !important;
  padding: 14px 32px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  justify-content:center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  box-shadow: 0 0 36px rgba(255,193,7,0.55), inset 0 0 18px rgba(255,235,153,0.65) !important;
  transition: all .26s ease;
}

.btn-main:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 0 62px rgba(255,193,7,0.75), inset 0 0 22px rgba(255,235,153,0.9) !important;
}

.bottom-link.active {
  background: rgba(255,193,7,0.16) !important;
  color: #FFD642 !important;
  font-weight: 900 !important;
  padding: 6px 14px !important;
  border-radius: 14px !important;
  box-shadow: 0 0 18px rgba(255,193,7,0.45) !important;
}

/* =========================================================
   GRID 50/50 DESKTOP — PADRÃO FINANCEL
   ========================================================= */
@media (min-width: 901px) {
  .lanc-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    align-items: flex-start !important;
  }
}

.btn-main {
  background: var(--financel-yellow) !important;
  box-shadow: 0 0 22px var(--financel-yellow-glow) !important;
  color: #0A0A0A !important;
  font-weight: 700;
  border-radius: 14px;
  transition: 0.25s ease;
}

.btn-main:hover {
  box-shadow: 0 0 38px var(--financel-yellow-glow) !important;
  transform: translateY(-1px);
}