/* =========================================================
   THREATHAWK PASSWORD INTELLIGENCE
   CSS PART 1 OF 3

   Includes:
   - Design system
   - Reset
   - Dark and light theme foundations
   - Background
   - Shared containers
   - Navigation
   - Module header
   - Footer

   Paste CSS Part 2 immediately after this code.
========================================================= */


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

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

    /* Password Intelligence identity */
    --accent: #22c55e;
    --accent-bright: #4ade80;
    --accent-dark: #15803d;

    --accent-soft: rgba(34, 197, 94, 0.1);
    --accent-medium: rgba(34, 197, 94, 0.18);
    --accent-border: rgba(34, 197, 94, 0.3);
    --accent-glow: rgba(34, 197, 94, 0.22);

    /* Dark surfaces */
    --background: #050913;
    --background-secondary: #07101b;

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

    --surface-transparent: rgba(13, 23, 38, 0.82);
    --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(34, 197, 94, 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);

    --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(34, 197, 94, 0.2);

    /* Transitions */
    --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 16% 4%,
            rgba(34, 197, 94, 0.1),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 36%,
            rgba(0, 212, 255, 0.045),
            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(34, 197, 94, 0.07);

    filter: blur(130px);

    transform:
        translateX(-50%);
}

body.light-mode {
    --background: #f4f8f6;
    --background-secondary: #edf4f0;

    --surface: #ffffff;
    --surface-secondary: #f8fbf9;
    --surface-tertiary: #eef5f1;
    --surface-elevated: #e8f2ec;

    --surface-transparent: rgba(255, 255, 255, 0.9);
    --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(21, 128, 61, 0.3);

    --text-primary: #0f1d17;
    --text-secondary: #43564c;
    --text-muted: #6a7b72;
    --text-subtle: #87968e;

    --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 16% 4%,
            rgba(34, 197, 94, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 36%,
            rgba(0, 212, 255, 0.055),
            transparent 28%
        ),
        var(--background);
}

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

    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(34, 197, 94, 0.08);
}

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

button,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

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

::selection {
    color: #031109;
    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;
}


/* =========================================================
   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, 246, 0.9);
}

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

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

    margin-inline: auto;

    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.active {
    color: var(--accent-bright);
}

.nav-links a.active::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(34, 197, 94, 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(34, 197, 94, 0.11),
            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 > div:first-child {
    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, 238, 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. PART 1 RESPONSIVE FOUNDATION
========================================================= */

@media (max-width: 1080px) {
    .desktop-link {
        display: none;
    }

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


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

    .module-container,
    .navbar {
        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;
    }

    .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 PASSWORD INTELLIGENCE
   CSS PART 2 OF 3

   Includes:
   - Analyzer section
   - Workspace layout
   - Vertical strength meter
   - Password controls
   - Equal Requirements and Result panels
   - Suggestions panel
========================================================= */


/* =========================================================
   10. ANALYZER SECTION
========================================================= */

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

.analyzer-layout {
    display: grid;

    grid-template-columns:
        150px minmax(0, 1fr);

    align-items: stretch;

    gap: 34px;
}

.main-panel {
    min-width: 0;
}


/* =========================================================
   11. VERTICAL STRENGTH METER
========================================================= */

.meter-panel {
    position: sticky;
    top: calc(var(--header-height) + 28px);

    min-height: 610px;

    padding:
        24px 20px;

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

    align-self: start;

    background:
        linear-gradient(
            180deg,
            rgba(16, 28, 45, 0.96),
            rgba(8, 16, 28, 0.96)
        );

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

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

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

body.light-mode .meter-panel {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(244, 249, 246, 0.98)
        );
}

.meter-heading {
    width: 100%;

    display: grid;

    justify-items: center;

    text-align: center;
}

#strengthPercent {
    margin-top: 12px;

    color:
        var(--accent-bright);

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

    line-height: 1;

    letter-spacing:
        -0.045em;

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

#strengthText {
    margin-top: 8px;

    color:
        var(--text-secondary);

    font-size: 13px;
    font-weight: 750;
}

.strength-meter {
    position: relative;

    width: 52px;
    height: 350px;

    margin-top: 28px;

    padding: 5px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background:
        linear-gradient(
            to top,
            #ef4444 0%,
            #f97316 24%,
            #eab308 48%,
            #3b82f6 72%,
            #22c55e 100%
        );

    border:
        2px solid rgba(255, 255, 255, 0.15);

    border-radius:
        999px;

    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.32),
        0 0 25px rgba(34, 197, 94, 0.06);
}

body.light-mode .strength-meter {
    border-color:
        rgba(15, 23, 42, 0.14);
}

.strength-meter::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 14px,
            rgba(3, 7, 18, 0.48) 14px,
            rgba(3, 7, 18, 0.48) 18px
        );
}

#strengthLevel {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 0%;

    background:
        var(--danger);

    border-radius:
        999px;

    box-shadow:
        0 0 20px currentColor;

    transition:
        height var(--transition-slow),
        background var(--transition),
        box-shadow var(--transition);
}

.meter-note {
    margin-top: auto;
    padding-top: 24px;

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   12. PASSWORD WORKSPACE
========================================================= */

.password-workspace {
    padding:
        32px;

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

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

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

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

body.light-mode .password-workspace {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(244, 249, 246, 0.98)
        );
}

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

    gap: 24px;
}

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

    font-size:
        clamp(27px, 4vw, 36px);

    line-height: 1.15;

    letter-spacing:
        -0.035em;
}

.privacy-badge {
    padding:
        8px 11px;

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

    flex-shrink: 0;

    gap: 7px;

    color:
        var(--accent-bright);

    background:
        var(--accent-soft);

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

    border-radius:
        999px;

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

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

.privacy-badge i {
    font-size: 11px;
}


/* =========================================================
   13. PASSWORD CONTROLS
========================================================= */

.password-controls {
    margin-top: 28px;

    display: grid;

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

    align-items: stretch;

    gap: 12px;
}

.password-input-wrapper {
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 48px 48px;

    gap: 8px;
}

#passwordInput {
    min-width: 0;
    width: 100%;
    min-height: 52px;

    padding:
        0 17px;

    color:
        var(--text-primary);

    background:
        var(--background-secondary);

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

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

    outline: none;

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

    font-size: 15px;

    letter-spacing: 0.015em;

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

#passwordInput::placeholder {
    color:
        var(--text-subtle);

    font-family:
        Inter,
        "Segoe UI",
        sans-serif;
}

#passwordInput:hover {
    border-color:
        var(--border-accent);
}

#passwordInput:focus {
    border-color:
        var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.11);
}

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

.icon-button {
    width: 48px;
    min-height: 52px;

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

    color:
        var(--text-secondary);

    background:
        var(--surface-secondary);

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

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

    cursor: pointer;

    font-size: 16px;

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

.icon-button:hover {
    color:
        var(--accent-bright);

    background:
        var(--surface-tertiary);

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

    box-shadow:
        0 0 20px
        rgba(34, 197, 94, 0.09);

    transform:
        translateY(-2px);
}

.icon-button:active {
    transform:
        translateY(0);
}

.generate-button {
    min-height: 52px;

    padding:
        0 18px;

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

    gap: 9px;

    color:
        #021208;

    background:
        var(--accent);

    border: 0;

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

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

    cursor: pointer;

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

    white-space: nowrap;

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

.generate-button:hover {
    background:
        var(--accent-bright);

    box-shadow:
        0 20px 42px
        rgba(34, 197, 94, 0.26);

    transform:
        translateY(-2px);
}

.generate-button:active {
    transform:
        translateY(0);
}

.input-helper {
    margin-top: 12px;

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   14. EQUAL INFORMATION PANELS
========================================================= */

.info-grid {
    margin-top: 30px;

    display: grid;

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

    align-items: stretch;

    gap: 18px;
}

.analysis-panel {
    min-width: 0;
    min-height: 360px;

    padding:
        24px;

    display: flex;
    flex-direction: column;

    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);
}

.analysis-panel:hover {
    border-color:
        var(--border-accent);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.2),
        0 0 24px rgba(34, 197, 94, 0.05);

    transform:
        translateY(-2px);
}

.panel-heading {
    display: flex;
    align-items: center;

    gap: 13px;
}

.panel-icon {
    width: 44px;
    height: 44px;

    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: 16px;
}

.panel-heading h3 {
    margin-top: 4px;

    font-size: 17px;

    letter-spacing:
        -0.02em;
}


/* =========================================================
   15. REQUIREMENTS PANEL
========================================================= */

.requirement-list {
    margin-top: 24px;

    display: grid;

    gap: 10px;
}

.requirement-item {
    min-height: 48px;

    padding:
        10px 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid transparent;

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

    color:
        var(--text-secondary);

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

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

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

.requirement-item:hover {
    transform:
        translateX(2px);
}

.requirement-icon {
    width: 27px;
    height: 27px;

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

    flex-shrink: 0;

    border-radius:
        8px;

    font-size: 11px;
}

.requirement-item.invalid {
    color:
        #f6a3a3;

    background:
        var(--danger-soft);

    border-color:
        rgba(239, 68, 68, 0.14);
}

.requirement-item.invalid .requirement-icon {
    color:
        var(--danger);

    background:
        rgba(239, 68, 68, 0.12);
}

.requirement-item.valid {
    color:
        #a7efbe;

    background:
        var(--success-soft);

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

.requirement-item.valid .requirement-icon {
    color:
        var(--success);

    background:
        rgba(34, 197, 94, 0.14);
}

body.light-mode .requirement-item.invalid {
    color:
        #a62c2c;
}

body.light-mode .requirement-item.valid {
    color:
        #166534;
}


/* =========================================================
   16. ANALYSIS RESULT PANEL
========================================================= */

#result {
    display: flex;
}

.result-placeholder,
.suggestions-placeholder {
    flex: 1;

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

    gap: 14px;

    color:
        var(--text-muted);

    text-align: center;
}

.result-placeholder p {
    max-width: 330px;

    font-size: 13px;

    line-height: 1.7;
}

.placeholder-icon {
    width: 56px;
    height: 56px;

    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:
        16px;

    font-size: 20px;

    opacity: 0.82;
}

.result-grid {
    margin-top: 24px;

    display: grid;

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

    gap: 11px;
}

.result-metric {
    min-height: 93px;

    padding:
        14px;

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

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

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

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

.result-metric span {
    color:
        var(--text-muted);

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

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

.result-metric strong {
    margin-top: 7px;

    color:
        var(--text-primary);

    font-size: 17px;

    line-height: 1.3;

    overflow-wrap: anywhere;
}

.result-metric.highlight strong {
    color:
        var(--accent-bright);
}

.result-warning {
    margin-top: 12px;

    padding:
        12px 13px;

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

    gap: 10px;

    color:
        #f7c676;

    background:
        var(--warning-soft);

    border:
        1px solid
        rgba(245, 158, 11, 0.18);

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

    font-size: 12px;

    line-height: 1.55;
}

.result-warning i {
    margin-top: 3px;

    flex-shrink: 0;

    color:
        var(--warning);
}


/* =========================================================
   17. SUGGESTIONS PANEL
========================================================= */

.suggestions-panel {
    margin-top: 18px;

    min-height: 225px;

    padding:
        24px;

    background:
        var(--surface-transparent);

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

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

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

.suggestions-placeholder {
    min-height: 115px;

    align-items: flex-start;

    justify-content: center;

    padding-top: 12px;

    font-size: 13px;

    text-align: left;
}

.suggestion-list {
    margin-top: 22px;

    display: grid;

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

    gap: 10px;
}

.suggestion-item {
    min-height: 58px;

    padding:
        12px;

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

    gap: 10px;

    color:
        var(--text-secondary);

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

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

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

    font-size: 12px;

    line-height: 1.55;
}

.suggestion-item i {
    margin-top: 3px;

    flex-shrink: 0;

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

.suggestion-success {
    min-height: 115px;

    margin-top: 20px;

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

    gap: 11px;

    color:
        #a7efbe;

    background:
        var(--success-soft);

    border:
        1px solid rgba(34, 197, 94, 0.2);

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

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

    text-align: center;
}

.suggestion-success i {
    color:
        var(--success);

    font-size: 17px;
}

body.light-mode .suggestion-success {
    color:
        #166534;
}


/* =========================================================
   18. PART 2 RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .analyzer-layout {
        grid-template-columns:
            125px minmax(0, 1fr);

        gap: 22px;
    }

    .password-controls {
        grid-template-columns: 1fr;
    }

    .generate-button {
        width: fit-content;
    }
}


@media (max-width: 860px) {
    .analyzer-section {
        padding-top: 56px;
    }

    .analyzer-layout {
        grid-template-columns: 1fr;
    }

    .meter-panel {
        position: static;

        min-height: 0;

        padding:
            22px;

        display: grid;

        grid-template-columns:
            auto 1fr;

        align-items: center;

        gap: 24px;
    }

    .meter-heading {
        justify-items: start;

        text-align: left;
    }

    .strength-meter {
        width: 100%;
        height: 36px;

        margin-top: 0;

        padding: 4px;

        align-items: stretch;

        background:
            linear-gradient(
                to right,
                #ef4444 0%,
                #f97316 24%,
                #eab308 48%,
                #3b82f6 72%,
                #22c55e 100%
            );
    }

    .strength-meter::before {
        background:
            repeating-linear-gradient(
                to right,
                transparent 0,
                transparent 18px,
                rgba(3, 7, 18, 0.42) 18px,
                rgba(3, 7, 18, 0.42) 22px
            );
    }

    #strengthLevel {
        width: 0%;
        height: 100%;
    }

    .meter-note {
        grid-column: 1 / -1;

        margin-top: 0;
        padding-top: 0;

        text-align: left;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .analysis-panel {
        min-height: 330px;
    }
}


@media (max-width: 620px) {
    .password-workspace {
        padding:
            22px;
    }

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

    .privacy-badge {
        align-self: flex-start;
    }

    .password-input-wrapper {
        grid-template-columns:
            minmax(0, 1fr) 46px 46px;
    }

    #passwordInput,
    .icon-button,
    .generate-button {
        min-height: 50px;
    }

    .generate-button {
        width: 100%;
    }

    .analysis-panel,
    .suggestions-panel {
        padding:
            20px;
    }

    .result-grid,
    .suggestion-list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 440px) {
    .meter-panel {
        grid-template-columns: 1fr;
    }

    .strength-meter {
        width: 100%;
    }

    .password-input-wrapper {
        grid-template-columns:
            minmax(0, 1fr) 44px 44px;
    }

    #passwordInput {
        padding:
            0 12px;

        font-size: 13px;
    }

    .icon-button {
        width: 44px;
    }

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

    .analysis-panel {
        min-height: 320px;
    }
}

/* =========================================================
   THREATHAWK PASSWORD INTELLIGENCE
   CSS PART 3 OF 3

   Includes:
   - Information cards
   - Toast notification
   - Final light-mode polish
   - Utility states
   - Animations
   - Final responsive rules
========================================================= */


/* =========================================================
   19. 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: 230px;

    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(34, 197, 94, 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;
}


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

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

    z-index: 1500;

    min-width: 230px;
    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: 27px;
    height: 27px;

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

    flex-shrink: 0;

    color:
        #03220e;

    background:
        var(--accent);

    border-radius:
        8px;

    font-size: 11px;
}

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

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


/* =========================================================
   21. RESULT STATE UTILITIES
========================================================= */

.result-state {
    margin-top: 24px;
}

.result-heading-line {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.result-heading-line strong {
    font-size: 14px;
}

.result-badge {
    padding:
        6px 9px;

    border-radius:
        999px;

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

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

.result-badge.very-weak,
.result-badge.weak {
    color:
        #fecaca;

    background:
        var(--danger-soft);

    border:
        1px solid rgba(239, 68, 68, 0.2);
}

.result-badge.medium {
    color:
        #fde68a;

    background:
        var(--warning-soft);

    border:
        1px solid rgba(245, 158, 11, 0.2);
}

.result-badge.strong {
    color:
        #bfdbfe;

    background:
        var(--info-soft);

    border:
        1px solid rgba(59, 130, 246, 0.2);
}

.result-badge.very-strong {
    color:
        #bbf7d0;

    background:
        var(--success-soft);

    border:
        1px solid rgba(34, 197, 94, 0.2);
}

.common-password-alert {
    margin-top: 22px;

    padding:
        16px;

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

    gap: 12px;

    color:
        #fecaca;

    background:
        var(--danger-soft);

    border:
        1px solid rgba(239, 68, 68, 0.22);

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

    font-size: 12px;

    line-height: 1.65;
}

.common-password-alert i {
    margin-top: 3px;

    flex-shrink: 0;

    color:
        var(--danger);
}


/* =========================================================
   22. EMPTY, LOADING AND DISABLED STATES
========================================================= */

.is-empty {
    opacity: 0.68;
}

.is-loading {
    position: relative;
    pointer-events: none;
}

.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:
        spin 0.8s linear infinite;

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

button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

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


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

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

    outline-offset:
        3px;
}

.theme-toggle:focus-visible,
.icon-button:focus-visible,
.generate-button:focus-visible {
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.13);
}


/* =========================================================
   24. FINAL LIGHT-MODE POLISH
========================================================= */

body.light-mode .analysis-panel,
body.light-mode .suggestions-panel,
body.light-mode .information-card,
body.light-mode .module-status {
    background:
        rgba(255, 255, 255, 0.92);

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

body.light-mode .analysis-panel:hover,
body.light-mode .information-card:hover {
    background:
        #ffffff;

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

body.light-mode .icon-button,
body.light-mode .theme-toggle {
    background:
        #ffffff;
}

body.light-mode .result-metric,
body.light-mode .suggestion-item,
body.light-mode .requirement-item {
    background:
        rgba(15, 23, 42, 0.025);
}

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

body.light-mode .privacy-badge {
    color:
        var(--accent-dark);
}

body.light-mode .panel-label,
body.light-mode .eyebrow {
    color:
        var(--accent-dark);
}

body.light-mode .module-status strong,
body.light-mode #strengthPercent,
body.light-mode .information-icon,
body.light-mode .panel-icon,
body.light-mode .placeholder-icon {
    color:
        var(--accent-dark);
}


/* =========================================================
   25. ANIMATIONS
========================================================= */

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

@keyframes fadeUp {
    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

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

    45% {
        transform:
            scale(1.08);
    }

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

@keyframes toastIn {
    from {
        opacity: 0;

        transform:
            translateY(14px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.result-state,
.suggestion-list,
.suggestion-success,
.common-password-alert {
    animation:
        fadeUp 0.35s ease;
}

#strengthPercent.updated {
    animation:
        meterPop 0.35s ease;
}


/* =========================================================
   26. FINAL RESPONSIVE RULES
========================================================= */

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

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


@media (max-width: 700px) {
    .information-section {
        padding-top: 42px;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

        min-width: 0;
        width: calc(100% - 28px);
    }
}


@media (max-width: 520px) {
    .analyzer-section {
        padding-top: 42px;
    }

    .password-workspace {
        border-radius:
            var(--radius-large);
    }

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

    .information-card {
        padding:
            20px;
    }

    .result-heading-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-badge {
        align-self: flex-start;
    }
}


/* =========================================================
   27. PRINT SAFETY
========================================================= */

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

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

    .module-header,
    .analyzer-section {
        padding:
            20px 0;
    }

    .password-workspace,
    .analysis-panel,
    .suggestions-panel,
    .meter-panel {
        color: #000;
        background: #fff;

        border:
            1px solid #bbb;

        box-shadow: none;
    }

    .analyzer-layout {
        grid-template-columns: 1fr;
    }

    .meter-panel {
        position: static;
        min-height: 0;
    }
}