/* ====== ОСНОВНІ СТИЛІ ====== */
:root {
    --modal-bg: rgba(13, 13, 13, 0.95);
    --modal-content-bg: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    --modal-border-radius: 16px;
    --modal-padding: 30px 25px;
    --modal-max-width: 480px;
    --transition: all 0.3s ease;
}

/* Модальне вікно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-bg);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--modal-content-bg);
    border-radius: var(--modal-border-radius);
    max-width: var(--modal-max-width);
    width: 100%;
    padding: var(--modal-padding);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====== ВІКОВА ПЕРЕВІРКА ====== */
.age-modal {
    border: 2px solid #FF5E5E;
    box-shadow: 0 0 30px rgba(255, 94, 94, 0.3);
}

.modal-logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-text {
    font-size: 1.8rem;
    color: #FFD24A;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 210, 74, 0.5);
    display: block;
    margin-bottom: 5px;
}

.logo-sub {
    color: #CCCCCC;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.warning-section {
    background: rgba(255, 94, 94, 0.1);
    border: 2px solid #FF5E5E;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 25px;
    text-align: center;
}

.warning-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.warning-title {
    color: #FF5E5E;
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(255, 94, 94, 0.4);
}

.warning-text {
    color: #F2F4F7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.warning-list {
    margin: 20px 0;
}

.warning-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #F2F4F7;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.warning-item:hover {
    background: rgba(255, 94, 94, 0.1);
    transform: translateX(5px);
}

.item-icon {
    color: #FF5E5E;
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.item-text {
    flex: 1;
}

.question-text {
    color: #F2F4F7;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 94, 94, 0.3);
}

/* Кнопки вікової перевірки */
.buttons-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.btn1 {
    border: none;
    border-radius: 10px;
    padding: 18px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
}

.btn1-icon {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.btn1-text {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 4px;
}

.btn1-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn1-no {
    background: rgba(255, 94, 94, 0.1);
    color: #F2F4F7;
    border: 2px solid #FF5E5E;
}

.btn1-no:hover {
    background: rgba(255, 94, 94, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 94, 94, 0.3);
}

.btn1-yes {
    background: linear-gradient(135deg, #39FF14, #2ecc71);
    color: #0D0D0D;
    border: 2px solid #39FF14;
}

.btn1-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.3);
}

/* Футер */
.footer-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-text {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-note {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
}

/* ====== COOKIE НАЛАШТУВАННЯ ====== */
.cookie-modal {
    border: 2px solid #FFD24A;
    box-shadow: 0 0 30px rgba(255, 210, 74, 0.3);
}

.cookie-header {
    text-align: center;
    margin-bottom: 25px;
}

.cookie-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.cookie-title {
    color: #FFD24A;
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(255, 210, 74, 0.4);
}

.cookie-subtitle {
    color: #CCCCCC;
    font-size: 0.9rem;
}

/* Опції cookie */
.cookie-options {
    margin-bottom: 25px;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
    border: 2px solid;
    border-left: 5px solid;
    transition: var(--transition);
}

.cookie-option:hover {
    transform: translateX(3px);
}

.cookie-option.essential {
    border-color: #FF5E5E;
    border-left-color: #FF5E5E;
    background: rgba(255, 94, 94, 0.08);
}

.cookie-option.functional {
    border-color: #FFD24A;
    border-left-color: #FFD24A;
    background: rgba(255, 210, 74, 0.08);
}

.cookie-option.analytics {
    border-color: #61C7FF;
    border-left-color: #61C7FF;
    background: rgba(97, 199, 255, 0.08);
}

.cookie-option.marketing {
    border-color: #FF4DE1;
    border-left-color: #FF4DE1;
    background: rgba(255, 77, 225, 0.08);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.option-header h3 {
    color: #F2F4F7;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-icon {
    font-size: 1.1rem;
}

.option-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cookie-option.essential .option-badge {
    background: #FF5E5E;
    color: white;
}

.cookie-option.functional .option-badge {
    background: #FFD24A;
    color: #0D0D0D;
}

.cookie-option.analytics .option-badge {
    background: #61C7FF;
    color: white;
}

.cookie-option.marketing .option-badge {
    background: #FF4DE1;
    color: white;
}

.option-desc {
    color: #CCCCCC;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.option-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #999;
}

/* Перемикачі */
.option-toggle {
    margin-top: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    transition: .3s;
    flex-shrink: 0;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #F2F4F7;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #FFD24A;
}

input:checked+.toggle-slider:before {
    transform: translateX(22px);
    background-color: #0D0D0D;
}

.toggle-label {
    color: #CCCCCC;
    font-size: 0.85rem;
}

/* Кнопки cookie */
.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 16px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.cookie-btn .btn-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.cookie-btn .btn-text {
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.cookie-btn .btn-sub {
    font-size: 0.7rem;
}

.reject-btn {
    background: rgba(255, 94, 94, 0.1);
    color: #F2F4F7;
    border: 2px solid #FF5E5E;
}

.reject-btn:hover {
    background: rgba(255, 94, 94, 0.2);
    transform: translateY(-2px);
}

.save-btn {
    background: rgba(97, 199, 255, 0.1);
    color: #F2F4F7;
    border: 2px solid #61C7FF;
}

.save-btn:hover {
    background: rgba(97, 199, 255, 0.2);
    transform: translateY(-2px);
}

.accept-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, #FFD24A, #ffcc00);
    color: #0D0D0D;
    border: 2px solid #FFD24A;
    padding: 18px 12px;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 74, 0.3);
}

.cookie-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-link {
    color: #FFD24A;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
    margin-top: 8px;
}

.footer-link:hover {
    color: #FF4DE1;
    text-decoration: underline;
}

/* ====== COOKIE БАНЕР ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FFD24A;
    padding: 15px 20px;
    z-index: 9999;
    display: none;
    animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-text {
    flex: 1;
}

.main-text {
    color: #F2F4F7;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.sub-text {
    color: #999;
    font-size: 0.85rem;
}

.banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.banner-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-btn {
    background: transparent;
    color: #F2F4F7;
    border: 2px solid #61C7FF;
}

.settings-btn:hover {
    background: rgba(97, 199, 255, 0.1);
    transform: translateY(-2px);
}

.accept-btn {
    background: #FFD24A;
    color: #0D0D0D;
    border: 2px solid #FFD24A;
}

.accept-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 74, 0.3);
}

/* ====== АДАПТИВНІСТЬ ====== */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
        max-width: 90%;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .warning-section {
        padding: 20px 15px;
    }

    .warning-icon {
        font-size: 2rem;
    }

    .warning-title {
        font-size: 1.2rem;
    }

    .buttons-section,
    .cookie-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .accept-btn {
        grid-column: span 1;
    }

    .btn1,
    .cookie-btn {
        padding: 15px 12px;
        min-height: 75px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .warning-icon {
        font-size: 1.8rem;
    }

    .warning-item {
        padding: 8px 10px;
    }

    .item-icon {
        font-size: 1rem;
        margin-right: 8px;
    }

    .cookie-option {
        padding: 15px;
    }

    .option-header h3 {
        font-size: 1rem;
    }

    .banner-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Скролбар */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #FFD24A;
    border-radius: 3px;
}

.cookie-banner::-webkit-scrollbar {
    height: 4px;
}

.cookie-banner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-banner::-webkit-scrollbar-thumb {
    background: #FFD24A;
    border-radius: 2px;
}

/* Анімації для notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Додаткові анімації для кнопок */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Плавні переходи */
.btn,
.cookie-btn,
.banner-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стилі для notification */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* Адаптивність для notification */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }
}