:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --text: #e4e4e7;
    --text-muted: #71717a;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --border: #27272a;
    --success: #10b981;
    --code: #18181b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}
header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.header-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.header-nav a,
.header-nav a:link,
.header-nav a:visited,
.header-nav a:active {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    padding: 1rem;
    border-radius: 6px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.header-nav a:hover {
    background: var(--code);
}
h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 1rem;
    vertical-align: middle;
}
.api-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin: 1rem 0 0.5rem;
}
p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.endpoint {
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
    font-family: 'Courier New', monospace;
    line-height: 1;
    box-sizing: border-box;
}
.method {
    color: var(--success);
    font-weight: bold;
}
.path {
    color: var(--text);
}
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin-top: 1rem;
    transition: background 0.2s;
}
.github-link:hover {
    background: var(--border);
    text-decoration: none;
}
.code-block {
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.features-list {
    color: var(--text-muted);
    margin-left: 1.5rem;
}
.endpoint-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.endpoint-note {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.endpoint-note-sm {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}
.discovery-h3 a {
    text-decoration: none;
    color: inherit;
}
.quickstart-heading {
    margin-top: 1.5rem;
}
.code-pre {
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.8rem;
    overflow-x: auto;
    color: var(--text-muted);
}

/* Exchange page styles */
.price-up { color: #10b981; }
.price-down { color: #ef4444; }
.price-neutral { color: #6b7280; }
.loading { color: #9ca3af; font-style: italic; }
.error { color: #ef4444; }
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}
input.endpoint {
    font-family: 'Courier New', monospace;
    color: var(--text);
    background: var(--code);
    width: 100%;
    margin-bottom: 0.5rem;
}
/* Hide browser default number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.cursor-pointer { cursor: pointer; }
.deposit-estimate {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}
.deposit-estimate.visible { display: block; }

/* Blockchain verification styles */
.blockchain-status {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}
.blockchain-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.blockchain-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.blockchain-info {
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
}
.blockchain-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}
.blockchain-detail:last-child {
    border-bottom: none;
}
.blockchain-label {
    color: var(--text-muted);
    font-weight: 500;
}
.blockchain-value {
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}
.deposit-error {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #fee;
    border-radius: 4px;
    color: #c00;
}
.deposit-error.visible { display: block; }
.deposit-instructions {
    display: none;
    margin-top: 1rem;
}
.deposit-instructions.visible { display: block; }
.copy-feedback {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}
.copy-feedback.visible { display: block; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
}
.form-help {
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

/* Explorer transaction styles */
.block-transactions {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.transactions-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.transaction-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
}
.transaction-item:last-child {
    margin-bottom: 0;
}
.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.tx-type {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}
.tx-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
}
.tx-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}
.tx-status.confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.tx-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.tx-marketplace-details {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--code);
    border-radius: 4px;
}
.tx-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}
.tx-detail-item:last-child {
    border-bottom: none;
}
.tx-detail-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}
.tx-detail-value {
    color: var(--text);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}
.no-transactions {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* Toggle switch for skip empty blocks */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    margin-right: 0.75rem;
}
.toggle-switch input {
    display: none;
}
.toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background: #fff;
}
.toggle-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    user-select: none;
}

/* Copy button styles */
.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    margin-left: 0.25rem;
    border-radius: 3px;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    color: var(--text-muted);
}
.copy-btn:hover {
    opacity: 1;
    background: var(--border);
}
.result-hash .copy-btn,
.tx-hash .copy-btn {
    vertical-align: middle;
}

/* Block card expand/collapse */
.block-collapsed {
    cursor: pointer;
}
.block-collapsed:hover {
    border-color: var(--primary);
}
.block-expanded {
    border-color: var(--primary);
}
/* Transaction direction badges */
.dir-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}
.dir-out {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.dir-in {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.dir-self {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.expand-indicator {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.block-detail-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Activity chart */
#activity-chart-container {
    height: 280px;
    margin-top: 1rem;
}

/* Explorer-specific styles */
.explorer-container {
    max-width: 1200px;
    padding: 2rem 1rem;
}
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.stat-value {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--text);
}
.stat-icon {
    background: var(--code);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}
.stat-icon-secondary {
    color: var(--secondary);
}
.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.search-row {
    display: flex;
    gap: 0.75rem;
}
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.blocks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.block-item {
    padding: 1rem;
}
.block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.block-hash {
    font-size: 0.875rem;
    word-break: break-all;
}
.block-meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.block-timestamp {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.result-hash {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    word-break: break-all;
}
.result-detail {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.result-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.loading-text {
    color: var(--text-muted);
}
.error-text {
    color: var(--error-color);
}
.fade-in {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.icon-sm {
    width: 1rem;
    height: 1rem;
}
.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}
.icon-lg {
    width: 1.5rem;
    height: 1rem;
}
.badge-primary {
    background: var(--primary);
    color: white;
}
.flex-row {
    display: flex;
    gap: 0.5rem;
}
.result-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.loading-blocks {
    color: var(--text-muted);
}
.flex-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.result-timestamp {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.node-status-value {
    font-size: 1.125rem;
    color: var(--text);
}
.flex-1 {
    flex: 1;
}
.hidden {
    display: none;
}
/* Base button styles - reset browser defaults */
button {
    cursor: pointer;
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    line-height: 1;
    transition: background 0.2s;
    box-sizing: border-box;
}
button:active {
    transform: translateY(1px);
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--secondary);
    text-decoration: none;
}
.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    background: var(--code);
}
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

/* Marketplace page styles */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    background: var(--code);
    color: var(--text);
}
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46;
    border-radius: 22px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #d4d4d8;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
    background-color: #fff;
}

.status-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.status-filter label {
    color: var(--text-muted);
    font-size: 0.875rem;
}
/* Stats dashboard grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Provider reputation */
.reputation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.rep-score {
    font-weight: 700;
    color: var(--primary);
}
.rep-level {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.rep-level.rep-elite { color: #f59e0b; }
.rep-level.rep-trusted { color: #10b981; }
.rep-level.rep-established { color: #3b82f6; }
.rep-level.rep-growing { color: #8b5cf6; }

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Health check grid */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.health-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.health-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.health-status.up {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.health-status.down {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}
.health-status.loading {
    background: #71717a;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.health-name {
    font-weight: 500;
    font-size: 0.875rem;
}
.health-latency {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.live-indicator {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.live-feed-list {
    max-height: 300px;
    overflow-y: auto;
}
.live-feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.live-feed-item:hover {
    background: rgba(255,255,255,0.03);
}
.live-feed-item:last-child {
    border-bottom: none;
}
.live-feed-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: var(--code);
    color: var(--text-muted);
    white-space: nowrap;
}
.live-feed-hash {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-addresses-table {
    margin-top: 1rem;
    overflow-x: auto;
}
.top-addresses-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.top-addresses-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.top-addresses-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
}
.top-addresses-table tr:hover td {
    background: rgba(255,255,255,0.03);
}
.top-addresses-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 40px;
}
.top-addresses-table td a {
    color: var(--text);
    text-decoration: none;
}
.offer-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.form-row label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
    padding: 0.6rem 0.75rem;
    background: var(--code);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-primary {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary:hover {
    background: var(--primary-dark);
}

.block-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.block-list-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.block-list-table tr:last-child td {
    border-bottom: none;
}
.block-list-table td:first-child {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100px;
    white-space: nowrap;
}
.block-list-table td:last-child {
    font-family: var(--font-mono);
    word-break: break-all;
}

.top-addresses-table td a:hover {
    text-decoration: underline;
}

.live-feed-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-filter select {
    background: var(--code);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
}
.offer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.offer-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}
.offer-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.offer-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.offer-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.offer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.offer-detail {
    background: var(--code);
    padding: 0.75rem;
    border-radius: 4px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.offer-detail-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.offer-detail-value {
    color: var(--text);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.2;
    overflow-wrap: break-word;
    max-width: 100%;
}

.offer-details-list {
    background: var(--code);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.offer-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.offer-list-item:last-child {
    border-bottom: none;
}
.offer-list-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 100px;
}
.offer-list-value {
    color: var(--text);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}
.offer-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.offer-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.offer-rating-value {
    color: var(--success);
    font-weight: 600;
}
.no-offers {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.no-offers-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive marketplace styles */
@media (max-width: 768px) {
    .offer-details {
        grid-template-columns: 1fr;
    }
    .offer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .offer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-buttons {
        flex-direction: column;
    }
    .filter-btn {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .health-grid {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .top-addresses-table table {
        font-size: 0.75rem;
    }
    .top-addresses-table td {
        padding: 0.4rem 0.3rem;
    }
    .live-feed-item {
        padding: 0.5rem 0.3rem;
    }
    .form-row input,
    .form-row select,
    .form-row textarea {
        font-size: 16px; /* prevent iOS zoom */
    }
    .search-row {
        flex-direction: column;
    }
    .search-row button {
        width: 100%;
    }
    .block-list-table td:first-child {
        width: 80px;
    }
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .result-hash {
        font-size: 0.75rem;
    }
    .transaction-item .tx-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    #activity-chart-container {
        height: 200px;
    }
}

/* ═══ Exchange page — compute value model ═══ */

.value-hero {
    text-align: center;
    padding: 2rem;
}
.value-tagline {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0;
}
.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
}
.value-label {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}
.value-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}
.value-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.value-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.value-list li {
    padding: 0.25rem 0;
    color: var(--text-muted);
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table td {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.info-table td:first-child {
    color: var(--text-muted);
    width: 40%;
}
.total-row td {
    border-bottom: none;
    border-top: 1px solid var(--border);
}
.big-stat {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0;
}
.muted-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.fee-card {
    text-align: center;
}
.fee-card .big-stat {
    color: var(--primary);
}
.early-bird {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border: 2px solid var(--primary);
}
.giveaway-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}
.peg-card {
    text-align: center;
}
.peg-verdict {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}
.peg-bad { color: var(--error, #ef4444); }
.peg-warning { color: var(--warning, #f59e0b); }
.peg-good { color: var(--success, #22c55e); }
.vision-card {
    text-align: center;
    padding: 2rem;
}
.vision-card p {
    font-size: 1.05rem;
    margin: 0.5rem 0;
}

/* Exchange page — live price grid */
.price-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.price-cell {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.25rem 0;
}
.price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
@media (max-width: 600px) {
    .price-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Exchange hero — ETH equivalent */
.value-eth {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}
.price-ticker {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    font-variant-numeric: tabular-nums;
}

/* Deposit status badges */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant: tabular-nums;
}
.status-ok {
    background: #2d5a2d;
    color: #b0e0b0;
}
.status-bad {
    background: #5a2d2d;
    color: #e0b0b0;
}
.status-pending {
    background: #5a4d2d;
    color: #e0d8b0;
}

/* Exchange page — bridge form */
.bridge-card {
    border: 2px solid var(--primary);
}
.wallet-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.connected-account {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.bridge-form {
    margin: 1.5rem 0;
}
.form-row {
    margin-bottom: 1rem;
}
.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}
.btn-primary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: var(--surface);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover {
    opacity: 0.9;
}
.estimate-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
}
.estimate-ait {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}
.estimate-breakdown {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.estimate-breakdown p {
    margin: 0.25rem 0;
}
.error-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--error-bg, #fee);
    color: var(--error, #c00);
    border-radius: 6px;
}
.instructions-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.deposit-address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    cursor: pointer;
    margin: 0.5rem 0;
}
.copy-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 1rem;
}
.copy-feedback {
    color: var(--success);
    font-size: 0.85rem;
    display: none;
}
.bridge-status-row {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
