/* ========================================================================
   inmix.io — terminal / dark hacker theme
   ======================================================================== */

:root {
    --term-bg: #07090a;
    --term-bg-2: #0d1114;
    --term-card: #0f1418;
    --term-card-2: #131a1f;
    --term-line: #1c2630;
    --term-line-2: #243140;
    --term-text: #d4dde2;
    --term-text-soft: #a6b3bd;
    --term-muted: #6b7884;
    --term-dim: #4a5662;
    --term-accent: #00ff9c;
    --term-accent-dim: #00cc7a;
    --term-accent-glow: rgba(0, 255, 156, 0.18);
    --term-amber: #ffb454;
    --term-danger: #ff5577;
    --term-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    --term-radius: 4px;
    --term-radius-sm: 3px;
}

/* ========================================================================
   Base
   ======================================================================== */
html {
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 255, 156, 0.05) 0%, transparent 38%),
        radial-gradient(circle at 90% 95%, rgba(0, 200, 255, 0.035) 0%, transparent 42%),
        var(--term-bg);
    background-attachment: fixed;
    min-height: 100%;
}

body.site-inmix.site-dapp {
    background: transparent;
    color: var(--term-text);
    font-family: var(--term-mono);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

/* faint scanline overlay */
body.site-inmix.site-dapp::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0px,
        rgba(255, 255, 255, 0) 2px,
        rgba(255, 255, 255, 0.012) 3px,
        rgba(255, 255, 255, 0) 4px
    );
    z-index: 9999;
    mix-blend-mode: overlay;
}

#main {
    position: relative;
    z-index: 1;
    padding: 1rem 0 2rem;
}

::selection { background: var(--term-accent); color: var(--term-bg); }
::-moz-selection { background: var(--term-accent); color: var(--term-bg); }

a { color: var(--term-accent); text-decoration: none; }
a:hover { color: var(--term-accent-dim); text-decoration: underline; text-underline-offset: 3px; }

p { color: var(--term-text-soft); }
strong { color: var(--term-text); font-weight: 600; }

/* ========================================================================
   Card / "terminal window"
   ======================================================================== */
.card-inmix {
    position: relative;
    background: var(--term-card);
    border: 1px solid var(--term-line-2);
    border-radius: var(--term-radius);
    color: var(--term-text);
    box-shadow:
        0 0 0 1px rgba(0, 255, 156, 0.04),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 255, 156, 0.04);
    overflow: hidden;
}

.card-inmix::before {
    content: "● ● ●";
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.55rem;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #0b1115 0%, #080c0f 100%);
    border-bottom: 1px solid var(--term-line);
}

.card-inmix::after {
    content: "~/bitcoin-mixer · anon-btc-tumbler";
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--term-muted);
    letter-spacing: 0.04em;
    pointer-events: none;
}

@media (max-width: 575px) {
    .card-inmix::after { display: none; }
}

.card-dapp-main { /* same as card-inmix; kept for backward compat */ }

.card-inmix .text-muted { color: var(--term-muted) !important; }

.site-single-block .card-body { padding: 1.75rem 1.5rem !important; }
@media (min-width: 992px) {
    .site-single-block .card-body { padding: 2.25rem 2.25rem !important; }
}

/* ========================================================================
   Top nav (logo + lang flags)
   ======================================================================== */
.site-block-top,
.site-block-bottom {
    flex-wrap: wrap;
    border-color: var(--term-line) !important;
    border-opacity: 1 !important;
}

.site-block-top {
    padding-bottom: 1rem !important;
    border-bottom: 1px dashed var(--term-line-2) !important;
}

.site-block-logo {
    height: 38px !important;
    width: auto !important;
    filter: drop-shadow(0 0 6px rgba(0, 255, 156, 0.35));
    transition: filter 0.2s;
}

.site-block-top a:hover .site-block-logo {
    filter: drop-shadow(0 0 12px rgba(0, 255, 156, 0.6));
}

.site-block-link {
    color: var(--term-muted);
    font-family: var(--term-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    transition: color 0.15s;
    position: relative;
}

.site-block-link::before { content: "/"; color: var(--term-dim); margin-right: 0.15em; }

a.site-block-link:hover { color: var(--term-accent); text-decoration: none; }

/* Language flags */
.lang-flag-link {
    display: inline-block;
    line-height: 0;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: border-color 0.15s, transform 0.15s;
    opacity: 0.55;
}

.lang-flag-link:hover { opacity: 1; border-color: var(--term-accent); transform: translateY(-1px); }

.fi {
    border: 1px solid var(--term-line-2) !important;
    border-radius: 1px;
    width: 1.2em;
    height: 0.9em;
}

/* ========================================================================
   Hero
   ======================================================================== */
.progress-hero { margin-top: 0.5rem; }

.hero-title,
.progress-hero-title {
    font-family: var(--term-mono);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--term-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-title::before,
.progress-hero-title::before {
    content: "$ ";
    color: var(--term-accent);
    font-weight: 500;
}

.hero-subtitle,
.progress-hero-subtitle {
    font-family: var(--term-mono);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--term-text-soft);
    margin-bottom: 0.4rem;
}

.hero-subtitle::before,
.progress-hero-subtitle::before {
    content: "# ";
    color: var(--term-muted);
}

.index-trust-line,
.trust-line {
    display: inline-block;
    font-family: var(--term-mono);
    font-size: 0.78rem;
    color: var(--term-muted);
    letter-spacing: 0.01em;
    padding: 0.2rem 0.55rem;
    border: 1px dashed var(--term-line-2);
    border-radius: 2px;
    background: rgba(0, 255, 156, 0.025);
}

.index-trust-line::before,
.trust-line::before { content: "→ "; color: var(--term-accent); }

/* Pool availability indicator — low-emphasis */
.index-pool-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
    font-family: var(--term-mono);
    font-size: 0.72rem;
    color: var(--term-muted);
    line-height: 1.3;
}

.index-pool-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--term-accent-dim);
    opacity: 0.7;
    flex-shrink: 0;
    animation: term-pulse 2.4s ease-in-out infinite;
}

@keyframes term-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

.index-pool-label {
    color: var(--term-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
}

.index-pool-sep {
    color: var(--term-dim);
    opacity: 0.5;
    user-select: none;
}

.index-pool-value {
    color: var(--term-text-soft);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.index-pool-status {
    color: var(--term-muted);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
}

/* ========================================================================
   Section titles (uppercase tag-style)
   ======================================================================== */
.progress-section-title {
    font-family: var(--term-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--term-accent);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--term-line);
}

.progress-section-title::before { content: "[ "; color: var(--term-muted); font-weight: 400; }
.progress-section-title::after  { content: " ]"; color: var(--term-muted); font-weight: 400; }

.seo-subtitle {
    font-family: var(--term-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--term-text);
    letter-spacing: 0;
    margin: 1rem 0 0.4rem;
}

.seo-subtitle::before { content: "// "; color: var(--term-muted); font-weight: 400; }

/* ========================================================================
   "How it works" steps
   ======================================================================== */
.progress-section-how {
    padding: 1.4rem 1.55rem !important;
    background:
        linear-gradient(180deg, rgba(0, 255, 156, 0.03) 0%, rgba(0, 0, 0, 0) 100%),
        var(--term-card-2);
    border: 1px solid var(--term-line-2);
    border-left: 2px solid var(--term-accent);
    border-radius: var(--term-radius-sm);
    box-shadow: none;
}

@media (min-width: 992px) {
    .progress-section-how { padding: 1.55rem 1.75rem !important; }
}

.progress-steps-list,
.how-it-works-steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin: 0;
    font-family: var(--term-mono);
    font-size: 0.85rem;
    color: var(--term-text-soft);
    line-height: 1.5;
}

.progress-steps-list li,
.how-it-works-steps li {
    counter-increment: step;
    padding-left: 2.2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-steps-list li::before,
.how-it-works-steps li::before {
    content: "0" counter(step);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--term-accent);
    font-weight: 700;
    font-size: 0.78rem;
    background: rgba(0, 255, 156, 0.08);
    border: 1px solid var(--term-accent-dim);
    border-radius: 2px;
    padding: 0 0.35rem;
}

/* ========================================================================
   Service fee card / metric cards
   ======================================================================== */
.progress-metric-card,
.progress-section-fee {
    padding: 1.4rem 1.55rem !important;
    background:
        linear-gradient(180deg, rgba(0, 255, 156, 0.015) 0%, transparent 100%),
        var(--term-card-2);
    border: 1px solid var(--term-line-2);
    border-radius: var(--term-radius-sm);
    box-shadow: none;
}

@media (min-width: 992px) {
    .progress-metric-card,
    .progress-section-fee {
        padding: 1.55rem 1.75rem !important;
    }
}

/* ========================================================================
   Form section — primary input zone (must visually pop vs metric cards)
   ======================================================================== */
.progress-section-form {
    padding: 1.5rem 1.55rem !important;
    background: var(--term-bg-2);
    border: 1px solid var(--term-accent-dim);
    border-left: 3px solid var(--term-accent);
    border-radius: var(--term-radius-sm);
    box-shadow:
        0 0 0 1px rgba(0, 255, 156, 0.06) inset,
        0 0 24px rgba(0, 255, 156, 0.05);
}

@media (min-width: 992px) {
    .progress-section-form { padding: 1.7rem 1.85rem !important; }
}

.progress-section-form > .progress-section-title {
    color: var(--term-accent);
    font-size: 0.72rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0, 255, 156, 0.25);
}

.progress-section-form .form-text {
    color: var(--term-muted) !important;
    font-size: 0.72rem !important;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.55rem !important;
}

.progress-section-form .form-text::before { content: "// "; opacity: 0.7; }

.progress-section-form .btn-mix {
    margin-top: 1rem !important;
}

.progress-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-fee-label {
    font-family: var(--term-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--term-muted);
}

.progress-fee-value,
.progress-conf-value,
.progress-payout-estimate-value {
    font-family: var(--term-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--term-accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.progress-conf-value { color: var(--term-amber); }
.progress-conf-value.conf-done { color: var(--term-accent); }

.progress-fee-note {
    margin-top: 0.5rem;
    font-family: var(--term-mono);
    font-size: 0.75rem;
    color: var(--term-muted);
}

.progress-fee-note::before { content: "// "; opacity: 0.6; }

.fee-refresh-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.4rem;
    border-radius: var(--term-radius-sm);
    color: var(--term-muted);
    transition: color 0.15s, background 0.15s;
}

.fee-refresh-link:hover { color: var(--term-accent); background: var(--term-accent-glow); }

/* Fee slider */
.fee-slider-wrap { padding: 0.4rem 2px 0; }

.fee-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px;
    border-radius: 2px;
    background: var(--term-line-2) !important;
    outline: none; cursor: pointer;
}

.fee-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--term-line-2); }
.fee-slider::-moz-range-track              { height: 4px; border-radius: 2px; background: var(--term-line-2); }

.fee-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px;
    margin-top: -6px;
    border-radius: 2px;
    background: var(--term-accent);
    border: 1px solid var(--term-bg);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
    transition: box-shadow 0.15s, transform 0.15s;
}

.fee-slider::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 2px;
    background: var(--term-accent);
    border: 1px solid var(--term-bg);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
}

.fee-slider::-webkit-slider-thumb:hover,
.fee-slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 6px rgba(0, 255, 156, 0.18), 0 0 12px rgba(0, 255, 156, 0.7);
    transform: scale(1.05);
}

.fee-slider-labels {
    display: flex; justify-content: space-between;
    font-family: var(--term-mono);
    font-size: 0.7rem;
    color: var(--term-muted);
    margin-top: 6px;
    letter-spacing: 0.05em;
}

/* ========================================================================
   Address input
   ======================================================================== */
.address-input,
.contact-input,
.form-control {
    background: var(--term-bg-2) !important;
    border: 1px solid var(--term-line-2) !important;
    color: var(--term-accent) !important;
    font-family: var(--term-mono) !important;
    font-size: 0.9rem !important;
    border-radius: var(--term-radius-sm) !important;
    padding: 0.85rem 0.95rem !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    caret-color: var(--term-accent);
}

.address-input:focus,
.contact-input:focus,
.form-control:focus {
    background: var(--term-bg) !important;
    border-color: var(--term-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 156, 0.12), inset 0 0 18px rgba(0, 255, 156, 0.04) !important;
    outline: none !important;
    color: var(--term-accent) !important;
}

.address-input::placeholder,
.contact-input::placeholder,
.form-control::placeholder {
    color: var(--term-muted) !important;
    opacity: 0.7;
}

.is-invalid,
.address-input.is-invalid {
    border-color: var(--term-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 85, 119, 0.12) !important;
}

.invalid-feedback {
    color: var(--term-danger) !important;
    font-family: var(--term-mono);
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

.invalid-feedback::before { content: "✗ "; }

.form-text,
.contact-label,
.form-label {
    color: var(--term-muted) !important;
    font-family: var(--term-mono);
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn-mix,
.btn-primary,
.btn-contact-submit,
.btn-new-mix-confirm {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    background: transparent !important;
    border: 1px solid var(--term-accent) !important;
    color: var(--term-accent) !important;
    font-family: var(--term-mono) !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: var(--term-radius-sm) !important;
    box-shadow:
        0 0 0 1px rgba(0, 255, 156, 0.08) inset,
        0 0 18px rgba(0, 255, 156, 0.12);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
    position: relative;
}

.btn-mix::before,
.btn-primary::before,
.btn-contact-submit::before,
.btn-new-mix-confirm::before { content: "▶ "; opacity: 0.85; }

.btn-mix:hover,
.btn-mix:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-contact-submit:hover,
.btn-new-mix-confirm:hover {
    background: rgba(0, 255, 156, 0.1) !important;
    color: var(--term-accent) !important;
    border-color: var(--term-accent) !important;
    box-shadow:
        0 0 0 1px rgba(0, 255, 156, 0.5) inset,
        0 0 14px rgba(0, 255, 156, 0.22);
    transform: translateY(-1px);
}

.btn-mix:disabled,
.btn-primary:disabled {
    opacity: 0.55;
    cursor: progress;
    transform: none;
}

/* outline / secondary buttons */
.site-dapp .btn-outline-primary,
.site-dapp .btn-outline-secondary,
.btn-copy,
.btn-progress-copy,
.btn-progress-new-mix,
.btn-progress-open-wallet,
.btn-new-mix-cancel {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    background: transparent !important;
    border: 1px solid var(--term-line-2) !important;
    color: var(--term-text-soft) !important;
    font-family: var(--term-mono) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    padding: 0.65rem 1rem !important;
    border-radius: var(--term-radius-sm) !important;
    text-decoration: none !important;
    text-transform: lowercase !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.site-dapp .btn-outline-primary:hover,
.site-dapp .btn-outline-secondary:hover,
.btn-copy:hover,
.btn-progress-copy:hover,
.btn-progress-new-mix:hover,
.btn-progress-open-wallet:hover,
.btn-new-mix-cancel:hover {
    border-color: var(--term-accent) !important;
    color: var(--term-accent) !important;
    background: rgba(0, 255, 156, 0.06) !important;
}

.btn-progress-copy.btn-copy-done {
    border-color: var(--term-accent) !important;
    background: rgba(0, 255, 156, 0.14) !important;
    color: var(--term-accent) !important;
}

.btn-progress-copy-icon { font-size: 0.95rem; opacity: 0.85; }

.btn-progress-open-wallet { font-size: 0.78rem !important; padding: 0.4rem 0.85rem !important; }

/* ========================================================================
   FAQ accordion
   ======================================================================== */
.accordion-inmix .accordion-item {
    background: var(--term-card-2) !important;
    border: 1px solid var(--term-line-2) !important;
    border-radius: var(--term-radius-sm) !important;
    margin-bottom: 0.4rem;
    overflow: hidden;
}

.accordion-inmix .accordion-button {
    background: var(--term-card-2) !important;
    color: var(--term-text) !important;
    font-family: var(--term-mono) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    border: none !important;
    padding: 0.85rem 1rem !important;
    box-shadow: none !important;
}

.accordion-inmix .accordion-button::before {
    content: "[+]";
    color: var(--term-accent);
    margin-right: 0.6rem;
    font-weight: 700;
    transition: transform 0.15s;
}

.accordion-inmix .accordion-button:not(.collapsed) {
    background: rgba(0, 255, 156, 0.06) !important;
    color: var(--term-accent) !important;
    box-shadow: inset 0 -1px 0 var(--term-line-2) !important;
}

.accordion-inmix .accordion-button:not(.collapsed)::before { content: "[-]"; }

.accordion-inmix .accordion-button::after { display: none !important; }

.accordion-inmix .accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 156, 0.18) inset !important;
    outline: none;
}

.accordion-inmix .accordion-body {
    background: var(--term-bg-2) !important;
    color: var(--term-text-soft) !important;
    font-family: var(--term-mono);
    font-size: 0.85rem;
    padding: 1rem 1rem 1.1rem 2.3rem !important;
    border-top: 1px dashed var(--term-line-2);
    line-height: 1.6;
}

.accordion-inmix .accordion-body::before {
    content: "→";
    color: var(--term-accent);
    margin-left: -1rem;
    margin-right: 0.55rem;
    display: inline-block;
}

/* ========================================================================
   About / SEO body text
   ======================================================================== */
.how-it-works-text {
    font-family: var(--term-mono);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--term-text-soft);
}

.how-it-works-text p { color: var(--term-text-soft); }
.how-it-works-text strong { color: var(--term-text); font-weight: 600; }

.about-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--term-text-soft);
}

.about-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.about-bullets li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--term-accent);
    font-weight: 700;
}

.about-bullets li:last-child { margin-bottom: 0; }

/* ========================================================================
   Footer (inside card)
   ======================================================================== */
.site-block-bottom {
    border-top: 1px dashed var(--term-line-2) !important;
    padding-top: 1rem !important;
    font-family: var(--term-mono);
    font-size: 0.78rem;
    color: var(--term-muted);
}

.site-block-bottom .text-muted { color: var(--term-muted) !important; }

/* ========================================================================
   Progress page — stepper
   ======================================================================== */
.progress-status-badge {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.3rem 0.7rem;
    font-family: var(--term-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--term-accent);
    background: rgba(0, 255, 156, 0.08);
    border: 1px solid var(--term-accent-dim);
    border-radius: 2px;
}

.progress-status-badge::before { content: "● "; animation: term-blink 1.4s steps(2) infinite; }

@keyframes term-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0.25; }
}

.progress-stepper { padding: 0.5rem 0; }

.progress-stepper-list {
    display: flex; align-items: flex-start; justify-content: space-between;
    list-style: none; margin: 0; padding: 0; gap: 0;
}

.progress-stepper-item {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; min-width: 0; position: relative;
}

.progress-stepper-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    color: var(--term-bg);
    background: transparent;
    border: 1px solid var(--term-dim);
    position: relative; z-index: 1;
    font-family: var(--term-mono);
}

.progress-stepper-active .progress-stepper-icon {
    border-color: var(--term-accent);
    background: rgba(0, 255, 156, 0.08);
}

.progress-stepper-active .progress-stepper-icon:not(.progress-stepper-spinner) {
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
}

.progress-stepper-pending .progress-stepper-icon {
    border-color: var(--term-line-2);
    color: var(--term-dim);
}

.progress-stepper-icon.progress-stepper-spinner {
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 156, 0.18);
    border-top-color: var(--term-accent);
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 156, 0.35);
    animation: term-spin 0.7s linear infinite;
}

@keyframes term-spin { to { transform: rotate(360deg); } }

.progress-stepper-line {
    position: absolute;
    top: 12px;
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
    height: 1px;
    background: var(--term-line-2);
    z-index: 0;
}

.progress-stepper-active .progress-stepper-line,
.progress-stepper-done .progress-stepper-line {
    background: var(--term-accent);
    box-shadow: 0 0 4px rgba(0, 255, 156, 0.5);
}

.progress-stepper-line-last { display: none; }

.progress-stepper-label {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--term-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--term-muted);
    max-width: 100%;
}

.progress-stepper-active .progress-stepper-label { color: var(--term-accent); }
.progress-stepper-pending .progress-stepper-label { color: var(--term-dim); }

.progress-stepper-done .progress-stepper-icon {
    background: var(--term-accent);
    border-color: var(--term-accent);
    color: var(--term-bg);
}

.progress-stepper-done .progress-stepper-icon.progress-stepper-spinner { animation: none; }
.progress-stepper-done .progress-stepper-check { line-height: 1; font-size: 0.8rem; }
.progress-stepper-done .progress-stepper-label { color: var(--term-accent); }

/* ========================================================================
   Progress page — payouts / mixing timer
   ======================================================================== */
.progress-mix-complete-headline {
    font-family: var(--term-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--term-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.progress-mix-complete-headline::before { content: "✓ "; }

.progress-post-stepper .progress-sending-hint,
.progress-post-stepper .progress-mixing-hint {
    max-width: 28rem; margin-left: auto; margin-right: auto;
    font-family: var(--term-mono); font-size: 0.85rem;
    color: var(--term-text-soft);
}

.progress-mixing-timer {
    font-family: var(--term-mono);
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--term-accent);
    letter-spacing: 0.06em;
    text-shadow: 0 0 12px rgba(0, 255, 156, 0.45);
}

.progress-payout-estimate-value { color: var(--term-amber); }

/* Order ID row */
.progress-order-id-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: var(--term-mono);
    font-size: 0.78rem;
}

.progress-order-id-label {
    color: var(--term-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.progress-order-id-value {
    font-family: var(--term-mono);
    font-size: 0.78rem;
    background: var(--term-bg);
    padding: 0.2em 0.55em;
    border: 1px solid var(--term-line-2);
    border-radius: 2px;
    color: var(--term-accent);
    user-select: all;
}

.btn-order-id-copy {
    background: transparent;
    border: 1px solid var(--term-line-2);
    border-radius: 2px;
    color: var(--term-muted);
    font-family: var(--term-mono);
    font-size: 0.7rem;
    padding: 0.2em 0.55em;
    cursor: pointer;
    text-transform: lowercase;
    transition: border-color 0.15s, color 0.15s;
}

.btn-order-id-copy:hover { border-color: var(--term-accent); color: var(--term-accent); }

/* ========================================================================
   Progress page — deposit / receiving fields
   ======================================================================== */
.progress-deposit-box {
    display: flex; flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.progress-deposit-field {
    padding: 1rem 1.2rem;
    background: var(--term-bg);
    border: 1px solid var(--term-line-2);
    border-left: 2px solid var(--term-accent);
    border-radius: var(--term-radius-sm);
    user-select: text; -webkit-user-select: text; cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.progress-deposit-field:focus-within {
    border-color: var(--term-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 156, 0.15), inset 0 0 18px rgba(0, 255, 156, 0.04);
}

.progress-deposit-address {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    font-family: var(--term-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-all;
    color: var(--term-accent);
    user-select: text;
}

.progress-section-receiving .progress-deposit-address,
.progress-receiving-box .progress-deposit-address {
    color: var(--term-text-soft);
    font-weight: 400;
}

.progress-section-receiving .progress-deposit-field,
.progress-receiving-box .progress-deposit-field {
    border-left-color: var(--term-line-2);
}

.deposit-amount-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(0, 255, 156, 0.2);
    border-top-color: var(--term-accent);
    border-radius: 50%;
    animation: term-spin 0.7s linear infinite;
    vertical-align: -2px;
}

.progress-deposit-usd-row {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--term-line-2);
}

.progress-deposit-usd-label {
    font-family: var(--term-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--term-muted);
}

.progress-deposit-usd-value {
    font-family: var(--term-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--term-amber);
    font-variant-numeric: tabular-nums;
}

.progress-conf-note { margin-top: 0.4rem; line-height: 1.4; color: var(--term-muted); font-size: 0.75rem; }
.progress-conf-note::before { content: "// "; }

/* QR */
.progress-qr-wrap {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.4rem 1.4rem 1.25rem;
    background: var(--term-bg);
    border: 1px solid var(--term-line-2);
    border-radius: var(--term-radius-sm);
    box-shadow: inset 0 0 30px rgba(0, 255, 156, 0.04);
}

.progress-qr-img {
    display: block;
    border-radius: 2px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 0 24px rgba(0, 255, 156, 0.18);
}

.progress-qr-link { display: block; text-decoration: none; }

.progress-qr-caption {
    margin-top: 0.55rem;
    font-family: var(--term-mono);
    font-size: 0.75rem;
    color: var(--term-muted);
}

/* deposit links row */
.progress-deposit-links {
    text-align: center;
    font-family: var(--term-mono);
    font-size: 0.8rem;
}

.progress-link {
    color: var(--term-text-soft);
    text-decoration: none;
    transition: color 0.15s;
}

.progress-link:hover { color: var(--term-accent); text-decoration: underline; text-underline-offset: 3px; }

.progress-link-letter { color: var(--term-accent); }
.progress-link-letter:hover { color: var(--term-accent-dim); }

.progress-link-sep { margin: 0 0.4rem; color: var(--term-dim); user-select: none; }

@media (max-width: 767.98px) {
    .progress-deposit-links {
        display: flex; flex-direction: column; gap: 0.45rem; align-items: stretch;
    }
    .progress-deposit-links .progress-link {
        display: block; padding: 0.55rem 1rem;
        border: 1px solid var(--term-line-2);
        border-radius: var(--term-radius-sm);
        text-align: center;
    }
    .progress-deposit-links .progress-link:hover {
        border-color: var(--term-accent);
        background: rgba(0, 255, 156, 0.06);
        text-decoration: none;
    }
    .progress-link-sep { display: none; }
}

/* ========================================================================
   New mix / modal
   ======================================================================== */
.progress-new-mix-wrap {
    text-align: right;
    padding-top: 0.6rem;
    margin-top: 4rem;
    border-top: 1px dashed var(--term-line-2);
}

#newMixConfirmModal.modal { z-index: 1100; }
#newMixConfirmModal.modal.show { z-index: 1100; }
#newMixConfirmModal .modal-dialog { margin: 1.75rem auto; }

.new-mix-modal-content,
.modal-content {
    background: var(--term-card) !important;
    border: 1px solid var(--term-line-2) !important;
    border-radius: var(--term-radius) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(0, 255, 156, 0.08) !important;
    color: var(--term-text);
}

.new-mix-modal-title {
    font-family: var(--term-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--term-text);
}

.new-mix-modal-title::before { content: "? "; color: var(--term-accent); }

.new-mix-modal-text {
    font-family: var(--term-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--term-text-soft) !important;
}

/* ========================================================================
   Contact form
   ======================================================================== */
.contact-success-box {
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--term-accent-dim);
    border-left: 2px solid var(--term-accent);
    border-radius: var(--term-radius-sm);
    background: rgba(0, 255, 156, 0.06);
}

.contact-success-text {
    font-family: var(--term-mono);
    font-size: 0.85rem;
    color: var(--term-accent);
    font-weight: 500;
}

.contact-success-text::before { content: "✓ "; }

/* ========================================================================
   Error page
   ======================================================================== */
.site-error-block .site-error-content { min-height: 200px; }

.site-error-code {
    font-family: var(--term-mono);
    font-size: clamp(3.5rem, 13vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--term-accent);
    opacity: 0.6;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 156, 0.4);
}

.site-error-code::before { content: "[ "; opacity: 0.4; }
.site-error-code::after  { content: " ]"; opacity: 0.4; }

.site-error-title {
    font-family: var(--term-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--term-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-error-title::before { content: "$ "; color: var(--term-accent); }

.site-error-message {
    font-family: var(--term-mono);
    font-size: 0.85rem;
    max-width: 28em;
    margin-left: auto; margin-right: auto;
    color: var(--term-muted) !important;
}

.site-error-btn { min-width: 180px; }

/* ========================================================================
   Terms / Privacy text
   ======================================================================== */
.terms-section-title {
    font-family: var(--term-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--term-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}

.terms-section-title::before { content: "› "; color: var(--term-accent); }

.terms-section-text {
    font-family: var(--term-mono);
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--term-text-soft) !important;
}

/* ========================================================================
   Container
   ======================================================================== */
.site-dapp .container { padding: 1rem 15px 3rem; }

/* legacy fallbacks */
main > .container { padding: 70px 15px 20px; }

.footer { background-color: var(--term-bg-2); font-size: .9em; height: 60px; }
.footer > .container { padding-right: 15px; padding-left: 15px; }

.not-set { color: var(--term-amber); font-style: italic; }
.hint-block { display: block; margin-top: 5px; color: var(--term-muted); }

.error-summary {
    color: var(--term-danger);
    background: rgba(255, 85, 119, 0.06);
    border-left: 2px solid var(--term-danger);
    padding: 10px 20px;
    margin: 0 0 15px 0;
    font-family: var(--term-mono);
}

/* ========================================================================
   Small responsive tweaks
   ======================================================================== */
@media (max-width: 575px) {
    .hero-title, .progress-hero-title { font-size: 1.35rem; }
    .progress-section-title { font-size: 0.65rem; }
    .progress-stepper-label { font-size: 0.55rem; }
    .progress-stepper-icon { width: 22px; height: 22px; font-size: 0.65rem; }
    .progress-stepper-line { top: 10px; }
    .site-block-logo { height: 30px !important; }
    .btn-mix, .btn-primary { font-size: 0.82rem !important; letter-spacing: 0.12em !important; padding: 0.75rem 1rem !important; }
}

/* keep cursor blink on specific spots */
.term-caret::after {
    content: "▌";
    color: var(--term-accent);
    margin-left: 2px;
    animation: term-blink 1s steps(2) infinite;
}

/* ========================================================================
   404 shell block
   ======================================================================== */
.site-error-shell {
    display: inline-block;
    text-align: left;
    margin: 0 auto 0.6rem;
    padding: 1rem 1.25rem;
    background: var(--term-bg);
    border: 1px solid var(--term-line-2);
    border-left: 2px solid var(--term-danger);
    border-radius: var(--term-radius-sm);
    font-family: var(--term-mono);
    font-size: 0.82rem;
    color: var(--term-text-soft);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
    overflow-x: auto;
}

.site-error-shell .err  { color: var(--term-danger); }
.site-error-shell .hint { color: var(--term-muted); }
.site-error-shell .hint-link { color: var(--term-accent); }
.site-error-shell .hint-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ========================================================================
   <noscript> warning
   ======================================================================== */
.noscript-warning {
    margin: 0 0 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 180, 84, 0.08);
    border: 1px solid var(--term-amber);
    border-left: 2px solid var(--term-amber);
    border-radius: var(--term-radius-sm);
    color: var(--term-amber);
    font-family: var(--term-mono);
    font-size: 0.82rem;
    line-height: 1.5;
}

.noscript-warning::before { content: "⚠ "; font-weight: 700; }

/* ========================================================================
   "Open in wallet" — primary action on progress page
   ======================================================================== */
.btn-progress-open-wallet {
    background: rgba(0, 255, 156, 0.08) !important;
    border: 1px solid var(--term-accent) !important;
    color: var(--term-accent) !important;
    font-family: var(--term-mono) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 0.55rem 1.1rem !important;
    margin-top: 0.85rem !important;
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.15);
}

.btn-progress-open-wallet::before { content: "▶ "; }

.btn-progress-open-wallet:hover {
    background: var(--term-accent) !important;
    color: var(--term-bg) !important;
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.5);
    transform: translateY(-1px);
}

/* ========================================================================
   Stepper labels — hide non-active labels on tiny screens
   ======================================================================== */
@media (max-width: 480px) {
    .progress-stepper-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 5.5rem;
    }
    .progress-stepper-pending .progress-stepper-label,
    .progress-stepper-done .progress-stepper-label {
        opacity: 0.55;
    }
}
