/* BlueRack — styles for features added in the Laravel rebuild (billing switch,
   plan finder, status history, domain tools, knowledgebase feedback, promo countdown). */

/* ---------- Billing-period switch ---------- */
.br-cycle-toggle-wrap { display: flex; justify-content: center; margin-top: 18px; }
.br-cycle-toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; background: #eef1f6; border-radius: 14px; border: 1px solid #e1e6ee; }
.br-cycle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 7px 10px 7px 18px; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #5b6578; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.br-cycle:not(:has(.br-save)) { padding-right: 18px; }
.br-cycle:hover { color: #0b1324; }
.br-cycle.active { background: #fff; color: #0b1324; box-shadow: 0 1px 3px rgba(11, 19, 36, .12); }
.br-cycle:focus-visible { outline: 2px solid #1d4ac4; outline-offset: 2px; }
.br-save { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #c5f53c; color: #13200a; font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
@media (max-width: 575.98px) {
    .br-cycle { gap: 6px; padding: 6px 8px 6px 12px; min-height: 40px; font-size: 14px; }
    .br-cycle:not(:has(.br-save)) { padding-right: 12px; }
    .br-save { padding: 4px 7px; font-size: 12px; }
}
.br-term { color: #5b6b82; font-size: 13.5px; margin-top: 4px; }
.br-plan-unavailable .br-buy { pointer-events: none; opacity: .4; }
.br-plan-unavailable .price { opacity: .5; }

/* ---------- Promo countdown ---------- */
.br-countdown { display: inline-flex; gap: 4px; margin-left: 8px; font-variant-numeric: tabular-nums; font-weight: 700; color: #ffd166; }
.br-coupon { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px dashed rgba(255,255,255,.6); border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: .03em; }

/* ---------- Plan finder ---------- */
.br-finder { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px -18px rgba(10, 37, 64, .35); border: 1px solid #e6ebf5; padding: 32px; }
.br-finder-step { display: none; }
.br-finder-step.active { display: block; animation: brFade .25s ease; }
@keyframes brFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.br-finder-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.br-finder-progress span { flex: 1; height: 5px; border-radius: 5px; background: #e6ebf5; }
.br-finder-progress span.on { background: #1d4ac4; }
.br-finder h3 { font-size: 22px; margin-bottom: 18px; }
.br-finder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.br-finder-option { text-align: left; border: 1.5px solid #dfe5f3; background: #fff; border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.br-finder-option:hover { border-color: #1d4ac4; box-shadow: 0 4px 14px -6px rgba(29, 74, 196, .35); transform: translateY(-1px); }
.br-finder-option strong { display: block; font-size: 16px; color: #0a2540; }
.br-finder-option small { color: #5b6b82; font-size: 13.5px; }
.br-finder-back { margin-top: 18px; background: none; border: 0; color: #5b6b82; font-weight: 600; cursor: pointer; padding: 0; }
.br-finder-result { text-align: center; }
.br-finder-result .br-finder-pill { display: inline-block; padding: 4px 12px; background: #e8f8ef; color: #12804a; border-radius: 999px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.br-finder-result h3 { font-size: 26px; }
.br-finder-result p { color: #33415c; max-width: 560px; margin: 0 auto 18px; }

/* ---------- Status history ---------- */
.br-uptime { margin-top: 26px; }
.br-uptime-row { padding: 16px 0; border-top: 1px solid #edf0f6; }
.br-uptime-row:first-child { border-top: 0; }
.br-uptime-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.br-uptime-head strong { font-size: 15px; color: #0a2540; }
.br-uptime-head span { font-size: 13.5px; color: #5b6b82; }
.br-uptime-bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.br-uptime-bars i { flex: 1; border-radius: 3px; background: #dfe5ee; min-width: 2px; }
.br-uptime-bars i.ok { background: #22c55e; }
.br-uptime-bars i.warn { background: #f59e0b; }
.br-uptime-bars i.bad { background: #ef4444; }
.br-uptime-scale { display: flex; justify-content: space-between; font-size: 12px; color: #8a97ab; margin-top: 6px; }
.br-incidents { margin-top: 30px; }
.br-incident { border: 1px solid #e6ebf5; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.br-incident h3 { font-size: 16px; margin: 0 0 4px; }
.br-incident .meta { font-size: 13px; color: #5b6b82; }
.br-incident .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-right: 6px; }
.br-incident .tag.resolved { background: #e8f8ef; color: #12804a; }
.br-incident .tag.open { background: #fdeceb; color: #c0392b; }
.br-incident p { margin: 8px 0 0; color: #33415c; font-size: 14.5px; }

/* ---------- Domain search: modes, bulk, transfer ---------- */
.br-domain-modes { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; flex-wrap: wrap; }
.br-domain-mode { border: 1px solid rgba(29, 74, 196, .25); background: #fff; color: #1d4ac4; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.br-domain-mode.active { background: #1d4ac4; color: #fff; border-color: #1d4ac4; }
.br-domain-bulk textarea { width: 100%; min-height: 120px; border-radius: 12px; border: 1px solid #ccd5e5; padding: 12px 14px; font-size: 15px; }
.br-domain-bulk .button { margin-top: 10px; }
.br-domain-hint { font-size: 13px; color: #5b6b82; margin-top: 6px; }
.br-domain-group-title { font-weight: 700; margin: 14px 0 6px; color: #0a2540; }
.br-transfer-checks { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; }
.br-transfer-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #edf0f6; }
.br-transfer-checks li:first-child { border-top: 0; }
.br-transfer-checks .ok { color: #12804a; font-weight: 700; }
.br-transfer-checks .no { color: #c0392b; font-weight: 700; }
.br-transfer-checks .warn { color: #b26a00; font-weight: 700; }

/* ---------- Tools: grades and checks ---------- */
.tool-grade { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; font-size: 26px; font-weight: 800; color: #fff; margin-right: 14px; flex: 0 0 auto; }
.tool-grade.g-a { background: #16a34a; } .tool-grade.g-b { background: #65a30d; } .tool-grade.g-c { background: #d97706; }
.tool-grade.g-d { background: #ea580c; } .tool-grade.g-f { background: #dc2626; }
.tool-score-row { display: flex; align-items: center; margin: 6px 0 18px; }
.tool-check { display: inline-block; min-width: 64px; font-weight: 700; font-size: 13px; }
.tool-check.pass { color: #12804a; } .tool-check.fail { color: #c0392b; } .tool-check.warn { color: #b26a00; }
.tool-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.tool-metric { border: 1px solid #e6ebf5; border-radius: 12px; padding: 12px 14px; }
.tool-metric b { display: block; font-size: 22px; color: #0a2540; }
.tool-metric span { font-size: 13px; color: #5b6b82; }
.tool-strategy { display: inline-flex; gap: 6px; margin-top: 10px; }
.tool-subform { display: grid; gap: 10px; text-align: left; }
.tool-subform label { font-weight: 600; font-size: 14px; }
.tool-subform input[type=email] { border: 1px solid #ccd5e5; border-radius: 10px; padding: 10px 12px; font-size: 15px; width: 100%; }
.tool-consent { font-size: 13.5px; color: #33415c; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Comparison table ---------- */
.br-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e6ebf5; border-radius: 16px; overflow: hidden; }
.br-compare th, .br-compare td { padding: 14px 18px; border-top: 1px solid #edf0f6; text-align: left; vertical-align: top; font-size: 15px; }
.br-compare thead th { background: #0a2540; color: #fff; border-top: 0; font-size: 16px; }
.br-compare tbody th { width: 30%; color: #33415c; font-weight: 600; background: #fafbfd; }
.br-compare-note { font-size: 13px; color: #5b6b82; margin-top: 12px; }

/* ---------- Knowledgebase feedback ---------- */
.kb-feedback { margin-top: 28px; padding: 18px 20px; border: 1px solid #e6ebf5; border-radius: 14px; background: #fafbfd; }
.kb-feedback strong { display: block; margin-bottom: 10px; color: #0a2540; }
.kb-feedback .kb-fb-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-feedback button { border: 1px solid #ccd5e5; background: #fff; border-radius: 10px; padding: 7px 16px; font-weight: 600; cursor: pointer; }
.kb-feedback button:hover { border-color: #1d4ac4; color: #1d4ac4; }
.kb-feedback textarea { width: 100%; border: 1px solid #ccd5e5; border-radius: 10px; padding: 10px 12px; margin: 10px 0 8px; min-height: 80px; }
.kb-feedback .kb-fb-thanks { color: #12804a; font-weight: 600; }

/* ---------- Blog category chips ---------- */
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: -10px 0 28px; }
.blog-cats a { padding: 6px 14px; border-radius: 999px; border: 1px solid #dfe5f3; background: #fff; color: #33415c; font-weight: 600; font-size: 14px; text-decoration: none; }
.blog-cats a.active, .blog-cats a:hover { background: #1d4ac4; color: #fff; border-color: #1d4ac4; }
.br-finder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.br-finder legend { font-size: 22px; font-weight: 700; margin-bottom: 18px; color: #0a2540; float: none; width: 100%; }
.tool-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: 14.5px; }
.tool-options label { font-weight: 600; color: #33415c; }
.tool-option-input { border: 1px solid #ccd5e5; border-radius: 10px; padding: 7px 12px; font-size: 15px; background: #fff; min-width: 160px; }
.tool-radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #33415c; cursor: pointer; }
.tool-code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #0a2540; background: #f4f6fb; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; word-break: break-all; white-space: normal; }
.tool-list { padding-left: 20px; }
.tool-list li { margin: 4px 0; }
#reminderForm { margin-top: 22px; padding-top: 20px; border-top: 1px solid #edf0f6; max-width: 560px; }
.kb-feedback .kb-fb-more label { display: block; font-size: 14px; color: #33415c; }
.kb-feedback .kb-fb-more button[type=submit] { background: #1d4ac4; border-color: #1d4ac4; color: #fff; }
a.blog-tag { text-decoration: none; }

/* ---------- Review badge (testimonials) ---------- */
.br-review-badge { font-size: 15px; color: #33415c; }
.br-review-stars { color: #f5a623; letter-spacing: 1px; margin-right: 4px; }
.br-review-badge a { font-weight: 600; }

/* ---------- Status page: email updates ---------- */
.br-status-subscribe { margin: 18px 0 8px; padding: 16px; border: 1px solid #e3e8f0; border-radius: 12px; background: #f8fafc; }
.br-status-subscribe label { font-size: 14px; color: #33415c; }
.br-status-subscribe .form-control { flex: 1 1 220px; max-width: 360px; }
.br-status-subscribe .button { padding: 8px 18px; }
