/* Header, utility bar and navigation */
.site-header { position: sticky; z-index: 50; top: 0; width: 100%; border-bottom: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: var(--color-border-soft); background: rgb(7 17 31 / 94%); box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .header-main { backdrop-filter: blur(12px); }
.site-header.is-transparent:not(.is-scrolled) { background: transparent; }
.site-header.is-transparent:not(.is-scrolled) .header-utility { background: rgb(8 19 32 / 48%); }
.header-utility { border-bottom: 1px solid var(--color-border-soft); background: rgb(10 23 37 / 78%); }
.header-utility-inner, .header-main-inner { display: flex; width: min(calc(100% - 2 * var(--page-gutter)), var(--container-xl)); align-items: center; justify-content: space-between; margin-inline: auto; }
.header-utility-inner { min-height: 34px; color: var(--color-text-muted); font-size: .73rem; letter-spacing: .035em; }
.utility-demo { display: inline-flex; align-items: center; gap: .5rem; color: #b9d9da; }
.utility-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
.header-utility a { color: var(--color-text-muted); text-decoration: none; }
.header-main { transition: background-color .2s ease; }
.header-main-inner { min-height: var(--header-height); gap: clamp(1rem, 2vw, 2rem); }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: .72rem; color: var(--color-heading); font-size: 1.03rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgb(120 209 207 / 42%); border-radius: 11px; background: linear-gradient(145deg, rgb(120 209 207 / 19%), rgb(131 174 231 / 6%)); color: var(--color-primary); font-size: 1.06rem; font-weight: 750; }
.site-brand-logo { display:block; width:auto; max-width:170px; max-height:42px; object-fit:contain; }
.desktop-navigation { display: flex; align-items: center; gap: clamp(.15rem, .8vw, .8rem); }
.nav-link, .nav-dropdown-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: .38rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: #c5d1df; padding: .55rem .58rem; font-size: .84rem; font-weight: 540; text-decoration: none; cursor: pointer; transition: color .16s ease, background-color .16s ease; }
.nav-link:hover, .nav-link.is-active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.is-active, .nav-dropdown-toggle[aria-expanded="true"] { background: rgb(255 255 255 / 5%); color: #fff; }
.nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle .icon { width: 14px; height: 14px; transition: transform .16s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + .45rem); left: 0; display: grid; width: 255px; gap: .2rem; padding: .65rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #101f31; box-shadow: var(--shadow-md); }
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu a { display: flex; min-height: 42px; align-items: center; border-radius: var(--radius-sm); color: #c9d5e2; padding: .55rem .7rem; font-size: .86rem; text-decoration: none; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: rgb(255 255 255 / 6%); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; color: var(--color-heading); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
body.nav-open { overflow: hidden; }
.mobile-menu { width: 100%; max-width: none; height: 100%; max-height: none; inset: 0 0 0 auto; margin: 0 0 0 auto; border: 0; border-left: 1px solid var(--color-border); background: var(--color-bg-alt); color: var(--color-text); padding: 0; box-shadow: var(--shadow-lg); }
.mobile-menu::backdrop { background: rgb(1 7 14 / 76%); backdrop-filter: blur(3px); }
.mobile-menu[open] { animation: drawer-in .22s ease-out; }
.mobile-menu-inner { display: flex; width: min(100%, 460px); min-height: 100%; flex-direction: column; margin-left: auto; padding: 1.25rem; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid var(--color-border-soft); }
.mobile-menu-close { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.mobile-navigation { display: grid; gap: .15rem; padding-block: 1rem; }
.mobile-navigation > a, .mobile-navigation summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; border-radius: var(--radius-sm); color: var(--color-text); padding: .6rem .7rem; font-size: 1rem; text-decoration: none; cursor: pointer; }
.mobile-navigation > a:hover, .mobile-navigation summary:hover { background: rgb(255 255 255 / 5%); }
.mobile-navigation details[open] summary { color: var(--color-primary); }
.mobile-navigation details .mobile-submenu { display: grid; gap: .15rem; padding: 0 0 .5rem .85rem; }
.mobile-submenu a { display: flex; min-height: 43px; align-items: center; color: var(--color-text-muted); padding: .45rem .65rem; font-size: .91rem; text-decoration: none; }
.mobile-menu-actions { display: grid; gap: .65rem; margin-top: auto; padding-block: 1rem; border-top: 1px solid var(--color-border-soft); }
.mobile-menu-note { margin: .75rem 0 0; font-size: .78rem; }

/* Buttons and links */
.btn { position: relative; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .89rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease; }
.btn:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-ink); }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.btn-secondary { border-color: var(--color-border-strong); background: var(--color-surface-elevated); color: var(--color-text); }
.btn-secondary:hover:not(:disabled) { border-color: #657d98; background: #1a2d43; }
.btn-outline { border-color: rgb(120 209 207 / 55%); background: transparent; color: var(--color-primary); }
.btn-outline:hover:not(:disabled) { border-color: var(--color-primary); background: rgb(120 209 207 / 8%); }
.btn-ghost { background: transparent; color: #d4deea; }
.btn-ghost:hover:not(:disabled) { background: rgb(255 255 255 / 6%); color: #fff; }
.btn-danger { background: var(--color-danger); color: #2a1117; }
.btn-success { background: var(--color-success); color: #08251d; }
.btn-sm { min-height: 36px; padding: .48rem .72rem; font-size: .81rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.2rem; font-size: .96rem; }
.btn-icon { width: 44px; min-width: 44px; padding: .55rem; }
.btn:disabled, .btn[aria-disabled="true"] { transform: none; opacity: .48; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { position: absolute; width: 17px; height: 17px; border: 2px solid var(--color-primary-ink); border-top-color: transparent; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
.text-link { display: inline-flex; align-items: center; gap: .38rem; color: var(--color-primary); font-weight: 620; text-decoration: none; }
.text-link:hover { color: var(--color-primary-hover); text-decoration: underline; }

/* Fields */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form-field { display: grid; align-content: start; gap: .48rem; min-width: 0; }
.form-field.is-full { grid-column: 1 / -1; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.required-mark { color: var(--color-primary); }
.field-control { width: 100%; min-height: 48px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #0b1725; color: var(--color-text); padding: .7rem .85rem; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.field-control::placeholder { color: #77899d; }
.field-control:hover:not(:disabled) { border-color: #647992; }
.field-control:focus { border-color: var(--color-primary); outline: 0; box-shadow: 0 0 0 3px rgb(120 209 207 / 16%); }
.field-control:disabled { opacity: .5; cursor: not-allowed; }
.field-control.is-invalid, [aria-invalid="true"].field-control { border-color: var(--color-danger); }
.field-control.is-valid { border-color: var(--color-success); }
textarea.field-control { min-height: 118px; resize: vertical; }
select.field-control { color-scheme: dark; }
input[type="date"].field-control, input[type="file"].field-control { padding-block: .55rem; }
.field-help, .field-error, .field-success { margin: 0; font-size: .78rem; }
.field-help { color: var(--color-text-muted); }
.field-error { color: var(--color-danger); }
.field-success { color: var(--color-success); }
.choice-control { display: inline-flex; align-items: flex-start; gap: .65rem; color: var(--color-text-muted); font-size: .88rem; }
.choice-control input { width: 19px; height: 19px; flex: 0 0 auto; margin: .12rem 0 0; accent-color: var(--color-primary); }
.choice-control.is-toggle { min-height: 42px; align-items: center; justify-content: space-between; }
.choice-control.is-toggle input { position: relative; width: 44px; height: 25px; appearance: none; border: 1px solid var(--color-border-strong); border-radius: 999px; background: #0b1725; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.choice-control.is-toggle input::before { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #9aabbd; content: ""; transition: transform .16s ease, background-color .16s ease; }
.choice-control.is-toggle input:checked { border-color: var(--color-primary); background: rgb(120 209 207 / 22%); }
.choice-control.is-toggle input:checked::before { transform: translateX(19px); background: var(--color-primary); }
.password-control { position: relative; }
.password-control .field-control { padding-right: 3.35rem; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; width: 42px; height: 40px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.password-toggle:hover { color: var(--color-text); }
.password-strength-placeholder { display: flex; gap: .25rem; margin-top: .25rem; }
.password-strength-placeholder span { height: 3px; flex: 1; border-radius: 2px; background: var(--color-border); }
.password-strength-placeholder span:first-child { background: var(--color-warning); }

/* Surfaces, badges, financial data */
.card { min-width: 0; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: linear-gradient(145deg, rgb(20 37 56 / 82%), rgb(13 27 43 / 92%)); padding: clamp(1.1rem, 2vw, 1.55rem); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-title { margin-bottom: .35rem; font-size: 1.04rem; }
.card-description { margin-bottom: 0; font-size: .86rem; }
.card-market { display: grid; gap: .8rem; }
.card-stat .stat-label { color: var(--color-text-muted); font-size: .8rem; }
.card-stat .stat-value { margin: .35rem 0; color: var(--color-heading); font-family: var(--font-mono); font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-variant-numeric: tabular-nums; }
.card-article { overflow: hidden; padding: 0; }
.article-image-placeholder { display: grid; aspect-ratio: 16 / 9; place-items: center; background: linear-gradient(140deg, #10283b, #1b3448 54%, #244a56); color: rgb(220 241 245 / 58%); }
.article-card-body { padding: 1.25rem; }
.badge { display: inline-flex; min-height: 25px; align-items: center; gap: .33rem; border: 1px solid transparent; border-radius: 999px; padding: .2rem .58rem; font-size: .72rem; font-weight: 670; line-height: 1.2; white-space: nowrap; }
.badge-success { border-color: rgb(96 200 157 / 25%); background: rgb(96 200 157 / 12%); color: #91e2bb; }
.badge-warning { border-color: rgb(230 189 113 / 25%); background: rgb(230 189 113 / 12%); color: #f0d197; }
.badge-danger { border-color: rgb(239 130 139 / 26%); background: rgb(239 130 139 / 11%); color: #ffacb3; }
.badge-info { border-color: rgb(131 174 231 / 27%); background: rgb(131 174 231 / 12%); color: #b3d0fa; }
.badge-neutral { border-color: var(--color-border); background: rgb(255 255 255 / 4%); color: #c3ceda; }
.badge-demo { border-color: rgb(120 209 207 / 32%); background: rgb(120 209 207 / 11%); color: var(--color-primary); }
.market-card-top, .market-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.market-instrument-name { display: block; color: var(--color-text-muted); font-size: .77rem; }
.market-price { margin: .75rem 0 .12rem; color: var(--color-heading); font-size: 1.45rem; }
.change-positive{color:#53cca4!important}.change-negative{color:#f07883!important}
.market-change { font-size: .83rem; font-weight: 650; }
.market-quote { color: var(--color-text-muted); font-family: var(--font-mono); font-size: .76rem; }
.market-ticker { overflow: hidden; border-block: 1px solid var(--color-border-soft); background: rgb(10 23 37 / 74%); }
.ticker-track { display: flex; width: max-content; gap: 2.2rem; padding: .9rem 0; }
.ticker-item { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; }
.ticker-item .market-symbol { color: #d9e5f0; font-size: .79rem; }
.ticker-item .price { color: #f3f7fb; font-size: .79rem; }
.ticker-item .change { font-size: .74rem; }
.market-visual-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--color-border); border-radius: 10px; background: rgb(255 255 255 / 3%); color: var(--color-primary); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: rgb(13 27 43 / 70%); scrollbar-color: var(--color-border-strong) transparent; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
.data-table th, .data-table td { min-width: 110px; padding: .88rem 1rem; border-bottom: 1px solid var(--color-border-soft); }
.data-table th { background: rgb(255 255 255 / 3%); color: #aebdcb; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgb(255 255 255 / 3%); }
.data-table .numeric { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table .symbol-cell { min-width: 145px; }
.table-empty { padding: 2.5rem 1rem !important; color: var(--color-text-muted); text-align: center; }
.row-action { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.row-action:hover { border-color: var(--color-border); background: rgb(255 255 255 / 4%); color: var(--color-text); }

/* Alerts, toasts, modal and state blocks */
.alert { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); padding: .9rem 1rem; }
.alert-icon { margin-top: .08rem; }
.alert-title { margin: 0 0 .15rem; color: var(--color-text); font-size: .9rem; font-weight: 650; }
.alert-message { margin: 0; font-size: .86rem; }
.alert-success { border-color: rgb(96 200 157 / 30%); background: rgb(96 200 157 / 8%); }
.alert-success .alert-icon { color: var(--color-success); }
.alert-error { border-color: rgb(239 130 139 / 30%); background: rgb(239 130 139 / 8%); }
.alert-error .alert-icon { color: var(--color-danger); }
.alert-warning { border-color: rgb(230 189 113 / 28%); background: rgb(230 189 113 / 8%); }
.alert-warning .alert-icon { color: var(--color-warning); }
.alert-info .alert-icon { color: var(--color-info); }
.alert-dismiss { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.alert-dismiss:hover { background: rgb(255 255 255 / 6%); color: var(--color-text); }
.toast-region { position: fixed; z-index: 120; top: 1rem; right: 1rem; display: grid; width: min(390px, calc(100vw - 2rem)); gap: .65rem; pointer-events: none; }
.toast-region .alert { box-shadow: var(--shadow-md); pointer-events: auto; animation: toast-in .2s ease-out; }
.modal { width: min(560px, calc(100vw - 2rem)); max-width: none; max-height: min(86vh, 760px); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); padding: 0; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgb(1 7 14 / 76%); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .18s ease-out; }
.modal-content { padding: clamp(1.3rem, 4vw, 2rem); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.modal-close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.modal-actions { display: flex; justify-content: end; gap: .7rem; margin-top: 1.5rem; }
.loading-inline { display: inline-flex; align-items: center; gap: .55rem; color: var(--color-text-muted); font-size: .86rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--color-border-strong); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton { overflow: hidden; position: relative; border-radius: 6px; background: #1a2c40; }
.skeleton::after { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 7%), transparent); content: ""; animation: shimmer 1.5s infinite; }
.skeleton-card { display: grid; gap: .8rem; padding: 1.3rem; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); }
.skeleton-line { height: 12px; }
.skeleton-line.is-short { width: 42%; }
.skeleton-line.is-mid { width: 68%; }
.empty-state, .error-state { display: grid; justify-items: center; gap: .7rem; min-height: 240px; align-content: center; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md); padding: 2rem; text-align: center; }
.empty-state-icon, .error-state-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: rgb(120 209 207 / 10%); color: var(--color-primary); }
.empty-state h3, .error-state h3 { margin: 0; font-size: 1.12rem; }
.empty-state p, .error-state p { max-width: 430px; margin: 0; font-size: .88rem; }
.error-state-icon { background: rgb(239 130 139 / 10%); color: var(--color-danger); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--color-text-muted); font-size: .8rem; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumb-separator { color: #62748a; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .38rem; }
.pagination a, .pagination span { display: inline-grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-text-muted); padding: .35rem .55rem; font-size: .83rem; text-decoration: none; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-current { border-color: var(--color-primary); background: rgb(120 209 207 / 11%); color: var(--color-primary); }
.pagination .is-disabled { opacity: .45; }
[data-tooltip] { position: relative; text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
[data-tooltip]::after { position: absolute; z-index: 20; bottom: calc(100% + .55rem); left: 50%; width: max-content; max-width: min(260px, 80vw); transform: translate(-50%, .25rem); border: 1px solid var(--color-border); border-radius: 6px; background: #14263a; color: var(--color-text); padding: .5rem .65rem; content: attr(data-tooltip); font-size: .75rem; font-weight: 450; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { transform: translate(-50%, 0); opacity: 1; }

/* Reusable hero, ticker, chart and footer */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4.5rem, 10vw, 8.75rem); }
.hero::before { position: absolute; z-index: -1; top: -14rem; right: -14rem; width: min(65vw, 800px); aspect-ratio: 1; border: 1px solid rgb(120 209 207 / 10%); border-radius: 50%; box-shadow: 0 0 0 52px rgb(120 209 207 / 2%), 0 0 0 108px rgb(131 174 231 / 2%); content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 800px; margin: 1.1rem 0 1.35rem; }
.hero-copy p { max-width: 610px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual-frame { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(145deg, #11253a, #0b1726 78%); padding: 1.2rem; box-shadow: var(--shadow-md); }
.hero-market-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.caption-spaced { margin: 1rem 0 0; }
.caption-small-spaced { margin: .6rem 0 0; }
.preview-space-top { margin-top: 1.25rem; }
.form-state-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.image-responsive { display: block; width: 100%; height: auto; }
.image-hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.image-card { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-article { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.logo-image { display: block; width: auto; max-width: min(100%, 220px); height: auto; object-fit: contain; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.chart-placeholder { overflow: hidden; position: relative; display: flex; min-height: 250px; flex-direction: column; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: linear-gradient(180deg, rgb(12 26 42 / 40%), rgb(9 20 32 / 75%)); padding: 1rem; }
.chart-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.chart-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.chart-toolbar span { border: 1px solid var(--color-border); border-radius: 5px; color: var(--color-text-muted); padding: .2rem .42rem; font-size: .68rem; }
.chart-canvas { position: relative; flex: 1; min-height: 150px; margin-top: .75rem; background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgb(255 255 255 / 5%) 40px), repeating-linear-gradient(to right, transparent 0, transparent 70px, rgb(255 255 255 / 4%) 71px); }
.chart-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-risk { border-block: 1px solid rgb(230 189 113 / 17%); background: rgb(230 189 113 / 4%); padding-block: 1.35rem; }
.footer-risk-inner { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .8rem; }
.footer-risk .icon { margin-top: .2rem; color: var(--color-warning); }
.footer-risk h2 { margin: 0 0 .25rem; color: #e9cd98; font-size: .87rem; letter-spacing: .02em; }
.footer-risk p { max-width: 1040px; margin: 0; color: #c7b894; font-size: .78rem; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--color-border-soft); background: #07101b; }
.footer-main { display: grid; grid-template-columns: 2fr repeat(6, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 1.15rem; }
.footer-brand p { font-size: .84rem; }
.footer-column h3 { margin-bottom: 1rem; color: #e2eaf2; font-size: .82rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { color: #92a3b5; font-size: .8rem; text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--color-border-soft); color: #8596a8; font-size: .77rem; }
.footer-bottom p { margin: 0; font-size: inherit; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: #aebccc; text-decoration: none; }
.footer-legal a:hover { color: var(--color-primary); }
.developer-credit { display: flex; justify-content: center; border-top: 1px solid rgb(255 255 255 / 5%); padding-block: .75rem; color: #6f8092; font-size: .7rem; }
.developer-credit a { color: #96a9bc; text-decoration: underline; text-underline-offset: .2em; }
.developer-credit a:hover { color: var(--color-primary); }

/* Temporary design system preview */
.design-page { padding-block: clamp(2.4rem, 5vw, 4rem); }
.design-page-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 2.2rem 0 3rem; }
.design-page-header h1 { margin: .7rem 0 .8rem; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.design-section { margin-bottom: 3.7rem; scroll-margin-top: 120px; }
.design-section-title { margin-bottom: 1.25rem; padding-bottom: .8rem; border-bottom: 1px solid var(--color-border-soft); font-size: 1.08rem; letter-spacing: .01em; }
.swatch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.swatch { overflow: hidden; border: 1px solid var(--color-border-soft); border-radius: 8px; background: var(--color-surface); }
.swatch-color { height: 56px; border-bottom: 1px solid var(--color-border-soft); }
.swatch-label { padding: .55rem .65rem; color: var(--color-text-muted); font-size: .7rem; }
.hero-demo { border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: radial-gradient(ellipse at 80% 10%, rgb(39 94 118 / 24%), transparent 38%), #0a1623; }
.preview-note { color: var(--color-text-muted); font-size: .8rem; }
.demo-form { padding: clamp(1.1rem, 3vw, 1.8rem); border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: var(--color-surface); }
.surface-light.demo-light { border-radius: var(--radius-md); padding: clamp(1rem, 3vw, 2rem); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes drawer-in { from { transform: translateX(3%); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
@keyframes modal-in { from { transform: translateY(8px) scale(.99); opacity: .7; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes toast-in { from { transform: translateY(-6px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }

.header-logout-form{display:inline-flex;margin:0}.mobile-menu-actions form{display:flex;width:100%;gap:.6rem;margin:0}.mobile-menu-actions form .btn{flex:1;justify-content:center}
