/* =========================================================
   THREATHAWK URL ANALYZER
   CSS PART 1 OF 3

   Includes:
   - Design system
   - Reset
   - Dark/light theme foundation
   - Global background
   - Shared containers
   - Navigation
   - Module header
   - Footer
   - Responsive foundation
========================================================= */


/* =========================================================
   1. DESIGN SYSTEM
========================================================= */

:root {
    /* ThreatHawk platform identity */
    --platform-cyan: #00d4ff;
    --platform-cyan-soft: rgba(0, 212, 255, 0.12);

    /* URL Analyzer module identity */
    --accent: #0ea5e9;
    --accent-bright: #38bdf8;
    --accent-dark: #0369a1;

    --accent-soft: rgba(14, 165, 233, 0.1);
    --accent-medium: rgba(14, 165, 233, 0.18);
    --accent-border: rgba(14, 165, 233, 0.3);
    --accent-glow: rgba(14, 165, 233, 0.22);

    /* Backgrounds */
    --background: #050913;
    --background-secondary: #07101b;

    --surface: #0d1726;
    --surface-secondary: #101c2d;
    --surface-tertiary: #142238;
    --surface-elevated: #17263d;

    --surface-transparent: rgba(13, 23, 38, 0.84);
    --surface-light-transparent: rgba(255, 255, 255, 0.035);

    /* Borders */
    --border: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(148, 163, 184, 0.25);
    --border-accent: rgba(14, 165, 233, 0.34);

    /* Text */
    --text-primary: #edf7ff;
    --text-secondary: #a6b5c9;
    --text-muted: #708096;
    --text-subtle: #536277;

    /* Status colors */
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.12);

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);

    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);

    --critical: #dc2626;
    --critical-soft: rgba(220, 38, 38, 0.14);

    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.12);

    /* Layout */
    --container-width: 1240px;
    --header-height: 78px;

    /* Radius */
    --radius-small: 10px;
    --radius-medium: 15px;
    --radius-large: 22px;
    --radius-extra-large: 28px;

    /* Shadows */
    --shadow-small:
        0 10px 28px rgba(0, 0, 0, 0.18);

    --shadow-medium:
        0 18px 45px rgba(0, 0, 0, 0.25);

    --shadow-large:
        0 28px 70px rgba(0, 0, 0, 0.34);

    --accent-shadow:
        0 16px 38px rgba(14, 165, 233, 0.2);

    /* Motion */
    --transition-fast: 160ms ease;
    --transition: 240ms ease;
    --transition-slow: 420ms ease;
}


/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text-primary);

    background:
        radial-gradient(
            circle at 15% 4%,
            rgba(14, 165, 233, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 35%,
            rgba(0, 212, 255, 0.05),
            transparent 28%
        ),
        var(--background);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;

    transition:
        color var(--transition),
        background var(--transition);
}

body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: -3;

    pointer-events: none;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(119, 143, 174, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(119, 143, 174, 0.1) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0, 0, 0, 0.8) 58%,
            transparent 100%
        );
}

body::after {
    content: "";

    position: fixed;
    top: -260px;
    left: 50%;
    z-index: -2;

    width: 720px;
    height: 720px;

    pointer-events: none;

    border-radius: 50%;

    background: rgba(14, 165, 233, 0.07);

    filter: blur(130px);

    transform: translateX(-50%);
}

body.light-mode {
    --background: #f4f8fb;
    --background-secondary: #edf4f8;

    --surface: #ffffff;
    --surface-secondary: #f8fbfd;
    --surface-tertiary: #eef5f9;
    --surface-elevated: #e8f1f6;

    --surface-transparent: rgba(255, 255, 255, 0.92);
    --surface-light-transparent: rgba(15, 23, 42, 0.035);

    --border: rgba(51, 65, 85, 0.14);
    --border-strong: rgba(51, 65, 85, 0.24);
    --border-accent: rgba(3, 105, 161, 0.3);

    --text-primary: #0f1b24;
    --text-secondary: #42535f;
    --text-muted: #687985;
    --text-subtle: #87959f;

    --shadow-small:
        0 10px 28px rgba(15, 23, 42, 0.07);

    --shadow-medium:
        0 18px 45px rgba(15, 23, 42, 0.1);

    --shadow-large:
        0 28px 70px rgba(15, 23, 42, 0.12);

    background:
        radial-gradient(
            circle at 15% 4%,
            rgba(14, 165, 233, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 35%,
            rgba(0, 212, 255, 0.06),
            transparent 28%
        ),
        var(--background);
}

body.light-mode::before {
    opacity: 0.34;

    background-image:
        linear-gradient(
            rgba(71, 85, 105, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(71, 85, 105, 0.08) 1px,
            transparent 1px
        );
}

body.light-mode::after {
    background: rgba(14, 165, 233, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    color: #02141f;
    background: var(--accent-bright);
}


/* =========================================================
   3. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-elevated);
    border: 2px solid var(--background);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}


/* =========================================================
   4. SHARED LAYOUT
========================================================= */

.module-container {
    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;
}

main {
    min-height: calc(100vh - var(--header-height));
}

.panel-label {
    color: var(--accent-bright);

    font-size: 11px;
    font-weight: 800;

    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.eyebrow {
    color: var(--accent-bright);

    font-size: 12px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.section-heading > div {
    max-width: 720px;
}

.section-heading h2 {
    margin-top: 7px;

    font-size:
        clamp(28px, 4vw, 40px);

    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 470px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.compact-heading {
    margin-bottom: 24px;
}


/* =========================================================
   5. THREATHAWK NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: var(--header-height);

    background: rgba(5, 9, 19, 0.88);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

body.light-mode .site-header {
    background: rgba(244, 248, 251, 0.9);
}

.navbar {
    min-height: var(--header-height);

    display: flex;
    align-items: center;

    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 10px;

    color: var(--platform-cyan);

    font-size: 23px;
    font-weight: 800;

    letter-spacing: -0.035em;

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.brand:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.brand-symbol {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--platform-cyan);

    font-size: 19px;

    filter:
        drop-shadow(
            0 0 9px rgba(0, 212, 255, 0.28)
        );
}

.nav-links {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
}

.nav-links a {
    position: relative;

    padding: 9px 11px;

    color: var(--text-secondary);

    border-radius: var(--radius-small);

    font-size: 13px;
    font-weight: 650;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);

    background: var(--surface-light-transparent);
}

.nav-links a:nth-child(4) {
    color: var(--accent-bright);
}

.nav-links a:nth-child(4)::after {
    content: "";

    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;

    height: 2px;

    background: var(--accent);

    border-radius: 999px;
}

.nav-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 10px;
}

.version-badge {
    padding: 7px 10px;

    color: var(--platform-cyan);

    background: var(--platform-cyan-soft);

    border:
        1px solid rgba(0, 212, 255, 0.24);

    border-radius: 999px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.04em;
}

.theme-toggle {
    min-height: 40px;

    padding: 8px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--text-secondary);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-small);

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.theme-toggle:hover {
    color: var(--accent-bright);

    background: var(--surface-secondary);

    border-color: var(--border-accent);

    box-shadow:
        0 0 20px rgba(14, 165, 233, 0.08);

    transform: translateY(-1px);
}

.theme-toggle i {
    color: var(--accent-bright);
    font-size: 14px;
}


/* =========================================================
   6. MODULE HEADER
========================================================= */

.module-header {
    position: relative;

    padding: 66px 0 58px;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.module-header::before {
    content: "";

    position: absolute;
    top: -240px;
    right: -150px;

    width: 580px;
    height: 580px;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(14, 165, 233, 0.12),
            transparent 68%
        );
}

.module-header::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--border-accent),
            transparent
        );
}

.breadcrumb {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color: var(--text-muted);

    font-size: 12px;
}

.breadcrumb a {
    color: var(--platform-cyan);

    font-weight: 700;

    transition: opacity var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.75;
}

.breadcrumb span:last-child {
    color: var(--text-secondary);
}

.module-heading {
    position: relative;
    z-index: 1;

    margin-top: 32px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 46px;
}

.module-heading-content {
    max-width: 820px;
}

.module-heading h1 {
    margin-top: 12px;

    font-size:
        clamp(42px, 6vw, 68px);

    line-height: 1.04;
    letter-spacing: -0.055em;
}

.module-description {
    max-width: 760px;

    margin-top: 20px;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.78;
}

.module-status {
    min-width: 170px;

    padding: 16px 18px;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 12px;

    background: var(--surface-transparent);

    border: 1px solid var(--border-accent);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);

    backdrop-filter: blur(12px);
}

.status-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    background: var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 13px rgba(34, 197, 94, 0.75);

    animation:
        statusPulse 2.2s infinite;
}

.module-status div {
    display: grid;
}

.module-status small {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.module-status strong {
    margin-top: 2px;

    color: var(--accent-bright);

    font-size: 14px;
}


/* =========================================================
   7. FOOTER
========================================================= */

.site-footer {
    margin-top: 110px;

    padding: 42px 0;

    background: rgba(3, 7, 15, 0.88);

    border-top: 1px solid var(--border);
}

body.light-mode .site-footer {
    background: rgba(235, 243, 248, 0.88);
}

.footer-content {
    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 42px;
}

.footer-brand {
    display: grid;
    line-height: 1.35;
}

.footer-brand strong {
    color: var(--platform-cyan);

    font-size: 19px;

    letter-spacing: -0.025em;
}

.footer-brand span {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 650;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-bright);
}

.footer-meta {
    color: var(--text-muted);

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   8. SHARED ANIMATIONS
========================================================= */

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.86);
    }
}


/* =========================================================
   9. RESPONSIVE FOUNDATION
========================================================= */

@media (max-width: 1100px) {
    .nav-links a:nth-child(3),
    .nav-links a:nth-child(5) {
        display: none;
    }

    .module-heading {
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 70px;
    }

    .module-container {
        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );
    }

    .navbar {
        min-height: var(--header-height);
        gap: 16px;
    }

    .brand {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .version-badge {
        display: none;
    }

    .module-header {
        padding: 52px 0 46px;
    }

    .module-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 26px;
    }

    .module-status {
        min-width: 0;
        width: fit-content;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;

        justify-items: start;

        gap: 24px;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .theme-toggle span {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        padding: 8px;
    }

    .module-heading h1 {
        font-size:
            clamp(38px, 13vw, 52px);
    }

    .module-description {
        font-size: 15px;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   THREATHAWK URL ANALYZER
   CSS PART 2 OF 3

   Includes:
   - Analyzer Workspace
   - URL Input
   - Buttons
   - Risk Panel
   - Risk Meter
   - Summary Cards
   - Findings
========================================================= */


/* =========================================================
   10. ANALYZER WORKSPACE
========================================================= */

.analyzer-section{
    padding:72px 0 20px;
}

.analyzer-workspace{

    padding:34px;

    background:
        linear-gradient(
            145deg,
            rgba(16,28,45,.96),
            rgba(8,16,28,.96)
        );

    border:1px solid var(--border);

    border-radius:var(--radius-extra-large);

    box-shadow:var(--shadow-large);
}

body.light-mode .analyzer-workspace{

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(244,250,255,.98)
        );
}

.workspace-heading{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:28px;
}

.workspace-heading>div:first-child{

    max-width:760px;
}

.workspace-heading h2{

    margin-top:8px;

    font-size:clamp(30px,4vw,38px);

    letter-spacing:-.04em;
}

.workspace-heading p{

    margin-top:12px;

    color:var(--text-secondary);

    line-height:1.75;

    font-size:13px;
}

.analysis-badge{

    padding:8px 12px;

    display:inline-flex;
    align-items:center;

    gap:8px;

    color:var(--accent-bright);

    background:var(--accent-soft);

    border:1px solid var(--border-accent);

    border-radius:999px;

    font-size:11px;
    font-weight:800;

    white-space:nowrap;
}


/* =========================================================
   11. URL INPUT
========================================================= */

.url-input-group{

    margin-top:30px;
}

.url-input-group label{

    display:block;

    margin-bottom:12px;

    font-size:14px;
    font-weight:700;
}

.url-input-wrapper{

    position:relative;
}

.input-icon{

    position:absolute;

    top:18px;
    left:18px;

    color:var(--accent-bright);

    font-size:18px;

    pointer-events:none;
}

#urlInput{

    width:100%;

    min-height:170px;

    padding:18px 18px 18px 54px;

    resize:vertical;

    color:var(--text-primary);

    background:var(--background-secondary);

    border:1px solid var(--border-strong);

    border-radius:18px;

    outline:none;

    font-family:
        Consolas,
        monospace;

    font-size:14px;

    line-height:1.75;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

#urlInput::placeholder{

    color:var(--text-subtle);
}

#urlInput:hover{

    border-color:var(--border-accent);
}

#urlInput:focus{

    border-color:var(--accent);

    box-shadow:
        0 0 0 4px rgba(14,165,233,.12);
}

body.light-mode #urlInput{

    background:#ffffff;
}

.input-helper{

    margin-top:10px;

    color:var(--text-muted);

    font-size:12px;
}


/* =========================================================
   12. BUTTONS
========================================================= */

.workspace-actions{

    margin-top:22px;

    display:flex;

    gap:14px;
}

.primary-button,
.secondary-button{

    min-height:50px;

    padding:0 20px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:10px;

    border-radius:15px;

    cursor:pointer;

    font-size:13px;
    font-weight:800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.primary-button{

    color:#03161f;

    background:var(--accent);

    border:none;

    box-shadow:var(--accent-shadow);
}

.primary-button:hover{

    background:var(--accent-bright);

    transform:translateY(-2px);

    box-shadow:
        0 18px 42px rgba(14,165,233,.26);
}

.secondary-button{

    color:var(--text-secondary);

    background:var(--surface-secondary);

    border:1px solid var(--border);
}

.secondary-button:hover{

    color:var(--text-primary);

    border-color:var(--border-accent);

    background:var(--surface-tertiary);

    transform:translateY(-2px);
}


/* =========================================================
   13. RISK PANEL
========================================================= */

.risk-section{

    padding:58px 0 20px;
}

.risk-panel{

    padding:32px;

    background:var(--surface-transparent);

    border:1px solid var(--border);

    border-radius:28px;

    box-shadow:var(--shadow-large);
}

.risk-overview{

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:30px;
}

.risk-heading h2{

    margin-top:8px;

    font-size:30px;
}

.risk-heading p{

    margin-top:8px;

    color:var(--text-secondary);
}

.risk-score-ring{

    width:130px;
    height:130px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
        radial-gradient(circle,
        rgba(14,165,233,.10),
        transparent 68%);

    border:6px solid var(--accent);

    box-shadow:
        0 0 30px rgba(14,165,233,.15);
}

.risk-score-ring span{

    font-size:42px;
    font-weight:900;

    line-height:1;
}

.risk-score-ring small{

    margin-top:4px;

    color:var(--text-muted);

    font-size:12px;
}


/* =========================================================
   RISK METER
========================================================= */

.risk-meter{

    margin-top:28px;
}

.risk-scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-bottom: 10px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;
}

.risk-scale span {
    text-align: center;
}

.risk-scale span:first-child {
    text-align: left;
}

.risk-scale span:last-child {
    text-align: right;
}

.risk-track {
    position: relative;

    height: 14px;

    overflow: hidden;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: 999px;
}

.risk-track::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent calc(25% - 1px),
            rgba(255, 255, 255, 0.22) 25%,
            transparent calc(25% + 1px),

            transparent calc(50% - 1px),
            rgba(255, 255, 255, 0.22) 50%,
            transparent calc(50% + 1px),

            transparent calc(75% - 1px),
            rgba(255, 255, 255, 0.22) 75%,
            transparent calc(75% + 1px)
        );
}

.risk-fill {
    position: relative;
    z-index: 1;

    width: 0%;
    height: 100%;

    border-radius: 999px;

    transition:
        width 0.7s ease;
}

.risk-note{

    margin-top:22px;

    padding:16px 18px;

    display:flex;

    gap:12px;

    color:var(--text-secondary);

    background:var(--accent-soft);

    border:1px solid var(--border-accent);

    border-radius:16px;
}

.risk-note i{

    color:var(--accent-bright);

    margin-top:2px;
}


/* =========================================================
   14. QUICK INFO
========================================================= */

.summary-section{

    padding:60px 0 20px;
}

.summary-grid{

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:18px;
}

.summary-card{

    padding:24px;

    display:flex;
    align-items:center;

    gap:16px;

    background:var(--surface-transparent);

    border:1px solid var(--border);

    border-radius:22px;

    box-shadow:var(--shadow-small);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.summary-card:hover{

    transform:translateY(-4px);

    border-color:var(--border-accent);

    background:var(--surface-secondary);
}

.summary-icon{

    width:50px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--accent-bright);

    background:var(--accent-soft);

    border:1px solid var(--border-accent);

    border-radius:15px;

    font-size:18px;
}

.summary-content{

    display:grid;
}

.summary-content span{

    color:var(--text-muted);

    font-size:11px;

    text-transform:uppercase;

    letter-spacing:.08em;
}

.summary-content strong{

    margin-top:5px;

    font-size:18px;

    word-break:break-word;
}


/* =========================================================
   15. FINDINGS
========================================================= */

.findings-section{

    padding:60px 0 20px;
}

.findings-panel{

    padding:30px;

    background:var(--surface-transparent);

    border:1px solid var(--border);

    border-radius:28px;

    box-shadow:var(--shadow-large);
}

.findings-header{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:30px;
}

.findings-header h2{

    margin-top:8px;

    font-size:30px;
}

.findings-header p{

    margin-top:10px;

    color:var(--text-secondary);

    font-size:13px;
}

.finding-count{

    padding:8px 12px;

    color:var(--accent-bright);

    background:var(--accent-soft);

    border:1px solid var(--border-accent);

    border-radius:999px;

    font-size:11px;
    font-weight:800;
}

.findings-list{

    margin-top:28px;

    display:grid;

    gap:16px;
}

.finding-card{

    padding:18px;

    display:flex;
    align-items:flex-start;

    gap:14px;

    background:var(--surface-secondary);

    border:1px solid var(--border);

    border-radius:18px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.finding-card:hover{

    transform:translateY(-2px);

    border-color:var(--border-accent);

    background:var(--surface-tertiary);
}

.finding-icon{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    color:var(--accent-bright);

    background:var(--accent-soft);

    border-radius:12px;
}

.finding-content{

    flex:1;
}

.finding-content h4{

    font-size:15px;
}

.finding-content p{

    margin-top:6px;

    color:var(--text-secondary);

    line-height:1.7;

    font-size:13px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.findings-empty-state{

    padding:60px 20px;

    text-align:center;
}

.empty-state-icon{

    width:70px;
    height:70px;

    margin:0 auto 18px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--accent-bright);

    background:var(--accent-soft);

    border:1px solid var(--border-accent);

    border-radius:18px;

    font-size:26px;
}

.findings-empty-state strong{

    display:block;

    font-size:18px;
}

.empty-findings{

    max-width:420px;

    margin:12px auto 0;

    color:var(--text-secondary);

    line-height:1.8;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1000px){

.summary-grid{

grid-template-columns:
repeat(2,1fr);

}

}

@media(max-width:760px){

.workspace-heading,
.risk-overview,
.findings-header{

flex-direction:column;

}

.workspace-actions{

flex-direction:column;

}

.primary-button,
.secondary-button{

width:100%;

}

}

@media(max-width:560px){

.summary-grid{

grid-template-columns:1fr;

}

.analyzer-workspace,
.risk-panel,
.findings-panel{

padding:22px;

}

}

/* =========================================================
   THREATHAWK URL ANALYZER
   CSS PART 3 OF 3

   Includes:
   - Technical details
   - Information cards
   - Toast notifications
   - Finding severity states
   - Light mode polish
   - Animations
   - Accessibility
   - Final responsive rules
   - Print safety
========================================================= */


/* =========================================================
   16. TECHNICAL DETAILS
========================================================= */

.details-section {
    padding: 60px 0 20px;
}

.details-panel {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.details-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 28px;
}

.details-heading h2 {
    margin-top: 8px;

    font-size: 30px;

    letter-spacing: -0.035em;
}

.details-heading p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.details-heading-icon {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 16px;

    font-size: 20px;
}

.details-grid {
    margin-top: 28px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.detail-card {
    min-width: 0;
    min-height: 130px;

    padding: 20px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.detail-card:hover {
    background: var(--surface-tertiary);

    border-color: var(--border-accent);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.16),
        0 0 22px rgba(14, 165, 233, 0.05);

    transform: translateY(-3px);
}

.detail-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 12px;

    font-size: 15px;
}

.detail-content {
    min-width: 0;

    display: grid;

    gap: 6px;
}

.detail-content span {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.detail-content strong {
    max-width: 100%;

    color: var(--text-primary);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}


/* =========================================================
   17. INFORMATION SECTION
========================================================= */

.information-section {
    padding: 58px 0 10px;
}

.information-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.information-card {
    min-height: 220px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.information-card:hover {
    background: var(--surface-secondary);

    border-color: var(--border-accent);

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(14, 165, 233, 0.05);

    transform: translateY(-4px);
}

.information-icon {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 14px;

    font-size: 18px;
}

.information-card h3 {
    margin-top: 20px;

    font-size: 18px;

    letter-spacing: -0.02em;
}

.information-card p {
    margin-top: 12px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.72;
}


/* =========================================================
   18. FINDING SEVERITY STATES
========================================================= */

.finding-item,
.finding-card {
    position: relative;
}

.finding-low,
.finding-safe {
    border-left:
        4px solid var(--success);
}

.finding-low .finding-icon,
.finding-safe .finding-icon {
    color: var(--success);

    background: var(--success-soft);

    border-color:
        rgba(34, 197, 94, 0.22);
}

.finding-medium {
    border-left:
        4px solid var(--warning);
}

.finding-medium .finding-icon {
    color: var(--warning);

    background: var(--warning-soft);

    border-color:
        rgba(245, 158, 11, 0.22);
}

.finding-high {
    border-left:
        4px solid #f97316;
}

.finding-high .finding-icon {
    color: #fb923c;

    background:
        rgba(249, 115, 22, 0.12);

    border-color:
        rgba(249, 115, 22, 0.22);
}

.finding-critical {
    border-left:
        4px solid var(--critical);
}

.finding-critical .finding-icon {
    color: #f87171;

    background: var(--critical-soft);

    border-color:
        rgba(220, 38, 38, 0.24);
}

.finding-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.finding-title-row h3,
.finding-title-row h4 {
    font-size: 15px;
}

.finding-title-row span {
    flex-shrink: 0;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.finding-low .finding-title-row span,
.finding-safe .finding-title-row span {
    color: var(--success);
}

.finding-medium .finding-title-row span {
    color: var(--warning);
}

.finding-high .finding-title-row span {
    color: #fb923c;
}

.finding-critical .finding-title-row span {
    color: #f87171;
}


/* =========================================================
   19. RISK STATE UTILITIES
========================================================= */

.risk-low {
    background: var(--success);
}

.risk-medium {
    background: var(--warning);
}

.risk-high {
    background: #f97316;
}

.risk-critical {
    background: var(--danger);
}

.risk-score-ring.risk-low-state {
    border-color: var(--success);

    box-shadow:
        0 0 30px rgba(34, 197, 94, 0.18);
}

.risk-score-ring.risk-medium-state {
    border-color: var(--warning);

    box-shadow:
        0 0 30px rgba(245, 158, 11, 0.18);
}

.risk-score-ring.risk-high-state {
    border-color: #f97316;

    box-shadow:
        0 0 30px rgba(249, 115, 22, 0.18);
}

.risk-score-ring.risk-critical-state {
    border-color: var(--danger);

    box-shadow:
        0 0 30px rgba(239, 68, 68, 0.2);
}

.risk-score-ring.risk-low-state #riskScore {
    color: var(--success);
}

.risk-score-ring.risk-medium-state #riskScore {
    color: var(--warning);
}

.risk-score-ring.risk-high-state #riskScore {
    color: #fb923c;
}

.risk-score-ring.risk-critical-state #riskScore {
    color: #f87171;
}


/* =========================================================
   20. TOAST NOTIFICATION
========================================================= */

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 1500;

    min-width: 240px;
    max-width: calc(100vw - 48px);

    min-height: 52px;

    padding: 12px 16px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--text-primary);

    background: var(--surface-elevated);

    border: 1px solid var(--border-accent);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-large);

    opacity: 0;
    visibility: hidden;

    transform: translateY(18px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.toast i {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #03161f;

    background: var(--accent);

    border-radius: 8px;

    font-size: 11px;
}

.toast span {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   21. LOADING AND DISABLED STATES
========================================================= */

.is-loading {
    position: relative;

    pointer-events: none;

    opacity: 0.72;
}

.is-loading::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 24px;
    height: 24px;

    border:
        3px solid var(--border);

    border-top-color:
        var(--accent);

    border-radius: 50%;

    animation:
        loadingSpin 0.8s linear infinite;

    transform:
        translate(-50%, -50%);
}

button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

    transform: none !important;
    box-shadow: none !important;
}


/* =========================================================
   22. LIGHT MODE POLISH
========================================================= */

body.light-mode .risk-panel,
body.light-mode .findings-panel,
body.light-mode .details-panel,
body.light-mode .information-card,
body.light-mode .summary-card {
    background:
        rgba(255, 255, 255, 0.94);

    border-color:
        rgba(51, 65, 85, 0.14);
}

body.light-mode .risk-panel:hover,
body.light-mode .findings-panel:hover,
body.light-mode .details-panel:hover,
body.light-mode .information-card:hover,
body.light-mode .summary-card:hover {
    border-color:
        var(--border-accent);
}

body.light-mode .finding-card,
body.light-mode .finding-item,
body.light-mode .detail-card {
    background:
        rgba(15, 23, 42, 0.025);
}

body.light-mode .finding-card:hover,
body.light-mode .finding-item:hover,
body.light-mode .detail-card:hover {
    background:
        rgba(14, 165, 233, 0.05);
}

body.light-mode .risk-track {
    background:
        #e7eef3;
}

body.light-mode .toast {
    background:
        #ffffff;
}

body.light-mode .panel-label,
body.light-mode .eyebrow,
body.light-mode .summary-icon,
body.light-mode .detail-icon,
body.light-mode .information-icon,
body.light-mode .details-heading-icon,
body.light-mode .empty-state-icon {
    color:
        var(--accent-dark);
}


/* =========================================================
   23. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline:
        2px solid var(--accent);

    outline-offset:
        3px;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.theme-toggle:focus-visible {
    box-shadow:
        0 0 0 4px
        rgba(14, 165, 233, 0.13);
}


/* =========================================================
   24. ANIMATIONS
========================================================= */

@keyframes loadingSpin {
    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes scorePop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes findingReveal {
    from {
        opacity: 0;

        transform:
            translateX(-8px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}

.risk-panel,
.summary-card,
.findings-panel,
.details-panel,
.information-card {
    animation:
        fadeUp 0.4s ease;
}

.finding-card,
.finding-item {
    animation:
        findingReveal 0.35s ease;
}

#riskScore.updated {
    animation:
        scorePop 0.35s ease;
}


/* =========================================================
   25. FINAL RESPONSIVE RULES
========================================================= */

@media (max-width: 1000px) {
    .details-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .information-card:last-child {
        grid-column:
            1 / -1;
    }
}

@media (max-width: 760px) {
    .details-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .details-heading-icon {
        order: -1;
    }

    .risk-score-wrapper {
        align-self: flex-start;
    }

    .risk-score-ring {
        width: 112px;
        height: 112px;
    }

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

    .finding-title-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }
}

@media (max-width: 650px) {
    .details-grid,
    .information-grid {
        grid-template-columns: 1fr;
    }

    .information-card:last-child {
        grid-column: auto;
    }

    .details-panel,
    .information-card {
        border-radius:
            var(--radius-medium);
    }

    .details-panel {
        padding: 22px;
    }

    .detail-card {
        min-height: 0;
    }

    .toast {
        right: 14px;
        bottom: 14px;
        left: 14px;

        min-width: 0;
        max-width: none;
    }

    .site-footer {
        margin-top: 78px;
    }
}

@media (max-width: 480px) {
    .risk-scale {
        font-size: 9px;
    }

    .risk-note {
        align-items: flex-start;

        padding: 14px;
    }

    .summary-card,
    .detail-card,
    .information-card {
        padding: 18px;
    }

    .findings-empty-state {
        padding:
            42px 12px;
    }

    .empty-state-icon {
        width: 58px;
        height: 58px;

        font-size: 21px;
    }
}


/* =========================================================
   26. PRINT SAFETY
========================================================= */

@media print {
    body {
        color: #000;
        background: #fff;
    }

    body::before,
    body::after,
    .site-header,
    .site-footer,
    .toast,
    .theme-toggle,
    .information-section,
    .workspace-actions {
        display: none !important;
    }

    .module-header,
    .analyzer-section,
    .risk-section,
    .summary-section,
    .findings-section,
    .details-section {
        padding:
            18px 0;
    }

    .analyzer-workspace,
    .risk-panel,
    .summary-card,
    .findings-panel,
    .details-panel,
    .detail-card,
    .finding-card,
    .finding-item {
        color: #000;
        background: #fff;

        border:
            1px solid #aaa;

        box-shadow: none;
    }
}