/* DCSpeedTest Interactive Micro-Tools Design System */
.dc-tool-wrap {
    max-width: 1080px;
    margin: 26px auto 64px auto;
    padding: 0 18px;
}

.dc-tool-hero {
    text-align: center;
    margin-bottom: 28px;
}

.dc-tool-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.38);
    color: #38bdf8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.dc-tool-hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.dc-tool-hero p {
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 740px;
    margin: 0 auto;
}

.dc-autofill-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
    font-size: 0.86rem;
}

.dc-autofill-banner.empty {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #bae6fd;
}

.dc-autofill-banner a {
    background: linear-gradient(135deg, #00d4ff, #0284c7);
    color: #04131d;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.dc-tool-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    margin-bottom: 24px;
}

.dc-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.dc-tool-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 860px) {
    .dc-tool-split {
        grid-template-columns: 1fr;
    }
}

.dc-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.dc-input, .dc-select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(7, 11, 20, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.94rem;
    font-family: inherit;
}

.dc-input:focus, .dc-select:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.dc-range {
    width: 100%;
    accent-color: #22d3ee;
    cursor: pointer;
}

.dc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dc-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.dc-pill-btn:hover, .dc-pill-btn.active {
    background: rgba(0, 212, 255, 0.18);
    border-color: #22d3ee;
    color: #ffffff;
}

.dc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.dc-kpi-box {
    background: rgba(7, 11, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.dc-kpi-box .kpi-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.dc-kpi-box .kpi-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.1;
}

.dc-kpi-box .kpi-sub {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 3px;
}

.dc-cta-box {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(14, 165, 233, 0.09));
    border: 1px solid rgba(45, 212, 191, 0.42);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 18px;
}

.dc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #04202a;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.dc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.dc-seo-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}

.dc-seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dc-seo-table th, .dc-seo-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    text-align: left;
    color: #cbd5e1;
}

.dc-seo-table th {
    color: #38bdf8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 212, 255, 0.06);
}

.dc-sister-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dc-sister-link {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.dc-sister-link:hover {
    border-color: #22d3ee;
    transform: translateY(-2px);
}

.dc-sister-link strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dc-sister-link span {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Light theme readability adjustments */
[data-theme="light"] .dc-tool-hero h1 { color: #0f172a; }
[data-theme="light"] .dc-tool-hero p { color: #475569; }
[data-theme="light"] .dc-tool-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.12); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); }
[data-theme="light"] .dc-field-label { color: #1e293b; }
[data-theme="light"] .dc-input, [data-theme="light"] .dc-select { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
[data-theme="light"] .dc-kpi-box { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .dc-kpi-box .kpi-sub { color: #475569; }
[data-theme="light"] .dc-seo-table th, [data-theme="light"] .dc-seo-table td { color: #1e293b; border-color: #e2e8f0; }
[data-theme="light"] .dc-sister-link { background: #f8fafc; border-color: #cbd5e1; }
[data-theme="light"] .dc-sister-link strong { color: #0f172a; }
[data-theme="light"] .dc-sister-link span { color: #475569; }
[data-theme="light"] .dc-pill-btn { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
