/* NQ Stack Flow — member site
   Design language: Trade Clock™ (night terminal) per project decision.
   Tokens are shared with tradeclock_redesign/tradeclock_en.html. */

:root {
    --night: #05060A;
    --night-soft: #090A10;
    --panel: #0D0E15;
    --panel-raised: #11131C;
    --line: rgba(229, 232, 255, 0.11);
    --line-strong: rgba(229, 232, 255, 0.22);
    --paper: #F2F3F7;
    --muted: #9A9DAD;
    --dim: #626675;
    --violet: #7A72FF;
    --violet-deep: #6D64F7;
    --blue: #3F82FF;
    --cyan: #79D7FF;
    --danger: #FF6F86;
    --font-display: 'Archivo', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --pad: clamp(20px, 4vw, 56px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-display);
    background: var(--night);
    color: var(--paper);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 77% 11%, rgba(81, 65, 255, 0.12), transparent 26%),
        radial-gradient(circle at 16% 96%, rgba(121, 215, 255, 0.06), transparent 30%),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    pointer-events: none;
    z-index: -1;
}

button,
input,
a {
    font: inherit;
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

a {
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.site-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- Header ---------- */

.site-header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
}

/* Selected fold mark */
.brand-mark {
    display: block;
    object-fit: contain;
    width: 38px;
    height: 38px;
    overflow: visible;
    flex: none;
}

.brand-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    line-height: 1.1;
}

.brand-tool {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.09em;
    margin-top: 5px;
    text-transform: uppercase;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-nav a {
    padding: 9px 11px;
    color: var(--muted);
    border-radius: 2px;
    transition: color 0.18s, background 0.18s;
}

.site-nav a:hover {
    color: var(--paper);
    background: var(--panel-raised);
}

.site-nav a[aria-current="page"] {
    color: var(--paper);
    border-bottom: 1px solid var(--violet);
    border-radius: 0;
}

.site-nav .nav-cta {
    color: var(--night);
    background: var(--paper);
    font-weight: 600;
    margin-left: 10px;
}

.site-nav .nav-cta:hover {
    color: var(--night);
    background: var(--violet);
}

.live-clock {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--paper);
}

.live-clock::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--violet);
    box-shadow: 0 0 12px rgba(122, 114, 255, 0.7);
    animation: clock-pulse 2.6s ease-in-out infinite;
}

.account-chip {
    color: var(--paper);
    text-transform: none;
    letter-spacing: 0.02em;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signout-link {
    background: none;
    border: 0;
    padding: 4px 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.signout-link:hover {
    color: var(--danger);
}

@keyframes clock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ---------- Hero (home) ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: clamp(48px, 8vw, 120px);
    min-height: 560px;
    padding: clamp(70px, 9vw, 128px) 0 84px;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    align-self: center;
    max-width: 780px;
}

.hero-copy > *:not(h1) {
    opacity: 0;
    animation: hero-rise 0.5s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.36s; }

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line > span {
    display: block;
    opacity: 0;
    transform: translateY(115%);
    animation: line-rise 0.65s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1 .line:nth-child(2) > span {
    animation-delay: 0.16s;
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes line-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(2.9rem, 6vw, 5.9rem);
    font-stretch: condensed;
    font-weight: 430;
    letter-spacing: -0.06em;
    line-height: 0.94;
    max-width: 860px;
}

.hero h1 .dim {
    color: var(--dim);
}

.hero-desc {
    max-width: 570px;
    margin-top: 30px;
    color: var(--muted);
    font-size: clamp(0.94rem, 1.2vw, 1.08rem);
    font-weight: 390;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 38px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(560px, 100%);
    margin-top: 46px;
    border-top: 1px solid var(--line);
}

.fact {
    padding: 18px 18px 0 0;
}

.fact + .fact {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.fact strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.fact span {
    display: block;
    margin-top: 5px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.market-plot {
    align-self: stretch;
    position: relative;
    min-height: 400px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 24.8%, var(--line) 25%, transparent 25.2%),
        linear-gradient(180deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
        linear-gradient(180deg, transparent 74.8%, var(--line) 75%, transparent 75.2%);
}

.plot-head,
.plot-foot {
    position: absolute;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.plot-head { top: 0; }
.plot-foot { bottom: 0; }

.market-plot svg {
    position: absolute;
    inset: 42px 18px 38px;
    width: calc(100% - 36px);
    height: calc(100% - 80px);
    overflow: visible;
}

.plot-path {
    fill: none;
    stroke: url(#pathGradient);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-linecap: square;
    stroke-linejoin: bevel;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-path 1.8s cubic-bezier(.6, 0, .2, 1) .25s forwards;
}

.plot-ghost {
    fill: none;
    stroke: rgba(242, 243, 247, 0.12);
    stroke-width: 1;
    stroke-dasharray: 3 7;
    vector-effect: non-scaling-stroke;
}

.plot-node {
    fill: var(--night);
    stroke: var(--violet);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.plot-node.cyan {
    stroke: var(--cyan);
}

.plot-node.danger {
    stroke: var(--danger);
}

.plot-signal {
    fill: var(--violet);
    filter: drop-shadow(0 0 7px rgba(122, 114, 255, 0.65));
}

.plot-labels {
    position: absolute;
    inset: 42px 18px 38px;
    z-index: 3;
    pointer-events: none;
}

.plot-labels span {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

@keyframes draw-path {
    to { stroke-dashoffset: 0; }
}

/* ---------- Sections ---------- */

.section {
    padding: 72px 0 84px;
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.section-kicker {
    color: var(--violet);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding-top: 5px;
}

.section-head h2 {
    max-width: 760px;
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 390;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-head p.lede {
    grid-column: 2;
    max-width: 620px;
    margin-top: -26px;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 390;
    line-height: 1.6;
}

/* ---------- Session tape (signature component) ---------- */

.tape {
    border-top: 1px solid var(--line);
}

.tape-row {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.tape-row::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

/* JS-driven scroll reveal: sections fade in once, keep visible without JS */
.js-anim [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s cubic-bezier(.16, 1, .3, 1), transform 0.45s cubic-bezier(.16, 1, .3, 1);
}

.js-anim [data-reveal].in-view {
    opacity: 1;
    transform: none;
}

.tape-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stage-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--night);
    color: var(--paper);
    border: 1px solid var(--line-strong);
    transition: transform 0.25s cubic-bezier(.16, 1, .3, 1), box-shadow 0.25s ease-out;
}

.stage-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: square;
    stroke-linejoin: bevel;
}

.stage-icon svg rect {
    fill: currentColor;
    stroke: none;
}

.tape-stage.violet {
    color: var(--violet);
}

.tape-stage.violet .stage-icon {
    border-color: rgba(122, 114, 255, 0.5);
    box-shadow: 0 0 18px rgba(122, 114, 255, 0.16);
}

.tape-stage.blue {
    color: var(--blue);
}

.tape-stage.blue .stage-icon {
    border-color: rgba(63, 130, 255, 0.5);
    box-shadow: 0 0 18px rgba(63, 130, 255, 0.16);
}

.tape-stage.cyan {
    color: var(--cyan);
}

.tape-stage.cyan .stage-icon {
    border-color: rgba(121, 215, 255, 0.5);
    box-shadow: 0 0 18px rgba(121, 215, 255, 0.16);
}

.tape-stage.paper {
    color: var(--paper);
}

.tape-stage.paper .stage-icon {
    border-color: rgba(242, 243, 247, 0.45);
}

.tape-row:hover .stage-icon {
    transform: translateY(-1px);
}

.tape-row:hover .tape-stage.violet .stage-icon {
    box-shadow: 0 0 26px rgba(122, 114, 255, 0.3);
}

.tape-row:hover .tape-stage.blue .stage-icon {
    box-shadow: 0 0 26px rgba(63, 130, 255, 0.3);
}

.tape-row:hover .tape-stage.cyan .stage-icon {
    box-shadow: 0 0 26px rgba(121, 215, 255, 0.3);
}

.tape-row:hover .tape-stage.paper .stage-icon {
    box-shadow: 0 0 26px rgba(242, 243, 247, 0.22);
}

.stage-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: currentColor;
}

.tape-body {
    padding-top: 1px;
}

.tape-body h3 {
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.tape-body p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 390;
    line-height: 1.55;
}

.tape-time {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--dim);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 4px;
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 0.84rem;
    font-weight: 560;
    cursor: pointer;
    background: transparent;
    color: var(--paper);
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.btn::after {
    content: '\2197';
    color: var(--dim);
    font-family: var(--font-mono);
    transition: color 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--panel-raised);
    border-color: var(--line-strong);
}

.btn:hover::after {
    color: var(--violet);
    transform: translate(2px, -2px);
}

.btn-primary {
    background: var(--paper);
    color: var(--night);
    border-color: var(--paper);
    font-weight: 650;
    letter-spacing: 0.035em;
}

.btn-primary:hover {
    background: var(--violet);
    border-color: var(--violet);
    color: #fff;
}

.btn-primary:hover::after {
    color: #fff;
}

.btn-accent {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
}

.btn-accent:hover {
    background: var(--violet-deep);
    border-color: var(--violet-deep);
}

.btn-accent:hover::after {
    color: #fff;
}

.text-link {
    color: var(--cyan);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(121, 215, 255, 0.45);
    padding-bottom: 1px;
    transition: border-color 0.18s, color 0.18s;
}

.text-link:hover {
    color: var(--paper);
    border-color: var(--paper);
}

/* ---------- Membership rows ---------- */

.tier-list {
    border-top: 1px solid var(--line);
}

.tier {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.6fr) auto;
    gap: 30px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.tier-name {
    font-size: 1.18rem;
    font-weight: 560;
    letter-spacing: -0.02em;
}

.tier-name .mono-tag {
    display: block;
    margin-top: 9px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.tier-price {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--paper);
    letter-spacing: -0.03em;
    margin-top: 2px;
}

.tier-price .strike {
    color: var(--dim);
    text-decoration: line-through;
    margin-right: 8px;
}

.tier-price small {
    display: block;
    margin-top: 6px;
    color: var(--dim);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tier p.promise {
    max-width: 560px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 390;
    line-height: 1.6;
}

.tier-cta {
    align-self: center;
    text-align: right;
}

.tier-cta .btn {
    width: 100%;
    justify-content: space-between;
}

.tier-cta .btn-outline {
    border-color: var(--line-strong);
}

/* ---------- Pricing page ---------- */

.page-hero {
    padding: clamp(60px, 8vw, 104px) 0 72px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 5.4vw, 5.2rem);
    font-stretch: condensed;
    font-weight: 430;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.page-hero .hero-desc {
    margin-top: 26px;
}

.entitlements {
    margin-top: 26px;
    padding: 22px 24px;
    border-left: 1px solid var(--violet);
    background: var(--panel);
}

.entitlements h3 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 16px;
}

.entitlements ul {
    list-style: none;
}

.entitlements li {
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 390;
    line-height: 1.55;
}

.entitlements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 5px;
    height: 5px;
    background: var(--violet);
}

.entitlements li strong {
    color: var(--paper);
    font-weight: 520;
}

.fine-print {
    max-width: 820px;
    padding: 6px 0 6px 26px;
    border-left: 1px solid var(--line-strong);
}

.fine-print p {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 390;
    line-height: 1.6;
    margin: 0 0 1.35em;
}

.fine-print p:last-child {
    margin-bottom: 0;
}

/* ---------- Legal pages (quiet document) ---------- */

.doc-head {
    max-width: 780px;
    padding: clamp(44px, 7vw, 76px) 0 30px;
}

.doc-head h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-stretch: condensed;
    font-weight: 430;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.doc-meta {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--dim);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.legal-body {
    max-width: 780px;
    padding: 10px 0 72px;
}

.legal-prose {
    counter-reset: sec;
    border-top: 1px solid var(--line);
}

.legal-prose section {
    counter-increment: sec;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.legal-prose h2 {
    font-size: 1.1rem;
    font-weight: 560;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.legal-prose h2::before {
    content: counter(sec) ".";
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--dim);
    margin-right: 10px;
}

.legal-prose p {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 390;
    line-height: 1.68;
    max-width: 640px;
}

/* ---------- FAQ ---------- */

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--paper);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--dim);
    flex: none;
    transition: color 0.18s, transform 0.18s;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--violet);
}

.faq-item summary:hover {
    color: var(--cyan);
}

.faq-item .faq-a {
    max-width: 780px;
    padding: 0 34px 24px 0;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 390;
    line-height: 1.6;
}

.faq-item .faq-a p + p {
    margin-top: 10px;
}

/* ---------- Member area ---------- */

.member-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.member-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) minmax(280px, 330px);
    gap: 0;
    min-height: calc(100vh - 96px);
}

.member-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--line);
}

.member-nav {
    padding: 34px 26px 40px 0;
}

.member-nav .nav-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 16px;
}

.member-nav ul {
    list-style: none;
}

.member-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 420;
    border-left: 1px solid transparent;
    border-radius: 0 2px 2px 0;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.member-nav a:hover {
    color: var(--paper);
    background: var(--panel);
}

.member-nav a[aria-current="page"] {
    color: var(--paper);
    border-left-color: var(--violet);
    background: var(--panel);
}

.member-nav .nav-dot {
    display: none;
    width: 5px;
    height: 5px;
    background: var(--violet);
    box-shadow: 0 0 9px rgba(122, 114, 255, 0.6);
    flex: none;
}

.member-nav a[aria-current="page"] .nav-dot {
    display: block;
}

.member-nav a.nav-tradeclock {
    border: 1px solid rgba(121, 215, 255, 0.32);
    border-radius: 7px;
    background: rgba(121, 215, 255, 0.09);
    color: var(--paper);
    padding: 9px 11px;
}

.member-nav a.nav-tradeclock:hover {
    border-color: rgba(121, 215, 255, 0.55);
    background: rgba(121, 215, 255, 0.14);
    color: var(--paper);
}

.member-nav a.nav-tradeclock .nav-dot-tradeclock {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(121, 215, 255, 0.75);
}

.member-view .view-note {
    max-width: 56ch;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.account-view {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.account-block {
    padding: 22px 20px 20px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--violet);
    background: var(--panel);
}

.account-block .section-label {
    margin: 0 0 10px;
}

.account-block .profile-row {
    padding: 10px 0;
}

.account-block .profile-edit {
    margin-top: 12px;
}

.account-block .skip-link {
    margin-top: 10px;
}

.account-block .hint-text {
    margin: 12px 0 14px;
}

.account-block .btn {
    width: 100%;
}

.member-main {
    padding: 40px 46px 72px;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.workspace-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.workspace-head h2 {
    margin-top: 9px;
    font-size: clamp(1.9rem, 3.6vw, 3.4rem);
    font-weight: 390;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.workspace-state {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.workspace-state::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--violet);
    box-shadow: 0 0 11px rgba(122, 114, 255, 0.65);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin: 34px 0 18px;
}

.dossier-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: baseline;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.dossier-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dossier-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.012em;
}

.dossier-title small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 390;
    line-height: 1.5;
}

.dossier-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.dossier-status::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--muted);
}

.dossier-status.cyan::before { background: var(--cyan); }
.dossier-status.violet::before { background: var(--violet); box-shadow: 0 0 9px rgba(122, 114, 255, 0.6); }
.dossier-status.danger::before { background: var(--danger); }
.dossier-status.paper::before { background: var(--paper); }

.member-utility {
    padding: 40px 0 72px 34px;
    min-width: 0;
}

.utility-card {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.utility-card h3 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 16px;
}

.utility-card .btn {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
}

.trade-clock-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 6%, rgba(122, 114, 255, 0.12), transparent 46%),
        radial-gradient(circle at 12% 100%, rgba(63, 130, 255, 0.07), transparent 40%),
        var(--panel);
}

.tc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.tc-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.tc-mark {
    width: 30px;
    height: 30px;
}

.tc-time {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--paper);
    line-height: 1;
}

.tc-session {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tc-session::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--violet);
    box-shadow: 0 0 11px rgba(122, 114, 255, 0.65);
}

.profile-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.profile-row:first-of-type {
    padding-top: 0;
}

.profile-row .k {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.profile-row .v {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-edit {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.profile-edit .input-field {
    font-size: 0.82rem;
}

/* ---------- Auth module ---------- */

.lock-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.5fr);
    gap: 64px;
    padding: 64px 0 76px;
}

.lock-screen.hidden {
    display: none;
}

.lock-heading h2 {
    max-width: 640px;
    margin-top: 10px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 390;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.lock-note {
    max-width: 460px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 390;
    line-height: 1.6;
}

.lock-heading > * {
    opacity: 0;
    animation: hero-rise 0.5s cubic-bezier(.16, 1, .3, 1) both;
}

.lock-heading > *:nth-child(1) { animation-delay: 0.05s; }
.lock-heading > *:nth-child(2) { animation-delay: 0.12s; }
.lock-heading > *:nth-child(3) { animation-delay: 0.2s; }

.auth-panel {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.auth-tab {
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 10px 6px 12px;
    margin-bottom: -1px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s;
}

.auth-tab:hover {
    color: var(--paper);
}

.auth-tab.is-active {
    color: var(--violet);
    border-bottom-color: var(--violet);
}

.auth-view form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 7px;
}

.field-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.input-field {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    letter-spacing: 0.04em;
}

.input-field:focus {
    border-bottom-color: var(--violet);
}

.input-field::placeholder {
    color: var(--dim);
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 2px;
}

.field-row .skip-link {
    margin-top: 0;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    cursor: pointer;
    margin-top: -8px;
}

.remember-row input[type="checkbox"] {
    accent-color: var(--violet);
    width: 14px;
    height: 14px;
    margin: 0;
}

.account-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.account-section h4 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
    margin: 0 0 8px;
}

.account-section .hint-text {
    margin: 10px 0 12px;
}

.account-section .btn {
    width: 100%;
}

.auth-msg {
    min-height: 1.4em;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    line-height: 1.5;
    color: var(--muted);
}

.auth-msg.is-error {
    color: var(--danger);
}

.auth-msg.is-ok {
    color: var(--cyan);
}

.setup-note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-left: 2px solid var(--violet);
    background: var(--panel);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.setup-note .mono {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--paper);
}

.hint-text {
    margin-top: 15px;
    color: var(--dim);
    font-size: 0.78rem;
    line-height: 1.55;
}

.skip-link {
    display: inline-block;
    margin-top: 14px;
    background: none;
    border: 0;
    padding: 4px 0;
    color: var(--violet);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

#resend-confirm[hidden] { display: none; }

.skip-link:hover {
    color: var(--paper);
}

/* ---------- Footer ---------- */

.footer {
    min-height: 128px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer .disclaimer {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.55;
}

.footer a {
    color: var(--muted);
}

.footer a:hover {
    color: var(--paper);
}

/* ---------- Checkout ---------- */

.checkout-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 6, 10, 0.84);
    backdrop-filter: blur(4px);
    z-index: 1200;
    overflow-y: auto;
}

.checkout-overlay.hidden {
    display: none;
}

.checkout-panel {
    width: min(480px, 100%);
    padding: 28px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
}

.checkout-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.checkout-close {
    background: none;
    border: 0;
    padding: 4px 0;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.checkout-close:hover {
    color: var(--paper);
}

.checkout-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 430;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.checkout-panel .profile-row:last-of-type {
    border-bottom: 0;
}

.paypal-buttons {
    margin-top: 22px;
}

.checkout-note {
    margin-top: 16px;
    color: var(--dim);
    font-size: 0.78rem;
    line-height: 1.6;
}

#checkout-success .section-kicker {
    margin-top: 8px;
}

#checkout-success h2 {
    margin-bottom: 12px;
}

.no-scroll {
    overflow: hidden;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 10px);
    background: var(--paper);
    color: var(--night);
    padding: 11px 17px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .market-plot {
        min-height: 320px;
        max-width: 640px;
    }

    .member-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .member-utility {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 24px 0 64px;
        border-top: 1px solid var(--line);
    }

    .member-utility .utility-card {
        margin-bottom: 0;
    }
}

@media (max-width: 880px) {
    .site-header {
        flex-wrap: wrap;
        padding: 18px 0;
        gap: 14px;
    }

    .header-meta {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .site-nav {
        order: 2;
    }

    .site-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-head p.lede {
        grid-column: 1;
        margin-top: -18px;
    }

    .tape-row {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 14px 24px;
    }

    .tape-time {
        grid-column: 2;
        padding-top: 0;
    }

    .tier {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tier-cta {
        text-align: left;
    }

    .tier-cta .btn {
        width: auto;
        min-width: 260px;
    }

    .member-layout {
        grid-template-columns: 1fr;
    }

    .member-nav {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 22px 0 26px;
        overflow-x: auto;
    }

    .member-nav ul {
        display: flex;
        gap: 4px;
        min-width: max-content;
    }

    .member-nav a {
        border-left: 0;
        border-bottom: 1px solid transparent;
        border-radius: 2px;
        padding: 9px 12px;
        min-height: 44px;
        white-space: nowrap;
    }

    .member-nav a[aria-current="page"] {
        border-left: 0;
        border-bottom-color: var(--violet);
    }

    .member-nav .nav-dot {
        display: none;
    }

    .member-left {
        border-right: 0;
    }

    .member-main {
        border-right: 0;
        padding: 32px 0 56px;
    }

    .lock-screen {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 0 64px;
    }

    .auth-tab {
        min-height: 44px;
    }

    .input-field {
        min-height: 48px;
        font-size: 16px;
    }

    .remember-row,
    .skip-link {
        min-height: 44px;
    }

    .skip-link {
        display: inline-flex;
        align-items: center;
    }

}

@media (max-width: 640px) {
    :root {
        --pad: 20px;
    }

    .site-header {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px 12px;
        padding: 15px 0 13px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        gap: 10px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 0.78rem;
        letter-spacing: 0.09em;
    }

    .brand-tool {
        margin-top: 4px;
        font-size: 0.61rem;
        letter-spacing: 0.07em;
    }

    .header-meta {
        grid-column: 2;
        grid-row: 1;
        order: initial;
        width: auto;
        min-width: 0;
        max-width: 144px;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 0;
        border-top: 0;
        font-size: 0.64rem;
    }

    .account-chip {
        max-width: 92px;
    }

    .signout-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 0.64rem;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
        padding-top: 11px;
        border-top: 1px solid var(--line);
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .site-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 9px 6px;
        text-align: center;
        white-space: nowrap;
    }

    .site-nav .nav-cta {
        margin-left: 0;
    }

    .hero {
        gap: 38px;
        padding: 48px 0 54px;
        min-height: 0;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 12.5vw, 3.45rem);
    }

    .hero .hero-desc {
        font-size: 1rem;
        line-height: 1.62;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
    }

    .hero-actions .text-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .fact {
        padding: 14px 8px 0;
        min-width: 0;
    }

    .fact:first-child {
        padding-left: 0;
    }

    .fact + .fact {
        border-left: 1px solid var(--line);
        border-top: 0;
    }

    .fact b {
        font-size: 0.71rem;
        overflow-wrap: anywhere;
    }

    .fact span {
        font-size: 0.59rem;
        letter-spacing: 0.06em;
        line-height: 1.35;
    }

    .market-plot {
        width: 100%;
        min-height: 300px;
    }

    .section {
        padding: 48px 0 54px;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .section-head h2 {
        font-size: clamp(1.95rem, 9.5vw, 2.65rem);
    }

    .section-head p.lede {
        margin-top: 2px;
        font-size: 1rem;
    }

    .page-hero {
        padding: 48px 0 52px;
    }

    .page-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.3rem);
    }

    .page-hero p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .tape-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px 16px;
        padding: 23px 0;
    }

    .tape-stage {
        gap: 10px;
    }

    .stage-icon {
        width: 40px;
        height: 40px;
    }

    .tape-time {
        grid-column: 2;
        font-size: 0.65rem;
        white-space: normal;
    }

    .tier {
        padding: 26px 0;
    }

    .tier-cta .btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        justify-content: space-between;
    }

    .entitlements {
        padding: 22px 20px;
    }

    .faq-item summary {
        min-height: 56px;
        align-items: center;
        padding: 16px 0;
        font-size: 1rem;
        line-height: 1.4;
    }

    .faq-item .faq-a {
        padding: 0 24px 22px 0;
        font-size: 1rem;
    }

    .doc-head {
        padding: 42px 0 26px;
    }

    .doc-head h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .legal-body {
        padding: 4px 0 54px;
    }

    .legal-prose section {
        padding: 24px 0;
    }

    .legal-prose p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .dossier-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dossier-status {
        padding-top: 6px;
    }

    .workspace-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .member-nav {
        margin: 0 calc(var(--pad) * -1);
        padding: 12px var(--pad) 14px;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .member-nav::-webkit-scrollbar {
        display: none;
    }

    .member-nav a {
        min-height: 44px;
        padding: 10px 13px;
    }

    .member-main {
        padding: 30px 0 50px;
    }

    .lock-screen {
        gap: 28px;
        padding: 42px 0 54px;
    }

    .lock-heading h2 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .auth-panel {
        padding: 22px 18px;
    }

    .auth-tab {
        min-height: 44px;
        padding: 10px 6px;
    }

    .input-field {
        min-height: 48px;
        padding: 12px 0;
        font-size: 16px;
    }

    .field-row {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .remember-row {
        min-height: 44px;
        margin-top: -4px;
    }

    .remember-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .skip-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 0;
    }

    .member-utility {
        grid-template-columns: 1fr;
        padding-bottom: 54px;
    }

    .account-view {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 26px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .footer a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .checkout-overlay {
        align-items: end;
        padding: 12px;
    }

    .checkout-panel {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 24px 20px;
    }

    .checkout-close {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .toast {
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: 420px;
        white-space: normal;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .live-clock::before {
        animation: none;
    }

    .plot-path {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }

    .hero-copy > * {
        opacity: 1 !important;
        animation: none !important;
    }

    .hero h1 .line > span {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .lock-heading > * {
        opacity: 1 !important;
        animation: none !important;
    }

    .js-anim [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Calendar feed (subscription address) ---------- */
.feed-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 12px 0 10px;
}

.feed-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line, rgba(255, 255, 255, .14));
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: var(--paper, #F2F3F7);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.8rem;
}

.feed-row .btn { flex: 0 0 auto; }

.feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-quiet {
    background: transparent;
    border: 1px solid var(--line, rgba(255, 255, 255, .18));
}

@media (max-width: 640px) {
    .feed-row { flex-direction: column; }
    .feed-row .btn { width: 100%; }
}

/* One row per published year. */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 12px;
}

.feed-year {
    flex: 0 0 auto;
    align-self: center;
    min-width: 44px;
    color: var(--ink-dim, rgba(242, 243, 247, .62));
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .78rem;
    letter-spacing: .06em;
}

.feed-row .btn { padding-inline: 12px; }


/* ---------------------------------------------------------------------------
   Dossier entries rendered by js/dossier.js from content/dossier-data.js.
   Reuses the existing dossier tokens and the .dossier-status dot language so
   generated entries read as the same component as the shipping empty states.
   --------------------------------------------------------------------------- */

.dossier-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.dossier-entry {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    overflow: hidden;
}
.dossier-entry[open] { border-color: var(--line-strong); background: var(--panel-raised); }

.dossier-entry-head {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}
.dossier-entry-head::-webkit-details-marker { display: none; }
.dossier-entry-head:hover { background: rgba(229, 232, 255, 0.03); }
.dossier-entry-head:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }

.dossier-entry-meta { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.dossier-entry-meta .dossier-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--dim);
    white-space: nowrap;
}
.dossier-entry-meta .dossier-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--paper);
}
.dossier-entry-meta .dossier-title small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.dossier-body {
    padding: 4px 20px 22px;
    border-top: 1px solid var(--line);
    max-width: 74ch;
}
.dossier-body h2 {
    font-size: 0.95rem;
    color: var(--paper);
    margin: 22px 0 8px;
    letter-spacing: 0.01em;
}
.dossier-body h2:first-child { margin-top: 18px; }
.dossier-body h3 { margin: 20px 0 8px; font-size: .9rem; color: var(--paper); }
.dossier-body { overflow-wrap: anywhere; }
.dossier-body figure { margin: 20px 0; }
.dossier-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.dossier-body figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.dossier-downloads { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.dossier-downloads a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.dossier-body p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.dossier-body strong { color: var(--paper); font-weight: 600; }
.dossier-body em { color: var(--dim); }
.dossier-body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.84rem; }
.dossier-body th {
    text-align: left; font-weight: 500; color: var(--dim);
    border-bottom: 1px solid var(--line-strong); padding: 0 14px 8px 0;
}
.dossier-body td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.dossier-body td:first-child { color: var(--paper); }
.dossier-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.dossier-body li { margin-bottom: 6px; }
.dossier-body .disclaimer {
    margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line);
    font-size: 0.78rem; color: var(--dim); font-style: italic;
}

@media (max-width: 640px) {
    .dossier-entry-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .dossier-entry-meta { flex-direction: column; gap: 6px; }
    .dossier-body { padding: 4px 16px 18px; }
}

/* Orders follow the existing member-site palette and spacing. */
.billing-order { padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.billing-order h4 { margin: 0 0 8px; font-size: 1rem; }
.billing-state { margin: 0 0 10px; color: var(--paper); }
.billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; }
.billing-form, .billing-report { display: grid; gap: 14px; margin: 18px 0; }
.billing-form[hidden], #billing-admin[hidden], #billing-admin-detail[hidden] { display: none !important; }
.billing-form label, .billing-report label { display: grid; gap: 8px; color: var(--muted); font-size: .86rem; }
.billing-form .billing-check, .billing-report .billing-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.billing-check input { flex-shrink: 0; margin-top: 4px; }
.billing-form button, .billing-report button { justify-self: start; }
.billing-admin-list { display: grid; gap: 8px; margin: 18px 0; }
.billing-select { text-align: left; padding: 12px; background: var(--panel); color: var(--paper); border: 1px solid var(--line); font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.billing-settings { margin-bottom: 20px; }
.billing-settings summary { cursor: pointer; padding: 10px 0; }
.billing-order .input-field, .billing-form .input-field { width: 100%; min-width: 0; box-sizing: border-box; }
.checkout-panel { max-height: calc(100dvh - 48px); overflow-y: auto; }
#billing-admin-detail { overflow-wrap: anywhere; }
.billing-select:focus-visible, .checkout-panel button:focus-visible, .checkout-panel a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
@media (max-width: 600px) { .billing-actions .btn { width: 100%; text-align: center; } }

/* Trade Clock product mark */
.brand-mark.tc-mark.tc-product-mark {
    width: 48px;
    height: 48px;
    margin: -9px;
    filter: url(#trade-clock-background-key);
}
