.hp-librespeed {
    padding: 2.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-align: center;
    font-family: inherit;
    max-width: 900px;
    margin: 2rem auto;
}

.hp-librespeed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.hp-librespeed__item {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hp-librespeed__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hp-librespeed__value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.hp-librespeed__unit {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 0.75rem;
}

.hp-librespeed__gauge-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-librespeed__gauge-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hp-librespeed-stats-frontend {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
}

.hp-librespeed-stats__summary {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hp-librespeed-stats__summary-item {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hp-librespeed-stats__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.hp-librespeed-stats__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.hp-librespeed-stats__value span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #9ca3af;
}

.hp-librespeed-stats__table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.hp-librespeed-stats__table-wrapper::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

.hp-librespeed-row:hover td {
    background: rgba(30, 58, 138, 0.03) !important;
    cursor: pointer;
}

.hp-librespeed-row--shared td {
    background: rgba(30, 58, 138, 0.05) !important;
}

.hp-librespeed__results-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.hp-librespeed__score-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.hp-librespeed__score-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: #1e3a8a;
}

.hp-librespeed__score-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-librespeed__score-dots {
    display: flex;
    gap: 8px;
}

.hp-librespeed__score-dots span {
    width: 14px;
    height: 14px;
    background: #e5e7eb;
    border-radius: 50%;
}

.hp-librespeed__score-dots span.active {
    background: #1e3a8a;
}

.hp-librespeed__quality-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: right;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    padding-left: 2rem;
}

.hp-librespeed__quality-icon {
    position: relative;
    width: 60px;
    height: 45px;
    color: rgba(0, 0, 0, 0.2);
}

.hp-librespeed__quality-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: #111827;
}

.hp-librespeed__footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hp-librespeed__ip-simple {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.hp-librespeed .hp-form__footer {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

.hp-librespeed__info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.01);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.hp-librespeed__info-item {
    font-size: 0.9rem;
    color: #4b5563;
}

.hp-librespeed__info-item strong {
    color: #111827;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .hp-librespeed {
        padding: 1.5rem;
    }

    .hp-librespeed__results-summary {
        flex-direction: column;
    }

    .hp-librespeed__quality-box {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(0, 0, 0, 0.05);
        padding-top: 2rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hp-librespeed__grid {
        grid-template-columns: 1fr;
    }
    
    .hp-librespeed-stats__summary {
        flex-wrap: wrap;
    }
    
    .hp-librespeed-stats__summary-item {
        min-width: calc(50% - 0.75rem);
    }
    
    .hp-librespeed__info-grid {
        grid-template-columns: 1fr;
    }
}