/* Modern CSS with Animations and Responsive Design */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --accent-color: #06b6d4;
    --text-color: #1e293b;
    --light-text: #f8fafc;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 70px; /* Space for fixed top bar */
}

/* Top Bar Styles */
.top-bar {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
    transition: var(--transition-normal);
}

.top-bar.scrolled {
    height: 60px;
    background: rgba(79, 70, 229, 0.95);
    backdrop-filter: blur(10px);
}

.top-bar .logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    transform-origin: left center;
}

.top-bar.scrolled .logo {
    max-height: 45px;
}

/* Main Content */
main {
    margin-top: 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Decorative Elements */
main img[alt="Half circle"] {
    opacity: 0.6;
    filter: hue-rotate(45deg);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Campaigns Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.campaigns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    justify-content: center;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Campaign Card Styles */
.camp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    width: calc(33.333% - 1rem);
    box-sizing: border-box;
    transition: var(--transition-normal);
    transform: translateY(0);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(5px);
}

.camp-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.camp-card .image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    z-index: 1;
}

.camp-card .image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(5px);
    transform: scale(1.1);
    transition: var(--transition-normal);
}

.camp-card:hover .image-background img {
    transform: scale(1.2);
    opacity: 0.4;
}

.camp-card .image-small-container {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
}

.camp-card .image-small-container img {
    width: 85px;
    height: 85px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 3px solid white;
}

.camp-card:hover .image-small-container img {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.camp-card .details-container {
    padding: 1.75rem;
    padding-top: 110px;
    position: relative;
    z-index: 3;
}

.camp-card .details-container .live-status {
    background: linear-gradient(90deg, var(--success-color), #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

.camp-card .details-container .live-status:contains("Stop") {
    background: linear-gradient(90deg, var(--danger-color), #b91c1c);
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

.camp-card .details-container h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
}

.camp-card .details-container .earn-amount,
.camp-card .details-container .payout-amount {
    color: #64748b;
    margin: 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.camp-card .details-container .earn-amount::before,
.camp-card .details-container .payout-amount::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.camp-card .details-container .details-button,
.camp-card .details-container .share-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-right: 0.75rem;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
    letter-spacing: 0.3px;
}

.camp-card .details-container .share-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: calc(0.8rem - 2px) calc(1.5rem - 2px);
    box-shadow: none;
}

.camp-card .details-container .details-button:hover,
.camp-card .details-container .share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(99, 102, 241, 0.3);
}

.camp-card .details-container .share-button:hover {
    background: rgba(99, 102, 241, 0.1);
}

.camp-card .details-container .details-button:active,
.camp-card .details-container .share-button:active {
    transform: translateY(-1px);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1010; /* Higher than the top bar */
    padding: 1.5rem;
}

.popup-content {
    background-color: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 95%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    text-align: left;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    background-color: rgba(241, 245, 249, 0.9);
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 5;
}

.close-btn:hover {
    background-color: #e2e8f0;
    color: var(--danger-color);
    transform: rotate(90deg);
}

#popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    padding-right: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: -1rem;
}

#popup-earn,
#popup-payout {
    font-size: 1.1rem;
    color: #334155;
    margin: 0.75rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

#popup-terms {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.popup-details {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.popup-details:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

#popup-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

hr {
    border: none;
    height: 1px;
    background-color: #e2e8f0;
    margin: 1.5rem 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.input-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.input-section label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    display: block;
}

.input-section input {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition-fast);
    color: var(--text-color);
    background-color: white;
}

.input-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.create-link-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.create-link-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.create-link-button:hover:before {
    left: 100%;
}

.create-link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.create-link-button:active {
    transform: translateY(-1px);
}

.custom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.custom-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.black-and-white {
    filter: grayscale(100%);
    position: relative;
    pointer-events: none;
}

.black-and-white .overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-width: 90%;
}

/* Side Buttons */
.side-buttons {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.side-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.side-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.side-button:nth-child(1) {
    background-color: #229ED9;
}

.side-button:nth-child(2) {
    background-color: #25D366;
}

.side-button img {
    width: 30px;
    height: 30px;
    transition: var(--transition-normal);
    filter: brightness(0) invert(1);
}

.side-button:hover img {
    transform: scale(1.1);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Responsiveness */
@media (max-width: 1200px) {
    .camp-card {
        width: calc(33.333% - 1rem);
    }
}

@media (max-width: 992px) {
    .camp-card {
        width: calc(50% - 1rem);
    }
    
    .camp-card .image-small-container img {
        width: 80px;
        height: 80px;
    }
    
    .camp-card .details-container {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .camp-card {
        width: calc(50% - 0.75rem);
    }
    
    .top-bar {
        padding: 0.5rem 1rem;
        height: 60px;
    }
    
    .top-bar .logo {
        max-height: 40px;
    }
    
    .popup-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .side-buttons {
        right: 1rem;
        bottom: 1rem;
    }
    
    .side-button {
        width: 50px;
        height: 50px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .camp-card .image-small-container img {
        width: 70px;
        height: 70px;
    }
    
    .camp-card .details-container {
        padding: 1.5rem;
        padding-top: 90px;
    }
}

@media (max-width: 576px) {
    .camp-card {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .camp-card .details-container .details-button,
    .camp-card .details-container .share-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    
    .camp-card .details-container .share-button {
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .camp-card .image-small-container img {
        width: 65px;
        height: 65px;
    }
    
    .camp-card .details-container {
        padding: 1.25rem;
        padding-top: 85px;
    }
    
    .camp-card .details-container .details-button,
    .camp-card .details-container .share-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1rem;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .popup-content {
        padding: 1.25rem;
    }
    
    #popup-title {
        font-size: 1.5rem;
    }
    
    .side-button {
        width: 45px;
        height: 45px;
    }
    
    .side-button img {
        width: 25px;
        height: 25px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.placeholder-card {
    height: 300px;
    width: calc(33.333% - 1rem);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    box-shadow: var(--shadow-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (max-width: 1024px) {
    .placeholder-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .placeholder-card {
        width: 100%;
        height: 250px;
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 500px;
    border: 1px solid #fecaca;
}

.error-message svg {
    width: 60px;
    height: 60px;
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

.retry-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-block;
}

.retry-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.no-campaigns {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 1.1rem;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for cards */
.animate-in {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.popup-content.closing {
    animation: zoomOut 0.3s ease-in forwards;
}

body.popup-open {
    overflow: hidden;
    padding-top: 0 !important; /* Remove the padding that was for the top bar */
}

/* Footer Styles */
footer {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .separator {
        display: none;
    }
}

/* Card Gradient Border */
.camp-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    z-index: -1;
    border-radius: calc(var(--border-radius-lg) + 2px);
    opacity: 0;
    transition: var(--transition-normal);
}

.camp-card:hover::before {
    opacity: 1;
}

/* Button Styles */
.camp-card .details-container .details-button:hover,
.create-link-button:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Decorative Circle Animation */
.decorative-circle {
    animation: float 6s ease-in-out infinite, pulse 10s ease-in-out infinite alternate;
}

/* Glass Morphism Effect */
.popup-content, .camp-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Side Buttons */
.side-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.side-button:hover::before {
    opacity: 1;
}

/* When popup is open, hide the top bar */
body.popup-open .top-bar {
    display: none !important;
}
