* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #000000;
    color: #d7e1e8;
    margin: 0;
    padding: 16px;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(8, 8, 8, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.01);
    max-width: 520px;
    width: 100%;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 22px;
    text-align: center;
    color: #eef6fb;
}

.subtitle {
    color: #9aa7b2;
    text-align: center;
    margin-bottom: 28px;
    font-size: 13px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: #9aa7b2;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    background-color: #0b0d0f;
    color: #e6eef3;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    flex: 1;
    min-width: 0;
}

input[type="text"]:focus {
    border-color: rgba(0, 189, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 189, 255, 0.06);
}

input[type="text"]::placeholder {
    color: #7d8890;
}

.primary-button {
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #061016;
    background: linear-gradient(90deg, #00bcd4, #1da1f2);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    box-shadow: 0 6px 18px rgba(29, 161, 242, 0.12);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.14);
}

.primary-button:disabled {
    background: linear-gradient(90deg, #263238, #1b2a33);
    color: #9aa7b2;
    cursor: not-allowed;
    box-shadow: none;
}

.clear-button {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd6df;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    min-height: 44px;
    flex-shrink: 0;
    white-space: nowrap;
}

.clear-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.clear-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.error {
    background-color: rgba(255, 50, 100, 0.06);
    border: 1px solid rgba(255, 50, 100, 0.18);
    color: #ffd7df;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
}

.hidden {
    display: none;
}

.progress-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.progress-label {
    font-size: 12px;
    color: #a6b3bd;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1da1f2, #00bcd4);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #8ea2b0;
}

.progress-step {
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.progress-step.active {
    color: #e9f5ff;
    border-color: rgba(29, 161, 242, 0.6);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.1);
}

.success {
    color: #c5ffd6;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.info {
    color: #8e9aa3;
    font-size: 12px;
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 420px) {
    .container {
        padding: 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 20px;
    }

    body {
        padding: 12px;
    }

    .input-row {
        gap: 8px;
    }
}
