@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --fx-primary-900: #0b1f33;
    --fx-primary-800: #12314f;
    --fx-primary-700: #1d4e74;
    --fx-primary: #256d85;
    --fx-primary-hover: #2f86a4;
    --fx-primary-soft: #e7f5f8;
    --fx-primary-subtle: #f3fafc;
    --fx-green: #2fbf71;
    --fx-green-soft: #eafbf2;
    --fx-blue: #3b82f6;
    --fx-blue-soft: #eff6ff;
    --fx-amber: #f59e0b;
    --fx-amber-soft: #fff7e6;
    --fx-red: #ef4444;
    --fx-red-soft: #fef2f2;
    --fx-purple: #7c3aed;
    --fx-purple-soft: #f5f3ff;
    --fx-bg: #f7fafc;
    --fx-surface: #ffffff;
    --fx-surface-muted: #f1f5f9;
    --fx-border: #e2e8f0;
    --fx-border-strong: #cbd5e1;
    --fx-text: #0f172a;
    --fx-text-secondary: #475569;
    --fx-text-muted: #64748b;
    --fx-text-soft: #94a3b8;
    --fx-white: #ffffff;
    --fx-font-sans: 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
    --fx-font-number: 'Inter', 'Noto Sans Thai', system-ui, sans-serif;
    --fx-radius-sm: 10px;
    --fx-radius-md: 16px;
    --fx-radius-lg: 24px;
    --fx-radius-xl: 32px;
    --fx-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --fx-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
    --fx-shadow-focus: 0 0 0 4px rgba(37, 109, 133, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--fx-bg);
    color: var(--fx-text);
    font-family: var(--fx-font-sans);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--fx-primary);
}

a:hover {
    color: var(--fx-primary-hover);
}

.container,
.container-fluid {
    --bs-gutter-x: 2rem;
}

.fx-page {
    background: var(--fx-bg);
}

.fx-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.fx-section {
    padding: 72px 0;
}

.fx-section-dense {
    padding: 48px 0;
}

.fx-section-soft {
    background: var(--fx-primary-subtle);
}

.fx-market-strip {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 252, 0.92)),
        radial-gradient(circle at 12% 0%, rgba(47, 191, 113, 0.10), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.10), transparent 30%);
    border-top: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
    padding: 18px 0 24px;
}

.fx-market-strip-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
}

.fx-market-strip-title {
    color: var(--fx-primary-900);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-market-strip-note {
    color: var(--fx-text-muted);
    font-size: 13px;
}

.fx-market-strip-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    color: var(--fx-primary-900);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fx-market-strip-link:hover {
    color: var(--fx-primary);
    background: var(--fx-surface);
}

.fx-market-widget {
    min-height: 52px;
    overflow: hidden;
    margin: 0 0 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--fx-radius-md);
}

.fx-market-widget .tradingview-widget-container {
    width: 100%;
}

.fx-market-pulse {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fx-market-card {
    position: relative;
    overflow: hidden;
    min-height: 222px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: var(--fx-radius-md);
    box-shadow: var(--fx-shadow-sm);
}

.fx-market-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--fx-blue);
}

.fx-market-card.is-up::before {
    background: var(--fx-green);
}

.fx-market-card.is-down::before {
    background: var(--fx-red);
}

.fx-market-card.is-neutral::before {
    background: var(--fx-amber);
}

.fx-market-card-top,
.fx-market-card-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fx-market-card-top span {
    display: block;
    color: var(--fx-text-muted);
    font-family: var(--fx-font-number);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fx-market-card-top strong {
    display: block;
    color: var(--fx-primary-900);
    font-size: 15px;
    font-weight: 800;
}

.fx-market-card-top small {
    padding: 4px 8px;
    color: #15803d;
    background: var(--fx-green-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.fx-market-live-card {
    padding-bottom: 10px;
}

.fx-mini-symbol-widget {
    position: relative;
    z-index: 1;
    min-height: 150px;
    margin: 8px -8px -4px;
    overflow: hidden;
}

.fx-mini-symbol-widget .tradingview-widget-container {
    width: 100%;
    min-height: 150px;
}

.fx-mini-symbol-widget iframe {
    width: 100% !important;
}

.fx-market-card-value {
    align-items: baseline;
    margin-top: 18px;
}

.fx-market-card-value span {
    color: var(--fx-primary-900);
    font-family: var(--fx-font-number);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.fx-market-card-value em {
    font-family: var(--fx-font-number);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.fx-market-card.is-up .fx-market-card-value em {
    color: #15803d;
}

.fx-market-card.is-down .fx-market-card-value em {
    color: #dc2626;
}

.fx-market-card.is-neutral .fx-market-card-value em {
    color: #b45309;
}

.fx-sparkline {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    opacity: 0.82;
}

.fx-sparkline polyline {
    fill: none;
    stroke: var(--fx-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: fxDrawSpark 1.4s ease forwards;
}

.fx-market-card.is-up .fx-sparkline polyline {
    stroke: var(--fx-green);
}

.fx-market-card.is-down .fx-sparkline polyline {
    stroke: var(--fx-red);
}

.fx-market-card.is-neutral .fx-sparkline polyline {
    stroke: var(--fx-amber);
}

@keyframes fxDrawSpark {
    to {
        stroke-dashoffset: 0;
    }
}

.fx-navbar,
.navbar.bg-dark {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--fx-border);
    box-shadow: var(--fx-shadow-sm);
    backdrop-filter: blur(16px);
}

.fx-navbar .navbar-brand,
.navbar-dark .navbar-brand {
    color: var(--fx-primary-900) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.fx-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.fx-navbar .nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: var(--fx-text-secondary) !important;
    font-weight: 600;
}

.fx-navbar .nav-link:hover,
.fx-navbar .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--fx-primary) !important;
}

.navbar-dark .navbar-toggler {
    border-color: var(--fx-border-strong);
    filter: invert(1);
}

.fx-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    background:
        linear-gradient(135deg, rgba(243, 250, 252, 0.98), rgba(255, 255, 255, 0.94)),
        url('/assets/images/bg.png') center / cover;
}

.fx-hero::after {
    content: none;
}

.fx-hero > * {
    position: relative;
    z-index: 1;
}

.fx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--fx-primary);
    background: var(--fx-primary-soft);
    border: 1px solid rgba(37, 109, 133, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.fx-display {
    color: var(--fx-primary-900);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.fx-lead {
    color: var(--fx-text-secondary);
    font-size: 18px;
    line-height: 1.75;
}

.fx-risk-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--fx-radius-md);
    font-size: 14px;
}

.fx-risk-note strong {
    color: #92400e;
}

.fx-hero-panel,
.fx-panel {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-md);
}

.fx-hero-panel {
    padding: 24px;
}

.fx-hero-terminal {
    overflow: hidden;
    background: var(--fx-primary-900);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-md);
}

.fx-terminal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.fx-terminal-top div {
    display: flex;
    gap: 7px;
}

.fx-terminal-top span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.fx-terminal-body {
    padding: 20px;
}

.fx-ea-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    color: var(--fx-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--fx-radius-lg);
}

.fx-ea-row + .fx-ea-row {
    margin-top: 14px;
}

.fx-ea-row h2 {
    margin: 10px 0 2px;
    color: var(--fx-white);
    font-size: 20px;
    font-weight: 800;
}

.fx-ea-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.fx-ea-row a {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--fx-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--fx-radius-sm);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.fx-ea-row a:hover {
    background: rgba(255, 255, 255, 0.10);
}

.fx-terminal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.fx-terminal-stats div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--fx-radius-md);
}

.fx-terminal-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
}

.fx-terminal-stats strong {
    display: block;
    color: var(--fx-white);
    font-family: var(--fx-font-number);
    font-size: 15px;
    line-height: 1.25;
}

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

.fx-metric {
    padding: 16px;
    background: var(--fx-surface-muted);
    border-radius: var(--fx-radius-md);
}

.fx-metric-label {
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.fx-metric-value {
    color: var(--fx-primary-900);
    font-family: var(--fx-font-number);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.fx-card,
.card {
    border: 1px solid var(--fx-border) !important;
    border-radius: var(--fx-radius-lg) !important;
    box-shadow: var(--fx-shadow-sm);
}

.fx-card {
    background: var(--fx-surface);
    padding: 24px;
}

.card {
    overflow: hidden;
}

.card.shadow,
.card.shadow-sm {
    box-shadow: var(--fx-shadow-sm) !important;
}

.fx-card-hover {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fx-card-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 109, 133, 0.32) !important;
    box-shadow: var(--fx-shadow-md);
}

.fx-icon-box,
.feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--fx-primary);
    background: var(--fx-primary-soft) !important;
    border-radius: var(--fx-radius-md) !important;
    font-size: 22px;
}

.btn {
    min-height: 44px;
    border-radius: var(--fx-radius-sm);
    font-weight: 700;
}

.btn-primary,
.btn-dark {
    background: var(--fx-primary) !important;
    border-color: var(--fx-primary) !important;
    color: var(--fx-white) !important;
}

.btn-primary:hover,
.btn-dark:hover {
    background: var(--fx-primary-hover) !important;
    border-color: var(--fx-primary-hover) !important;
}

.btn-outline-light,
.btn-outline-dark,
.btn-outline-secondary {
    color: var(--fx-primary-900) !important;
    background: var(--fx-white);
    border-color: var(--fx-border-strong) !important;
}

.btn-outline-light:hover,
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    color: var(--fx-white) !important;
    background: var(--fx-primary-800) !important;
    border-color: var(--fx-primary-800) !important;
}

.btn-success {
    background: var(--fx-green) !important;
    border-color: var(--fx-green) !important;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.bg-primary,
.badge.bg-primary {
    background-color: var(--fx-primary) !important;
}

.bg-success,
.badge.bg-success {
    background-color: var(--fx-green) !important;
}

.bg-warning,
.badge.bg-warning {
    background-color: var(--fx-amber) !important;
}

.bg-info,
.badge.bg-info {
    background-color: var(--fx-blue) !important;
}

.text-primary {
    color: var(--fx-primary) !important;
}

.text-muted {
    color: var(--fx-text-muted) !important;
}

.bg-light {
    background-color: var(--fx-primary-subtle) !important;
}

.fx-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: var(--fx-primary);
    background: var(--fx-primary-soft);
    border: 1px solid rgba(37, 109, 133, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fx-status-success {
    color: #166534;
    background: var(--fx-green-soft);
}

.fx-status-warning {
    color: #92400e;
    background: var(--fx-amber-soft);
}

.fx-status-danger {
    color: #991b1b;
    background: var(--fx-red-soft);
}

.form-control,
.form-select {
    min-height: 44px;
    background: var(--fx-surface-muted);
    border: 1px solid transparent;
    border-radius: var(--fx-radius-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fx-primary);
    box-shadow: var(--fx-shadow-focus);
}

.table {
    color: var(--fx-text);
}

.table thead th {
    color: var(--fx-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.fx-admin .sb-topnav {
    background: var(--fx-primary-900) !important;
}

.fx-admin .sb-topnav .navbar-brand,
.fx-admin .sb-topnav .nav-link {
    color: var(--fx-white) !important;
}

.fx-admin-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fx-admin .sb-sidenav-dark {
    background: var(--fx-primary-900);
}

.fx-admin .sb-sidenav-dark .sb-sidenav-menu .nav-link:hover,
.fx-admin .sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
    color: var(--fx-white);
    background: rgba(255, 255, 255, 0.08);
}

.fx-admin-nav-button {
    width: 100%;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: 0;
}

.fx-admin-nav-button:hover {
    color: var(--fx-white);
    background: rgba(255, 255, 255, 0.08);
}

.fx-footer,
footer.bg-dark {
    background: var(--fx-primary-900) !important;
    color: var(--fx-white);
}

.fx-footer a,
footer.bg-dark a {
    color: rgba(255, 255, 255, 0.86);
}

.fx-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.fx-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fx-article-shell {
    max-width: 920px;
    margin: 0 auto;
}

.fx-article {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-sm);
    overflow: hidden;
}

.fx-article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.fx-article-header,
.fx-article-body {
    padding: 40px;
}

.fx-article-title {
    color: var(--fx-primary-900);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.fx-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    color: var(--fx-text-muted);
    font-size: 14px;
}

.fx-prose {
    color: var(--fx-text-secondary);
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.fx-prose > *:first-child {
    margin-top: 0;
}

.fx-prose p,
.fx-prose figure,
.fx-prose ul,
.fx-prose ol {
    margin-bottom: 1.35rem;
}

.fx-prose h1,
.fx-prose h2,
.fx-prose h3,
.fx-prose h4,
.fx-prose h5,
.fx-prose h6 {
    color: var(--fx-primary-900);
    font-weight: 800;
    line-height: 1.35;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.fx-prose img {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 1.5rem auto !important;
    border-radius: var(--fx-radius-md);
}

.fx-prose blockquote {
    margin: 1.75rem 0;
    padding: 18px 20px;
    color: var(--fx-primary-800);
    background: var(--fx-primary-subtle);
    border-left: 4px solid var(--fx-primary);
    border-radius: var(--fx-radius-md);
    font-style: normal;
}

.fx-prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    overflow: hidden;
}

.fx-prose th,
.fx-prose td {
    border: 1px solid var(--fx-border);
    padding: 12px;
}

.fx-prose th {
    background: var(--fx-surface-muted);
    color: var(--fx-primary-900);
}

.fx-prose a {
    color: var(--fx-primary);
    font-weight: 700;
    text-decoration: underline;
}

.fx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fx-faq-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-faq-risk-card {
    padding: 24px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-faq-risk-card h2 {
    color: #92400e;
}

.fx-faq-sidebar {
    position: sticky;
    top: 96px;
    padding: 18px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-faq-nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--fx-text-secondary);
    border-radius: var(--fx-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fx-faq-nav-link:hover,
.fx-faq-nav-link:focus {
    color: var(--fx-primary);
    background: var(--fx-primary-subtle);
}

.fx-faq-group {
    scroll-margin-top: 110px;
    margin-bottom: 36px;
}

.fx-faq-group:last-child {
    margin-bottom: 0;
}

.fx-faq-group-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.fx-faq-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: var(--fx-primary);
    background: var(--fx-primary-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.fx-faq-accordion {
    display: grid;
    gap: 12px;
}

.fx-faq-accordion .collapse:not(.show) {
    display: none;
}

.fx-faq-accordion .collapse.show {
    display: block;
}

.fx-faq-accordion .accordion-item {
    overflow: hidden;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    box-shadow: var(--fx-shadow-sm);
}

.fx-faq-accordion .accordion-button {
    min-height: 64px;
    color: var(--fx-primary-900);
    background: var(--fx-surface);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0;
    box-shadow: none;
}

.fx-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--fx-primary);
    background: var(--fx-primary-subtle);
}

.fx-faq-accordion .accordion-button:focus {
    box-shadow: var(--fx-shadow-focus);
}

.fx-faq-accordion .accordion-body {
    color: var(--fx-text-secondary);
    font-size: 16px;
    line-height: 1.85;
    border-top: 1px solid var(--fx-border);
}

.fx-pricing-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-pricing-guide {
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid rgba(37, 109, 133, 0.2);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-md);
}

.fx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.fx-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100%;
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-pricing-card.is-featured {
    border-color: rgba(37, 109, 133, 0.46);
    box-shadow: var(--fx-shadow-md);
}

.fx-pricing-card-top {
    min-height: 172px;
}

.fx-pricing-price {
    padding: 18px 0;
    border-top: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
}

.fx-pricing-price div {
    color: var(--fx-primary-900);
    font-family: var(--fx-font-number);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.fx-pricing-price span {
    display: block;
    margin-top: 6px;
    color: var(--fx-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.fx-pricing-list ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fx-pricing-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--fx-text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.fx-pricing-list.is-muted li {
    color: var(--fx-text-muted);
}

.fx-list-check,
.fx-list-x {
    flex: 0 0 auto;
    font-family: var(--fx-font-number);
    font-weight: 800;
}

.fx-list-check {
    color: var(--fx-green);
}

.fx-list-x {
    color: var(--fx-red);
}

.fx-pricing-risk-note {
    padding: 12px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--fx-radius-sm);
    font-size: 12px;
    line-height: 1.55;
}

.fx-pricing-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.fx-pricing-table {
    overflow: hidden;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-broker-alert {
    padding: 24px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-alert h2 {
    color: #92400e;
}

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

.fx-broker-card,
.fx-broker-detail-panel {
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100%;
}

.fx-broker-card-head {
    min-height: 190px;
}

.fx-broker-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fx-broker-facts.is-detail {
    grid-template-columns: 1fr;
}

.fx-broker-facts div {
    padding: 12px;
    background: var(--fx-surface-muted);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-sm);
}

.fx-broker-facts span {
    display: block;
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.fx-broker-facts strong {
    display: block;
    margin-top: 4px;
    color: var(--fx-primary-900);
    font-size: 14px;
    line-height: 1.45;
}

.fx-broker-list {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    margin: 0;
    color: var(--fx-text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.fx-broker-list.is-large {
    gap: 10px;
    font-size: 16px;
}

.fx-broker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.fx-broker-table {
    overflow: hidden;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-choice-panel {
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-md);
}

.fx-broker-choice-list {
    display: grid;
    gap: 12px;
}

.fx-broker-choice-list div {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--fx-surface-muted);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-sm);
}

.fx-broker-choice-list span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--fx-white);
    background: var(--fx-primary);
    border-radius: 999px;
    font-family: var(--fx-font-number);
    font-size: 13px;
    font-weight: 800;
}

.fx-broker-choice-list p {
    margin: 0;
    color: var(--fx-text-secondary);
    font-weight: 700;
    line-height: 1.45;
}

.fx-broker-step {
    min-height: 100%;
    padding: 22px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-showcase {
    display: grid;
    gap: 22px;
}

.fx-broker-showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
    gap: 24px;
    padding: 28px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-showcase-main,
.fx-broker-showcase-side {
    min-width: 0;
}

.fx-broker-showcase-facts {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.fx-broker-showcase-facts div {
    padding: 12px;
    background: var(--fx-surface-muted);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-sm);
}

.fx-broker-showcase-facts span,
.fx-broker-criteria span {
    display: block;
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.fx-broker-showcase-facts strong {
    display: block;
    margin-top: 4px;
    color: var(--fx-primary-900);
    font-size: 14px;
    line-height: 1.45;
}

.fx-broker-showcase-card .fx-broker-actions {
    grid-column: 1 / -1;
}

.fx-broker-criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fx-broker-criteria div {
    padding: 20px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-broker-criteria strong {
    display: block;
    margin-top: 6px;
    color: var(--fx-primary-900);
    font-size: 17px;
    line-height: 1.45;
}

.fx-broker-criteria p {
    margin: 10px 0 0;
    color: var(--fx-text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.fx-broker-disclosure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-lab-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-guide-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-funnel-hero {
    background:
        linear-gradient(135deg, rgba(243, 250, 252, 0.98), rgba(255, 255, 255, 0.95)),
        url('/assets/images/bg.png') center / cover;
}

.fx-funnel-panel {
    padding: 28px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-md);
}

.fx-funnel-steps {
    display: grid;
    gap: 12px;
}

.fx-funnel-steps div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--fx-primary-subtle);
    border: 1px solid rgba(37, 109, 133, 0.14);
    border-radius: var(--fx-radius-sm);
}

.fx-funnel-steps span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--fx-white);
    background: var(--fx-primary);
    border-radius: 50%;
    font-family: var(--fx-font-number);
    font-weight: 800;
}

.fx-funnel-steps strong {
    color: var(--fx-primary-900);
    font-weight: 800;
}

.fx-home-funnel-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.fx-home-funnel-grid .fx-path-card {
    grid-column: span 2;
}

.fx-home-funnel-grid .fx-path-card:nth-child(n + 4) {
    grid-column: span 3;
}

.fx-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fx-guide-summary {
    padding: 28px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-guide-summary-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.fx-guide-summary ul {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    color: var(--fx-text-secondary);
    font-weight: 700;
}

.fx-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fx-info-grid.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-info-card,
.fx-path-card,
.fx-preset-card {
    min-height: 100%;
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-content-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.36fr) 1fr;
    gap: 28px;
    align-items: start;
}

.fx-content-aside {
    position: sticky;
    top: 100px;
    padding: 24px;
    background: var(--fx-primary-subtle);
    border: 1px solid rgba(37, 109, 133, 0.16);
    border-radius: var(--fx-radius-lg);
}

.fx-content-stack,
.fx-check-stack,
.fx-step-list {
    display: grid;
    gap: 16px;
}

.fx-text-panel {
    padding: 28px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-text-panel h2 {
    margin-bottom: 10px;
    color: var(--fx-primary-900);
    font-size: 22px;
    font-weight: 800;
}

.fx-text-panel p {
    margin: 0;
    color: var(--fx-text-secondary);
}

.fx-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fx-path-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-path-card span,
.fx-preset-card span {
    color: var(--fx-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fx-path-card h3 {
    margin: 0;
    color: var(--fx-primary-900);
    font-size: 22px;
    font-weight: 800;
}

.fx-path-card p,
.fx-preset-card p {
    margin: 0;
    color: var(--fx-text-secondary);
}

.fx-path-card .btn {
    margin-top: auto;
}

.fx-step-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 22px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-step-card > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--fx-primary);
    background: var(--fx-primary-soft);
    border-radius: var(--fx-radius-sm);
    font-family: var(--fx-font-number);
    font-weight: 800;
}

.fx-step-card h3 {
    margin: 0 0 6px;
    color: var(--fx-primary-900);
    font-size: 20px;
    font-weight: 800;
}

.fx-step-card p {
    margin: 0;
    color: var(--fx-text-secondary);
}

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

.fx-check-item {
    padding: 16px 18px;
    color: var(--fx-primary-900);
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    font-weight: 700;
    box-shadow: var(--fx-shadow-sm);
}

.fx-risk-band {
    display: grid;
    grid-template-columns: minmax(260px, 0.4fr) 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    background: var(--fx-primary-900);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-md);
}

.fx-risk-band h2,
.fx-risk-band p {
    color: var(--fx-white);
}

.fx-risk-band p {
    opacity: 0.78;
}

.fx-guard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.fx-guard-grid span {
    padding: 12px;
    color: var(--fx-white);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--fx-radius-sm);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.fx-preset-grid,
.fx-do-dont-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.fx-preset-card {
    display: grid;
    gap: 12px;
}

.fx-page-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-docs-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-docs-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 760px;
    padding: 10px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    box-shadow: var(--fx-shadow-sm);
}

.fx-docs-layout,
.fx-doc-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.fx-docs-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-docs-sidebar-title {
    color: var(--fx-primary-900);
    font-weight: 800;
    margin-bottom: 8px;
}

.fx-docs-sidebar a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--fx-text-secondary);
    border-radius: var(--fx-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fx-docs-sidebar a:hover,
.fx-docs-sidebar a.is-active {
    color: var(--fx-primary);
    background: var(--fx-primary-subtle);
}

.fx-docs-sidebar span {
    color: var(--fx-text-muted);
    font-family: var(--fx-font-number);
    font-size: 12px;
}

.fx-docs-featured-grid,
.fx-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fx-doc-featured-card,
.fx-doc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 22px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
    text-decoration: none;
}

.fx-doc-featured-card:hover,
.fx-doc-card:hover {
    border-color: rgba(37, 109, 133, 0.28);
}

.fx-doc-featured-card span,
.fx-doc-card-meta,
.fx-doc-back {
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.fx-doc-featured-card strong,
.fx-doc-card h3 {
    color: var(--fx-primary-900);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.fx-doc-featured-card small,
.fx-doc-card p {
    color: var(--fx-text-secondary);
    font-size: 14px;
}

.fx-doc-card h3 {
    margin: 12px 0 8px;
}

.fx-doc-card p {
    margin: 0;
}

.fx-doc-card .btn {
    margin-top: auto;
}

.fx-doc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.fx-doc-back {
    display: inline-flex;
    text-decoration: none;
}

.fx-doc-article {
    display: grid;
    gap: 18px;
}

.fx-doc-section {
    padding: 30px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-doc-section h2 {
    margin-bottom: 14px;
    color: var(--fx-primary-900);
    font-size: 24px;
    font-weight: 800;
}

.fx-doc-copy {
    color: var(--fx-text-secondary);
}

.fx-doc-attachment-list {
    display: grid;
    gap: 12px;
}

.fx-doc-attachment {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: var(--fx-text);
    background: var(--fx-surface-muted);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    text-decoration: none;
}

.fx-doc-attachment strong,
.fx-doc-attachment small {
    display: block;
}

.fx-doc-attachment small {
    color: var(--fx-text-muted);
}

.fx-doc-attachment em {
    color: var(--fx-primary);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.fx-contact-hero {
    border-bottom: 1px solid var(--fx-border);
}

.fx-contact-summary,
.fx-contact-panel,
.fx-contact-card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-contact-summary,
.fx-contact-panel {
    padding: 30px;
}

.fx-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.fx-contact-info {
    display: grid;
    gap: 18px;
}

.fx-contact-card {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.fx-contact-card span {
    color: var(--fx-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fx-contact-card a {
    color: var(--fx-primary-900);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.fx-contact-card a:hover {
    color: var(--fx-primary);
}

.fx-contact-card small {
    color: var(--fx-text-muted);
}

.fx-contact-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--fx-text-secondary);
}

.fx-lab-note {
    padding: 24px;
    color: #7c2d12;
    background: var(--fx-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-lab-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-lab-filter-actions {
    display: flex;
    gap: 10px;
}

.fx-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fx-lab-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-lab-card-head {
    min-height: 150px;
}

.fx-lab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fx-lab-meta span,
.fx-lab-status {
    padding: 6px 9px;
    color: var(--fx-text-secondary);
    background: var(--fx-surface-muted);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fx-lab-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fx-lab-metrics.is-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-lab-metrics div {
    padding: 12px;
    background: var(--fx-primary-subtle);
    border: 1px solid rgba(37, 109, 133, 0.14);
    border-radius: var(--fx-radius-sm);
}

.fx-lab-metrics span {
    display: block;
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.fx-lab-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--fx-primary-900);
    font-family: var(--fx-font-number);
    font-size: 20px;
    font-weight: 800;
}

.fx-lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.fx-lab-condition-card {
    padding: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-sm);
}

.fx-lab-condition-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.fx-lab-condition-card dt {
    color: var(--fx-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.fx-lab-condition-card dd {
    margin: -8px 0 4px;
    color: var(--fx-primary-900);
    font-weight: 700;
}

.fx-lab-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fx-lab-mini-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 180px;
    padding: 16px;
    background: var(--fx-surface-muted);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
}

.fx-lab-mini-chart span {
    flex: 1;
    min-width: 8px;
    background: var(--fx-green);
    border-radius: 999px 999px 0 0;
}

.fx-lab-mini-chart.is-drawdown span {
    background: var(--fx-red);
}

@media (max-width: 767.98px) {
    .fx-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fx-section,
    .fx-hero {
        padding: 48px 0;
    }

    .fx-display {
        font-size: 34px;
    }

    .fx-lead {
        font-size: 15px;
    }

    .fx-metric-grid {
        grid-template-columns: 1fr;
    }

    .fx-article-header,
    .fx-article-body {
        padding: 24px;
    }

    .fx-blog-grid {
        grid-template-columns: 1fr;
    }

    .fx-faq-sidebar {
        position: static;
    }

    .fx-faq-group-header {
        display: block;
    }

    .fx-faq-count {
        display: inline-block;
        margin-bottom: 12px;
    }

    .fx-pricing-grid {
        grid-template-columns: 1fr;
    }

    .fx-pricing-card-top {
        min-height: auto;
    }

    .fx-broker-grid,
    .fx-broker-facts {
        grid-template-columns: 1fr;
    }

    .fx-broker-card-head {
        min-height: auto;
    }

    .fx-broker-showcase-card,
    .fx-broker-showcase-facts,
    .fx-broker-criteria,
    .fx-broker-disclosure,
    .fx-info-grid,
    .fx-info-grid.is-two,
    .fx-content-layout,
    .fx-path-grid,
    .fx-check-grid,
    .fx-risk-band,
    .fx-guard-grid,
    .fx-preset-grid,
    .fx-do-dont-grid,
    .fx-docs-search,
    .fx-docs-layout,
    .fx-doc-detail-layout,
    .fx-docs-featured-grid,
    .fx-docs-grid,
    .fx-contact-layout,
    .fx-home-funnel-grid,
    .fx-market-pulse,
    .fx-lab-filter,
    .fx-lab-grid,
    .fx-lab-metrics.is-detail,
    .fx-lab-chart-grid {
        grid-template-columns: 1fr;
    }

    .fx-content-aside,
    .fx-docs-sidebar {
        position: static;
    }

    .fx-lab-filter-actions,
    .fx-lab-actions,
    .fx-page-cta,
    .fx-guide-actions {
        display: grid;
    }

    .fx-page-cta {
        align-items: stretch;
    }

    .fx-step-card {
        grid-template-columns: 1fr;
    }

    .fx-doc-attachment {
        display: grid;
    }

    .fx-lab-card-head {
        min-height: auto;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .fx-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .fx-info-grid,
    .fx-path-grid,
    .fx-preset-grid,
    .fx-guard-grid,
    .fx-docs-featured-grid,
    .fx-docs-grid,
    .fx-home-funnel-grid,
    .fx-market-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fx-home-funnel-grid .fx-path-card,
    .fx-home-funnel-grid .fx-path-card:nth-child(n + 4) {
        grid-column: auto;
    }

    .fx-content-layout,
    .fx-risk-band,
    .fx-docs-layout,
    .fx-doc-detail-layout,
    .fx-contact-layout {
        grid-template-columns: 1fr;
    }

    .fx-content-aside,
    .fx-docs-sidebar {
        position: static;
    }

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