/* ─────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────── */
.sp-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ─────────────────────────────────────────
   SECTION HEADING  (matches ip-information.php)
───────────────────────────────────────── */
.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #5f7a74);
    margin-bottom: 1rem;
    padding-left: 2px;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(78,179,154,0.15);
}

/* ─────────────────────────────────────────
   HERO — dark card (same pattern as ip-information)
───────────────────────────────────────── */
.sp-hero {
    background: linear-gradient(145deg, #0e2d27 0%, #1a4a3d 60%, #0e3530 100%);
    border-radius: 16px;
    border: 1px solid rgba(78,179,154,0.2);
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 420px; height: 300px;
    background: radial-gradient(ellipse, rgba(78,179,154,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Phase label */
.gauge-phase {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(111,209,179,0.7);
    margin-bottom: 1rem;
    min-height: 18px;
    transition: color 0.3s;
}

/* Gauge */
.gauge-wrap {
    position: relative;
    width: 260px;
    height: 155px;
    margin: 0 auto 1.5rem;
}
.gauge-wrap svg { width: 100%; height: 100%; }
.gauge-value {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}
.gauge-number {
    font-family: 'DM Mono', monospace;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.3s;
}
.gauge-unit {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Metric strip — ping / download / upload */
.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}
.metric-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}
.metric-box.active    { border-color: rgba(78,179,154,0.5);  background: rgba(78,179,154,0.08); }
.metric-box.done-dl   { border-color: rgba(111,209,179,0.35); }
.metric-box.done-ul   { border-color: rgba(126,184,244,0.35); }
.metric-box.done-ping { border-color: rgba(249,203,66,0.35); }
.metric-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}
.metric-val {
    font-family: 'DM Mono', monospace;
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    transition: color 0.3s;
}
.metric-val.green  { color: #6fd1b3; }
.metric-val.yellow { color: #f9cb42; }
.metric-val.blue   { color: #7eb8f4; }
.metric-unit-sm {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Start button */
.btn-start {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    background: #4eb39a;
    border: none;
    border-radius: 10px;
    padding: 13px 44px;
    color: #0e2d27;
    cursor: pointer;
    transition: background 0.18s, transform 0.14s;
    letter-spacing: 0.01em;
}
.btn-start:hover    { background: #3a9b83; transform: translateY(-1px); }
.btn-start:active   { transform: scale(0.98); }
.btn-start:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; transform: none; }

/* Progress bar */
.progress-track {
    height: 3px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    margin: 1.1rem auto 0;
    max-width: 320px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}
.progress-track.show { opacity: 1; }
.progress-fill {
    height: 100%;
    width: 0%;
    background: #4eb39a;
    border-radius: 99px;
    transition: width 0.3s ease;
}

/* ─────────────────────────────────────────
   QUALITY BARS — white card
───────────────────────────────────────── */
.quality-card {
    background: #fff;
    border: 1px solid rgba(78,179,154,0.18);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.quality-row   { display: flex; align-items: center; gap: 12px; }
.quality-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #5f7a74;
    white-space: nowrap;
    min-width: 80px;
}
.quality-track {
    flex: 1;
    height: 6px;
    background: rgba(78,179,154,0.1);
    border-radius: 99px;
    overflow: hidden;
}
.quality-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}
.quality-score {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1a2e2b;
    min-width: 70px;
    text-align: right;
}

/* ─────────────────────────────────────────
   DETAIL GRID — white cards matching site style
───────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.detail-card {
    background: #fff;
    border: 1px solid rgba(78,179,154,0.18);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    transition: box-shadow 0.2s;
}
.detail-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.detail-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(78,179,154,0.12);
}
.dicon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: #e1f5ee;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dicon svg {
    width: 14px; height: 14px;
    stroke: #3a9b83;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.detail-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0e2d27;
}
.drow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(78,179,154,0.08);
    gap: 10px;
}
.drow:last-child { border-bottom: none; padding-bottom: 0; }
.dkey {
    font-size: 0.8rem;
    color: #5f7a74;
    white-space: nowrap;
}
.dval {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a2e2b;
    text-align: right;
}
.dval.t {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────
   USE-CASE BADGES
───────────────────────────────────────── */
.usecase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 2rem;
}
.uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(78,179,154,0.18);
    color: #5f7a74;
    background: #f5f9f8;
}
.uc-badge.ok      { color: #2a6b5a;  border-color: rgba(78,179,154,0.3);  background: #e1f5ee; }
.uc-badge.partial { color: #92580a;  border-color: rgba(217,119,6,0.3);   background: #fef3c7; }
.uc-badge.no      { color: #991b1b;  border-color: rgba(239,68,68,0.3);   background: #fee2e2; }
.uc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SEO / FAQ CARD  (matches ip-information.php)
───────────────────────────────────────── */
.seo-card {
    background: #fff;
    border: 1px solid rgba(78,179,154,0.18);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin-top: 0.5rem;
}
.seo-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0e2d27;
    margin-bottom: 0.6rem;
}
.seo-card > p {
    font-size: 0.9rem;
    color: #5f7a74;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.faq-item {
    border-top: 1px solid rgba(78,179,154,0.12);
    padding: 1rem 0;
}
.faq-item:last-child { padding-bottom: 0; }
.faq-q {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2e2b;
    margin-bottom: 0.35rem;
}
.faq-a {
    font-size: 0.85rem;
    color: #5f7a74;
    line-height: 1.75;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 600px) {
    .sp-page      { padding: 1.5rem 1rem 3rem; }
    .sp-hero      { padding: 2rem 1rem 1.75rem; }
    .gauge-number { font-size: 2.4rem; }
    .detail-grid  { grid-template-columns: 1fr; }
    .seo-card     { padding: 1.25rem; }
    .metric-val   { font-size: 1.2rem; }
}
.sp-page-h1 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--text, #1a2e2b); text-align: center; margin: 1.5rem 0 1rem; line-height: 1.25; }
