﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
	--bg: #ffffff;
	--fg: #0f172a;
	--muted: #64748b;
    --card: #ffffff;
	--line: #e2e8f0;
	--accent: #2563eb;
	--ring: #bfdbfe;
	--radius: 0.8rem;
	--space: 1rem;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
	--font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); background: #fff; color: var(--fg); }
main, header, footer { max-width: 720px; margin: auto; padding: calc(var(--space)*1.25) var(--space); }
header > p, footer small { color: var(--muted); }

/* Form */
form { display: grid; gap: var(--space); }
fieldset { padding: var(--space); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
legend { padding: 0 0.5rem; color: var(--muted); }
label { display: grid; gap: 0.5rem; }
input, textarea { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 0.6rem; background: #fff; }
input:focus, textarea:focus, button:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
button { border: 0; background: var(--accent); color: #fff; padding: 0.7rem 1rem; border-radius: 0.7rem; box-shadow: var(--shadow); cursor: pointer; }
button:hover { filter: brightness(0.98); }

/* Timeline bids */
#bids-scroll {
    margin: 0 0 var(--space);
    padding-bottom: 0.75rem;
}

#bids-scroll::-webkit-scrollbar,
.timeline-scroll::-webkit-scrollbar {
    height: 8px;
}

#bids-scroll::-webkit-scrollbar-thumb,
.timeline-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline-empty {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.timeline-header {
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.timeline-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.timeline-chip {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.5rem;
    margin-right: 0.35rem;
    background: var(--line);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.timeline-chip--confirm {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.45));
}

.timeline-chip--decline {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25), rgba(248, 113, 113, 0.45));
}

.timeline-chip--pending {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.35));
}

.timeline-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    scroll-snap-type: both proximity;
    scroll-padding: 1rem;
}

.timeline-grid {
    --timeline-min-col: minmax(140px, 1fr);
    display: grid;
    gap: 0.75rem;
    align-items: stretch;
    grid-template-columns: minmax(200px, 220px) repeat(var(--timeline-columns), var(--timeline-min-col));
    width: max-content;
    min-width: 100%;
    grid-auto-rows: minmax(90px, auto);
}

.timeline-grid > .timeline-sticky {
    z-index: 5;
}

.timeline-sticky {
    position: sticky;
    background: var(--card);
}

.timeline-sticky--start {
    left: 0;
    box-shadow: 6px 0 12px rgba(15, 23, 42, 0.05);
}

.timeline-sticky--end {
    right: 0;
    box-shadow: -6px 0 12px rgba(15, 23, 42, 0.08);
}

.timeline-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--fg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.timeline-head--corner {
    text-align: left;
}

.timeline-head--participant::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-head--participant::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--participant-color, rgba(37, 99, 235, 0.6));
    opacity: 0.85;
}

.timeline-head--participant.is-current {
    color: var(--accent);
}

.timeline-head--participant.is-current::after {
    opacity: 1;
}

.timeline-head--participant {
    border-top-color: rgba(37, 99, 235, 0.2);
    border-bottom-color: rgba(37, 99, 235, 0.2);
    scroll-snap-align: end;
}

.timeline-head-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.2;
}

.timeline-row-label {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    scroll-snap-align: start;
}

.timeline-row-label::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 20%, rgba(59, 130, 246, 0.2));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-row-label--active {
    border-left-color: var(--row-accent);
}

.timeline-row-label--active::before {
    opacity: 0.25;
}

.timeline-row-label--resolved {
    border-color: rgba(34, 197, 94, 0.4);
    border-left-color: rgba(34, 197, 94, 0.7);
    background: rgba(34, 197, 94, 0.08);
}

.timeline-row-label--dimmed:not(.timeline-row-label--resolved) {
    filter: saturate(0.75);
    opacity: 0.85;
}

.timeline-row-label[data-latest-row="true"] {
    animation: timeline-pop 0.7s ease;
}

.timeline-row-primary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 600;
}

.timeline-row-primary time {
    color: var(--fg);
}

.timeline-row-time {
    padding: 0.15rem 0.4rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.75rem;
    color: var(--accent);
}

.timeline-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.timeline-row-author {
    font-weight: 500;
}

.timeline-cell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(148, 163, 184, 0.12);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    scroll-snap-align: start;
}

.timeline-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 60%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-cell--interactive:hover::after {
    opacity: 1;
}

.timeline-cell--interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.timeline-cell--confirmed {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
}

.timeline-cell--declined {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
    filter: saturate(0.8);
}

.timeline-cell--pending {
    background: rgba(148, 163, 184, 0.14);
}

.timeline-cell--inactive {
    opacity: 0.7;
}

.timeline-cell--resolved {
    background: rgba(34, 197, 94, 0.28);
    border-color: rgba(34, 197, 94, 0.55);
}

.timeline-cell--current {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.timeline-cell--dimmed:not(.timeline-cell--resolved) {
    filter: saturate(0.8);
    opacity: 0.9;
}

.timeline-cell--interactive {
    cursor: pointer;
}

.timeline-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.timeline-btn {
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.95);
    color: var(--fg);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.timeline-btn--confirm.is-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.6));
    border-color: rgba(34, 197, 94, 0.5);
    color: #14532d;
}

.timeline-btn--decline.is-active {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.3), rgba(248, 113, 113, 0.6));
    border-color: rgba(248, 113, 113, 0.5);
    color: #7f1d1d;
}

.timeline-btn--confirm:not(.is-active):hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.timeline-btn--decline:not(.is-active):hover {
    border-color: rgba(248, 113, 113, 0.4);
}

.timeline-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.timeline-btn[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* Landing page */
body.landing-body {
    background: #040b16;
    color: #e2e8f0;
    font-family: 'Inter', var(--font);
    min-height: 100vh;
}

body.landing-body main,
body.landing-body header,
body.landing-body footer {
    max-width: none;
    margin: 0;
    padding: 0;
}

.landing-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.25), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(180, 83, 243, 0.15), transparent 60%),
        #040b16;
}

.landing-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.25) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.22;
    z-index: 0;
}

.landing-scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.landing-scanline span {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(34, 211, 238, 0.35) 10%, transparent 100%);
    transform: translateY(-100%);

    animation: landingScanline 10s linear infinite;
}

.landing-container {
    width: min(1100px, 100% - 3rem);
    margin: 0 auto;
}

@media (max-width: 900px) {
    .landing-container {
        width: min(720px, 100% - 2.5rem);
    }
}

@media (max-width: 640px) {
    .landing-container {
        width: 100%;
        padding: 0 1.5rem;
    }
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(4, 11, 22, 0.75);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(18px);
}

.landing-nav .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.landing-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.5));
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.35);
}

.landing-logo-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke: #2dd4bf;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-logo-text {
    font-size: 1.1rem;
}

.landing-logo-text span {
    color: #38bdf8;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    border: 1px solid transparent;
    background: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.landing-button svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(45, 212, 191, 0.18);
}

.landing-button:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.landing-button--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.85);
}

.landing-button--ghost:hover {
    background: rgba(148, 163, 184, 0.12);
    box-shadow: none;
}

.landing-button--outline {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(8, 145, 178, 0.12);
    color: #38bdf8;
}

.landing-button--outline:hover {
    border-color: rgba(56, 189, 248, 0.85);
    background: rgba(56, 189, 248, 0.2);
}

.landing-button--hero {
    border: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(129, 140, 248, 0.95));
    color: #031425;
    font-size: 0.85rem;
    padding: 0.8rem 1.6rem;
    box-shadow: 0 24px 45px rgba(56, 189, 248, 0.35);
}

.landing-button--hero:hover {
    box-shadow: 0 32px 60px rgba(56, 189, 248, 0.45);
}

.landing-main {
    position: relative;
    z-index: 5;
    padding-bottom: 5rem;
}

.landing-hero {
    padding: 5.5rem 0 4rem;
}

.landing-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.landing-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
}

.landing-gradient {
    background: linear-gradient(135deg, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

.landing-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.8);
}

.landing-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.82rem;
}

.landing-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    color: #94a3b8;
}

.landing-meta-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-create-host {
    margin-top: 2.5rem;
}

.landing-create-host article {
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 22px 45px rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(18px);
}

.landing-create-host form {
    display: grid;
    gap: 1rem;
}

.landing-create-host label {
    color: #f8fafc;
    font-size: 0.95rem;
}

.landing-create-host input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
}

.landing-create-host button {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #031425;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 24px 45px rgba(56, 189, 248, 0.35);
}

.landing-create-host button:hover {
    filter: brightness(1.05);
}


.landing-panel {
    width: clamp(300px, 100%, 520px);
    background: rgba(7, 11, 20, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 28px 55px rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(18px);
    position: relative;
}

.landing-panel[data-countdown] {
    display: flex;
    justify-content: center;
    width: auto;
}

.landing-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-progress {
    position: relative;
    width: 6rem;
    height: 0.4rem;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.landing-progress-bar {
    position: absolute;
    inset: 0;
    width: var(--progress, 0%);
    background: linear-gradient(to right, #38bdf8, #a855f7);
    border-radius: 999px;
    transition: width 1s linear;
}

.landing-timer-value {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', monospace;
    color: #f8fafc;
}

.landing-timer-value span {
    font-size: 1.6rem;
    font-weight: 600;
}

.landing-timer-value small {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(226, 232, 240, 0.6);
}

.landing-status-light {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.landing-status-light.is-active {
    transform: scale(1.15);
    opacity: 1;
}

.landing-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #38bdf8;
}

.landing-panel-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.landing-panel-dots span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
}

.landing-panel-dots span:nth-child(1) {
    background: #f87171;
}

.landing-panel-dots span:nth-child(2) {
    background: #fbbf24;
}

.landing-panel-dots span:nth-child(3) {
    background: #34d399;
}

.landing-timeline {
    margin: 1rem 0;
    overflow-x: auto;
}

.landing-timeline table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.landing-timeline th,
.landing-timeline td {
    padding: 0.65rem;
    text-align: center;
}

.landing-timeline th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.6);
}

.landing-timeline td:first-child {
    text-align: left;
}

.landing-timeline td:first-child strong {
    display: block;
    font-size: 0.95rem;
    color: #f8fafc;
}

.landing-timeline td:first-child span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.75rem;
}

.landing-timeline tr.is-dimmed {
    opacity: 0.55;
}

.landing-timeline-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    animation: landingFadeIn 0.6s ease forwards;
    opacity: 0;
}

.landing-timeline-cell.is-current {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.landing-timeline-cell--confirmed {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
    color: #22c55e;
}

.landing-timeline-cell--declined {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
    color: #f87171;
}

.landing-timeline-cell--pending {
    background: rgba(148, 163, 184, 0.18);
}

.landing-icon-check,
.landing-icon-cross,
.landing-icon-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.95rem;
}

.landing-icon-check::before {
    content: '\2713';
    font-weight: 600;
}

.landing-icon-cross::before {
    content: '\2715';
    font-weight: 600;
}

.landing-icon-pending {
    font-weight: 600;
}

.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;
}

.landing-panel-footer { display: none; } /* removed unused panel footer styles */

.landing-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-section {
    padding: 5rem 0;
}

.landing-section:nth-of-type(even) {
    background: none;
}

.landing-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.landing-section-header h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8fafc;
}

.landing-section-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.landing-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: rgba(7, 14, 24, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.5);
}

.landing-step + .landing-step {
    position: relative;
}

.landing-step + .landing-step::before {
    content: '';
    position: absolute;
    top: -1.65rem;
    left: 1.65rem;
    width: 1px;
    height: 1.65rem;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.5), transparent);
}

.landing-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 2px solid rgba(56, 189, 248, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #38bdf8;
}

.landing-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #f8fafc;
    text-transform: none;
    letter-spacing: 0;
}

.landing-step p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.65;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

.landing-feature-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.1rem;
    background: rgba(7, 14, 24, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.5);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    animation: landingFadeIn 0.8s ease forwards;
    opacity: 0;
}

.landing-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 26px 55px rgba(56, 189, 248, 0.25);
}

.landing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: rgba(56, 189, 248, 0.18);
    margin-bottom: 1rem;
    color: #38bdf8;
}

.landing-feature-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
}

.landing-feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.95rem;
    line-height: 1.65;
}





.landing-fade-in {
    opacity: 0;
    animation: landingFadeIn 0.9s ease forwards;
}

.landing-slide-in {
    opacity: 0;
    animation: landingSlideIn 0.9s ease forwards;
}

.landing-scale-in {
    opacity: 0;
    animation: landingScaleIn 0.9s ease forwards;
}

@media (max-width: 720px) {
    .landing-nav .landing-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes landingFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingSlideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes landingScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes landingScanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.timeline-icon {
    position: relative;
    width: 1.1rem; /* ensure consistent space for glyph */
    height: 1.1rem;
}

.timeline-icon::before,
.timeline-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

/* Removed pill background and shadow for icons */
.timeline-icon--confirm { background: none; box-shadow: none; }
.timeline-icon--decline { background: none; box-shadow: none; }

.timeline-icon--confirm::before {
    width: 0.35rem;
    height: 0.75rem;
    border-right: 3px solid #15803d;
    border-bottom: 3px solid #15803d;
    transform: translate(-40%, -55%) rotate(45deg);
}

.timeline-icon--decline::before,
.timeline-icon--decline::after {
    width: 1.05rem;
    height: 2px;
    background: #b91c1c;
}

.timeline-icon--decline::before { transform: translate(-50%, -50%) rotate(45deg); }
.timeline-icon--decline::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Remove active state icon background gradients */
.timeline-btn--confirm.is-active .timeline-icon { background: none; }
.timeline-btn--decline.is-active .timeline-icon { background: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#bid-form.bid-form--needs-bid {
    border-radius: var(--radius);
    border-color: rgba(248, 113, 113, 0.5);
}

.bid-form-warning {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    background: rgba(248, 113, 113, 0.18);
    color: #7f1d1d;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-row-label--inactive { opacity: 0.8; }

@keyframes timeline-pop {
    0% { transform: scale(0.97); box-shadow: 0 0 0 rgba(37, 99, 235, 0.0); }
    50% { transform: scale(1.01); box-shadow: 0 18px 32px rgba(37, 99, 235, 0.12); }
    100% { transform: scale(1); box-shadow: var(--shadow); }
}

@media (min-width: 768px) {
    .timeline-btn { width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 540px) {
    .timeline-head-name { font-size: 0.8rem; }
    .timeline-row-label { padding: 0.6rem; }
    .timeline-row-meta { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-cell,
    .timeline-row-label,
    .timeline-btn,
    .timeline-head--participant::after { transition: none; }
    .timeline-row-label[data-latest-row="true"] { animation: none; }
}

article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space);
    box-shadow: var(--shadow);
    margin: 0;
    position: relative;
}
article header h3 { margin: 0 0 0.25rem; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
article[data-state="active"] { border-color: var(--accent); }
.bids-list > li:last-child article[data-state="active"]::after {
    content: 'Latest';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.6rem;
    background: var(--accent);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 0.5rem;
    letter-spacing: 0.5px;
}
article[data-state="rejected"] { opacity: 0.55; }
article footer { margin-top: 0.25rem; color: var(--muted); }

article p { margin: 0.25rem 0; }
article button { background: #fff; color: var(--fg); border: 1px solid var(--line); }
article button:hover { background: #f1f5f9; }
nav a { margin-right: 1rem; color: var(--accent); text-decoration: none; }
nav a:hover { text-decoration: underline; }
