/* BudgetLappy free tools */
.bl-tool-page .container, .bl-tools-hub .container { max-width: 1100px; }
.bl-tool-head { padding: 18px 0 10px; }
.bl-tool-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 6px 0 6px; line-height: 1.25; }
.bl-tool-cat { display: inline-block; font-size: 12px; font-weight: 800; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 3px 10px; border-radius: 999px; }
.bl-tool-intro { color: #475569; margin: 0; max-width: 780px; font-size: 15.5px; }
.bl-tool-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; box-shadow: 0 4px 18px rgba(15,23,42,.05); margin: 12px 0 24px; }
.bl-tool { min-height: 260px; }
.bl-tool-loading { color: #94a3b8; padding: 40px 0; text-align: center; }
.bl-tool-privacy { margin: 12px 0 0; font-size: 12.5px; color: #64748b; }
.bl-tool-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; margin-bottom: 40px; }
.bl-tool-content { font-size: 15.5px; line-height: 1.75; color: #1e293b; }
.bl-tool-content h2 { font-size: 1.35rem; margin-top: 1.6em; }
.bl-tool-content h3 { font-size: 1.05rem; margin-top: 1.2em; }
.bl-tool-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.bl-tool-content th, .bl-tool-content td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.bl-tool-content th { background: #f8fafc; }
.bl-tool-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.bl-tool-cta { background: linear-gradient(135deg,#eff6ff,#f0fdf4); border: 1px solid #bfdbfe; border-radius: 14px; padding: 16px; }
.bl-tool-cta strong { display: block; font-size: 15px; margin-bottom: 4px; }
.bl-tool-cta p { font-size: 13.5px; color: #334155; margin: 0 0 10px; }
.bl-tool-related { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.bl-tool-related ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 900px) { .bl-tool-layout { grid-template-columns: 1fr; } .bl-tool-aside { position: static; } }

/* Hub */
.bl-tools-section { margin: 26px 0; }
.bl-tools-section h2 { font-size: 1.3rem; margin-bottom: 2px; }
.bl-tools-section-desc { color: #64748b; margin: 0 0 12px; font-size: 14px; }
.bl-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bl-tools-item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; color: #0f172a; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.bl-tools-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); border-color: #93c5fd; color: #0f172a; }
.bl-tools-item span:last-child { font-size: 13px; color: #64748b; line-height: 1.45; }
.bl-tools-icon { font-size: 26px; }

/* Widget UI kit */
.bl-tool, .bl-tool * { box-sizing: border-box; }
.blt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.blt-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; }
.blt-field label { font-size: 12.5px; font-weight: 700; color: #334155; }
.blt-field input, .blt-field select, .blt-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 16px; background: #fff; color: #0f172a; font-family: inherit; }
.blt-field input:focus, .blt-field select:focus, .blt-field textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.blt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border: none; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; }
.blt-btn:hover { background: #1d4ed8; }
.blt-btn.ghost { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; }
.blt-btn.ghost:hover { background: #e2e8f0; }
.blt-btn.green { background: #16a34a; } .blt-btn.green:hover { background: #15803d; }
.blt-btn.red { background: #dc2626; } .blt-btn.red:hover { background: #b91c1c; }
.blt-btn:disabled { opacity: .5; cursor: not-allowed; }
.blt-result { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-top: 12px; }
.blt-big { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; color: #0f172a; line-height: 1.1; }
.blt-muted { color: #64748b; font-size: 13px; }
.blt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0; }
.blt-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.blt-stat b { display: block; font-size: 1.35rem; color: #0f172a; }
.blt-stat span { font-size: 12px; color: #64748b; }
.blt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blt-table th, .blt-table td { border-bottom: 1px solid #e2e8f0; padding: 8px 6px; text-align: left; vertical-align: top; }
.blt-table th { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.blt-win { color: #16a34a; font-weight: 800; }
.blt-bar { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.blt-bar > i { display: block; height: 100%; background: linear-gradient(90deg,#22c55e,#2563eb); border-radius: 999px; transition: width .25s; }
.blt-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.blt-ok { background: #dcfce7; color: #166534; } .blt-warn { background: #fef3c7; color: #92400e; } .blt-bad { background: #fee2e2; color: #991b1b; }
.blt-note { font-size: 12.5px; color: #64748b; margin-top: 8px; }
.blt-cta { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 14px; }
.blt-cta a { font-weight: 800; }
.blt-stage { position: relative; background: #0f172a; border-radius: 12px; overflow: hidden; }
.blt-stage video, .blt-stage canvas { width: 100%; display: block; }
.blt-pad { border: 2px dashed #cbd5e1; border-radius: 14px; min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; color: #64748b; user-select: none; touch-action: none; background: #f8fafc; }
.blt-pad.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }

/* Keyboard tester */
.blt-kb { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.blt-kb-row { display: flex; gap: 4px; }
.blt-key { flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 7px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .08s; white-space: nowrap; }
.blt-key.down { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.blt-key.done { background: #dcfce7; border-color: #86efac; color: #166534; }
.blt-key.w15 { min-width: 58px; } .blt-key.w2 { min-width: 76px; } .blt-key.w25 { min-width: 92px; } .blt-key.space { min-width: 240px; }

/* Typing */
.blt-typing-text { font-size: 19px; line-height: 1.8; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-bottom: 10px; max-height: 190px; overflow: hidden; font-family: 'DM Mono', ui-monospace, monospace; }
.blt-typing-text .ok { color: #16a34a; } .blt-typing-text .err { color: #dc2626; background: #fee2e2; } .blt-typing-text .cur { border-left: 2px solid #2563eb; }
.blt-typing-text.hi { font-family: inherit; font-size: 20px; }

/* Fullscreen tests */
.blt-fs { position: fixed; inset: 0; z-index: 99999; cursor: none; display: flex; align-items: flex-end; justify-content: center; }
.blt-fs-hint { margin-bottom: 18px; background: rgba(0,0,0,.55); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: default; transition: opacity .4s; }
.blt-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.blt-swatch { width: 38px; height: 38px; border-radius: 8px; border: 2px solid #e2e8f0; cursor: pointer; }
