:root {
    --bg-color: #050505;
    --terminal-bg: #0a0a0a;
    --accent-color: #00f3ff;
    /* Cyan */
    --accent-secondary: #bc13fe;
    /* Neon Purple */
    --text-primary: #ffffff;
    --text-dim: #666666;
    --grid-color: rgba(0, 243, 255, 0.05);
    --font-main: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    /* No scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.ambient-light {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 243, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(188, 19, 254, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Main Layout */
.viewport-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    max-width: 1600px;
}

/* Left Side: 3D Showcase */
.showcase-area {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    perspective: 1000px;
}

.header-minimal h1 {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.blink {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

/* 3D Scene */
.scene-3d {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card-container {
    display: flex;
    gap: 3rem;
    transform-style: preserve-3d;
}

.card-3d {
    width: 350px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Fast transition for mouse follow */
    cursor: pointer;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-visual {
    flex-grow: 1;
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.card-3d:hover .card-visual img {
    transform: scale(1.1);
    opacity: 1;
}

.card-3d:hover .card-face {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.card-3d.selected .card-face {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
}

.chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37, #f9e38e);
    border-radius: 6px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(transparent,
            transparent 5px,
            rgba(0, 0, 0, 0.1) 5px,
            rgba(0, 0, 0, 0.1) 6px);
}

.asset-name {
    font-size: 2.5rem;
    font-weight: 700;
    word-break: break-all;
    line-height: 1;
}

.tld {
    color: var(--text-dim);
    font-size: 1.5rem;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rarity {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.select-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card-3d.selected .select-indicator {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    content: "SELECTED";
}

.shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 60%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
    pointer-events: none;
}

.card-3d:hover .shine {
    transform: translateX(100%);
    transition: transform 0.8s;
}

/* Right Side: Terminal */
.terminal-area {
    flex: 0.8;
    background: var(--terminal-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-content {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.terminal-header h3 {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.terminal-controls span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    margin-left: 5px;
}

.selection-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.selection-display.empty .placeholder {
    display: block;
}

.selection-display .placeholder {
    display: none;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-tag {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Form Styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.full-width {
    grid-column: span 2;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.currency-wrapper {
    display: flex;
    align-items: center;
}

.currency-symbol {
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.cyber-btn {
    width: 100%;
    background: var(--text-primary);
    color: #000;
    border: none;
    padding: 1.25rem;
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.terminal-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #333;
    text-transform: uppercase;
}

.instruction-text {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .viewport-container {
        flex-direction: column;
        overflow-y: auto;
    }

    body {
        overflow-y: auto;
        height: auto;
        display: block;
    }

    .showcase-area {
        min-height: 60vh;
        padding: 2rem;
    }

    .terminal-area {
        min-height: 50vh;
        padding: 2rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-container {
        flex-direction: column;
        gap: 2rem;
    }

    .card-3d {
        width: 280px;
        height: 400px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--terminal-bg);
    border: 1px solid var(--accent-color);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.modal-body p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.transaction-id {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.transaction-id span:first-child {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.subtext {
    font-size: 0.75rem;
    opacity: 0.7;
}