/* Hipernet kurumsal hız testi */
.hst-section {
    --hst-orange: #ec741a;
    --hst-orange-2: #f08b1d;
    --hst-ink: #1a2332;
    --hst-muted: #5c6b7a;
    --hst-line: #e6ebf0;
    --hst-bg: #f7f8fa;
    padding: 2rem 0 3.5rem;
    background:
        radial-gradient(1200px 400px at 10% -10%, rgba(236, 116, 26, 0.12), transparent 60%),
        radial-gradient(900px 360px at 90% 0%, rgba(26, 35, 50, 0.06), transparent 55%),
        var(--hst-bg);
}

.hst-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.hst-card,
.hst-tip {
    background: #fff;
    border: 1px solid var(--hst-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(26, 35, 50, 0.05);
}

.hst-card {
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.hst-lead {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    color: var(--hst-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.hst-lead strong { color: var(--hst-ink); }

.hst-gauge {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0.5rem auto 1rem;
}

.hst-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.hst-ring-bg,
.hst-ring-fg {
    fill: none;
    stroke-width: 8;
}

.hst-ring-bg { stroke: #edf1f5; }

.hst-ring-fg {
    stroke: url(#none);
    stroke: var(--hst-orange);
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 0.25s ease;
}

.hst-gauge.is-running .hst-ring-fg {
    animation: hst-spin 1.2s linear infinite;
    stroke-dashoffset: 80;
}

@keyframes hst-spin {
    to { transform: rotate(270deg); }
}

.hst-go {
    position: absolute;
    inset: 28px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--hst-orange-2) 0%, var(--hst-orange) 55%, #e05a10 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(236, 116, 26, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hst-go:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 16px 34px rgba(236, 116, 26, 0.42);
}

.hst-go:disabled {
    cursor: default;
    filter: saturate(0.95);
}

.hst-go-label {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
}

.hst-go-live {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hst-go-unit {
    font-size: 0.78rem;
    opacity: 0.9;
    letter-spacing: 0.04em;
}

.hst-status {
    margin: 0 0 1.25rem;
    color: var(--hst-muted);
    font-size: 0.92rem;
    min-height: 1.4em;
}

.hst-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.hst-metric {
    border: 1px solid var(--hst-line);
    border-radius: 14px;
    padding: 0.75rem 0.4rem;
    background: #fbfcfd;
}

.hst-metric.is-active {
    border-color: rgba(236, 116, 26, 0.45);
    box-shadow: inset 0 0 0 1px rgba(236, 116, 26, 0.15);
}

.hst-metric-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hst-muted);
    margin-bottom: 0.2rem;
}

.hst-metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hst-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hst-metric-unit {
    font-size: 0.72rem;
    color: var(--hst-muted);
}

.hst-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.hst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hst-btn-primary {
    background: linear-gradient(135deg, var(--hst-orange), var(--hst-orange-2));
    color: #fff !important;
}

.hst-btn-primary:hover { filter: brightness(1.05); color: #fff !important; }

.hst-btn-ghost {
    background: #fff;
    border-color: var(--hst-line);
    color: var(--hst-ink);
}

.hst-btn-ghost:hover {
    border-color: var(--hst-orange);
    color: var(--hst-orange);
}

.hst-aside { display: grid; gap: 1rem; }

.hst-tip {
    padding: 1.2rem 1.25rem;
    text-align: left;
}

.hst-tip h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: var(--hst-ink);
}

.hst-tip ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--hst-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.hst-tip li + li { margin-top: 0.35rem; }

.hst-tip p {
    margin: 0;
    color: var(--hst-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.hst-tip-muted { background: #fbfcfd; }

@media (max-width: 991px) {
    .hst-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .hst-section { padding: 1.25rem 0 2.5rem; }
    .hst-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hst-gauge { width: 196px; height: 196px; }
    .hst-go-live { font-size: 1.6rem; }
}

/* Hipernet LibreSpeed gömülü panel + Ookla alternatif */
.hst-card-ookla {
    text-align: left;
    padding: 1.25rem 1.25rem 1.1rem;
}

.hst-ookla-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hst-line);
}

.hst-ookla-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.hst-ookla-brand strong {
    display: block;
    color: var(--hst-ink);
    font-size: 1rem;
    line-height: 1.2;
}

.hst-ookla-brand small {
    display: block;
    color: var(--hst-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.hst-ookla-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.1rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a2332, #2c3a4d);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.hst-ookla-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hst-card-ookla .hst-lead {
    margin: 0 0 1rem;
    text-align: left;
    max-width: none;
}

.hst-ookla-stage {
    position: relative;
    border: 1px solid var(--hst-line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    min-height: 680px;
    box-shadow: inset 0 0 0 1px rgba(26, 35, 50, 0.02);
}

.hst-ookla-frame {
    display: block;
    width: 100%;
    height: 680px;
    border: 0;
    background: #fff;
}

.hst-ookla-fallback {
    margin-top: 1rem;
    padding: 1.15rem 1.1rem 1.25rem;
    border: 1px dashed #ddd5cd;
    border-radius: 16px;
    background: #fbfaf8;
    text-align: center;
}

.hst-ookla-fallback-inner {
    max-width: 26rem;
    margin: 0 auto;
}

.hst-ookla-fallback-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hst-muted);
}

.hst-ookla-go {
    width: 108px;
    height: 108px;
    border: 0;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #8b735f;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow:
        0 0 0 10px #f3eee9,
        0 0 0 12px #d8cfc6,
        0 14px 28px rgba(26, 35, 50, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hst-ookla-go:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 10px #f3eee9,
        0 0 0 12px #c4b5a8,
        0 16px 32px rgba(26, 35, 50, 0.16);
}

.hst-ookla-fallback-text {
    margin: 0 0 0.85rem;
    color: var(--hst-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.hst-card-ookla .hst-status {
    margin: 0.9rem 0 0;
    text-align: left;
}

.hst-alt {
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid var(--hst-line);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.hst-alt > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--hst-ink);
    list-style: none;
}

.hst-alt > summary::-webkit-details-marker { display: none; }

.hst-alt > summary::after {
    content: '+';
    float: right;
    color: var(--hst-muted);
    font-weight: 400;
}

.hst-alt[open] > summary::after { content: '−'; }

.hst-card-alt {
    margin-top: 1rem;
    box-shadow: none;
    text-align: center;
}

@media (max-width: 991px) {
    .hst-wrap-ookla { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .hst-ookla-stage,
    .hst-ookla-frame { min-height: 560px; height: 560px; }
    .hst-ookla-actions { width: 100%; }
    .hst-ookla-actions .hst-btn { flex: 1; }
}


/* Hipernet LibreSpeed (birincil) */
.hst-card-ls {
    text-align: left;
    padding: 1.25rem 1.25rem 1.1rem;
}

.hst-ls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hst-line);
}

.hst-ls-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.hst-ls-brand strong {
    display: block;
    color: var(--hst-ink);
    font-size: 1rem;
    line-height: 1.2;
}

.hst-ls-brand small {
    display: block;
    color: var(--hst-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.hst-ls-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.1rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ec741a, #e05a10);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.hst-ls-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hst-card-ls .hst-lead {
    margin: 0 0 1rem;
    text-align: left;
    max-width: none;
}

.hst-ls-stage {
    position: relative;
    border: 1px solid #1c2236;
    border-radius: 16px;
    overflow: hidden;
    background: #141827;
    min-height: 640px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hst-ls-frame {
    display: block;
    width: 100%;
    height: 640px;
    border: 0;
    background: #141827;
}

.hst-card-ls .hst-status {
    margin: 0.9rem 0 0;
    text-align: left;
}

.hst-card-ookla-alt {
    text-align: left;
}

.hst-card-ookla-alt .hst-lead {
    margin: 0 0 1rem;
    text-align: left;
    max-width: none;
}

@media (max-width: 991px) {
    .hst-wrap-ls { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .hst-ls-stage,
    .hst-ls-frame { min-height: 560px; height: 560px; }
    .hst-ls-actions { width: 100%; }
    .hst-ls-actions .hst-btn { flex: 1; }
}
