/* ==========================================================================
   BTCSWAP.FUN — CLEAN FINTECH DARK MODE DESIGN SYSTEM
   Professional Non-Custodial Exchange • ChangeNow API Architecture
   ========================================================================== */

:root {
    /* Pure Matte Dark Palette */
    --bg-base: #07080B;
    --bg-surface: #0D0F16;
    --bg-surface-elevated: #131722;
    --bg-card: #0E111A;
    --bg-input: #0A0C13;

    /* Crisp Precision Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.10);
    --border-focus: #00D26A;

    /* Disciplined Accents */
    --green-accent: #00D26A;
    --green-glow: rgba(0, 210, 106, 0.25);
    --btc-orange: #F7931A;
    --blue-accent: #3B82F6;
    --danger: #EF4444;

    /* Typographic Colors */
    --text-pure: #FFFFFF;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Ambient Lighting */
.ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
}

.glow-orb.top-left {
    top: -100px;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.08), transparent 70%);
}

.glow-orb.center-right {
    top: 400px;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.05), transparent 75%);
}

.subtle-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-mono);
}

.accent-text {
    color: var(--green-accent);
}

.text-green {
    color: var(--green-accent);
}

.text-orange {
    color: var(--btc-orange);
}

.text-highlight {
    color: var(--text-pure);
    font-weight: 600;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(7, 8, 11, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    padding: 14px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-glyph {
    color: var(--green-accent);
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-dim {
    color: var(--text-muted);
    font-weight: 500;
}

.brand-sub {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-pure);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.pill-btn:hover {
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-surface-elevated);
}

.icon-x {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-accent);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-action:hover {
    background: #00E676;
    transform: translateY(-1px);
}

.btn-action.full-width {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* ==========================================================================
   STATUS RIBBON (MINIMALIST TERMINAL STRIP)
   ========================================================================== */
.status-ribbon {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    font-size: 12px;
}

.ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator-green {
    width: 6px;
    height: 6px;
    background: var(--green-accent);
    border-radius: 50%;
}

.ribbon-label {
    color: var(--text-muted);
}

.ribbon-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

.ribbon-change {
    color: var(--green-accent);
    font-size: 11px;
    font-weight: 600;
}

.ribbon-sub {
    color: var(--text-muted);
    font-size: 11px;
}

.ribbon-divider {
    width: 1px;
    height: 12px;
    background: var(--border-subtle);
}

/* ==========================================================================
   HERO & SWAP BOX
   ========================================================================== */
.hero-section {
    padding: 60px 0 70px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 210, 106, 0.07);
    border: 1px solid rgba(0, 210, 106, 0.2);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green-accent);
    margin-bottom: 20px;
}

.tag-bullet {
    width: 5px;
    height: 5px;
    background: var(--green-accent);
    border-radius: 50%;
}

.hero-heading {
    font-size: 44px;
    line-height: 1.15;
    color: var(--text-pure);
    margin-bottom: 18px;
    font-weight: 800;
}

.hero-lead {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 30px;
}

.hero-lead strong {
    color: var(--text-primary);
}

/* Value Matrix */
.value-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.matrix-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.matrix-icon {
    width: 22px;
    height: 22px;
    color: var(--green-accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.svg-stroke {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.matrix-text {
    display: flex;
    flex-direction: column;
}

.matrix-text strong {
    font-size: 13px;
    color: var(--text-pure);
    line-height: 1.25;
}

.matrix-text span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.cta-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: #181D2B;
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-tertiary:hover {
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   THE SWAP BOX (CHANGENOW AESTHETIC)
   ========================================================================== */
.swap-box-wrapper {
    position: relative;
}

.swap-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Swap Box Header */
.swap-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rate-mode-selector {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px;
}

.rate-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.rate-mode-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--text-pure);
}

.rate-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-accent);
}

.engine-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Asset Input Panel */
.asset-input-panel {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    transition: border-color 0.15s ease;
}

.asset-input-panel:hover, .asset-input-panel:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.panel-title {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.min-limit-text {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.estimated-text {
    font-size: 11px;
    color: var(--text-muted);
}

.panel-core {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.numeric-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.numeric-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    outline: none;
    line-height: 1.1;
}

.numeric-input::placeholder {
    color: var(--text-muted);
}

.numeric-input::-webkit-inner-spin-button,
.numeric-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.token-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 7px 11px;
    cursor: pointer;
    color: var(--text-pure);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.token-select-trigger:hover {
    background: var(--bg-surface-elevated);
    border-color: rgba(255, 255, 255, 0.2);
}

.token-select-trigger.bswap-highlight {
    border-color: rgba(0, 210, 106, 0.3);
}

.token-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
}

.token-bswap-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}

.token-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.token-symbol {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.token-chain {
    font-size: 10px;
    color: var(--text-muted);
}

.icon-caret {
    width: 10px;
    height: 10px;
    color: var(--text-muted);
    margin-left: 2px;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11.5px;
}

.usd-reference {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.rebate-pill {
    font-size: 10.5px;
    color: var(--green-accent);
    background: rgba(0, 210, 106, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Reverse Pair Button */
.reverse-row {
    display: flex;
    align-items: center;
    margin: -8px 0;
    position: relative;
    z-index: 5;
}

.reverse-rule {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.reverse-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reverse-btn:hover {
    color: var(--text-pure);
    border-color: var(--green-accent);
    transform: rotate(180deg);
}

.reverse-svg {
    width: 16px;
    height: 16px;
}

/* Quote Info Box */
.quote-info-box {
    background: rgba(10, 12, 19, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin: 14px 0;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.quote-row:last-child {
    margin-bottom: 0;
}

.quote-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Recipient Wallet Section */
.address-input-section {
    margin-bottom: 16px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.address-tag {
    color: var(--text-muted);
    font-weight: 400;
}

.address-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.address-bar input, .extra-id-section input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 11px 60px 11px 13px;
    color: var(--text-pure);
    font-family: var(--font-mono);
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.15s ease;
}

.extra-id-section input {
    padding-right: 13px;
    margin-top: 5px;
}

.address-bar input:focus, .extra-id-section input:focus {
    border-color: var(--green-accent);
}

.paste-action-btn {
    position: absolute;
    right: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.paste-action-btn:hover {
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.25);
}

.extra-id-section {
    margin-top: 8px;
}

.extra-id-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Alert Box */
.alert-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 11.5px;
    color: #FCA5A5;
    margin-bottom: 14px;
}

/* Primary Execution Button (Solid ChangeNow Green) */
.btn-execute {
    width: 100%;
    background: var(--green-accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-execute:hover {
    background: #00E676;
    transform: translateY(-1px);
}

.btn-execute:active {
    transform: translateY(0);
}

.btn-execute:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.box-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Loading Ring */
.loading-ring {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 210, 106, 0.2);
    border-top-color: var(--green-accent);
    border-radius: 50%;
    animation: ringSpin 0.7s linear infinite;
    display: none;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   METRIC STRIP
   ========================================================================== */
.metric-section {
    padding: 10px 0 50px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.02em;
}

.metric-note {
    font-size: 11.5px;
    color: var(--text-secondary);
}

/* ==========================================================================
   HOLDER VALUE SECTION
   ========================================================================== */
.holder-section {
    padding: 70px 0;
}

.section-heading-block {
    text-align: center;
    margin-bottom: 45px;
}

.sub-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--green-accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-h2 {
    font-size: 34px;
    color: var(--text-pure);
    margin-bottom: 12px;
}

.section-lead {
    max-width: 620px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-accent);
    margin-bottom: 16px;
}

.card-icon-box .svg-stroke {
    width: 20px;
    height: 20px;
}

.feature-title {
    font-size: 16.5px;
    color: var(--text-pure);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.feature-pill {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-pill span {
    color: var(--text-muted);
}

.feature-pill strong {
    color: var(--text-primary);
}

/* ==========================================================================
   YIELD SIMULATOR
   ========================================================================== */
.simulator-section {
    padding: 60px 0;
}

.simulator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.simulator-header {
    text-align: center;
    margin-bottom: 35px;
}

.simulator-subtitle {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 540px;
    margin: 8px auto 0;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 45px;
    align-items: center;
}

.control-box {
    margin-bottom: 28px;
}

.control-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 600;
}

.control-readout {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-pure);
}

/* Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 4px;
    outline: none;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 210, 106, 0.4);
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.control-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 6px;
}

.calculation-footnote {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Projection Column */
.projection-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.projection-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.projection-primary {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 4px;
}

.currency-prefix {
    font-size: 24px;
    font-weight: 800;
    color: var(--green-accent);
}

.primary-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1;
}

.period-text {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-left: 4px;
}

.projection-crypto-row {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 18px;
}

.projection-crypto-row strong {
    color: var(--text-pure);
}

.projection-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    margin-bottom: 22px;
    font-size: 12.5px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.breakdown-row strong {
    color: var(--text-pure);
    font-family: var(--font-mono);
}

.breakdown-row.highlight-row {
    background: rgba(0, 210, 106, 0.08);
    padding: 6px 10px;
    border-radius: 4px;
}

.btn-full-action {
    display: block;
    width: 100%;
    background: var(--green-accent);
    color: #000;
    font-weight: 700;
    font-size: 13.5px;
    padding: 13px;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-full-action:hover {
    background: #00E676;
}

/* ==========================================================================
   TOKENOMICS
   ========================================================================== */
.tokenomics-section {
    padding: 70px 0;
}

.tokenomics-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 35px;
}

.token-spec-card, .token-alloc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 30px;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.spec-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    color: var(--green-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.spec-identity h3 {
    font-size: 20px;
    color: var(--text-pure);
}

.spec-identity span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.spec-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12.5px;
}

.entry-key {
    color: var(--text-secondary);
}

.entry-val {
    color: var(--text-pure);
    font-weight: 500;
}

.copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hash-text {
    font-size: 11.5px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 3px 6px;
    border-radius: 4px;
}

.copy-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-trigger:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Allocation Bars */
.alloc-heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-pure);
}

.alloc-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.alloc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.alloc-meta span {
    color: var(--text-secondary);
}

.alloc-meta strong {
    color: var(--text-pure);
}

.bar-track {
    height: 7px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
}

.fill-accent { background: var(--green-accent); }
.fill-green { background: #10B981; }
.fill-blue { background: #3B82F6; }
.fill-slate { background: #64748B; }

.alloc-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.alloc-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11.5px;
}

.feat-check {
    color: var(--green-accent);
    font-weight: 700;
}

.alloc-feat-item strong {
    color: var(--text-pure);
    display: block;
}

.alloc-feat-item span {
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    padding: 60px 0 80px;
}

.faq-container {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-row.active {
    border-color: rgba(255, 255, 255, 0.18);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 20px;
    color: var(--text-pure);
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-symbol {
    font-size: 18px;
    color: var(--green-accent);
    transition: transform 0.15s ease;
}

.faq-row.active .faq-symbol {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    display: none;
}

.faq-row.active .faq-content {
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 50px 0 35px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.brand-glyph-sm {
    color: var(--green-accent);
    font-size: 16px;
    font-weight: 800;
}

.brand-text-sm {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-pure);
}

.footer-summary {
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--green-accent);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--green-accent);
    background: rgba(0, 210, 106, 0.08);
    border: 1px solid rgba(0, 210, 106, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.system-dot {
    width: 5px;
    height: 5px;
    background: var(--green-accent);
    border-radius: 50%;
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   CURRENCY MODAL (1,280+ CURRENCIES)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.modal-h3 {
    font-size: 16.5px;
    color: var(--text-pure);
}

.modal-meta {
    font-size: 11.5px;
    color: var(--text-muted);
}

.modal-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.modal-dismiss:hover {
    color: var(--text-pure);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.search-svg {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 34px 10px 36px;
    color: var(--text-pure);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-box input:focus {
    border-color: var(--green-accent);
}

.clear-search {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.filter-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill.active {
    background: rgba(0, 210, 106, 0.12);
    border-color: var(--green-accent);
    color: var(--green-accent);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.coin-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.coin-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

.coin-chip.chip-bswap {
    border-color: rgba(0, 210, 106, 0.4);
    color: var(--green-accent);
}

.coin-chip img, .coin-chip .chip-icon-bswap {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.chip-icon-bswap {
    background: var(--green-accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tokens-scroll-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tokens-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.tokens-scroll-list::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: 4px;
}

.currency-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.1s ease;
}

.currency-row-item:hover {
    background: var(--bg-surface-elevated);
}

.currency-row-item.selected {
    background: rgba(0, 210, 106, 0.08);
    border-left: 2px solid var(--green-accent);
}

.row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
}

.row-names {
    display: flex;
    flex-direction: column;
}

.row-ticker {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.15;
}

.row-fullname {
    font-size: 10.5px;
    color: var(--text-muted);
}

.row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.network-badge {
    font-size: 9.5px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   ORDER DEPOSIT MODAL
   ========================================================================== */
.order-window {
    max-width: 500px;
}

.order-status-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 6px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10.5px;
    font-weight: 700;
}

.step-item.active {
    color: var(--green-accent);
}

.step-item.active .step-circle {
    background: var(--green-accent);
    color: #000;
    border-color: var(--green-accent);
}

.step-item.finished {
    color: var(--green-accent);
}

.step-item.finished .step-circle {
    background: var(--green-accent);
    color: #000;
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    margin: 0 4px 12px;
}

.deposit-card {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
}

.deposit-prompt {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deposit-hash-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}

.deposit-label {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.deposit-val {
    font-size: 13px;
    color: var(--text-pure);
    word-break: break-all;
    line-height: 1.35;
    margin-bottom: 10px;
}

.btn-copy-deposit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    color: var(--green-accent);
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy-deposit:hover {
    border-color: var(--green-accent);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.qr-code-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    background: #FFF;
    padding: 6px;
}

.qr-hint {
    font-size: 10.5px;
    color: var(--text-muted);
}

.order-details-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.order-row strong {
    color: var(--text-pure);
}

.truncated {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-indicator-text {
    color: var(--green-accent);
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions button {
    flex: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-copy {
        text-align: center;
    }

    .section-tag {
        margin: 0 auto 16px;
    }

    .value-matrix {
        max-width: 560px;
        margin: 0 auto 24px;
    }

    .cta-cluster {
        justify-content: center;
    }

    .swap-box-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tokenomics-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-heading {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .value-matrix {
        grid-template-columns: 1fr;
    }

    .simulator-card {
        padding: 24px;
    }
}
