:root {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #ffa347, #ff6b00);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 520px;
    margin: 48px auto;
    padding: 0 16px;
}

.card {
    background: #17171c;
    border: 1px solid #2a2a33;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

label {
    display: block;
    margin: 10px 0 6px;
    color: #cfcfda;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2a2a33;
    background: #0f0f14;
    color: #fff;
    box-sizing: border-box;
}

.button {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #000;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    box-sizing: border-box;
}

.button.secondary {
    background: #2a2a33;
    color: #fff;
}

.hidden {
    display: none;
}

.divider {
    height: 1px;
    background: #2a2a33;
    margin: 14px 0;
}

.tiny {
    font-size: 12px;
    color: #b8b8c5;
    margin-top: 10px;
}

.inputRow {
    display: flex;
    gap: 8px;
    align-items: center;
}

.miniBtn {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a2a33;
    background: #0f0f14;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.row .button {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.statusArea {
    margin-top: 10px;
    min-height: 34px;
}

.errorText {
    color: #ffb4b4;
}

.spinner.small {
    width: 16px;
    height: 16px;
    border-width: 3px;
    display: none;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a2a33;
    background: #0f0f14;
    color: #cfcfda;
    cursor: pointer;
    font-weight: 600;
}

.tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.optionalLabel {
    color: #b8b8c5;
}

#actions {
    width: 100%;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #2a2a33;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-top: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}