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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #334155;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.step-info {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.card-body {
    padding: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group.full {
    flex: unset;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

select, input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tab {
    flex: 1;
    padding: 0.6rem 1rem;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    border-color: #3b82f6;
    color: #e2e8f0;
}

.tab.active {
    background: #1d4ed8;
    border-color: #3b82f6;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
}

.btn.primary:hover {
    background: #1d4ed8;
}

.detail-box, .result-box {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
}

.detail-box h3, .result-box h3 {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-box pre, .result-box pre {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #a5f3fc;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.hidden {
    display: none !important;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
    accent-color: #3b82f6;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .tabs {
        flex-direction: column;
    }
}
