/**
 * MarketMeNow Speed Test Tool Styles
 * Aesthetic-Usability, Visual Hierarchy, Spacing System Compliant
 */

/* Container & Wrapper */
.mmn-speed-page {
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

.mmn-speed-hero {
    padding: 48px 24px 48px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 600px) {
    .mmn-speed-hero {
        padding: 28px 20px 32px;
    }
}

.mmn-speed-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mmn-speed-badge-pill .mmn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.mmn-speed-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.18;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.mmn-speed-title .mmn-gradient-text {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mmn-speed-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    max-width: 720px;
    margin: 0 auto 36px;
}

/* Input Search Box (Elevated & Refined) */
.mmn-speed-input-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 680px;
    margin: 0 auto;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.mmn-speed-input-box:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16), 0 20px 48px -10px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.mmn-input-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
}

.mmn-speed-input-box:focus-within .mmn-input-icon-wrap {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
    transform: scale(1.05);
}

.mmn-speed-input-box input[type="text"] {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    width: 100%;
    background: transparent;
    padding: 10px 0;
    letter-spacing: -0.01em;
}

.mmn-speed-input-box input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.mmn-speed-submit-btn {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #059669;
    border-radius: 14px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.mmn-speed-submit-btn:hover {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.mmn-speed-submit-btn:active {
    transform: translateY(0);
}

/* Quick Hints & Trust Row */
.mmn-speed-hero-meta {
    max-width: 680px;
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mmn-speed-quick-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mmn-hints-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.mmn-hint-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mmn-hint-chip:hover {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.4);
    color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.mmn-speed-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 2px;
}

.mmn-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

@media (max-width: 640px) {
    .mmn-speed-input-box {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        gap: 14px;
    }
    .mmn-input-icon-wrap {
        display: none;
    }
    .mmn-speed-input-box input[type="text"] {
        text-align: center;
        padding: 4px 0;
    }
    .mmn-speed-submit-btn {
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
    }
    .mmn-speed-trust-row {
        gap: 8px 16px;
    }
}
/* In-page Error Banner */
.mmn-speed-error-banner {
    display: none;
    max-width: 600px;
    margin: 16px auto 0;
    padding: 12px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.05);
}

/* Progress / Loading Overlay */
.mmn-speed-loader {
    display: none;
    max-width: 600px;
    margin: 40px auto 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.mmn-speed-loader.active {
    display: block;
    animation: mmnFadeIn 0.3s ease-out;
}

.mmn-spinner-ring {
    width: 52px;
    height: 52px;
    border: 4px solid #e2e8f0;
    border-top-color: #10b981;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: mmnSpin 0.9s linear infinite;
}

.mmn-loader-status {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px;
    min-height: 24px;
}

.mmn-loader-bar-wrap {
    background: #f1f5f9;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mmn-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 15%;
    transition: width 0.4s ease;
}

.mmn-loader-note {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Results Section */
.mmn-speed-results {
    display: none;
    max-width: 960px;
    margin: 0 auto 64px;
    padding: 0 20px;
}

.mmn-speed-results.active {
    display: block;
    animation: mmnFadeIn 0.4s ease-out;
}

/* Device Switcher */
.mmn-device-switch {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 4px;
}

.mmn-device-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mmn-device-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Score Banner Card */
.mmn-score-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .mmn-score-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }
}

.mmn-score-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mmn-gauge-svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.mmn-gauge-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 10;
}

.mmn-gauge-fill {
    fill: none;
    stroke: #10b981;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.3s ease;
}

.mmn-gauge-number {
    position: absolute;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.mmn-gauge-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmn-score-status-badge {
    margin-top: 12px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
}

.mmn-score-good {
    background: #dcfce7;
    color: #166534;
}

.mmn-score-warning {
    background: #fef3c7;
    color: #92400e;
}

.mmn-score-critical {
    background: #fee2e2;
    color: #991b1b;
}

.mmn-score-meta h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.mmn-score-meta p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 16px;
}

.mmn-score-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .mmn-score-meta-tags {
        justify-content: center;
    }
}

.mmn-meta-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mmn-meta-tag strong {
    color: #0f172a;
}

/* Core Web Vitals Grid */
.mmn-cwv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .mmn-cwv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .mmn-cwv-grid {
        grid-template-columns: 1fr;
    }
}

.mmn-cwv-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mmn-cwv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mmn-cwv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mmn-cwv-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-cwv-pill {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mmn-cwv-pill.good {
    background: #dcfce7;
    color: #166534;
}

.mmn-cwv-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.mmn-cwv-pill.critical {
    background: #fee2e2;
    color: #991b1b;
}

.mmn-cwv-val {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 8px;
}

.mmn-cwv-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   DIAGNOSTIC FINDINGS CARD & RICH AUDIT REPORT
   ========================================================================== */
.mmn-issues-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mmn-issues-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.mmn-issues-header-left {
    max-width: 600px;
}

.mmn-issues-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    background: #f0fdf4;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    margin-bottom: 8px;
}

.mmn-issues-card-header h4 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.mmn-issues-subtitle {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.mmn-issues-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mmn-stat-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}

.mmn-stat-chip-label {
    font-size: 10.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
}

.mmn-stat-chip-val {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.mmn-stat-chip.highlight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mmn-stat-chip.highlight .mmn-stat-chip-val {
    color: #047857;
}

/* Tabs Navigation */
.mmn-audit-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mmn-audit-tab {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mmn-audit-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mmn-audit-tab.active {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

.mmn-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mmn-tab-dot.critical {
    background: #ef4444;
}

.mmn-tab-dot.warning {
    background: #f59e0b;
}

.mmn-tab-dot.good {
    background: #10b981;
}

.mmn-tab-count {
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 100px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.mmn-audit-tab.active .mmn-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Tab Panel Notes */
.mmn-tab-panel {
    display: none;
}

.mmn-tab-panel.active {
    display: block;
}

.mmn-panel-header-note {
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.mmn-note-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    background: #e2e8f0;
    color: #1e293b;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.mmn-panel-header-note.good {
    background: #f0fdf4;
    border-color: #dcfce7;
    color: #166534;
}

/* Issues List & Expandable Rows */
.mmn-issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmn-issue-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mmn-issue-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mmn-issue-row.expanded {
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.09);
}

.mmn-issue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
    background: #ffffff;
}

.mmn-issue-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.mmn-issue-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmn-issue-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mmn-issue-impact-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.mmn-issue-impact-tag.critical {
    background: #fee2e2;
    color: #991b1b;
}

.mmn-issue-impact-tag.high {
    background: #fef3c7;
    color: #92400e;
}

.mmn-issue-impact-tag.medium {
    background: #f1f5f9;
    color: #475569;
}

.mmn-issue-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mmn-issue-savings-pill {
    font-size: 12.5px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 4px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.mmn-issue-savings-pill.neutral {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.mmn-issue-chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.mmn-issue-row.expanded .mmn-issue-chevron {
    transform: rotate(180deg);
    color: #047857;
}

/* Expandable Drawer */
.mmn-issue-drawer {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.mmn-issue-row.expanded .mmn-issue-drawer {
    display: block;
    padding-top: 16px;
}

.mmn-issue-explanation {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px;
}

/* Resource Table */
.mmn-issue-files-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.mmn-issue-files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.mmn-issue-files-table th {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.04em;
}

.mmn-issue-files-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.mmn-issue-files-table tr:last-child td {
    border-bottom: none;
}

.mmn-file-name {
    font-weight: 600;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.mmn-file-full-url {
    font-size: 11px;
    color: #94a3b8;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-top: 2px;
}

.mmn-num-col {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mmn-num-col.savings {
    color: #047857;
}

.mmn-num-col.delay {
    color: #b45309;
}

/* Solution Tip Box */
.mmn-issue-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    border-radius: 6px;
    font-size: 12.5px;
    color: #166534;
    line-height: 1.5;
}

.mmn-tip-badge {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Passed Audits Grid */
.mmn-passed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mmn-passed-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.mmn-passed-card-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.mmn-passed-card-body h5 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-passed-card-body p {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 680px) {
    .mmn-issues-card {
        padding: 20px 16px;
    }

    .mmn-issue-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mmn-issue-meta-group {
        width: 100%;
        justify-content: space-between;
    }

    .mmn-issues-stats-bar {
        width: 100%;
    }

    .mmn-stat-chip {
        flex: 1;
        min-width: 90px;
    }
}

/* ==========================================================================
   STEP 2: ACTIONABLE FIX OFFER & LEAD CAPTURE
   ========================================================================== */
.mmn-fix-offer-box {
    background: #ffffff;
    border: 2px solid #10b981;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .mmn-fix-offer-box {
        padding: 24px 20px;
    }
}

.mmn-fix-offer-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mmn-offer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mmn-offer-header-text h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mmn-offer-header-text p {
    font-size: 15px;
    color: #475569;
    margin: 0;
    max-width: 600px;
}

.mmn-offer-price-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 12px 18px;
    text-align: right;
    flex-shrink: 0;
}

.mmn-offer-price-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #065f46;
}

.mmn-offer-price-val {
    font-size: 24px;
    font-weight: 800;
    color: #047857;
}

.mmn-offer-price-sub {
    font-size: 11px;
    color: #64748b;
}

.mmn-offer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 860px) {
    .mmn-offer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.mmn-offer-details h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-offer-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mmn-offer-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.mmn-offer-bullets li svg {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 3px;
}

.mmn-it-partner-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.mmn-it-partner-note svg {
    flex-shrink: 0;
    color: #64748b;
    margin-top: 2px;
}

/* Lead Form */
.mmn-lead-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.mmn-lead-card h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-lead-card p.form-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
}

.mmn-form-group {
    margin-bottom: 14px;
}

.mmn-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.mmn-form-group input[type="text"],
.mmn-form-group input[type="email"],
.mmn-form-group input[type="tel"],
.mmn-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.mmn-form-group input:focus,
.mmn-form-group textarea:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.mmn-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 16px;
    cursor: pointer;
}

.mmn-consent-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #10b981;
}

.mmn-form-submit-btn {
    width: 100%;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mmn-form-submit-btn:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.mmn-form-security-note {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mmn-form-feedback {
    display: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 14px;
}

.mmn-form-feedback.success {
    display: block;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.mmn-form-feedback.error {
    display: block;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ==========================================================================
   EDUCATIONAL CONTENT BELOW INTERACTIVE TOOL
   ========================================================================== */
.mmn-speed-edu-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.mmn-edu-header {
    text-align: center;
    margin-bottom: 48px;
}

.mmn-edu-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.mmn-edu-header p {
    font-size: 16px;
    color: #475569;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.mmn-edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .mmn-edu-grid {
        grid-template-columns: 1fr;
    }
}

.mmn-edu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.mmn-edu-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mmn-edu-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-edu-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* 4-Step Optimization Process */
.mmn-process-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 48px;
}

.mmn-process-box h3 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.mmn-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .mmn-process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .mmn-process-steps {
        grid-template-columns: 1fr;
    }
}

.mmn-step-item {
    position: relative;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.mmn-step-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.mmn-step-item h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.mmn-step-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}



/* Animations */
@keyframes mmnSpin {
    to { transform: rotate(360deg); }
}

@keyframes mmnFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
