/* ==========================================================================
   BI Connect - Unified Entry (Lançamento Integrado Operacional) Styles
   High-contrast, dual-theme, Hollywood-grade layout
   ========================================================================== */

/* Large Modal Container */
.modal-box.modal-box-unified {
  max-width: 900px;
  width: 95vw;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(242, 200, 17, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(242, 200, 17, 0.1);
  background: var(--bg-surface);
}

body.light-theme .modal-box.modal-box-unified {
  border-color: #fcd34d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 15px rgba(242, 200, 17, 0.1);
}

/* Stepper Header */
.unified-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  gap: 8px;
  overflow-x: auto;
}

.unified-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.unified-step-item.active {
  color: var(--brand-yellow);
}

body.light-theme .unified-step-item.active {
  color: #b45309;
}

.unified-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.unified-step-item.active .unified-step-num {
  background: var(--brand-yellow);
  color: #000;
}

.unified-step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  min-width: 16px;
}

/* Card Sections in Form */
.unified-section-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unified-section-card:hover {
  border-color: rgba(242, 200, 17, 0.35);
}

.unified-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.unified-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unified-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(242, 200, 17, 0.15);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(242, 200, 17, 0.25);
}

.unified-section-title h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.unified-section-title p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* Segmented Buttons for Mode Switching */
.unified-mode-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.unified-mode-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.unified-mode-btn:hover {
  color: var(--text-main);
}

.unified-mode-btn.active {
  background: var(--brand-yellow);
  color: #000;
  box-shadow: 0 2px 6px rgba(242, 200, 17, 0.3);
}

/* Section Toggle Pill (Checkbox header) */
.unified-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.unified-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-yellow);
  cursor: pointer;
}

/* Financial Highlights Grid inside form */
.unified-live-totals-bar {
  background: linear-gradient(135deg, rgba(242, 200, 17, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(242, 200, 17, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: center;
}

body.light-theme .unified-live-totals-bar {
  background: #fefce8;
  border-color: #fde047;
}

.unified-total-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.unified-total-item .label {
  font-size: 0.70rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.unified-total-item .val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.unified-total-item .val.cost {
  color: var(--color-danger);
}

.unified-total-item .val.repasse {
  color: var(--brand-yellow);
}

body.light-theme .unified-total-item .val.repasse {
  color: #b45309;
}

.unified-total-item .val.margin {
  color: #10b981;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .modal-box.modal-box-unified {
    padding: 20px 16px;
  }
  .unified-live-totals-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   BI Connect - Annual Subscription (1 Ano • R$ 2.000/mês) Styles
   ========================================================================== */
.sub-plan-card {
  background: linear-gradient(135deg, rgba(242, 200, 17, 0.05), rgba(30, 41, 59, 0.5));
  border: 1px solid rgba(242, 200, 17, 0.22);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.light-theme .sub-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.sub-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sub-plan-badge.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.sub-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sub-month-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}

body.light-theme .sub-month-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sub-month-box:hover {
  transform: translateY(-2px);
  border-color: var(--brand-yellow);
  box-shadow: 0 4px 12px rgba(242, 200, 17, 0.15);
}

.sub-month-box.paid {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.09);
}

.sub-month-box.pending {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.09);
}

.sub-month-box.active-month {
  border: 2px solid var(--brand-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.sub-month-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sub-month-val {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 3px 0;
  color: var(--text-main);
}

.sub-month-status {
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  display: inline-block;
}

.sub-month-box.paid .sub-month-status {
  background: rgba(16, 185, 129, 0.2);
  color: var(--brand-green);
}

.sub-month-box.pending .sub-month-status {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sub-month-box.future {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.sub-month-box.future:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.sub-month-box.future .sub-month-status {
  background: rgba(6, 182, 212, 0.14);
  color: #38bdf8;
}


