/* Billing Tab */
.billing-section { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px }
.billing-plan-row { display: flex; justify-content: space-between; align-items: center }
.billing-plan-label { font-size: 13px; color: var(--muted); margin-bottom: 2px }
.billing-plan-name { font-size: 18px; font-weight: 700; color: var(--accent) }

.billing-plan-card { background: linear-gradient(135deg, #1a2a40, #1e3450); border: 2px solid var(--accent); border-radius: 18px; padding: 32px; text-align: center; margin-bottom: 28px }
.billing-plan-label { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px }
.billing-plan-name-lg { font-size: 36px; font-weight: 900; margin-bottom: 6px }
.billing-plan-cycle { font-size: 16px; color: var(--muted); margin-bottom: 16px }
.billing-change-plan { display: inline-block; font-size: 15px; color: var(--accent); text-decoration: none; font-weight: 600; padding: 8px 20px; border: 1px solid var(--accent); border-radius: 10px; transition: background .15s }
.billing-change-plan:hover { background: rgba(91,163,245,.1) }
.billing-plan-price { font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 6px }

/* "Your businesses" manager (lives inside the plan card on Setup) */
.biz-manage { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); text-align: left }
.biz-manage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px }
.biz-manage-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
.biz-discount-link { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px }
.biz-discount-link:hover { text-decoration: underline }
.biz-manage-select { width: 100%; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 15px; cursor: pointer }
.biz-manage-select:focus { outline: none; border-color: var(--accent) }
.biz-manage-total { font-size: 14px; color: var(--muted); margin: 10px 2px 14px }
.biz-manage-total strong { color: var(--text) }
.biz-add-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px; background: var(--accent); color: #fff; border: none; border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer }
.biz-add-btn:hover { filter: brightness(1.08) }
.biz-add-price { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 9px; border-radius: 999px }

/* "Do I get a discount?" popup */
.discount-modal-overlay { position: fixed; inset: 0; z-index: 9995; background: rgba(8,12,20,.6); display: flex; align-items: center; justify-content: center; padding: 20px }
.discount-modal { width: 600px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.55); padding: 40px 44px; text-align: center }
.discount-emoji { font-size: 64px; margin-bottom: 12px }
.discount-modal h3 { font-size: 27px; font-weight: 800; margin-bottom: 18px; line-height: 1.25 }
.discount-modal p { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 16px }
.discount-modal p strong { color: var(--text) }
.discount-modal-btn { margin-top: 10px; padding: 15px 32px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer }
.discount-modal-btn:hover { filter: brightness(1.08) }

/* "Step-by-step guide" link on the Connect card */
.guide-open-link { display: inline-block; margin-top: 10px; background: none; border: none; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0; text-align: left }
.guide-open-link:hover { text-decoration: underline }

/* The step-by-step guide modal */
.guide-modal-overlay { position: fixed; inset: 0; z-index: 9996; background: rgba(8,12,20,.62); display: flex; align-items: center; justify-content: center; padding: 20px }
.guide-modal { width: 640px; max-width: calc(100vw - 32px); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.6) }
.guide-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line) }
.guide-modal-head h3 { font-size: 24px; font-weight: 800; line-height: 1.25 }
.guide-verified { font-size: 15px; color: var(--green); font-weight: 600; margin-top: 4px }
.guide-modal-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; flex-shrink: 0 }
.guide-modal-close:hover { color: var(--text) }
.guide-steps { overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 18px }
.guide-step { display: flex; gap: 14px; align-items: flex-start }
.guide-step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center }
.guide-step-body { flex: 1; min-width: 0 }
.guide-step-title { font-size: 18px; font-weight: 700; margin-bottom: 5px }
.guide-step-detail { font-size: 17px; line-height: 1.6; color: var(--text) }
.guide-step-tip { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 8px; padding: 9px 13px; background: var(--bg); border-radius: 10px }
.guide-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 15px }
.guide-report-link { background: none; border: none; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap }
.guide-report-link:hover { text-decoration: underline }
@media (max-width: 768px) { .guide-modal-head h3 { font-size: 21px } .guide-step-detail { font-size: 16px } }

.billing-section-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; margin-top: 8px }

.billing-meters { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px }
.billing-meter { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px }
.billing-meter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px }
.billing-meter-label { font-size: 16px; font-weight: 700 }
.billing-meter-count { font-size: 16px; font-weight: 800; color: var(--accent) }
.billing-meter-bar { height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden }
.billing-meter-fill { height: 100%; background: var(--accent); border-radius: 7px; transition: width .5s ease }
.billing-meter-fill.meter-warn { background: var(--amber) }
.billing-meter-fill.meter-full { background: var(--red) }
.billing-meter-bonus { font-size: 14px; color: var(--green); margin-top: 8px; font-weight: 600 }

.billing-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap }
.billing-action-btn { padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; border: none; background: var(--accent); color: #fff; text-decoration: none; text-align: center; transition: opacity .15s }
.billing-action-btn:hover { opacity: .9 }
.billing-action-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent) }
.billing-action-outline:hover { background: rgba(91,163,245,.08) }

.billing-features { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 0; margin-bottom: 20px }
.billing-feat { display: flex; align-items: center; gap: 12px; padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--line) }
.billing-feat:last-child { border-bottom: none }
.billing-feat-check { color: var(--green); font-weight: 700; font-size: 18px }
.billing-feat-lock { color: var(--muted); font-size: 18px }

.billing-payment-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 28px }
.billing-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.billing-card-info { display: flex; align-items: center; gap: 16px }
.billing-card-icon { font-size: 36px }
.billing-card-number { font-size: 18px; font-weight: 700 }
.billing-card-exp { font-size: 14px; color: var(--muted); margin-top: 2px }
.billing-change-card-btn { padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid var(--accent); background: transparent; color: var(--accent); transition: background .15s }
.billing-change-card-btn:hover { background: rgba(91,163,245,.1) }
