:root {
    --sps-blue: #1E73BE;
    --sps-green: #3FAE2A;
    --sps-dark: #1f2933;
    --sps-gray: #64748b;
    --sps-light: #F5F7FA;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--sps-light);
    color: var(--sps-dark);
}

.sps-navbar {
    background: linear-gradient(135deg, var(--sps-blue), #155a96);
    padding: 18px 0;
}

.navbar-brand {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-brand span {
    color: var(--sps-green);
}

.hero-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at top right, rgba(63, 174, 42, 0.18), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.eyebrow {
    display: inline-flex;
    background: rgba(30, 115, 190, 0.1);
    color: var(--sps-blue);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero-section h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 19px;
    color: var(--sps-gray);
    max-width: 680px;
    margin-bottom: 30px;
}

.scan-form {
    background: #fff;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    max-width: 760px;
}

.scan-form .form-control {
    height: 58px;
    border: 1px solid #e5e7eb;
    border-radius: 14px 0 0 14px;
    font-size: 16px;
}

.btn-sps {
    background: linear-gradient(135deg, var(--sps-green), #2d8d1e);
    border: none;
    color: #fff;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 0 14px 14px 0;
}

.btn-sps:hover {
    color: #fff;
    filter: brightness(0.95);
}

.scan-form small {
    display: block;
    color: var(--sps-gray);
    margin-top: 10px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row span {
    background: #fff;
    color: var(--sps-dark);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.score-card {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(30, 115, 190, 0.12);
}

.score-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    color: var(--sps-gray);
}

.score-card-header strong {
    color: var(--sps-green);
}

.score-circle {
    width: 190px;
    height: 190px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--sps-green) 0 78%, #e5e7eb 78% 100%);
}

.score-circle span {
    font-size: 54px;
    font-weight: 900;
}

.score-circle small {
    margin-top: 25px;
    color: var(--sps-gray);
}

.mini-metrics {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.mini-metrics div {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    background: var(--sps-light);
    border-radius: 14px;
}

.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-title h2 {
    font-weight: 900;
    font-size: 36px;
}

.section-title p {
    color: var(--sps-gray);
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    height: 100%;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: rgba(30, 115, 190, 0.12);
    color: var(--sps-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.feature-box h3 {
    font-weight: 800;
    font-size: 21px;
}

.feature-box p {
    color: var(--sps-gray);
}

.report-section {
    padding: 70px 0;
}

.report-header {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.report-header h1 {
    font-weight: 900;
    margin: 0;
}

.report-header p {
    color: var(--sps-gray);
    margin: 8px 0 0;
}

.report-score {
    min-width: 160px;
    height: 160px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--sps-blue), #155a96);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.report-score span {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.report-score small {
    opacity: 0.8;
}

.report-score p {
    color: #fff;
    font-weight: 800;
    margin: 8px 0 0;
}

.score-grid {
    margin-top: 24px;
}

.metric-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.metric-card span {
    display: block;
    color: var(--sps-gray);
    margin-bottom: 6px;
}

.metric-card strong {
    font-size: 32px;
    font-weight: 900;
}

.panel {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.panel h2 {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 20px;
}

.issue-list {
    display: grid;
    gap: 15px;
}

.issue-item {
    border: 1px solid #e5e7eb;
    border-left: 5px solid var(--sps-blue);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.issue-item strong {
    font-size: 17px;
}

.issue-item p {
    color: var(--sps-gray);
    margin: 6px 0;
}

.issue-item small {
    color: var(--sps-dark);
}

.issue-item span {
    font-weight: 800;
    font-size: 13px;
}

.severity-critical {
    border-left-color: #dc2626;
}

.severity-high {
    border-left-color: #f97316;
}

.severity-medium {
    border-left-color: #eab308;
}

.severity-low {
    border-left-color: var(--sps-green);
}

.lead-panel .btn-sps {
    border-radius: 14px;
}

.footer {
    padding: 28px 0;
    background: #111827;
    color: #cbd5e1;
    text-align: center;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .scan-form .input-group {
        display: grid;
        gap: 10px;
    }

    .scan-form .form-control,
    .btn-sps {
        border-radius: 14px !important;
        width: 100%;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-score {
        width: 100%;
    }
}

/* Premium Report Page */

.premium-report {
    background:
        radial-gradient(circle at top right, rgba(63, 174, 42, 0.12), transparent 28%),
        radial-gradient(circle at top left, rgba(30, 115, 190, 0.12), transparent 32%),
        #f5f8fc;
    padding-top: 50px;
}

.report-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(30, 115, 190, 0.1);
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.report-hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    right: -80px;
    top: -90px;
    background: rgba(63, 174, 42, 0.14);
}

.report-hero-content {
    position: relative;
    z-index: 2;
}

.report-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin: 0;
    color: var(--sps-dark);
}

.report-url {
    color: var(--sps-gray);
    font-size: 16px;
    margin-top: 10px;
    word-break: break-word;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.report-meta span {
    background: #fff;
    border: 1px solid rgba(30, 115, 190, 0.1);
    color: #334155;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.health-score-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.score-ring {
    --score: 0;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--sps-green) calc(var(--score) * 1%), #e6edf5 0);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.score-ring div {
    text-align: center;
}

.score-ring strong {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: var(--sps-dark);
}

.score-ring span {
    color: var(--sps-gray);
    font-weight: 800;
}

.score-status {
    text-align: center;
}

.score-status span {
    display: block;
    color: var(--sps-gray);
    font-size: 13px;
    margin-bottom: 4px;
}

.score-status strong {
    font-size: 20px;
    color: var(--sps-blue);
}

.report-summary-grid,
.pagespeed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.summary-card,
.speed-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.summary-card span,
.speed-card span {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-card strong,
.speed-card strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 12px;
}

.summary-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.pagespeed-panel {
    background: #fff;
    border-radius: 28px;
    padding: 26px;
    margin-top: 24px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 6px;
}

.section-heading p {
    color: var(--sps-gray);
    margin: 0;
    line-height: 1.5;
}

.mini-progress {
    height: 9px;
    border-radius: 999px;
    background: #e6edf5;
    overflow: hidden;
}

.mini-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sps-blue), var(--sps-green));
}

.report-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.report-main {
    display: grid;
    gap: 24px;
}

.premium-panel {
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.issue-count {
    background: rgba(30, 115, 190, 0.1);
    color: var(--sps-blue);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.premium-issue-list {
    display: grid;
    gap: 16px;
}

.premium-issue-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e5eaf0;
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-issue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.issue-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: var(--sps-blue);
}

.severity-critical .issue-icon {
    background: #dc2626;
}

.severity-high .issue-icon {
    background: #f97316;
}

.severity-medium .issue-icon {
    background: #eab308;
}

.severity-low .issue-icon {
    background: var(--sps-green);
}

.issue-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.issue-title-row strong {
    font-size: 17px;
    font-weight: 900;
    color: #1f2937;
}

.issue-content p {
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px;
}

.severity-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.severity-badge-critical {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.severity-badge-high {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.severity-badge-medium {
    background: rgba(234, 179, 8, 0.15);
    color: #8a5f00;
}

.severity-badge-low {
    background: rgba(63, 174, 42, 0.12);
    color: #237a17;
}

.recommendation-box {
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    padding: 13px 15px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.recommendation-box span {
    display: block;
    font-weight: 900;
    color: var(--sps-blue);
    margin-bottom: 4px;
}

.report-sidebar {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 20px;
}

.premium-lead-panel {
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(63, 174, 42, 0.18), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid rgba(30, 115, 190, 0.1);
}

.lead-badge {
    display: inline-flex;
    background: rgba(63, 174, 42, 0.12);
    color: #237a17;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.premium-lead-panel h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 12px;
}

.premium-lead-panel p {
    color: #64748b;
    line-height: 1.6;
}

.lead-benefits {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.lead-benefits li {
    position: relative;
    padding-left: 28px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

.lead-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(63, 174, 42, 0.14);
    color: var(--sps-green);
    font-size: 12px;
    font-weight: 900;
}

.premium-lead-panel form {
    display: grid;
    gap: 12px;
}

.premium-lead-panel .form-control {
    height: 50px;
    border-radius: 14px;
    border: 1px solid #dbe3ea;
    padding: 0 15px;
}

.premium-lead-panel .btn-sps {
    border-radius: 14px;
    height: 52px;
    font-weight: 900;
    margin-top: 4px;
}

.premium-lead-panel small {
    display: block;
    color: #64748b;
    line-height: 1.5;
    margin-top: 14px;
}

.mini-info-panel {
    border-radius: 28px;
}

.mini-info-panel h3 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 18px;
}

.scan-detail-row {
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.scan-detail-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.scan-detail-row span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
}

.scan-detail-row strong {
    display: block;
    color: #1f2937;
    font-weight: 900;
    word-break: break-word;
}

.checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.check-item {
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.check-item span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.check-pass span {
    background: rgba(63, 174, 42, 0.12);
    color: var(--sps-green);
}

.check-fail span {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.check-item strong {
    font-size: 14px;
    font-weight: 900;
}

.empty-state {
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 20px;
    padding: 24px;
}

.empty-state strong {
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
}

.empty-state p {
    color: #64748b;
    margin: 0;
}

.premium-alert {
    border-radius: 20px;
    padding: 22px;
}

/* Responsive report page */
@media (max-width: 1199px) {
    .report-body-grid {
        grid-template-columns: 1fr;
    }

    .report-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

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

    .health-score-card {
        max-width: 100%;
    }

    .report-summary-grid,
    .pagespeed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .premium-report {
        padding-top: 28px;
    }

    .report-hero {
        padding: 24px;
        border-radius: 26px;
    }

    .report-summary-grid,
    .pagespeed-grid,
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .summary-card,
    .speed-card {
        padding: 20px;
    }

    .section-heading {
        flex-direction: column;
    }

    .premium-issue-item {
        grid-template-columns: 1fr;
    }

    .issue-title-row {
        flex-direction: column;
    }
}

/* Fix report hero overflow issue */

.report-hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    overflow: hidden;
}

.report-hero-content {
    min-width: 0;
}

.report-hero h1 {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(34px, 4.2vw, 56px);
}

.report-url {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.health-score-card {
    min-width: 0;
    width: 100%;
    max-width: 260px;
    justify-self: end;
}

.score-ring {
    width: 155px;
    height: 155px;
}

.score-ring strong {
    font-size: 42px;
}

.score-ring span {
    font-size: 13px;
}

.score-status span {
    max-width: 180px;
    overflow-wrap: normal;
}

/* Tablet fix */
@media (max-width: 991px) {
    .report-hero {
        grid-template-columns: 1fr;
    }

    .health-score-card {
        justify-self: stretch;
        max-width: 100%;
    }
}

/* Small screens */
@media (max-width: 575px) {
    .report-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .score-ring {
        width: 145px;
        height: 145px;
    }

    .score-ring strong {
        font-size: 38px;
    }
}

.report-domain {
    line-height: 1.05;
}

/* Admin Area */

.admin-body {
    background: #f4f7fb;
    min-height: 100vh;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.admin-sidebar {
    background: #0f172a;
    color: #fff;
    padding: 26px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
}

.admin-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sps-blue), var(--sps-green));
    display: grid;
    place-items: center;
    font-weight: 900;
}

.admin-brand strong {
    font-size: 18px;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-main {
    padding: 34px;
}

.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(63, 174, 42, 0.15), transparent 34%),
        radial-gradient(circle at bottom right, rgba(30, 115, 190, 0.18), transparent 35%),
        #f5f8fc;
}

.admin-login-card {
    width: min(100%, 440px);
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.admin-login-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sps-blue), var(--sps-green));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    margin-bottom: 22px;
}

.admin-login-card h1 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 8px;
}

.admin-login-card p {
    color: #64748b;
    margin-bottom: 24px;
}

.admin-login-card form {
    display: grid;
    gap: 14px;
}

.admin-login-card .form-control {
    height: 52px;
    border-radius: 14px;
}

.admin-login-card .btn-sps {
    border-radius: 14px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
}

.admin-page-header h1 {
    font-size: 38px;
    font-weight: 900;
    margin: 0;
}

.admin-page-header p {
    color: #64748b;
    margin: 6px 0 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e7edf4;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.admin-stat-card {
    padding: 24px;
}

.admin-stat-card span {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    font-size: 40px;
    font-weight: 900;
}

.admin-panel {
    padding: 26px;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-panel h2,
.admin-panel-header h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 6px;
}

.admin-panel-header p {
    color: #64748b;
    margin: 0;
}

.admin-btn,
.admin-link,
.admin-action-btn {
    text-decoration: none;
    font-weight: 900;
}

.admin-btn {
    background: linear-gradient(135deg, var(--sps-blue), #155a96);
    color: #fff;
    padding: 11px 16px;
    border-radius: 12px;
}

.admin-btn:hover {
    color: #fff;
}

.admin-table {
    vertical-align: middle;
    margin: 0;
}

.admin-table th {
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e7edf4;
}

.admin-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eef2f7;
}

.admin-table small {
    color: #64748b;
}

.admin-score-pill {
    display: inline-flex;
    background: rgba(30, 115, 190, 0.1);
    color: var(--sps-blue);
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.admin-link {
    color: var(--sps-blue);
}

.status-pill-admin {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-new,
.report-requested {
    background: rgba(30, 115, 190, 0.1);
    color: var(--sps-blue);
}

.status-contacted,
.report-generating {
    background: rgba(234, 179, 8, 0.15);
    color: #8a5f00;
}

.status-converted,
.report-generated {
    background: rgba(63, 174, 42, 0.13);
    color: #237a17;
}

.status-closed,
.report-sent {
    background: rgba(15, 23, 42, 0.1);
    color: #334155;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-detail-list {
    display: grid;
    gap: 16px;
}

.admin-detail-list div {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 14px;
}

.admin-detail-list span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-detail-list strong {
    color: #1f2937;
}

.admin-big-score {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--sps-green) 75%, #e6edf5 0);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.admin-big-score strong {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.admin-big-score span {
    color: #64748b;
    font-weight: 800;
}

.admin-score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.admin-score-breakdown div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
}

.admin-score-breakdown span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-score-breakdown strong {
    font-size: 22px;
    font-weight: 900;
}

.admin-status-form {
    display: grid;
    gap: 13px;
}

.admin-status-form label {
    font-weight: 900;
    color: #334155;
}

.admin-status-form .form-control {
    border-radius: 14px;
}

.admin-status-form .btn-sps {
    border-radius: 14px;
    justify-self: start;
}

.admin-action-stack {
    display: grid;
    gap: 12px;
}

.admin-action-btn {
    border: none;
    background: linear-gradient(135deg, var(--sps-green), #2d8d1e);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
}

.admin-action-btn:hover {
    color: #fff;
}

.admin-action-btn.muted {
    background: #e5eaf0;
    color: #64748b;
    cursor: not-allowed;
}

.admin-issues-list {
    display: grid;
    gap: 14px;
}

.admin-issue-item {
    border: 1px solid #e7edf4;
    border-left: 5px solid var(--sps-blue);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-issue-item strong {
    font-weight: 900;
}

.admin-issue-item p {
    color: #64748b;
    margin: 6px 0;
}

.admin-issue-item small {
    color: #334155;
}

.admin-issue-item span {
    font-weight: 900;
    font-size: 12px;
}

.admin-issue-item.severity-critical {
    border-left-color: #dc2626;
}

.admin-issue-item.severity-high {
    border-left-color: #f97316;
}

.admin-issue-item.severity-medium {
    border-left-color: #eab308;
}

.admin-issue-item.severity-low {
    border-left-color: var(--sps-green);
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-nav {
        grid-template-columns: repeat(4, auto);
        justify-content: start;
        overflow-x: auto;
    }

    .admin-stats-grid,
    .admin-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .admin-main {
        padding: 22px;
    }

    .admin-page-header,
    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-stats-grid,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-score-breakdown {
        grid-template-columns: 1fr;
    }
}
/* Fix admin login layout */

.admin-shell-login {
    display: block;
    min-height: 100vh;
}

.admin-shell-login .admin-main {
    padding: 0;
    min-height: 100vh;
}

.admin-login-wrap {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
    padding: 38px;
}

.admin-login-card .form-control {
    width: 100%;
}

.admin-login-card .btn-sps {
    width: 100%;
}

.ai-package-box {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(63, 174, 42, 0.08));
    border: 1px solid #dceaf7;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.ai-package-box h3 {
    color: var(--sps-blue);
    font-size: 20px;
    margin-bottom: 10px;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-panel-header h2 {
    margin: 0 0 4px;
}

.admin-panel-header p {
    margin: 0;
    color: #64748b;
}

.ai-package-summary {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(63, 174, 42, 0.10));
    border: 1px solid #dceaf7;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.ai-package-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.ai-package-summary strong {
    display: block;
    color: var(--sps-blue);
    font-size: 20px;
    font-weight: 900;
}

.ai-report-preview {
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    padding: 24px;
}

.ai-report-preview h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 28px 0 12px;
    color: #1f2937;
}

.ai-report-preview h2:first-child {
    margin-top: 0;
}

.ai-report-preview h3 {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 8px;
    color: #1f2937;
}

.ai-report-preview p {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 12px;
}

.ai-report-list {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.ai-report-item {
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    padding: 18px;
}

.ai-priority {
    display: inline-flex;
    background: rgba(30, 115, 190, 0.1);
    color: var(--sps-blue);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 10px;
}

.ai-package-box {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(63, 174, 42, 0.08));
    border: 1px solid #dceaf7;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.ai-package-box h3 {
    color: var(--sps-blue);
    font-size: 20px;
    margin-bottom: 10px;
}

.status-generated {
    background: rgba(63, 174, 42, 0.12);
    color: #2f8f22;
}

.status-failed {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.muted-text {
    color: #64748b;
}