/* Navegação mobile, modais, formulários, cartão e recorrência */
.mobile-nav { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(4,6,13,.76); backdrop-filter: blur(7px); padding: 20px; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { width: min(100%, 520px); max-height: min(92vh, 800px); overflow: auto; background: #1b2226; border: 1px solid #ffffff13; border-radius: 20px; box-shadow: 0 30px 100px #0009; }
.modal-header { padding: 22px 23px 16px; display: flex; align-items: start; justify-content: space-between; gap: 15px; border-bottom: 1px solid #ffffff0a; }
.modal-header h2 { font-size: 18px; margin: 0; letter-spacing: -.5px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.close-btn { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; border: 1px solid #ffffff0b; background: #ffffff07; color: #aeb5bf; }
.modal-form { padding: 19px 23px 23px; }
.type-switch { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; background: #111619; padding: 5px; border-radius: 12px; margin-bottom: 19px; }
.type-option { border: 0; border-radius: 9px; color: #8f98a3; background: transparent; padding: 10px 5px; font-size: 11px; font-weight: 750; }
.type-option.selected[data-type="Receita"] { color: #59e3a6; background: #20c98718; }
.type-option.selected[data-type="Despesa"] { color: #ff92a6; background: #ee5a8018; }
.type-option.selected[data-type="Investimento"] { color: #aaa3ff; background: #766bff20; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #b6bdc7; font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; background: #12181b; color: #eef0f5; border: 1px solid #ffffff12; border-radius: 10px; padding: 12px; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #626b75; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7167ff9c; }
.field textarea { min-height: 74px; resize: vertical; }
.check-field { display: flex !important; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid #ffffff12; border-radius: 11px; background: #12181b; cursor: pointer; color: #e5e7ef !important; }
.check-field input { width: 17px !important; height: 17px; padding: 0 !important; margin: 0; accent-color: var(--purple-2); flex: 0 0 auto; }
.field-help { margin: -2px 0 0; color: #87919c; font-size: 10px; line-height: 1.5; }
.card-preview { padding: 10px 12px; background: #655cf618; border: 1px solid #8178ff25; color: #bab5ff; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.card-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 0 0 15px; }
.card-summary { padding: 13px 14px; background: #12181b; border: 1px solid #ffffff09; border-radius: 12px; min-width: 0; }
.card-summary span { display: block; color: #929aa6; font-size: 10px; line-height: 1.4; }
.card-summary strong { display: block; color: #f0f1f7; margin-top: 7px; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: -.4px; overflow-wrap: anywhere; }
.card-summary.purple strong { color: #aaa3ff; }
.card-summary.pink strong { color: #fa88dc; }
.card-detail-table { min-width: 690px; }
.card-badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 7px; background: #665cf61d; color: #b3adff; font-size: 9px; font-weight: 700; white-space: nowrap; }
.card-detail-sub { display:block; color:#7f8894; font-size:10px; margin-top:4px; }
.form-error { color: #ff8298; font-size: 11px; min-height: 15px; margin-top: 11px; }
.recurrence-hint { margin:0; color:#929bac; font-size:10px; line-height:1.55; }
.recurrence-badge { display:inline-flex; align-items:center; gap:5px; margin-left:6px; padding:3px 6px; border-radius:6px; color:#b4aaff; background:#766bff20; font-size:9px; font-weight:700; white-space:nowrap; }
