.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    opacity: 1;
}

.popup-content {
    background-color: var(--nav-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cookies-popup {
    align-items: flex-end;
    background-color: transparent;
}

.cookies-popup .popup-content {
    width: 100%;
    max-width: none;
    border-radius: 15px 15px 0 0;
    padding: 30px;
    margin: 0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.offer-tab {
    display: none;
    position: fixed;
    left: 0; /* Start flush with left edge */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: #000000;
    border: none;
    border-radius: 0 15px 15px 0;
    padding: 15px 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
    transition: left 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseGlow 2s infinite ease-in-out;
}

.offer-tab:hover {
    left: 0; /* Stay flush on hover */
    transform: translateY(-50%) rotate(2deg); /* Keep the tilt */
    background-color: #00cc7a;
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.6);
}

/* Idle state: slight slide left */
.offer-tab:not(:hover) {
    left: -20px; /* Slide slightly off, but still visible */
}

/* Pulse animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4); }
    50% { box-shadow: 0 5px 20px rgba(0, 255, 157, 0.7); }
    100% { box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4); }
}

/* Rest of your styles */
.popup-content h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.popup-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.secondary-btn {
    background-color: #555;
    color: #fff;
    border: none;
}

.secondary-btn:hover {
    background-color: #777;
}