:root {
    --page: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --navy: #12233f;
    --text: #26364f;
    --muted: #66758c;
    --line: #dce4ee;

    --blue: #2563eb;
    --blue-soft: #eaf1ff;
    --turquoise: #0f9fa8;
    --turquoise-soft: #e5f8f8;
    --violet: #7357d8;
    --violet-soft: #f0edff;
    --amber: #b97812;
    --amber-soft: #fff5dd;
    --green: #23835b;
    --green-soft: #e8f7ef;
    --red: #c54444;
    --red-soft: #fff0f0;

    --shadow-sm: 0 1px 2px rgba(18, 35, 63, 0.05);
    --shadow-md: 0 14px 34px rgba(18, 35, 63, 0.09);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --content-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 34rem),
        var(--page);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

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

.hfx-shell {
    min-height: 100vh;
}

.hfx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(220, 228, 238, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.hfx-header-inner {
    display: flex;
    min-height: 76px;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hfx-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hfx-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--blue), var(--turquoise));
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
    color: #fff;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hfx-brand-copy {
    display: grid;
    line-height: 1.15;
}

.hfx-brand-name {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hfx-brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hfx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hfx-nav-link,
.hfx-button {
    display: inline-flex;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 750;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}

.hfx-nav-link {
    border-color: var(--line);
    background: var(--panel);
    color: var(--navy);
}

.hfx-button {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.hfx-button-secondary {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: none;
    color: var(--navy);
}

.hfx-button:hover,
.hfx-nav-link:hover {
    transform: translateY(-1px);
}

.hfx-button:focus-visible,
.hfx-nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.hfx-main {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 34px 28px 48px;
}

.hfx-page-head {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hfx-eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hfx-page-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hfx-page-description {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.hfx-grid {
    display: grid;
    gap: 20px;
}

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

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

.hfx-grid-main {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
}

.hfx-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-card-header {
    display: flex;
    padding: 20px 22px 15px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hfx-card-body {
    padding: 0 22px 22px;
}

.hfx-card-title {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hfx-card-copy {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hfx-stat {
    padding: 20px;
}

.hfx-stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-stat-value {
    margin-top: 7px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hfx-stat-note {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.hfx-badge {
    display: inline-flex;
    min-height: 28px;
    border-radius: 999px;
    align-items: center;
    padding: 0 11px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hfx-badge-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.hfx-badge-turquoise {
    background: var(--turquoise-soft);
    color: var(--turquoise);
}

.hfx-badge-violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.hfx-badge-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.hfx-badge-green {
    background: var(--green-soft);
    color: var(--green);
}

.hfx-badge-red {
    background: var(--red-soft);
    color: var(--red);
}

.hfx-message-list {
    display: grid;
    margin: 0 0 20px;
    gap: 10px;
}

.hfx-message {
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius-sm);
    background: var(--panel);
    padding: 13px 16px;
    box-shadow: var(--shadow-sm);
}

.hfx-table-wrap {
    overflow-x: auto;
}

.hfx-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.hfx-table th {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-table td {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    padding: 15px 14px;
    font-size: 14px;
}

.hfx-empty {
    display: grid;
    min-height: 220px;
    padding: 28px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.hfx-empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--blue-soft);
    color: var(--blue);
    place-items: center;
    font-size: 22px;
    font-weight: 850;
}

.hfx-empty h3 {
    margin: 15px 0 5px;
    color: var(--navy);
    font-size: 18px;
}

.hfx-empty p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hfx-form-card {
    width: min(100%, 480px);
    margin: 48px auto;
}

.hfx-form-field {
    display: grid;
    margin-bottom: 17px;
    gap: 7px;
}

.hfx-form-field label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
}

.hfx-form-field input,
.hfx-form-field select,
.hfx-form-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--navy);
    padding: 10px 13px;
}

.hfx-form-errors {
    margin-bottom: 16px;
    border: 1px solid #f0c4c4;
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--red);
    padding: 12px 14px;
    font-size: 14px;
}

.hfx-detail-list {
    display: grid;
    margin: 0;
}

.hfx-detail-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
    border-bottom: 1px solid var(--line);
    gap: 18px;
    padding: 14px 0;
}

.hfx-detail-row:last-child {
    border-bottom: 0;
}

.hfx-detail-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hfx-detail-value {
    color: var(--navy);
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.hfx-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 24px 28px 34px;
    text-align: center;
    font-size: 12px;
}

.hfx-footer strong {
    color: var(--navy);
}

@media (max-width: 980px) {
    .hfx-grid-3,
    .hfx-grid-main {
        grid-template-columns: 1fr;
    }

    .hfx-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .hfx-header-inner,
    .hfx-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hfx-header-inner {
        min-height: 68px;
    }

    .hfx-brand-subtitle {
        display: none;
    }

    .hfx-header-actions {
        gap: 7px;
    }

    .hfx-nav-link,
    .hfx-button {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .hfx-page-head {
        display: grid;
    }

    .hfx-page-title {
        font-size: 34px;
    }

    .hfx-card-header,
    .hfx-card-body {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hfx-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* =========================================================
   HurstyFX member application shell
   ========================================================= */

body.hfx-page {
    overflow-x: hidden;
}

.hfx-app {
    min-height: 100vh;
}

.hfx-app-authenticated {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
}

.hfx-app-public {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hfx-sidebar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    width: 288px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 20rem
        ),
        #ffffff;
    box-shadow: 12px 0 32px rgba(18, 35, 63, 0.04);
}

.hfx-sidebar-head {
    display: flex;
    min-height: 78px;
    padding: 17px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.hfx-sidebar .hfx-brand {
    min-width: 0;
}

.hfx-sidebar .hfx-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.hfx-sidebar .hfx-brand-name {
    font-size: 20px;
}

.hfx-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--navy);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.hfx-engine-label {
    display: flex;
    margin: 18px 18px 10px;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hfx-engine-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--turquoise);
    box-shadow: 0 0 0 5px rgba(15, 159, 168, 0.12);
}

.hfx-primary-nav {
    display: grid;
    padding: 6px 12px 22px;
    gap: 7px;
}

.hfx-primary-nav-link {
    display: grid;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.hfx-primary-nav-link:hover {
    border-color: var(--line);
    background: var(--panel-soft);
    transform: translateX(2px);
}

.hfx-primary-nav-link.is-active {
    border-color: #cddcff;
    background:
        linear-gradient(
            135deg,
            var(--blue-soft),
            rgba(229, 248, 248, 0.72)
        );
    box-shadow: inset 3px 0 0 var(--blue);
    color: var(--navy);
}

.hfx-primary-nav-link strong,
.hfx-primary-nav-link small {
    display: block;
    min-width: 0;
}

.hfx-primary-nav-link strong {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.hfx-primary-nav-link small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.hfx-nav-icon {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--blue);
    place-items: center;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.hfx-primary-nav-link.is-active .hfx-nav-icon {
    border-color: rgba(37, 99, 235, 0.24);
    background: var(--blue);
    color: #ffffff;
}

.hfx-sidebar-foot {
    margin-top: auto;
    padding: 14px 12px 18px;
    border-top: 1px solid var(--line);
}

.hfx-account-link {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.hfx-account-link:hover,
.hfx-account-link.is-active {
    border-color: #cddcff;
    background: var(--blue-soft);
}

.hfx-account-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--violet), var(--blue));
    color: #ffffff;
    place-items: center;
    font-size: 16px;
    font-weight: 850;
}

.hfx-account-copy {
    min-width: 0;
}

.hfx-account-copy strong,
.hfx-account-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hfx-account-copy strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-account-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.hfx-workspace {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}

.hfx-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    min-height: 70px;
    padding: 0 28px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(220, 228, 238, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.hfx-topbar-left,
.hfx-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hfx-topbar-actions form {
    margin: 0;
}

.hfx-menu-button {
    display: none;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--navy);
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.hfx-access-indicator {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    border: 1px solid #bde9d2;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hfx-access-indicator > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 131, 91, 0.12);
}

.hfx-app-authenticated .hfx-main {
    flex: 1;
    max-width: none;
    padding: 30px clamp(20px, 3vw, 42px) 48px;
}

.hfx-app-public .hfx-main {
    flex: 1;
}

.hfx-app-authenticated .hfx-footer {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.55);
}

.hfx-footer p {
    margin: 3px 0;
}

.hfx-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    border: 0;
    background: rgba(18, 35, 63, 0.48);
    cursor: pointer;
}

.hfx-public-brand .hfx-brand-name {
    font-size: 17px;
}

@media (max-width: 1100px) {
    .hfx-app-authenticated {
        display: block;
    }

    .hfx-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 310px);
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 20px 0 48px rgba(18, 35, 63, 0.18);
    }

    .hfx-navigation-open {
        overflow: hidden;
    }

    .hfx-navigation-open .hfx-sidebar {
        transform: translateX(0);
    }

    .hfx-navigation-open .hfx-sidebar-backdrop {
        display: block;
    }

    .hfx-sidebar-close {
        display: grid;
        place-items: center;
    }

    .hfx-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 680px) {
    .hfx-topbar {
        min-height: 64px;
        padding: 0 16px;
    }

    .hfx-access-indicator {
        display: none;
    }

    .hfx-topbar-actions .hfx-button {
        min-height: 40px;
        padding: 0 12px;
    }

    .hfx-menu-button {
        min-height: 40px;
        padding: 0 12px;
    }

    .hfx-app-authenticated .hfx-main {
        padding: 24px 16px 38px;
    }

    .hfx-public-brand .hfx-brand-copy {
        display: none;
    }

    .hfx-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================================================
   HurstyFX dashboard
   ========================================================= */

.hfx-dashboard-hero {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.hfx-dashboard-hero > div:first-child {
    min-width: 0;
}

.hfx-dashboard-status {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hfx-live-service {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hfx-live-service > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(185, 120, 18, 0.12);
}

.hfx-live-service-live {
    border-color: #bde9d2;
    background: var(--green-soft);
    color: var(--green);
}

.hfx-live-service-live > span {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 131, 91, 0.12);
}

.hfx-live-service-stale {
    border-color: #f0d19c;
    background: var(--amber-soft);
    color: var(--amber);
}

.hfx-live-service-unavailable {
    border-color: #f0c4c4;
    background: var(--red-soft);
    color: var(--red);
}

.hfx-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.hfx-summary-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-summary-icon {
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.035em;
}

.hfx-summary-icon-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.hfx-summary-icon-violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.hfx-summary-icon-turquoise {
    background: var(--turquoise-soft);
    color: var(--turquoise);
}

.hfx-summary-icon-green {
    background: var(--green-soft);
    color: var(--green);
}

.hfx-summary-label,
.hfx-summary-card small {
    display: block;
}

.hfx-summary-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-summary-value {
    display: block;
    margin-top: 3px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hfx-summary-value-text {
    padding-top: 3px;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.hfx-summary-card small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.hfx-dashboard-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 22px;
}

.hfx-dashboard-grid-primary {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.65fr);
}

.hfx-dashboard-grid-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hfx-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-panel-header {
    display: flex;
    padding: 21px 22px 17px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.hfx-panel-header-row {
    align-items: center;
}

.hfx-panel-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.hfx-panel-header p:not(.hfx-eyebrow) {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.hfx-text-link,
.hfx-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.hfx-text-link:hover,
.hfx-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hfx-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hfx-session-preview-body {
    padding: 23px 22px 25px;
}

.hfx-session-preview-body h3 {
    margin: 18px 0 9px;
    color: var(--navy);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.hfx-reading-copy {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

.hfx-session-preview-actions {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.hfx-market-pulse {
    display: flex;
    flex-direction: column;
}

.hfx-pulse-list {
    display: grid;
    padding: 9px 16px 16px;
    gap: 3px;
}

.hfx-pulse-item {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border-radius: 13px;
    padding: 12px 10px;
}

.hfx-pulse-item:hover {
    background: var(--panel-soft);
}

.hfx-pulse-icon {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hfx-pulse-icon-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.hfx-pulse-icon-violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.hfx-pulse-icon-turquoise {
    background: var(--turquoise-soft);
    color: var(--turquoise);
}

.hfx-pulse-item strong,
.hfx-pulse-item small {
    display: block;
}

.hfx-pulse-item strong {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.1;
}

.hfx-pulse-item small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.hfx-pulse-updated {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    padding: 14px 22px;
    font-size: 11px;
}

.hfx-pulse-updated strong {
    color: var(--navy);
}

.hfx-outlooks-preview {
    margin-bottom: 22px;
}

.hfx-outlook-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
    gap: 16px;
}

.hfx-outlook-preview-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            rgba(248, 250, 252, 0.78)
        );
    padding: 17px;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.hfx-outlook-preview-card:hover {
    border-color: #cbd8eb;
    box-shadow: 0 12px 28px rgba(18, 35, 63, 0.08);
    transform: translateY(-2px);
}

.hfx-outlook-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hfx-outlook-rank {
    display: block;
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-outlook-preview-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hfx-outlook-preview-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.hfx-outlook-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
}

.hfx-outlook-metrics > div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    padding: 10px;
}

.hfx-outlook-metrics span,
.hfx-outlook-metrics strong {
    display: block;
}

.hfx-outlook-metrics span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hfx-outlook-metrics strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 13px;
    overflow-wrap: anywhere;
}

[data-live-price][data-price-status="live"] {
    color: var(--green);
}

[data-live-price][data-price-status="stale"] {
    color: var(--amber);
}

[data-live-price][data-price-status="unavailable"] {
    color: var(--red);
}

.hfx-outlook-summary {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-outlook-preview-card .hfx-card-link {
    margin-top: auto;
    padding-top: 16px;
}

.hfx-dashboard-list {
    display: grid;
}

.hfx-dashboard-list-item {
    display: flex;
    min-width: 0;
    padding: 14px 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.hfx-dashboard-list-item:last-child {
    border-bottom: 0;
}

.hfx-dashboard-list-main {
    min-width: 0;
}

.hfx-dashboard-list-main strong,
.hfx-dashboard-list-main > a,
.hfx-dashboard-list-main small {
    display: block;
}

.hfx-dashboard-list-main strong,
.hfx-dashboard-list-main > a {
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.hfx-dashboard-list-main > a:hover {
    color: var(--blue);
}

.hfx-dashboard-list-main small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.hfx-rate-value {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
}

.hfx-empty-compact {
    min-height: 260px;
}

.hfx-empty-small {
    min-height: 185px;
}

.hfx-empty-small h3 {
    margin-top: 0;
}

.hfx-research-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid #cddcff;
    border-radius: var(--radius-md);
    background:
        radial-gradient(
            circle at right top,
            rgba(15, 159, 168, 0.11),
            transparent 24rem
        ),
        linear-gradient(135deg, var(--blue-soft), #ffffff);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.hfx-research-notice h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    letter-spacing: -0.03em;
}

.hfx-research-notice p:not(.hfx-eyebrow) {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

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

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

    .hfx-dashboard-grid-context > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .hfx-dashboard-hero {
        display: grid;
    }

    .hfx-dashboard-status {
        justify-content: flex-start;
    }

    .hfx-dashboard-grid-primary,
    .hfx-dashboard-grid-context {
        grid-template-columns: 1fr;
    }

    .hfx-dashboard-grid-context > :last-child {
        grid-column: auto;
    }

    .hfx-outlook-preview-grid {
        grid-template-columns: 1fr;
    }

    .hfx-research-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .hfx-summary-grid {
        grid-template-columns: 1fr;
    }

    .hfx-panel-header,
    .hfx-panel-header-row {
        display: grid;
        align-items: start;
    }

    .hfx-panel-header .hfx-button,
    .hfx-panel-header .hfx-text-link {
        justify-self: start;
    }

    .hfx-outlook-preview-grid {
        padding: 14px;
    }

    .hfx-outlook-preview-head {
        display: grid;
    }

    .hfx-outlook-preview-head .hfx-badge {
        justify-self: start;
    }

    .hfx-dashboard-list-item {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hfx-research-notice {
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .hfx-outlook-metrics {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HurstyFX Session Intelligence page
   ========================================================= */

.hfx-intelligence-hero {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.hfx-intelligence-hero-status {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hfx-session-cadence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.hfx-session-cadence article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 17px;
    box-shadow: var(--shadow-sm);
}

.hfx-session-cadence-number {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.hfx-session-cadence strong,
.hfx-session-cadence small {
    display: block;
}

.hfx-session-cadence strong {
    color: var(--navy);
    font-size: 14px;
}

.hfx-session-cadence small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.hfx-session-report {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

.hfx-session-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(22px, 4vw, 34px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at right top,
            rgba(15, 159, 168, 0.11),
            transparent 25rem
        ),
        linear-gradient(135deg, #ffffff, var(--blue-soft));
}

.hfx-session-report-head h2 {
    max-width: 820px;
    margin: 17px 0 8px;
    color: var(--navy);
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hfx-session-report-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.hfx-session-report-head p strong {
    color: var(--navy);
}

.hfx-session-report-engine {
    min-width: 190px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.76);
    padding: 15px;
}

.hfx-session-report-engine span,
.hfx-session-report-engine strong,
.hfx-session-report-engine small {
    display: block;
}

.hfx-session-report-engine span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-session-report-engine strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 14px;
}

.hfx-session-report-engine small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.hfx-session-report-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.hfx-session-report-meta > div {
    padding: 15px 22px;
    border-right: 1px solid var(--line);
}

.hfx-session-report-meta > div:last-child {
    border-right: 0;
}

.hfx-session-report-meta span,
.hfx-session-report-meta strong {
    display: block;
}

.hfx-session-report-meta span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-session-report-meta strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 12px;
}

.hfx-session-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.65fr);
    align-items: start;
    gap: 24px;
    padding: 25px;
}

.hfx-session-report-main {
    display: grid;
    gap: 18px;
}

.hfx-research-section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
}

.hfx-research-section-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.hfx-research-section-number {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.hfx-research-section-heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    letter-spacing: -0.025em;
}

.hfx-longform-copy {
    padding: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.78;
}

.hfx-longform-copy p {
    margin: 0 0 16px;
}

.hfx-longform-copy p:last-child {
    margin-bottom: 0;
}

.hfx-risk-context-section {
    border-color: #ecd59f;
}

.hfx-risk-context-section .hfx-research-section-heading {
    background: var(--amber-soft);
}

.hfx-risk-context-section .hfx-research-section-number {
    background: #ffffff;
    color: var(--amber);
}

.hfx-session-report-aside {
    display: grid;
    gap: 18px;
}

.hfx-session-outlook-list {
    display: grid;
    padding: 14px;
    gap: 10px;
}

.hfx-session-outlook-list article {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel-soft);
    padding: 13px;
}

.hfx-session-outlook-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hfx-session-outlook-head span:not(.hfx-badge),
.hfx-session-outlook-head strong {
    display: block;
}

.hfx-session-outlook-head span:not(.hfx-badge) {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-session-outlook-head strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 18px;
}

.hfx-session-outlook-list dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 0;
}

.hfx-session-outlook-list dl div {
    min-width: 0;
    border-radius: 9px;
    background: #ffffff;
    padding: 8px;
}

.hfx-session-outlook-list dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hfx-session-outlook-list dd {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.hfx-session-aside-action {
    padding: 0 14px 16px;
}

.hfx-session-aside-action .hfx-button {
    width: 100%;
}

.hfx-session-principle {
    border: 1px solid #cddcff;
    border-radius: 16px;
    background: var(--blue-soft);
    padding: 20px;
}

.hfx-session-principle h3 {
    margin: 0;
    color: var(--navy);
    font-size: 19px;
}

.hfx-session-principle p:not(.hfx-eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-session-empty {
    min-height: 360px;
}

.hfx-session-archive {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-session-table td {
    vertical-align: top;
}

.hfx-session-table-title,
.hfx-session-table td small {
    display: block;
}

.hfx-session-table-title {
    max-width: 430px;
    color: var(--navy);
    font-weight: 800;
    white-space: normal;
}

.hfx-session-table td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.hfx-session-disclaimer {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .hfx-session-report-layout {
        grid-template-columns: 1fr;
    }

    .hfx-session-report-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .hfx-intelligence-hero,
    .hfx-session-report-head {
        display: grid;
    }

    .hfx-intelligence-hero-status {
        justify-content: flex-start;
    }

    .hfx-session-cadence {
        grid-template-columns: 1fr;
    }

    .hfx-session-report-engine {
        min-width: 0;
    }

    .hfx-session-report-meta {
        grid-template-columns: 1fr;
    }

    .hfx-session-report-meta > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-session-report-meta > div:last-child {
        border-bottom: 0;
    }

    .hfx-session-report-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hfx-session-report-layout {
        padding: 14px;
    }

    .hfx-session-report-head {
        padding: 22px 18px;
    }

    .hfx-research-section-heading {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 15px;
    }

    .hfx-research-section-number {
        width: 38px;
        height: 38px;
    }

    .hfx-longform-copy {
        padding: 17px;
        font-size: 14px;
    }

    .hfx-session-outlook-list dl {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HurstyFX Highest-Ranked Outlooks page
   ========================================================= */

.hfx-outlook-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.hfx-outlook-summary-grid article {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-summary-icon-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.hfx-outlook-summary-grid article > div > span,
.hfx-outlook-summary-grid article strong,
.hfx-outlook-summary-grid article small {
    display: block;
}

.hfx-outlook-summary-grid article > div > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-outlook-summary-grid article strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 27px;
    line-height: 1;
}

.hfx-outlook-summary-grid article small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.hfx-outlook-board,
.hfx-outlook-history-preview {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-outlook-board-grid {
    display: grid;
    padding: 20px;
    gap: 18px;
}

.hfx-outlook-board-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            rgba(248, 250, 252, 0.8)
        );
}

.hfx-outlook-board-head {
    display: flex;
    padding: 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.hfx-outlook-board-rank {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hfx-outlook-board-identity h3 {
    margin: 6px 0 0;
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.hfx-outlook-board-identity p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.hfx-outlook-board-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.hfx-outlook-board-prices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.hfx-outlook-board-prices > div {
    min-width: 0;
    padding: 17px 20px;
    border-right: 1px solid var(--line);
}

.hfx-outlook-board-prices > div:last-child {
    border-right: 0;
}

.hfx-live-price-panel {
    background: var(--green-soft);
}

.hfx-outlook-board-prices span,
.hfx-outlook-board-prices strong,
.hfx-outlook-board-prices small {
    display: block;
}

.hfx-outlook-board-prices span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-outlook-board-prices strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.hfx-outlook-board-prices small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-outlook-journey {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.hfx-outlook-journey-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.hfx-outlook-journey-track {
    position: relative;
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--red-soft),
            var(--blue-soft),
            var(--green-soft)
        );
}

.hfx-outlook-journey-track span {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(18, 35, 63, 0.18);
}

.hfx-outlook-journey-risk {
    left: 0;
    background: var(--red);
}

.hfx-outlook-journey-published {
    left: 50%;
    background: var(--blue);
}

.hfx-outlook-journey-expected {
    left: 100%;
    background: var(--green);
}

.hfx-outlook-journey p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.hfx-outlook-thesis {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.hfx-outlook-thesis h4 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 18px;
}

.hfx-outlook-thesis > div {
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

.hfx-outlook-thesis > div p {
    margin: 0 0 12px;
}

.hfx-outlook-thesis > div p:last-child {
    margin-bottom: 0;
}

.hfx-outlook-audit {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    background: var(--panel-soft);
}

.hfx-outlook-audit > div {
    min-width: 0;
    padding: 14px 20px;
    border-right: 1px solid var(--line);
}

.hfx-outlook-audit > div:last-child {
    border-right: 0;
}

.hfx-outlook-audit dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-outlook-audit dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 11px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.hfx-outlook-board-foot {
    display: flex;
    padding: 13px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.hfx-outlook-board-foot > span:first-child {
    color: var(--muted);
    font-size: 10px;
}

.hfx-outlook-board-empty {
    min-height: 340px;
}

.hfx-outlook-method {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.hfx-outlook-method article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-outlook-method article > span {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--violet-soft);
    color: var(--violet);
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.hfx-outlook-method strong {
    color: var(--navy);
    font-size: 14px;
}

.hfx-outlook-method p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.hfx-outlook-history-table td {
    vertical-align: top;
}

.hfx-outlook-history-table td strong,
.hfx-outlook-history-table td small {
    display: block;
}

.hfx-outlook-history-table td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 1250px) {
    .hfx-outlook-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hfx-outlook-board-prices,
    .hfx-outlook-audit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hfx-outlook-board-prices > div:nth-child(2),
    .hfx-outlook-audit > div:nth-child(2) {
        border-right: 0;
    }

    .hfx-outlook-board-prices > div:nth-child(-n+2),
    .hfx-outlook-audit > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 850px) {
    .hfx-outlook-method {
        grid-template-columns: 1fr;
    }

    .hfx-outlook-board-head,
    .hfx-outlook-board-foot {
        display: grid;
    }

    .hfx-outlook-board-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .hfx-outlook-summary-grid {
        grid-template-columns: 1fr;
    }

    .hfx-outlook-board-grid {
        padding: 13px;
    }

    .hfx-outlook-board-prices,
    .hfx-outlook-audit {
        grid-template-columns: 1fr;
    }

    .hfx-outlook-board-prices > div,
    .hfx-outlook-audit > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-outlook-board-prices > div:last-child,
    .hfx-outlook-audit > div:last-child {
        border-bottom: 0;
    }

    .hfx-outlook-journey-labels {
        font-size: 8px;
    }
}

/* =========================================================
   HurstyFX outlook detail page
   ========================================================= */

.hfx-breadcrumbs {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.hfx-breadcrumbs a {
    color: var(--blue);
    font-weight: 800;
}

.hfx-detail-hero {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            circle at right top,
            rgba(15, 159, 168, 0.12),
            transparent 25rem
        ),
        linear-gradient(135deg, #ffffff, var(--blue-soft));
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--shadow-md);
}

.hfx-detail-hero h1 {
    margin: 16px 0 5px;
    color: var(--navy);
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.hfx-detail-hero-main > p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hfx-detail-hero-main > p strong {
    color: var(--navy);
}

.hfx-detail-live-status {
    display: grid;
    max-width: 290px;
    justify-items: end;
    gap: 9px;
}

.hfx-detail-live-status small {
    color: var(--muted);
    text-align: right;
    font-size: 10px;
    line-height: 1.5;
}

.hfx-detail-price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hfx-detail-price-grid article {
    min-width: 0;
    padding: 19px 21px;
    border-right: 1px solid var(--line);
}

.hfx-detail-price-grid article:last-child {
    border-right: 0;
}

.hfx-detail-live-price {
    background: var(--green-soft);
}

.hfx-detail-price-grid span,
.hfx-detail-price-grid strong,
.hfx-detail-price-grid small {
    display: block;
}

.hfx-detail-price-grid span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-detail-price-grid strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 21px;
    overflow-wrap: anywhere;
}

.hfx-detail-price-grid small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.55fr);
    align-items: start;
    gap: 20px;
    margin-bottom: 22px;
}

.hfx-detail-main,
.hfx-detail-aside {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.hfx-chart-timeframes {
    display: flex;
    gap: 6px;
}

.hfx-chart-timeframes span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.hfx-chart-timeframes .is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.hfx-chart-awaiting {
    position: relative;
    display: grid;
    min-height: 420px;
    overflow: hidden;
    place-items: center;
    background:
        linear-gradient(
            rgba(220, 228, 238, 0.46) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(220, 228, 238, 0.46) 1px,
            transparent 1px
        ),
        #fbfdff;
    background-size: 62px 52px;
}

.hfx-chart-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hfx-chart-awaiting-copy {
    position: relative;
    z-index: 2;
    max-width: 470px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.hfx-chart-awaiting-copy .hfx-empty-icon {
    margin: 0 auto;
}

.hfx-chart-awaiting-copy h3 {
    margin: 15px 0 7px;
    color: var(--navy);
    font-size: 19px;
}

.hfx-chart-awaiting-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 13px 20px;
}

.hfx-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.hfx-chart-key {
    width: 16px;
    height: 3px;
    border-radius: 999px;
}

.hfx-chart-key-blue {
    background: var(--blue);
}

.hfx-chart-key-green {
    background: var(--green);
}

.hfx-chart-key-red {
    background: var(--red);
}

.hfx-detail-longform {
    padding: 22px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.78;
}

.hfx-detail-longform p {
    margin: 0 0 15px;
}

.hfx-detail-longform p:last-child {
    margin-bottom: 0;
}

.hfx-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    gap: 12px;
}

.hfx-evidence-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel-soft);
    padding: 15px;
}

.hfx-evidence-grid strong {
    display: block;
    margin-bottom: 9px;
    color: var(--navy);
    font-size: 12px;
}

.hfx-evidence-grid pre {
    margin: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hfx-event-timeline {
    padding: 18px 22px 22px;
}

.hfx-event-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
}

.hfx-event-timeline article:last-child {
    padding-bottom: 0;
}

.hfx-event-timeline article:not(:last-child)::before {
    position: absolute;
    top: 16px;
    bottom: -2px;
    left: 7px;
    width: 2px;
    background: var(--line);
    content: "";
}

.hfx-event-marker {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border: 4px solid var(--blue-soft);
    border-radius: 50%;
    background: var(--blue);
}

.hfx-event-content {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel-soft);
    padding: 14px;
}

.hfx-event-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hfx-event-heading strong,
.hfx-event-heading small {
    display: block;
}

.hfx-event-heading strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-event-heading small,
.hfx-event-content > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-event-content p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
}

.hfx-event-price {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 850;
}

.hfx-detail-record {
    margin: 0;
}

.hfx-detail-record > div {
    display: grid;
    grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 13px 18px;
}

.hfx-detail-record > div:last-child {
    border-bottom: 0;
}

.hfx-detail-record dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.hfx-detail-record dd {
    margin: 0;
    color: var(--navy);
    text-align: right;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hfx-detail-session {
    padding: 18px;
}

.hfx-detail-session h3 {
    margin: 14px 0 7px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.35;
}

.hfx-detail-session p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 10px;
}

.hfx-detail-session .hfx-button {
    width: 100%;
}

.hfx-detail-principle,
.hfx-detail-outcome {
    border: 1px solid #cddcff;
    border-radius: var(--radius-md);
    background: var(--blue-soft);
    padding: 20px;
}

.hfx-detail-principle h3,
.hfx-detail-outcome h3 {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
}

.hfx-detail-principle p:not(.hfx-eyebrow),
.hfx-detail-outcome > div {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-detail-outcome {
    border-color: #bde9d2;
    background: var(--green-soft);
}

@media (max-width: 1120px) {
    .hfx-detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .hfx-detail-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hfx-detail-price-grid article:nth-child(2) {
        border-right: 0;
    }

    .hfx-detail-price-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .hfx-detail-hero {
        display: grid;
    }

    .hfx-detail-live-status {
        max-width: none;
        justify-items: start;
    }

    .hfx-detail-live-status small {
        text-align: left;
    }

    .hfx-detail-aside,
    .hfx-evidence-grid {
        grid-template-columns: 1fr;
    }

    .hfx-chart-awaiting {
        min-height: 350px;
    }
}

@media (max-width: 520px) {
    .hfx-detail-price-grid {
        grid-template-columns: 1fr;
    }

    .hfx-detail-price-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-detail-price-grid article:last-child {
        border-bottom: 0;
    }

    .hfx-panel-header-row {
        display: grid;
    }

    .hfx-chart-timeframes {
        justify-self: start;
    }

    .hfx-detail-record > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hfx-detail-record dd {
        text-align: left;
    }
}

/* =========================================================
   HurstyFX Market Context page
   ========================================================= */

.hfx-context-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.hfx-context-summary-grid article {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-context-summary-grid article > div > span,
.hfx-context-summary-grid strong,
.hfx-context-summary-grid small {
    display: block;
}

.hfx-context-summary-grid article > div > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-context-summary-grid strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 27px;
    line-height: 1;
}

.hfx-context-summary-grid .hfx-context-status-text {
    padding-top: 5px;
    color: var(--green);
    font-size: 18px;
}

.hfx-context-summary-grid small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.hfx-context-jump-nav {
    position: sticky;
    top: 82px;
    z-index: 30;
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.hfx-context-jump-nav a {
    flex: 0 0 auto;
    border-radius: 10px;
    color: var(--navy);
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 800;
}

.hfx-context-jump-nav a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.hfx-context-section {
    overflow: hidden;
    margin-bottom: 22px;
    scroll-margin-top: 145px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-context-section-head {
    display: flex;
    padding: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            rgba(234, 241, 255, 0.48)
        );
}

.hfx-context-section-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 23px;
    letter-spacing: -0.03em;
}

.hfx-context-section-head p:not(.hfx-eyebrow) {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.hfx-context-source-status {
    min-width: 190px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 11px 13px;
}

.hfx-context-source-status span,
.hfx-context-source-status strong {
    display: block;
}

.hfx-context-source-status span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.hfx-context-source-status strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 10px;
}

.hfx-calendar-list {
    display: grid;
}

.hfx-calendar-event {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}

.hfx-calendar-event:last-child {
    border-bottom: 0;
}

.hfx-calendar-time {
    display: grid;
    align-content: start;
    justify-items: center;
    border-right: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 20px 12px;
    text-align: center;
}

.hfx-calendar-time strong,
.hfx-calendar-time span,
.hfx-calendar-time small {
    display: block;
}

.hfx-calendar-time strong {
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
}

.hfx-calendar-time span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.hfx-calendar-time small {
    margin-top: 3px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
}

.hfx-calendar-main {
    min-width: 0;
    padding: 20px;
}

.hfx-calendar-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hfx-calendar-heading h3 {
    margin: 11px 0 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
}

.hfx-calendar-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.hfx-calendar-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 15px 0 0;
}

.hfx-calendar-values div {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 10px;
}

.hfx-calendar-values dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-calendar-values dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 12px;
    font-weight: 850;
}

.hfx-calendar-description {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-calendar-main .hfx-text-link {
    margin-top: 13px;
}

.hfx-released-events-table td {
    vertical-align: top;
}

.hfx-released-events-table td strong,
.hfx-released-events-table td small {
    display: block;
}

.hfx-released-events-table td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
    gap: 15px;
}

.hfx-news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            rgba(248, 250, 252, 0.82)
        );
    padding: 17px;
}

.hfx-news-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hfx-news-time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.hfx-news-card h3 {
    margin: 15px 0 0;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.42;
}

.hfx-news-card h3 a:hover {
    color: var(--blue);
}

.hfx-news-source {
    margin: 7px 0 0;
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
}

.hfx-news-summary {
    margin: 13px 0 0;
    color: var(--text);
    font-size: 11px;
    line-height: 1.65;
}

.hfx-news-markets {
    margin-top: 14px;
    border-radius: 10px;
    background: var(--violet-soft);
    padding: 10px;
}

.hfx-news-markets span,
.hfx-news-markets strong {
    display: block;
}

.hfx-news-markets span {
    color: var(--violet);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-news-markets strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 10px;
}

.hfx-news-card .hfx-card-link {
    margin-top: auto;
    padding-top: 16px;
}

.hfx-rates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
    gap: 15px;
}

.hfx-rate-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.hfx-rate-card header {
    display: flex;
    padding: 16px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.hfx-rate-card h3 {
    margin: 12px 0 0;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.35;
}

.hfx-rate-card header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.hfx-rate-tenor {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 850;
}

.hfx-rate-reading {
    display: flex;
    padding: 18px 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hfx-rate-reading > strong {
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.hfx-rate-reading > span {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 850;
}

.hfx-rate-reading .is-positive {
    background: var(--green-soft);
    color: var(--green);
}

.hfx-rate-reading .is-negative {
    background: var(--red-soft);
    color: var(--red);
}

.hfx-rate-reading .is-flat {
    background: var(--panel-soft);
    color: var(--muted);
}

.hfx-rate-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.hfx-rate-card dl div {
    padding: 11px 14px;
    border-right: 1px solid var(--line);
}

.hfx-rate-card dl div:last-child {
    border-right: 0;
}

.hfx-rate-card dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-rate-card dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
}

.hfx-context-empty {
    min-height: 300px;
}

.hfx-context-guidance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.hfx-context-guidance article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-context-guidance article > span {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--blue-soft);
    color: var(--blue);
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.hfx-context-guidance strong {
    color: var(--navy);
    font-size: 14px;
}

.hfx-context-guidance p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1280px) {
    .hfx-context-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 850px) {
    .hfx-context-section-head {
        display: grid;
    }

    .hfx-context-source-status {
        min-width: 0;
    }

    .hfx-context-guidance {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .hfx-context-jump-nav {
        top: 72px;
    }

    .hfx-calendar-event {
        grid-template-columns: 1fr;
    }

    .hfx-calendar-time {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px;
        text-align: left;
    }

    .hfx-calendar-time strong,
    .hfx-calendar-time span,
    .hfx-calendar-time small {
        margin: 0;
    }

    .hfx-calendar-heading {
        display: grid;
    }

    .hfx-calendar-heading > .hfx-badge {
        justify-self: start;
    }

    .hfx-calendar-values {
        grid-template-columns: 1fr;
    }

    .hfx-news-grid,
    .hfx-rates-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .hfx-context-summary-grid {
        grid-template-columns: 1fr;
    }

    .hfx-context-section-head {
        padding: 18px;
    }

    .hfx-calendar-main {
        padding: 16px;
    }

    .hfx-news-card-top {
        display: grid;
    }

    .hfx-rate-card dl {
        grid-template-columns: 1fr;
    }

    .hfx-rate-card dl div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-rate-card dl div:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   HurstyFX History and Evidence page
   ========================================================= */

.hfx-evidence-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.hfx-evidence-summary-grid article {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.hfx-evidence-summary-grid article > div > span,
.hfx-evidence-summary-grid strong,
.hfx-evidence-summary-grid small {
    display: block;
}

.hfx-evidence-summary-grid article > div > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.hfx-evidence-summary-grid strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
}

.hfx-evidence-summary-grid small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.hfx-evidence-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.hfx-evidence-principles article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #cddcff;
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            135deg,
            var(--blue-soft),
            #ffffff
        );
    padding: 17px;
}

.hfx-evidence-principles article > span {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--blue);
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.hfx-evidence-principles strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-evidence-principles p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.hfx-history-section {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-evidence-history-table td {
    vertical-align: top;
}

.hfx-evidence-history-table td strong,
.hfx-evidence-history-table td small {
    display: block;
}

.hfx-evidence-history-table td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.hfx-table-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 850;
}

.hfx-table-action:hover {
    background: var(--blue);
    color: #ffffff;
}

.hfx-evidence-outcome-note td {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;
    font-size: 10px;
    line-height: 1.55;
}

.hfx-evidence-outcome-note strong {
    display: inline;
    color: var(--navy);
}

.hfx-history-empty {
    min-height: 330px;
}

.hfx-history-event-list {
    display: grid;
    padding: 20px;
    gap: 13px;
}

.hfx-history-event-list article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.hfx-history-event-marker span {
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    place-items: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hfx-history-event-marker .is-reached {
    background: var(--green-soft);
    color: var(--green);
}

.hfx-history-event-marker .is-failed {
    background: var(--red-soft);
    color: var(--red);
}

.hfx-history-event-marker .is-invalid {
    background: var(--amber-soft);
    color: var(--amber);
}

.hfx-history-event-marker .is-published {
    background: var(--blue-soft);
    color: var(--blue);
}

.hfx-history-event-marker .is-price {
    background: var(--turquoise-soft);
    color: var(--turquoise);
}

.hfx-history-event-marker .is-note {
    background: var(--violet-soft);
    color: var(--violet);
}

.hfx-history-event-content {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 14px;
}

.hfx-history-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.hfx-history-event-head strong,
.hfx-history-event-head small {
    display: block;
}

.hfx-history-event-head strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-history-event-head small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-history-event-content > p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 11px;
    line-height: 1.6;
}

.hfx-history-event-content footer {
    display: flex;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-history-event-content footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 850;
}

.hfx-history-event-content footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hfx-evidence-explanation {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.hfx-evidence-explanation > header {
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--blue-soft)
        );
}

.hfx-evidence-explanation h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    letter-spacing: -0.03em;
}

.hfx-evidence-explanation > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hfx-evidence-explanation article {
    padding: 19px;
    border-right: 1px solid var(--line);
}

.hfx-evidence-explanation article:last-child {
    border-right: 0;
}

.hfx-evidence-explanation strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-evidence-explanation p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

@media (max-width: 1420px) {
    .hfx-evidence-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .hfx-evidence-explanation > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hfx-evidence-explanation article:nth-child(2) {
        border-right: 0;
    }

    .hfx-evidence-explanation article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 680px) {
    .hfx-evidence-summary-grid,
    .hfx-evidence-principles {
        grid-template-columns: 1fr;
    }

    .hfx-history-event-list {
        padding: 14px;
    }

    .hfx-history-event-list article {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .hfx-history-event-marker span {
        width: 40px;
        height: 40px;
    }

    .hfx-history-event-head,
    .hfx-history-event-content footer {
        display: grid;
    }

    .hfx-history-event-content footer a {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .hfx-evidence-explanation > div {
        grid-template-columns: 1fr;
    }

    .hfx-evidence-explanation article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-evidence-explanation article:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   HurstyFX Account page
   ========================================================= */

.hfx-account-hero {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.hfx-account-hero-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.hfx-account-access-pending {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    border: 1px solid #ecd59f;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hfx-account-access-pending > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(185, 120, 18, 0.12);
}

.hfx-account-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.hfx-account-summary-grid article {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.hfx-account-summary-grid article > div > span,
.hfx-account-summary-grid strong,
.hfx-account-summary-grid small {
    display: block;
}

.hfx-account-summary-grid article > div > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-account-summary-grid strong {
    margin-top: 5px;
    color: var(--navy);
}

.hfx-account-summary-text {
    font-size: 16px;
    line-height: 1.2;
}

.hfx-account-summary-date {
    font-size: 17px;
}

.hfx-account-summary-grid small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.hfx-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.55fr);
    align-items: start;
    gap: 20px;
}

.hfx-account-main,
.hfx-account-aside {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.hfx-account-details {
    display: grid;
    margin: 0;
}

.hfx-account-details > div {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 15px 21px;
}

.hfx-account-details > div:last-child {
    border-bottom: 0;
}

.hfx-account-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.hfx-account-details dd {
    margin: 0;
    color: var(--navy);
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hfx-account-authorised-note,
.hfx-account-trial-note,
.hfx-account-inactive-note {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin: 0 20px 20px;
    border: 1px solid #bde9d2;
    border-radius: 15px;
    background: var(--green-soft);
    padding: 17px;
}

.hfx-account-trial-note {
    border-color: #cddcff;
    background: var(--blue-soft);
}

.hfx-account-inactive-note {
    border-color: #ecd59f;
    background: var(--amber-soft);
}

.hfx-account-authorised-note strong,
.hfx-account-trial-note strong,
.hfx-account-inactive-note strong {
    color: var(--navy);
    font-size: 14px;
}

.hfx-account-authorised-note p,
.hfx-account-trial-note p,
.hfx-account-inactive-note p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.hfx-acknowledgement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
    gap: 14px;
}

.hfx-acknowledgement-grid article {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 17px;
}

.hfx-acknowledgement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hfx-acknowledgement-grid h3 {
    margin: 15px 0 0;
    color: var(--navy);
    font-size: 16px;
}

.hfx-acknowledgement-grid p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.hfx-account-actions {
    display: grid;
    padding: 18px;
    gap: 10px;
}

.hfx-account-actions .hfx-button {
    width: 100%;
}

.hfx-account-actions form {
    margin: 4px 0 0;
}

.hfx-account-signout {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    border: 1px solid #f0c4c4;
    border-radius: 11px;
    background: var(--red-soft);
    color: var(--red);
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 800;
}

.hfx-account-signout:hover {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.hfx-account-security,
.hfx-account-risk {
    border: 1px solid #cddcff;
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            135deg,
            var(--blue-soft),
            #ffffff
        );
    padding: 20px;
}

.hfx-account-risk {
    border-color: #ecd59f;
    background:
        linear-gradient(
            135deg,
            var(--amber-soft),
            #ffffff
        );
}

.hfx-account-security h3,
.hfx-account-risk h3 {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
}

.hfx-account-security p:not(.hfx-eyebrow),
.hfx-account-risk p:not(.hfx-eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.hfx-account-security ul {
    display: grid;
    margin: 15px 0 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.hfx-account-security li {
    position: relative;
    color: var(--text);
    padding-left: 18px;
    font-size: 10px;
    line-height: 1.5;
}

.hfx-account-security li::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--turquoise);
    content: "";
}

@media (max-width: 1150px) {
    .hfx-account-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hfx-account-aside > .hfx-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .hfx-account-hero {
        display: grid;
    }

    .hfx-account-details > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hfx-account-details dd {
        text-align: left;
    }

    .hfx-account-aside,
    .hfx-acknowledgement-grid {
        grid-template-columns: 1fr;
    }

    .hfx-account-aside > .hfx-panel {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .hfx-account-summary-grid {
        grid-template-columns: 1fr;
    }

    .hfx-account-authorised-note,
    .hfx-account-trial-note,
    .hfx-account-inactive-note {
        grid-template-columns: 1fr;
        margin-left: 14px;
        margin-right: 14px;
    }

    .hfx-acknowledgement-grid {
        padding: 14px;
    }
}

/* =========================================================
   HurstyFX finished login page
   ========================================================= */

.hfx-login-shell {
    display: grid;
    width: min(1180px, calc(100% - 32px));
    min-height: 710px;
    margin: 32px auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 30px 80px rgba(18, 35, 63, 0.13),
        0 4px 14px rgba(18, 35, 63, 0.06);
}

.hfx-login-introduction {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 12% 14%,
            rgba(42, 201, 190, 0.2),
            transparent 21rem
        ),
        radial-gradient(
            circle at 90% 86%,
            rgba(119, 92, 246, 0.18),
            transparent 24rem
        ),
        linear-gradient(
            145deg,
            #102544,
            #17365d 55%,
            #122d51
        );
    padding: clamp(30px, 5vw, 58px);
}

.hfx-login-introduction::before,
.hfx-login-introduction::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hfx-login-introduction::before {
    width: 340px;
    height: 340px;
    top: -180px;
    right: -130px;
}

.hfx-login-introduction::after {
    width: 260px;
    height: 260px;
    bottom: -140px;
    left: -110px;
}

.hfx-login-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: #ffffff;
}

.hfx-login-brand-mark {
    display: grid;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
}

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

.hfx-login-brand strong {
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hfx-login-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hfx-login-introduction-copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
    margin-top: clamp(55px, 9vh, 95px);
}

.hfx-login-introduction-copy .hfx-eyebrow {
    color: #61d8d0;
}

.hfx-login-introduction-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5.2vw, 61px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hfx-login-introduction-copy > p:not(.hfx-eyebrow) {
    max-width: 570px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.75;
}

.hfx-login-feature-list {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: 38px;
    gap: 11px;
}

.hfx-login-feature-list article {
    display: grid;
    max-width: 570px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    padding: 12px;
    backdrop-filter: blur(10px);
}

.hfx-login-feature-list article > span {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(42, 201, 190, 0.13);
    color: #7be1db;
    place-items: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hfx-login-feature-list strong,
.hfx-login-feature-list p {
    display: block;
}

.hfx-login-feature-list strong {
    color: #ffffff;
    font-size: 12px;
}

.hfx-login-feature-list p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.45;
}

.hfx-login-principle {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 34px;
}

.hfx-login-principle strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hfx-login-principle p {
    max-width: 520px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    line-height: 1.55;
}

.hfx-login-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at right top,
            rgba(37, 99, 235, 0.07),
            transparent 19rem
        ),
        #f8fafc;
    padding: clamp(25px, 5vw, 56px);
}

.hfx-login-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #ffffff;
    padding: clamp(24px, 4vw, 34px);
    box-shadow: 0 16px 44px rgba(18, 35, 63, 0.09);
}

.hfx-login-card-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 25px;
}

.hfx-login-security-icon {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--blue-soft);
    place-items: center;
}

.hfx-login-security-icon::before {
    width: 17px;
    height: 14px;
    border: 2px solid var(--blue);
    border-radius: 4px;
    content: "";
}

.hfx-login-security-icon::after {
    position: absolute;
    width: 11px;
    height: 10px;
    top: 10px;
    border: 2px solid var(--blue);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.hfx-login-card-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hfx-login-card-header p:not(.hfx-eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.hfx-login-error {
    margin-bottom: 18px;
    border: 1px solid #f0c4c4;
    border-radius: 12px;
    background: var(--red-soft);
    padding: 13px 14px;
}

.hfx-login-error strong {
    display: block;
    color: var(--red);
    font-size: 12px;
}

.hfx-login-error p {
    margin: 4px 0 0;
    color: #854545;
    font-size: 10px;
    line-height: 1.5;
}

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

.hfx-login-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
}

.hfx-login-input-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.hfx-login-input-wrap:focus-within {
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.hfx-login-input-wrap > span {
    display: grid;
    height: 100%;
    min-height: 48px;
    border-right: 1px solid var(--line);
    color: var(--blue);
    place-items: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hfx-login-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
}

.hfx-login-input-wrap input::placeholder {
    color: #99a4b3;
}

.hfx-login-field-error {
    margin-top: 5px;
    color: var(--red);
    font-size: 9px;
}

.hfx-login-field-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hfx-login-submit {
    display: flex;
    width: 100%;
    min-height: 49px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--blue),
            #315dcc
        );
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.21);
    transition:
        transform 140ms ease,
        box-shadow 140ms ease;
}

.hfx-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 27px rgba(37, 99, 235, 0.27);
}

.hfx-login-submit:active {
    transform: translateY(0);
}

.hfx-login-access-note {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    margin-top: 21px;
    border-top: 1px solid var(--line);
    padding-top: 17px;
}

.hfx-login-access-note > span {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 131, 91, 0.1);
}

.hfx-login-access-note p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.hfx-login-links {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #a0a9b7;
    font-size: 9px;
}

.hfx-login-links a {
    color: var(--muted);
    font-weight: 750;
}

.hfx-login-links a:hover {
    color: var(--blue);
}

@media (max-width: 960px) {
    .hfx-login-shell {
        width: min(700px, calc(100% - 28px));
        grid-template-columns: 1fr;
    }

    .hfx-login-introduction {
        min-height: auto;
        padding: 35px;
    }

    .hfx-login-introduction-copy {
        margin-top: 48px;
    }

    .hfx-login-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hfx-login-feature-list article {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .hfx-login-principle {
        margin-top: 30px;
    }

    .hfx-login-panel {
        padding: 42px 30px;
    }
}

@media (max-width: 650px) {
    .hfx-login-shell {
        width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 20px;
    }

    .hfx-login-introduction {
        padding: 27px 23px;
    }

    .hfx-login-introduction-copy {
        margin-top: 42px;
    }

    .hfx-login-introduction-copy h1 {
        font-size: 39px;
    }

    .hfx-login-feature-list {
        grid-template-columns: 1fr;
    }

    .hfx-login-feature-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .hfx-login-panel {
        padding: 28px 16px;
    }

    .hfx-login-card {
        padding: 23px 19px;
    }
}

@media (max-width: 390px) {
    .hfx-login-card-header {
        grid-template-columns: 1fr;
    }

    .hfx-login-security-icon {
        width: 44px;
        height: 44px;
    }
}


/* HurstyFX private production outlook deep-dive */

.hfx-private-chart-wrap {
    position: relative;
    min-height: 470px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.hfx-private-chart {
    display: block;
    width: 100%;
    height: 470px;
}

.hfx-chart-timeframes button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    padding: 6px 10px;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    cursor: pointer;
}

.hfx-chart-timeframes button.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.hfx-private-research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.hfx-private-research-grid article,
.hfx-private-source-list article {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 18px;
}

.hfx-private-research-grid h3,
.hfx-private-source-list h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 14px;
}

.hfx-private-research-grid p,
.hfx-private-research-grid li,
.hfx-private-source-list p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hfx-private-research-grid ul {
    margin: 0;
    padding-left: 18px;
}

.hfx-private-source-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.hfx-private-source-list article {
    background: #ffffff;
}

.hfx-private-hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}

@media (max-width: 780px) {
    .hfx-private-research-grid {
        grid-template-columns: 1fr;
    }

    .hfx-private-chart-wrap,
    .hfx-private-chart {
        min-height: 390px;
        height: 390px;
    }
}

/* =========================================================
   HurstyFX Session Intelligence — live journey board
   ========================================================= */

.hfx-session-research-live {
    display: grid;
    gap: 18px;
    padding: 25px 25px 0;
}

.hfx-session-journey-board {
    overflow: hidden;
    width: calc(100% - 50px);
    max-width: 1040px;
    margin: 25px auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
}

.hfx-session-journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
    padding: 22px;
}

.hfx-session-journey-grid > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.hfx-session-journey-card {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.hfx-session-journey-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.hfx-session-journey-head h3 {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hfx-session-journey-head small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.hfx-session-journey-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.hfx-session-journey-prices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.hfx-session-journey-prices > div {
    min-width: 0;
    padding: 14px;
    border-right: 1px solid var(--line);
}

.hfx-session-journey-prices > div:last-child {
    border-right: 0;
}

.hfx-session-current-price {
    background: var(--green-soft);
}

.hfx-session-journey-prices span,
.hfx-session-journey-prices strong,
.hfx-session-journey-prices small {
    display: block;
}

.hfx-session-journey-prices span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hfx-session-journey-prices strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.hfx-session-journey-prices small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.hfx-session-live-guide {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}

.hfx-session-live-guide-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.hfx-session-live-guide-head span,
.hfx-session-live-guide-head strong {
    display: block;
}

.hfx-session-live-guide-head span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.hfx-session-live-guide-head strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 12px;
}

.hfx-session-live-guide-head > strong {
    color: var(--muted);
    text-align: right;
    font-size: 10px;
}

.hfx-session-journey-progress {
    height: 9px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--panel-soft);
}

.hfx-session-journey-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--amber);
    transition:
        width 240ms ease,
        background 180ms ease;
}

.hfx-session-journey-card[data-guide-state="toward-expected"]
.hfx-session-journey-progress-fill {
    background: var(--green);
}

.hfx-session-journey-card[data-guide-state="toward-risk"]
.hfx-session-journey-progress-fill {
    background: var(--red);
}

.hfx-session-journey-card[data-guide-state="toward-expected"]
[data-journey-state] {
    color: var(--green);
}

.hfx-session-journey-card[data-guide-state="toward-risk"]
[data-journey-state] {
    color: var(--red);
}

.hfx-session-journey-card[data-guide-state="near-publication"]
[data-journey-state] {
    color: var(--amber);
}

.hfx-session-journey-distances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
}

.hfx-session-journey-distances > div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 9px;
}

.hfx-session-journey-distances span,
.hfx-session-journey-distances strong {
    display: block;
}

.hfx-session-journey-distances span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.hfx-session-journey-distances strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 11px;
}

.hfx-session-last-update {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-session-last-update strong {
    color: var(--navy);
}

.hfx-session-completed-result {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.hfx-session-completed-result strong {
    color: var(--navy);
    font-size: 13px;
}

.hfx-session-completed-result p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.hfx-session-completed-result small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
}

.hfx-session-journey-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
}

.hfx-session-journey-foot > span {
    color: var(--muted);
    font-size: 8px;
}

.hfx-session-journey-foot a {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.hfx-session-journey-foot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hfx-session-board-action {
    padding: 0 18px 18px;
}

.hfx-session-principle-wide {
    width: calc(100% - 50px);
    max-width: 1040px;
    margin: 0 auto 25px;
}

@media (max-width: 1050px) {
    .hfx-session-journey-grid {
        grid-template-columns: 1fr;
    }

    .hfx-session-journey-grid > article:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .hfx-session-journey-board {
        margin: 14px;
    }

    .hfx-session-research-live {
        padding: 14px 14px 0;
    }

    .hfx-session-principle-wide {
        margin: 0 14px 14px;
    }

    .hfx-session-journey-head {
        display: grid;
    }

    .hfx-session-journey-badges {
        justify-content: flex-start;
    }

    .hfx-session-journey-prices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hfx-session-journey-prices > div:nth-child(2) {
        border-right: 0;
    }

    .hfx-session-journey-prices > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 480px) {
    .hfx-session-journey-prices,
    .hfx-session-journey-distances {
        grid-template-columns: 1fr;
    }

    .hfx-session-journey-prices > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hfx-session-live-guide-head,
    .hfx-session-journey-foot {
        display: grid;
    }

    .hfx-session-live-guide-head > strong {
        text-align: left;
    }
}

/* =========================================================
   31NE — centred standalone Session Intelligence journey cards
   ========================================================= */

.hfx-session-journey-board {
    width: calc(100% - 80px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #f7f9fc;
    border: 1px solid #dbe3ee;
}

.hfx-session-journey-board > .hfx-panel-header {
    background: #ffffff;
    border-bottom: 1px solid #dbe3ee;
}

.hfx-session-journey-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 28px;
}

.hfx-session-journey-grid > article:last-child:nth-child(odd) {
    grid-column: auto;
}

.hfx-session-journey-card {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border: 2px solid #d8e0eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 8px 24px rgba(18, 35, 63, 0.08),
        0 2px 5px rgba(18, 35, 63, 0.04);
}

.hfx-session-journey-card + .hfx-session-journey-card {
    margin-top: 0;
}

.hfx-session-journey-head {
    padding: 20px 22px;
    background: #f8fafc;
}

.hfx-session-journey-prices > div {
    padding: 16px;
}

.hfx-session-live-guide,
.hfx-session-completed-result {
    padding: 19px 22px;
}

.hfx-session-journey-foot {
    padding: 14px 22px;
    background: #fbfcfe;
}

.hfx-session-board-action {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px 28px;
}

.hfx-session-principle-wide {
    width: calc(100% - 80px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 760px) {
    .hfx-session-journey-board,
    .hfx-session-principle-wide {
        width: calc(100% - 28px);
    }

    .hfx-session-journey-grid {
        padding: 16px;
        gap: 18px;
    }

    .hfx-session-journey-card {
        max-width: none;
    }

    .hfx-session-board-action {
        padding: 0 16px 16px;
    }
}
