.go-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#input-container {
    width: 100%;
    position: relative;
}

.alias-link-field {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

#reset-btn {
    top: 50%;
    transform: translateY(-50%);
}

.alias-prefix {
    color: #414141;
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 1.4px;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
}

#alias-input {
    width: auto;
    min-width: 0;
    flex: 0 1 210px;
    font-size: 1rem;
    font-weight: 200;
    text-align: left;
    padding: 12px 0;
}

#alias-input:focus {
    border-bottom-color: #fff;
}

#alias-input::placeholder {
    color: #414141;
}

.alias-note {
    color: #414141;
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 1.2px;
    line-height: 1.5;
    white-space: nowrap;
    margin-left: 8px;
    pointer-events: none;
}

#shorten-btn {
    margin-top: 6px;
}

/* ── Result ───────────────────────────────── */

#result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.14s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

#result-wrapper.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    max-height: 400px;
}

#short-url-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1.4px solid #414141;
    border-radius: 14px;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 280px;
    max-width: 100%;
}

#short-url-label {
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    color: #414141;
}

#short-url {
    font-size: 1.6rem;
    font-weight: 200;
    color: #fff;
    letter-spacing: 1.4px;
    user-select: all;
    cursor: text;
    overflow-wrap: anywhere;
    text-align: center;
}

/* ── Buttons ──────────────────────────────── */

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.action-btn.copied {
    border-color: #4caf50;
    color: #4caf50;
    background: transparent;
}

/* ── Error ────────────────────────────────── */

#error-msg {
    margin-top: 10px;
    max-width: 520px;
    line-height: 1.5;
}

/* ── Loading ──────────────────────────────── */

#loading {
    display: none;
    margin-top: 10px;
}

#loading.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 1.4px solid #414141;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading span {
    font-size: 0.8rem;
    color: #414141;
    letter-spacing: 1.4px;
}

@media (max-width: 560px) {
    #main-wrapper {
        padding-top: 28vh;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #short-url-box {
        padding: 22px 18px;
    }

    #short-url {
        font-size: 1.15rem;
    }
}
