html, body {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.navbar .container-fluid {
    flex-wrap: wrap;
    min-width: 0;
    padding-left: 15px;
    padding-right: 15px;
}

#mainMenu {
    max-width: 100%;
    overflow: hidden;
    flex-wrap: wrap;
}

#mainMenu .nav-item {
    margin-right: 12px; /* або gap через flex */
}

.auth-buttons {
    gap: 8px !important;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth !important;
}

/* Фіксація ширини для Safari */
.auth-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
}

/* Заборонити переноси в середині кнопок */
.auth-buttons .btn {
    white-space: nowrap;
}

/* Стилі для адаптивної поведінки */
@media screen and (min-width: 1150px) {
    .navbar-nav {
        flex-wrap: nowrap;
    }

    .auth-buttons {
        margin-left: auto;
    }
}

/* Блок перемикача */
.role-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Кнопки */
.role-btn {
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
}

/* Активна кнопка — мʼяке світіння + легкий градієнт */
.role-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.3),
        0 8px 15px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    color: #111;
    backdrop-filter: blur(6px);
}

/* Кольори ролей */
.role-btn.active2.rocket {
    box-shadow:
        0 0 0 2px rgba(255, 106, 0, 0.25),
        0 4px 12px rgba(255, 106, 0, 0.15);
}

.active2 {
    box-shadow:
        0 0 0 2px rgba(42, 170, 255, 0.25),
        0 4px 12px rgba(42, 170, 255, 0.15);
}

/* Тумблер — залишаємо як є, якщо не використовується можна видалити */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #bbb;
    transition: 0.4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #3ca3ff;
}
input:checked + .slider:before {
    transform: translateX(16px);
}

.mt-6 {
    margin-top: 4rem;
}
.mb-6 {
    margin-bottom: 4rem;
}

.text-nowrap {
    white-space: nowrap;
}

.list-style-02 li {
    gap: 12px;
    font-size: 16px;
}

.list-style-02 span {
    flex: 1;
}

/* Заголовок */
.tabs-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.tabs-subtitle {
    text-align: center;
    color: #7a7a7a;
    font-size: 17px;
    margin-bottom: 40px;
}

/* Стиль вкладок таби */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    font-weight: 500;
    color: #6e6e73;
    font-size: 17px;
    padding: 10px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #000;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(to right, #3ea6ff, #6ecbff);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(62, 166, 255, 0.3);
    border-radius: 0;
    padding: 10px 28px;
}

.tab-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.custom-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    list-style: none;
    margin: 0;
    gap: 6px;
}

.custom-tabs .tab {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.custom-tabs .tab:hover {
    background: #f3f4f6;
}

.custom-tabs .tab.active {
    background: #4f46e5; /* або градієнт */
    color: white;
    font-weight: 600;
}

/* Таби новий  */

.tab-section {
    max-width: 100%;
    margin: 0 auto 60px;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tab-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    list-style: none;
    box-sizing: border-box;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.tab-item:hover {
    background: #f3f4f6;
}

.tab-item.active {
    background: linear-gradient(to right, #4f46e5, #7f56d9);
    color: white;
    font-weight: 700;
}

.tab-content-wrapper {
    max-width: 100%;
}

.tab-content {
    display: none;
    animation: fade 0.3s ease-in-out;
}

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

@keyframes fade {
    from {opacity: 0;}
    to {opacity: 1;}
}
.tab-bg {
    background-color: #fff; /* Світлий фон без полосок */
    padding: 5px;
    border-radius: 20px;
}

section.background-position-center-top:has(.tab-style-04) {
    padding-bottom: 0 !important;
}

section.background-position-center-top.pt-4.md-pt-6.sm-pt-40px {
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 1600px) {
    section.background-position-center-top.pt-4.md-pt-6.sm-pt-40px {
        padding-bottom: 0px !important;
    }
}

.mb-8, .mb-4 {
    margin-bottom: 20px !important; /* або 0, якщо не потрібно */
}

section.bg-gradient-top-very-light-gray.pb-15 {
    padding-bottom: 80px !important; /* або 0, якщо відступ взагалі не потрібен */
}

/* Глобальний стиль кнопок */
.auth-buttons .btn .text {
    display: inline;
    transition: opacity 0.3s ease;
}

/* При ширині <1350px — ховаємо текст */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }
}

/* Зменшуємо падінги кнопок при меншій ширині */
@media (max-width: 1350px) {
    .auth-buttons .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.auth-buttons .btn .text {
    display: inline;
    transition: opacity 0.3s ease;
}

@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Основні стилі кнопок */
.auth-buttons .register-btn {
    background: linear-gradient(90deg, #dc3a25 0%, #8453e3 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(132, 83, 227, 0.4);
    border: none;
}

.auth-buttons .register-btn i {
    font-size: 16px;
}

/* ВХІД */
.auth-buttons .login-btn {
    background: transparent;
    color: #8453e3;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #8453e3;
    transition: background 0.3s, color 0.3s;
}

.auth-buttons .login-btn:hover {
    background: #8453e3;
    color: white;
}

.auth-buttons .login-btn i {
    font-size: 16px;
}

/* Адаптація — ховаємо текст при <1350px */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding: 10px 12px;
    }
}

/* Головний блок кнопок */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка "РЕГИСТРАЦИЯ" */
.auth-buttons .register-btn {
    background: linear-gradient(90deg, #6c3ef6 0%, #9a3ef6 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    box-shadow: 0px 4px 14px rgba(106, 50, 255, 0.3);
}

.auth-buttons .register-btn i {
    font-size: 15px;
}

/* Кнопка "ВОЙТИ" */
.auth-buttons .login-btn {
    background: transparent;
    color: #6c3ef6;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #6c3ef6;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.auth-buttons .login-btn:hover {
    background: #6c3ef6;
    color: white;
}

.auth-buttons .login-btn i {
    font-size: 15px;
}

/* При зменшенні ширини — ховаємо текст, залишаємо лише іконки */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding: 10px 12px;
    }
}
