@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #080d19;
    --sidebar: #0b1220;
    --panel: #101a2b;
    --panel-soft: #0d1727;
    --border: #1e2b40;
    --text: #e8eef8;
    --muted: #8998ad;
    --subtle: #5d6d83;
    --blue: #45a9ff;
    --blue-bright: #61b8ff;
    --green: #39d6a0;
    --red: #ff657a;
    --amber: #f4bd61;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
}

button, input {
    font: inherit;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 100vh;
    padding: 27px 17px 20px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 53px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #071321;
    background: linear-gradient(145deg, #69c4ff, #2389e8);
    font: 700 22px 'Space Grotesk', sans-serif;
    box-shadow: 0 5px 20px #218be833;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font: 700 14px 'Space Grotesk', sans-serif;
    letter-spacing: 1.1px;
}

.brand small {
    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-label {
    padding: 0 12px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.navigation {
    display: grid;
    gap: 6px;
}

.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #91a0b5;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s, color .2s, border-color .2s;
}

.nav-link:hover {
    background: #142238;
    color: var(--text);
}

.nav-link.active {
    background: #12243a;
    color: #70bdff;
    border-color: #1e3c5c;
}

.nav-icon {
    width: 19px;
    text-align: center;
    font-size: 18px;
}

.tools-label {
    margin-top: 35px;
}

.nav-disabled {
    opacity: .55;
    cursor: default;
}

.coming-soon {
    margin-left: auto;
    color: #71839b;
    font-size: 8px;
    letter-spacing: .8px;
}

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 15px 8px 0;
    border-top: 1px solid var(--border);
}

.sidebar-shield {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #14243a;
    color: var(--blue);
    font-size: 20px;
}

.sidebar-bottom strong,
.sidebar-bottom small {
    display: block;
}

.sidebar-bottom strong {
    font-size: 11px;
}

.sidebar-bottom small {
    margin-top: 4px;
    color: var(--subtle);
    font-size: 10px;
}

.version {
    margin-left: auto;
    color: #61728a;
    font-size: 10px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 69px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    border-bottom: 1px solid var(--border);
    background: #0a1120;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb-divider {
    color: #40516a;
}

.breadcrumb strong {
    color: #dce7f5;
    font-weight: 600;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a9b8ca;
    font-size: 11px;
}

.status-dot,
.heading-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px #f4bd6170;
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 10px #39d6a070;
}

.status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 10px #ff657a70;
}

.page-content {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 38px 42px 24px;
}

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

.eyebrow,
.card-eyebrow {
    color: #68baff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.page-heading h1 {
    margin-top: 9px;
    font: 600 clamp(25px, 3vw, 31px) 'Space Grotesk', sans-serif;
    letter-spacing: -.8px;
}

.page-heading p,
.section-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.heading-tag {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid #26374d;
    border-radius: 6px;
    color: #9eafc4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.heading-tag-dot {
    background: var(--blue);
    box-shadow: 0 0 9px #45a9ff80;
}

.welcome-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 19px;
    margin-bottom: 34px;
    border: 1px solid #1d3b59;
    border-radius: 10px;
    background: linear-gradient(105deg, #10243a, #101b2c 75%);
}

.welcome-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #72c1ff;
    background: #1a3855;
    font-size: 19px;
}

.welcome-strip strong {
    font-size: 12px;
}

.welcome-strip p {
    margin-top: 5px;
    color: #9aaac0;
    font-size: 11px;
    line-height: 1.5;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.section-heading h2 {
    margin-top: 7px;
    font: 600 21px 'Space Grotesk', sans-serif;
}

.section-number {
    padding-bottom: 4px;
    color: #667991;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.upload-panel {
    padding: 30px;
    border: 1px solid #263951;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 50% 0%, #1c3b5b55, transparent 60%),
        var(--panel);
    text-align: center;
}

.upload-symbol {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border: 1px solid #28527a;
    border-radius: 13px;
    background: #142b43;
    color: #73c3ff;
    font-size: 26px;
}

.upload-panel h3 {
    font: 600 17px 'Space Grotesk', sans-serif;
}

.upload-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

#emailFile {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.file-picker {
    width: min(390px, 100%);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 23px auto 0;
    padding: 10px 15px;
    border: 1px dashed #426384;
    border-radius: 8px;
    background: #0c1829;
    color: #c2d1e3;
    cursor: pointer;
    font-size: 12px;
    transition: border-color .2s, background .2s;
}

.file-picker:hover,
.file-picker:focus-within {
    border-color: var(--blue);
    background: #12243a;
}

.file-picker-icon {
    color: var(--blue-bright);
    font-size: 19px;
}

.upload-actions {
    width: min(390px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 17px auto 0;
}

.file-hint {
    color: #71839a;
    font-size: 8px;
    letter-spacing: .8px;
    text-align: left;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 41px;
    padding: 0 17px;
    border: 1px solid #3199ed;
    border-radius: 7px;
    background: linear-gradient(135deg, #2498ed, #1675c5);
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 5px 18px #1688df25;
    transition: filter .2s, transform .2s, opacity .2s;
}

button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

button:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

#statusMessage {
    min-height: 17px;
    margin-top: 14px;
    color: #8fcaff;
    font-size: 11px;
}

.results-section {
    margin-top: 39px;
}

#results[hidden] {
    display: none;
}

.risk-overview {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.risk-score-panel,
.risk-level-panel,
.result-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.score-line {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 12px;
}

.score-line h2 {
    font: 600 34px 'Space Grotesk', sans-serif;
    color: var(--blue-bright);
}

.score-caption,
.muted-note {
    color: var(--muted);
    font-size: 10px;
}

.score-track {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 10px;
    background: #26364a;
}

.score-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
    transition: width .4s ease;
}

.muted-note {
    margin-top: 13px;
    line-height: 1.5;
}

.risk-level-badge {
    display: inline-flex;
    margin-top: 14px;
    padding: 8px 13px;
    border: 1px solid #36506b;
    border-radius: 6px;
    background: #172a40;
    color: #a9d8ff;
    font-size: 13px;
    font-weight: 700;
}

.risk-level-badge.low {
    color: var(--green);
    background: #103329;
    border-color: #205d49;
}

.risk-level-badge.medium {
    color: var(--amber);
    background: #352b19;
    border-color: #65502c;
}

.risk-level-badge.high,
.risk-level-badge.critical {
    color: var(--red);
    background: #391e2a;
    border-color: #713448;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.result-card {
    padding: 21px;
}

.email-card {
    grid-column: 1 / -1;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 19px;
}

.card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #29425f;
    border-radius: 8px;
    background: #172a40;
    color: #78c4ff;
    font-size: 17px;
}

.card-heading h3 {
    font: 600 13px 'Space Grotesk', sans-serif;
}

.card-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #202d40;
}

.detail-list span {
    color: var(--muted);
    font-size: 11px;
}

.detail-list strong {
    max-width: 70%;
    color: #dce6f3;
    font-size: 11px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.finding-list {
    padding: 0;
    list-style: none;
}

.finding-list li {
    position: relative;
    padding: 10px 10px 10px 18px;
    border-top: 1px solid #202d40;
    color: #b9c7d8;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.finding-list li::before {
    position: absolute;
    top: 17px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5eafea;
    content: "";
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 43px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
    color: #66768b;
    font-size: 9px;
    line-height: 1.6;
}

.page-footer > span:first-child {
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.footer-separator {
    padding: 0 5px;
    color: #3e8ac4;
}

@media (max-width: 900px) {
    .sidebar {
        width: 215px;
        min-width: 215px;
    }

    .topbar {
        padding: 0 25px;
    }

    .page-content {
        padding: 30px 25px 22px;
    }
}

@media (max-width: 680px) {
    body {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .brand {
        margin-bottom: 18px;
    }

    .nav-label,
    .tools-label,
    .sidebar-bottom,
    .nav-disabled {
        display: none;
    }

    .navigation {
        display: flex;
        gap: 7px;
    }

    .nav-link {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .topbar {
        height: 53px;
        padding: 0 17px;
    }

    .page-content {
        padding: 26px 17px 20px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .welcome-strip {
        align-items: flex-start;
        padding: 14px;
    }

    .upload-panel {
        padding: 24px 16px;
    }

    .upload-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .file-hint {
        text-align: center;
    }

    .upload-actions button {
        width: 100%;
    }

    .risk-overview,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .email-card {
        grid-column: auto;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .page-footer {
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================
   PHASE 2 - ADVANCED RISK VISUALIZATION
========================================= */

.gauge-layout {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.risk-gauge {
    --risk-angle: 0deg;
    --gauge-color: #45a9ff;

    width: 145px;
    height: 145px;
    min-width: 145px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--gauge-color) var(--risk-angle),
            #26364a var(--risk-angle)
        );
    position: relative;
    box-shadow: 0 0 25px color-mix(in srgb, var(--gauge-color) 15%, transparent);
    transition: background .5s ease;
}

.gauge-inner {
    width: 119px;
    height: 119px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 50%;
    background: var(--panel);
}

.gauge-inner strong {
    color: var(--gauge-color);
    font: 700 34px 'Space Grotesk', sans-serif;
}

.gauge-inner span {
    color: var(--muted);
    font-size: 11px;
}

.gauge-details {
    min-width: 0;
}

.gauge-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.gauge-details h3 {
    margin-top: 8px;
    color: var(--text);
    font: 600 20px 'Space Grotesk', sans-serif;
    overflow-wrap: anywhere;
}

.gauge-details p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.threat-summary {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.threat-summary h3 {
    color: var(--text);
    font: 600 12px 'Space Grotesk', sans-serif;
}

.threat-summary p {
    margin-top: 8px;
    color: #aab9cc;
    font-size: 11px;
    line-height: 1.7;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.summary-stats div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--panel-soft);
}

.summary-stats strong,
.summary-stats span {
    display: block;
}

.summary-stats strong {
    color: var(--blue-bright);
    font: 600 20px 'Space Grotesk', sans-serif;
}

.summary-stats span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.url-finding {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 7px;
    padding: 12px !important;
    border: 1px solid var(--border) !important;
    border-radius: 7px;
    background: var(--panel-soft);
}

.url-finding::before {
    display: none;
}

.url-finding.suspicious {
    border-left: 3px solid var(--red) !important;
}

.url-finding.safe-indicators {
    border-left: 3px solid var(--green) !important;
}

.url-status {
    font-size: 10px;
    font-weight: 700;
}

.url-finding.suspicious .url-status {
    color: var(--red);
}

.url-finding.safe-indicators .url-status {
    color: var(--green);
}

.url-address {
    color: #dce7f5;
    font-family: monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.url-details {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .gauge-layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .risk-gauge {
        width: 130px;
        height: 130px;
        min-width: 130px;
    }

    .gauge-inner {
        width: 106px;
        height: 106px;
    }

    .gauge-inner strong {
        font-size: 29px;
    }

    .summary-stats {
        gap: 8px;
    }
}
/* Email authentication results */

.authentication-results {
    margin-top: 12px;
}

.auth-disclaimer {
    margin-bottom: 12px;
    color: #e5b96c;
    font-size: 10px;
    line-height: 1.6;
}

.auth-empty {
    padding: 10px;
    color: #8c9caf;
    font-size: 11px;
}

.auth-result {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #26364b;
    border-radius: 8px;
    background: #111c2b;
}

.auth-header {
    margin: 0 0 10px;
    color: #8fa5bd;
    font-size: 10px;
    font-weight: 600;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #202d40;
}

.auth-name {
    color: #d3deeb;
    font-size: 11px;
    font-weight: 700;
}

.auth-status {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.auth-pass {
    color: #70d6a0;
    background: #153a2b;
}

.auth-fail,
.auth-softfail,
.auth-permerror {
    color: #ff8b8b;
    background: #482426;
}

.auth-temperror,
.auth-neutral,
.auth-unknown {
    color: #e9c477;
    background: #40351f;
}

.auth-none,
.auth-not_found {
    color: #9aabc0;
    background: #263447;
}

.auth-domain {
    width: 100%;
    color: #8c9caf;
    font-size: 10px;
    overflow-wrap: anywhere;
}


/* Analysis history */
.history-section {
    margin-top: 12px;
}

.history-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
}

.history-search-label {
    width: 100%;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.history-toolbar input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 12px;
}

.history-toolbar input:focus {
    border-color: var(--blue);
}

.history-status {
    min-height: 20px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 11px;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
}

.history-details {
    min-width: 0;
}

.history-details h3 {
    margin-bottom: 7px;
    color: var(--text);
    font: 600 13px 'Space Grotesk', sans-serif;
    overflow-wrap: anywhere;
}

.history-details p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.history-risk {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.history-risk strong {
    color: var(--text);
    font: 600 18px 'Space Grotesk', sans-serif;
}

.history-risk-badge {
    padding: 5px 9px;
    border-radius: 5px;
    background: #263447;
    color: #c4d1e0;
    font-size: 9px;
    font-weight: 700;
}

.history-risk-badge.low {
    background: #153a2b;
    color: #70d6a0;
}

.history-risk-badge.medium {
    background: #40351f;
    color: #e9c477;
}

.history-risk-badge.high,
.history-risk-badge.critical {
    background: #482426;
    color: #ff8b8b;
}

.history-actions {
    display: flex;
    gap: 7px;
}

.secondary-button,
.danger-button {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #17253a;
    color: #cbd8e8;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.secondary-button:hover {
    border-color: var(--blue);
    color: var(--blue-bright);
}

.danger-button {
    border-color: #58303a;
    background: #321e2a;
    color: #ff8794;
}

.danger-button:hover {
    background: #48232d;
}

.secondary-button:disabled,
.danger-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.history-empty {
    padding: 30px 15px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.history-pagination span {
    color: var(--muted);
    font-size: 11px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .history-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .history-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .history-toolbar {
        align-items: stretch;
    }

    .history-toolbar input {
        flex-basis: 100%;
    }

    .history-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .history-risk {
        display: flex;
        justify-content: flex-start;
    }

    .history-actions {
        grid-column: auto;
        justify-content: flex-start;
    }
}


/* Authentication page layout */
.login-container {
    max-width: 520px;
    margin: 10vh auto;
}

.login-password {
    display: block;
    width: 100%;
    margin: 16px 0;
    padding: 14px;
}

/* =========================================================
   PHISH GUARD AUTHENTICATION PAGE
   ========================================================= */

.login-body {
    display: block;
    min-height: 100vh;
    background: #080d19;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.login-intro {
    min-height: 100vh;
    padding: 42px clamp(32px, 6vw, 90px) 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 75%, #12345a66 0%, transparent 48%),
        radial-gradient(ellipse at 90% 10%, #12304a55 0%, transparent 40%),
        #0a1424;
    border-right: 1px solid #1b2b40;
}

.login-intro::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -210px;
    bottom: -230px;
    border: 1px solid #31577a33;
    border-radius: 50%;
    box-shadow:
        0 0 0 45px #31577a12,
        0 0 0 90px #31577a0b;
    pointer-events: none;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: var(--text);
    text-decoration: none;
}

.login-brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #071321;
    background: linear-gradient(145deg, #83d0ff, #2589e8);
    box-shadow: 0 8px 26px #218be833;
    font: 700 25px 'Space Grotesk', sans-serif;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font: 700 14px 'Space Grotesk', sans-serif;
    letter-spacing: 1.7px;
}

.login-brand small {
    margin-top: 5px;
    color: #7e91aa;
    font-size: 9px;
    letter-spacing: 2.2px;
}

.login-intro-content {
    width: min(590px, 100%);
    margin: 65px 0;
    position: relative;
    z-index: 1;
}

.login-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #70bfff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.login-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45a9ff;
    box-shadow: 0 0 12px #45a9ff99;
}

.login-intro h1 {
    margin-top: 25px;
    color: #edf5ff;
    font: 600 clamp(39px, 5vw, 64px)/1.12 'Space Grotesk', sans-serif;
    letter-spacing: -2.8px;
}

.login-intro h1 span {
    color: #64baff;
}

.login-intro-copy {
    max-width: 475px;
    margin-top: 22px;
    color: #9aacc2;
    font-size: 15px;
    line-height: 1.8;
}

.login-feature-list {
    display: grid;
    gap: 25px;
    margin-top: 48px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-feature-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid #29425e;
    border-radius: 12px;
    background: #12243a;
    color: #76c3ff;
    font-size: 21px;
}

.login-feature strong,
.login-feature small {
    display: block;
}

.login-feature strong {
    color: #dce8f7;
    font-size: 13px;
    font-weight: 600;
}

.login-feature small {
    margin-top: 5px;
    color: #8194ac;
    font-size: 11px;
    line-height: 1.5;
}

.login-intro-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    color: #60748d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
}

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px clamp(28px, 5vw, 78px);
    background: #0b1220;
}

.login-panel-inner {
    width: min(410px, 100%);
}

.login-mobile-brand {
    display: none;
}

.login-form-heading {
    margin-bottom: 35px;
}

.login-form-heading h2 {
    margin-top: 15px;
    color: #edf4fd;
    font: 600 29px 'Space Grotesk', sans-serif;
    letter-spacing: -.8px;
}

.login-form-heading p {
    margin-top: 10px;
    color: #91a1b6;
    font-size: 13px;
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 10px;
    color: #d8e3f1;
    font-size: 12px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 51px;
    padding: 0 15px;
    border: 1px solid #293950;
    border-radius: 8px;
    outline: none;
    background: #0d1929;
    color: #edf4fd;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.login-field input::placeholder {
    color: #64758b;
}

.login-field input:focus {
    border-color: #48aaff;
    box-shadow: 0 0 0 3px #45a9ff1b;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 65px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #72bfff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.login-password-toggle:hover {
    color: #b1ddff;
}

.login-submit {
    width: 100%;
    height: 51px;
    margin-top: 5px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #4daeff;
    border-radius: 8px;
    background: linear-gradient(105deg, #248ce2, #1674c5);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: filter .2s, transform .2s;
}

.login-submit:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.login-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.login-submit span:last-child {
    font-size: 20px;
}

.login-status {
    min-height: 18px;
    color: #9db1c8;
    font-size: 12px;
    line-height: 1.6;
}

.login-status.error {
    color: #ff8796;
}

.login-registration {
    margin-top: 37px;
    padding-top: 27px;
    border-top: 1px solid #243349;
}

.login-registration-divider {
    margin-bottom: 20px;
    color: #70839b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-registration h3 {
    color: #dce7f5;
    font: 600 16px 'Space Grotesk', sans-serif;
}

.login-registration p {
    margin-top: 9px;
    color: #8d9fb5;
    font-size: 12px;
    line-height: 1.75;
}

.login-registration-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: #82bfff;
    font-size: 11px;
}

.login-registration-note span {
    color: #55b2ff;
    font-size: 15px;
}

.login-legal {
    margin-top: 36px;
    color: #64758b;
    font-size: 10px;
    line-height: 1.7;
}

.login-mobile-brand {
    align-items: center;
    gap: 11px;
    margin-bottom: 38px;
    color: #e5effb;
    font: 700 12px 'Space Grotesk', sans-serif;
    letter-spacing: 1.3px;
}

.login-mobile-brand .login-brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 20px;
}

@media (max-width: 900px) {
    .login-screen {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    }

    .login-intro {
        padding-right: 35px;
        padding-left: 35px;
    }

    .login-intro h1 {
        font-size: clamp(38px, 5vw, 52px);
    }

    .login-panel {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 680px) {
    .login-screen {
        display: block;
    }

    .login-intro {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 35px 25px;
    }

    .login-mobile-brand {
        display: flex;
    }

    .login-form-heading h2 {
        font-size: 26px;
    }

    .login-registration {
        margin-top: 30px;
    }
}

@media (max-width: 380px) {
    .login-panel {
        padding-right: 19px;
        padding-left: 19px;
    }
}

/* Registration form */
.login-registration [hidden] {
    display: none !important;
}

.login-registration form {
    margin-top: 20px;
    gap: 17px;
}

.login-registration form h3 {
    margin-bottom: 2px;
}

.login-registration .login-field input {
    height: 47px;
}

.login-registration .login-submit {
    margin-top: 0;
}

.login-registration .login-status {
    overflow-wrap: anywhere;
}

.login-registration .login-submit:disabled {
    opacity: .65;
    cursor: wait;
}

/* Interactive demo - isolated page styles */
.demo-body {
    min-height: 100vh;
    margin: 0;
    background: #080d19;
    color: #e8f0fa;
    font-family: 'Inter', Arial, sans-serif;
}
.demo-body *, .demo-body *::before, .demo-body *::after {
    box-sizing: border-box;
}
.demo-header {
    min-height: 76px;
    padding: 0 clamp(18px, 6vw, 90px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #1b293b;
    background: #0b1220;
}
.demo-header .login-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #e5effb;
    text-decoration: none;
}
.demo-header .login-brand > span:last-child {
    display: grid;
    gap: 3px;
}
.demo-header .login-brand strong {
    font-size: 12px;
    letter-spacing: 1.3px;
}
.demo-header .login-brand small {
    color: #8295ad;
    font-size: 9px;
    letter-spacing: 1.5px;
}
.demo-header .login-brand-mark {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid #347fba;
    border-radius: 10px;
    background: #12304a;
    color: #80c8ff;
    font-size: 21px;
    font-weight: 700;
}
.demo-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.demo-nav a, .demo-report-footer a {
    color: #77c2ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.demo-mode-label, .demo-sample-count {
    padding: 7px 10px;
    border: 1px solid #285477;
    border-radius: 5px;
    background: #10263a;
    color: #8dceff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}
.demo-main {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}
.demo-hero {
    max-width: 760px;
    padding: 70px 0 45px;
}
.demo-kicker {
    display: block;
    color: #6dbaff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}
.demo-hero .login-eyebrow {
    margin-bottom: 19px;
    color: #8dbfe5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.demo-hero h1 {
    margin: 0;
    color: #f0f6ff;
    font: 600 clamp(36px, 5.5vw, 59px)/1.12 'Space Grotesk', sans-serif;
    letter-spacing: -1.8px;
}
.demo-hero h1 span { color: #62b7f6; }
.demo-hero > p {
    max-width: 650px;
    margin: 20px 0 25px;
    color: #9aabc0;
    font-size: 14px;
    line-height: 1.8;
}
.demo-notice {
    max-width: 650px;
    padding: 15px 17px;
    display: grid;
    gap: 5px;
    border: 1px solid #24445d;
    border-left: 3px solid #48aaff;
    border-radius: 7px;
    background: #0d1b2b;
}
.demo-notice strong { color: #b9e0ff; font-size: 12px; }
.demo-notice span { color: #91a5bc; font-size: 11px; line-height: 1.6; }
.demo-samples {
    padding: 29px;
    border: 1px solid #1e3045;
    border-radius: 12px;
    background: #0b1422;
}
.demo-section-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.demo-section-heading h2 {
    margin: 8px 0 0;
    color: #eaf3ff;
    font: 600 23px 'Space Grotesk', sans-serif;
}
.demo-sample-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.demo-sample-card {
    min-height: 185px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #293b51;
    border-radius: 9px;
    background: #101d2e;
    color: #e7f0fb;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}
.demo-sample-card:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #438dc5;
    background: #14263a;
}
.demo-sample-card:focus-visible, .demo-nav a:focus-visible,
.demo-cta-link:focus-visible {
    outline: 2px solid #70c2ff;
    outline-offset: 4px;
}
.demo-sample-card:disabled { opacity: .55; cursor: wait; }
.demo-sample-card.is-loading { border-color: #55aef0; }
.demo-card-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
}
.demo-icon-safe { background: #12382e; color: #70d6ae; }
.demo-icon-warning { background: #40351b; color: #f3ca70; }
.demo-icon-danger { background: #42232a; color: #ff9a9e; }
.demo-sample-card > strong { font-size: 13px; line-height: 1.4; }
.demo-sample-card > span:not(.demo-card-icon) {
    color: #95a8bf;
    font-size: 11px;
    line-height: 1.6;
}
.demo-sample-card .demo-card-action {
    margin-top: auto;
    color: #78c2ff;
    font-weight: 700;
}
.demo-status { min-height: 18px; margin: 16px 0 0; color: #81c7f9; font-size: 12px; }
.demo-status.error { color: #ff9c9c; }
.demo-results { padding-top: 55px; scroll-margin-top: 25px; }
.demo-results[hidden] { display: none !important; }
.demo-report-summary {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 15px;
}
.demo-score-panel, .demo-email-summary, .demo-report-card {
    border: 1px solid #22354b;
    border-radius: 9px;
    background: #0d1827;
}
.demo-score-panel {
    min-height: 170px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
}
.demo-report-label, .demo-detail-label {
    color: #8298b1;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.demo-score-panel > strong {
    color: #e8f4ff;
    font: 600 43px 'Space Grotesk', sans-serif;
}
#riskLevel {
    padding: 5px 10px;
    border: 1px solid #36516c;
    border-radius: 20px;
    background: #172a3e;
    color: #b6d9f4;
    font-size: 11px;
    font-weight: 700;
}
#riskLevel[data-level="low"] { background: #12382e; color: #82dfb8; }
#riskLevel[data-level="medium"] { background: #3b301b; color: #f0cd7a; }
#riskLevel[data-level="high"], #riskLevel[data-level="critical"] {
    background: #412329;
    color: #ff9da4;
}
.demo-email-summary { padding: 22px 25px; }
.demo-email-summary h3 { margin: 11px 0; color: #edf5ff; font-size: 17px; }
.demo-email-summary p {
    margin: 6px 0;
    color: #9aadc3;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
#sampleDescription { color: #70baf1; }
.demo-report-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.demo-report-card { min-width: 0; padding: 22px; }
.demo-report-card h3 {
    margin: 0 0 17px;
    color: #e5effb;
    font: 600 16px 'Space Grotesk', sans-serif;
}
.demo-detail-list { display: grid; gap: 12px; }
.demo-detail-item {
    padding-bottom: 11px;
    display: grid;
    gap: 5px;
    border-bottom: 1px solid #203146;
}
.demo-detail-value {
    color: #d1dfef;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.demo-finding {
    padding: 12px;
    display: grid;
    gap: 7px;
    border: 1px solid #273b51;
    border-radius: 7px;
    background: #101f30;
}
.demo-finding strong { color: #dcecff; font-size: 12px; overflow-wrap: anywhere; }
.demo-finding > span { color: #f0c879; font-size: 11px; }
.demo-finding p {
    margin: 0;
    color: #9aadc2;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.demo-finding + .demo-finding { margin-top: 9px; }
.demo-empty-message { margin: 0; color: #92a6bd; font-size: 12px; line-height: 1.6; }
.demo-auth-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.demo-auth-record { display: grid; gap: 10px; }
.demo-auth-record > strong { color: #c6dcf1; font-size: 11px; }
.demo-auth-record > span { color: #dcbf7a; font-size: 10px; }
.demo-auth-item {
    min-width: 0;
    padding: 10px 8px;
    display: grid;
    gap: 7px;
    border: 1px solid #293e55;
    border-radius: 6px;
    background: #111f30;
}
.demo-auth-item span { color: #849bb4; font-size: 9px; font-weight: 700; }
.demo-auth-item strong { color: #c9e3f8; font-size: 11px; overflow-wrap: anywhere; }
.demo-disclaimer, .demo-scoring-note { color: #8195ac; font-size: 10px; line-height: 1.7; }
.demo-disclaimer { margin: 13px 0 0; }
.demo-scoring-note {
    margin: 17px 0 0;
    padding: 13px 15px;
    border: 1px solid #26394d;
    border-radius: 7px;
    background: #0d1827;
}
.demo-report-footer {
    margin-top: 15px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #223247;
}
.demo-report-footer > span { color: #8298b0; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.demo-cta {
    margin: 65px 0 50px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid #24445f;
    border-radius: 10px;
    background: linear-gradient(110deg, #102238, #0d1928);
}
.demo-cta h2 { margin: 9px 0; color: #eaf4ff; font: 600 21px 'Space Grotesk', sans-serif; }
.demo-cta p { max-width: 600px; margin: 0; color: #96aac0; font-size: 12px; line-height: 1.7; }
.demo-cta-link {
    flex-shrink: 0;
    padding: 13px 17px;
    border: 1px solid #3c9ce1;
    border-radius: 7px;
    background: #1674bd;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.demo-cta-link:hover { background: #248bd5; }
.demo-footer {
    padding: 23px;
    border-top: 1px solid #1b293b;
    color: #61768e;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1.5px;
}
.login-demo-link {
    margin-top: 23px;
    padding: 15px;
    display: grid;
    gap: 7px;
    border: 1px solid #253c54;
    border-radius: 7px;
    background: #0e1b2b;
}
.login-demo-link > span { color: #819ab3; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.login-demo-link a { color: #77c2ff; font-size: 12px; font-weight: 600; text-decoration: none; }
.login-demo-link a:hover { color: #b9e1ff; }

@media (max-width: 760px) {
    .demo-sample-grid { grid-template-columns: 1fr; }
    .demo-sample-card { min-height: 145px; }
    .demo-report-summary { grid-template-columns: 1fr; }
    .demo-score-panel { min-height: 135px; }
    .demo-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .demo-header { min-height: 66px; padding: 0 17px; }
    .demo-nav { gap: 11px; }
    .demo-main { width: calc(100% - 30px); }
    .demo-hero { padding: 52px 0 35px; }
    .demo-hero h1 { font-size: 39px; letter-spacing: -1.2px; }
    .demo-samples { padding: 19px; }
    .demo-section-heading { align-items: flex-start; flex-direction: column; }
    .demo-section-heading h2 { font-size: 20px; }
    .demo-report-grid, .demo-auth-grid { grid-template-columns: 1fr; }
    .demo-report-card { padding: 18px; }
    .demo-report-footer { align-items: flex-start; flex-direction: column; }
    .demo-cta { margin-top: 45px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .demo-body * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Use the actual Phish Guard logo image in brand locations. */
img.brand-mark,
img.login-brand-mark {
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.demo-header img.login-brand-mark {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Explicit dimensions for the Phish Guard logo image. */
img.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

img.login-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.login-mobile-brand img.login-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.demo-header img.login-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}


/* ACCOUNT PROFILE PAGE */
.profile-page {
    width: min(820px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 45px;
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}
.profile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font: 700 13px 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}
.profile-brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}
.profile-brand small {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
    font: 600 9px 'DM Sans', sans-serif;
    letter-spacing: 1.5px;
}
.profile-back { text-decoration: none; }
.profile-intro { padding: 36px 0 25px; }
.profile-intro h1 {
    margin-top: 9px;
    font: 600 31px 'Space Grotesk', sans-serif;
}
.profile-intro p,
.profile-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.profile-card {
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}
.profile-card h2 {
    margin-top: 8px;
    font: 600 19px 'Space Grotesk', sans-serif;
}
.profile-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.profile-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #28527a;
    border-radius: 50%;
    background: #142d48;
    color: #80c8ff;
    font: 600 19px 'Space Grotesk', sans-serif;
}
.profile-account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    margin: 23px 0;
    padding: 19px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.profile-account-details div { min-width: 0; }
.profile-account-details span,
.profile-account-details strong {
    display: block;
    overflow-wrap: anywhere;
}
.profile-account-details span {
    margin-bottom: 6px;
    color: var(--subtle);
    font-size: 10px;
}
.profile-account-details strong {
    color: #dce7f5;
    font-size: 12px;
    font-weight: 600;
}
.profile-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.profile-form label {
    margin-top: 7px;
    color: #cbd8e8;
    font-size: 11px;
    font-weight: 600;
}
.profile-form input {
    width: 100%;
    min-height: 43px;
    padding: 11px 13px;
    border: 1px solid #293a51;
    border-radius: 6px;
    outline: none;
    background: #0b1524;
    color: var(--text);
    font-size: 13px;
}
.profile-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #45a9ff20;
}
.profile-help {
    color: var(--subtle);
    font-size: 10px;
}
.profile-primary-button {
    justify-self: start;
    min-height: 39px;
    margin-top: 8px;
    padding: 0 17px;
    border: 1px solid #328bd0;
    border-radius: 6px;
    background: #1674bd;
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}
.profile-primary-button:hover { background: #248bd5; }
.profile-primary-button:disabled { opacity: .5; cursor: wait; }
.profile-message {
    min-height: 17px;
    font-size: 11px;
    line-height: 1.5;
}
.profile-message.success { color: var(--green); }
.profile-message.error { color: var(--red); }
.profile-footer {
    padding-top: 17px;
    color: var(--subtle);
    text-align: center;
    font-size: 9px;
    letter-spacing: 1.5px;
}
@media (max-width: 560px) {
    .profile-page { width: calc(100% - 28px); padding-top: 18px; }
    .profile-card { padding: 19px; }
    .profile-account-details { grid-template-columns: 1fr; }
    .profile-intro h1 { font-size: 27px; }
}
