:root {
    --crypto-deep: #0f1f1c;
    --crypto-panel: rgba(255, 255, 255, 0.88);
    --crypto-ink: #13231f;
    --crypto-muted: #51665f;
    --crypto-accent: #0db58f;
    --crypto-accent-2: #ffb357;
    --crypto-line: rgba(12, 27, 24, 0.15);
    --crypto-glow: rgba(13, 181, 143, 0.25);
    --crypto-shadow: 0 30px 60px rgba(15, 31, 28, 0.18);
}

body.crypto-lab {
    background: radial-gradient(circle at 18% 12%, rgba(13, 181, 143, 0.12), transparent 45%),
        radial-gradient(circle at 82% 18%, rgba(255, 179, 87, 0.16), transparent 45%),
        linear-gradient(145deg, #f6f1ea 0%, #efe7dc 55%, #f7f3ed 100%);
    color: var(--crypto-ink);
}

.crypto-orbit {
    position: fixed;
    inset: -25% -25%;
    pointer-events: none;
    background: conic-gradient(from 120deg, rgba(13, 181, 143, 0.15), rgba(255, 179, 87, 0.12), rgba(13, 181, 143, 0.12));
    opacity: 0.25;
    filter: blur(70px);
    animation: orbit-spin 120s linear infinite;
    z-index: 0;
}

.crypto-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(transparent 95%, rgba(12, 27, 24, 0.06) 96%),
        linear-gradient(90deg, transparent 95%, rgba(12, 27, 24, 0.06) 96%);
    background-size: 48px 48px;
    opacity: 0.4;
    z-index: 0;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.crypto-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.crypto-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.crypto-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-brand a {
    font-family: var(--font-display);
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.crypto-badge {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13, 181, 143, 0.15);
    color: var(--crypto-accent);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.crypto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crypto-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crypto-btn.primary {
    background: var(--crypto-accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(13, 181, 143, 0.25);
}

.crypto-btn.ghost {
    background: transparent;
    border-color: var(--crypto-line);
    color: var(--crypto-ink);
}

.crypto-btn:active {
    transform: translateY(1px);
}

.crypto-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.crypto-panel {
    background: var(--crypto-panel);
    border-radius: 24px;
    border: 1px solid var(--crypto-line);
    padding: 22px;
    box-shadow: var(--crypto-shadow);
    backdrop-filter: blur(10px);
    animation: panel-in 0.6s ease both;
}

.crypto-panel h2 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
}

.crypto-panel h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 18px 0 8px;
}

.crypto-panel p {
    color: var(--crypto-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.crypto-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.crypto-field label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crypto-muted);
}

.crypto-field input,
.crypto-field textarea {
    border-radius: 14px;
    border: 1px solid var(--crypto-line);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.crypto-field input:focus,
.crypto-field textarea:focus {
    outline: 2px solid rgba(13, 181, 143, 0.3);
    border-color: var(--crypto-accent);
}

.crypto-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-slider input[type="range"] {
    flex: 1;
}

.crypto-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(13, 181, 143, 0.12);
    color: var(--crypto-accent);
    font-size: 12px;
    font-weight: 600;
}

.crypto-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.crypto-toggle input {
    width: 18px;
    height: 18px;
}

.crypto-log {
    background: var(--crypto-deep);
    color: #d7f7ed;
    border-radius: 16px;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.5;
    height: 240px;
    overflow-y: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.crypto-log .log-line {
    padding: 2px 0;
    white-space: nowrap;
}

.crypto-log .log-line.error {
    color: #ffb357;
}

.crypto-live {
    display: grid;
    gap: 10px;
    background: rgba(15, 31, 28, 0.06);
    border-radius: 18px;
    padding: 14px;
}

.crypto-live .live-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.crypto-live .live-line span {
    word-break: break-all;
}

.crypto-command {
    background: rgba(15, 31, 28, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #1c302c;
    overflow-x: auto;
}

.crypto-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--crypto-muted);
}

.crypto-status strong {
    color: var(--crypto-accent);
    font-size: 14px;
}

.crypto-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--crypto-muted);
    font-size: 13px;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
    .crypto-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .crypto-actions {
        width: 100%;
    }

    .crypto-btn {
        flex: 1;
        text-align: center;
    }
}
