/* =========================================
   LAUNCH TOKEN UI (Floating Window)
   ========================================= */
#launch-token-widget * {
    box-sizing: border-box;
}

#launch-token-widget {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-height: calc(100vh - 100px);
    background: transparent;
    border: 1px solid var(--color-accent-magenta);
    /* Using magenta to differentiate from Trade Hub cyan */
    border-radius: 8px;
    z-index: 500;
    pointer-events: auto;
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.12), 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
}

/* Custom Scrollbar */
.launch-token-body::-webkit-scrollbar {
    width: 6px;
}

.launch-token-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.launch-token-body::-webkit-scrollbar-thumb {
    background: var(--color-accent-magenta);
    border-radius: 3px;
}

.launch-token-body::-webkit-scrollbar-thumb:hover {
    background: #d946ef;
}

#launch-token-widget.minimized .launch-token-body {
    display: none !important;
}

.launch-token-handle {
    padding: 10px 15px;
    background: transparent;
    border-bottom: 1px solid rgba(217, 70, 239, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.launch-token-handle:active {
    cursor: grabbing;
}

.launch-token-title {
    font-size: 12px;
    color: var(--color-accent-magenta);
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
}

.launch-token-min-btn,
.launch-token-close-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.launch-token-min-btn:hover {
    color: #fff;
    border-color: var(--color-accent-magenta);
}

.launch-token-close-btn:hover {
    color: #ff5f57;
    border-color: #ff5f57;
}

.launch-token-body {
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Override existing form styles if needed to fit */
#tokenLaunchForm {
    width: 100%;
}