.tool-header {
    text-align: center;
    padding: 56px 20px 36px;
}
.tool-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.tool-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}
.tool-card h5 { font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.tool-card h6 { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

.form-label { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; display: block; }

.form-control {
    background-color: var(--dark-bg) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(79,70,229,0.25) !important;
    color: var(--text-primary) !important;
}
.form-control::placeholder { color: var(--text-secondary) !important; opacity: 0.6; }

select.form-control option { background-color: var(--card-bg); color: var(--text-primary); }

.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; font-weight: 600; }
.btn-primary:hover { background-color: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.btn-outline-secondary { border-color: var(--border) !important; color: var(--text-secondary) !important; }
.btn-outline-secondary:hover { background: rgba(255,255,255,0.06) !important; color: var(--text-primary) !important; }
.btn-danger { background-color: #ef4444 !important; border-color: #ef4444 !important; }

.form-check-label { color: var(--text-secondary); }
.input-group-text { background-color: var(--card-bg) !important; border-color: var(--border) !important; color: var(--text-secondary) !important; }

.results-section { display: none; }
.results-section.visible { display: block; }

.lp-table { color: var(--text-primary); width: 100%; }
.lp-table th {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--border) !important;
    font-weight: 600;
    padding: 10px 14px;
}
.lp-table td {
    border-color: var(--border) !important;
    padding: 9px 14px;
}
.lp-table tbody tr:nth-child(even) { background-color: rgba(255,255,255,0.03); }
.lp-table tbody tr:hover { background-color: rgba(79,70,229,0.1); }

.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 16px 0;
}
.cta-strip h4 { font-weight: 700; margin-bottom: 8px; color: #fff; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
}
.btn-white:hover { background: #f1f5f9; color: var(--primary-hover); text-decoration: none; }

.tool-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.related-tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.related-tools a { color: var(--primary); font-weight: 500; }

.tool-guide ol { padding-left: 20px; color: var(--text-secondary); }
.tool-guide ol li { margin-bottom: 6px; }
.tool-guide p { color: var(--text-secondary); }
.tool-guide .faq h2 { font-size: 1.25rem; margin: 24px 0 8px; }
.tool-guide .faq-item { border-top: 1px solid var(--border); padding: 14px 0; }
.tool-guide .faq-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; color: var(--text-primary); }
.tool-guide .faq-item p { margin: 0; }
.tool-guide .faq-item:last-child { padding-bottom: 0; }
.tool-export { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }

@media print {
    nav, footer, .cta-strip, .tool-guide, .tool-header p, .no-print, #emptyState,
    nav[aria-label="More free league tools"], .col-lg-4 { display: none !important; }
    body { padding-top: 0 !important; background: #fff !important; }
    .col-lg-8 { flex: 0 0 100% !important; max-width: 100% !important; }
    .tool-card { break-inside: avoid; }
}
