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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f0f1a;
    color: #ffffff;
    padding: 16px;
}

/* Навигация по вкладкам - СТРОГО В ОДНУ СТРОКУ */
.tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Скрываем скроллбар, но оставляем прокрутку */
.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto !important;
    padding: 10px 14px;
    background: #16213e;
    color: #a0a5c0;
    border: 1px solid #0f3460;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #6c5ce7;
    color: #ffffff;
    border-color: #6c5ce7;
    font-weight: 600;
}

/* Контейнеры вкладок */
.tab-content {
    display: none;
}

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

/* Формы и поля ввода */
.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #b3b8d4;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #16213e;
    border: 1px solid #0f3460;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #6c5ce7;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #6c5ce7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s ease;
}

button[type="submit"]:hover {
    background: #5b4cdb;
}

/* Карточки результатов */
.result-success {
    background: #16213e;
    border-left: 4px solid #6c5ce7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #ffffff;
}

.result-error {
    background: #2a1616;
    border-left: 4px solid #e74c3c;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}