/* Cool gradient button with animated snake border */
.snake-gradient-btn {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #0f2027, #2c5364, #1c92d2, #f2fcfe);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    transition: background-position 0.5s;
}
.snake-gradient-btn:hover {
    background-position: right center;
}
.snake-gradient-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(270deg, #1c92d2, #f2fcfe, #2c5364, #0f2027);
    background-size: 400% 400%;
    z-index: -1;
    animation: snake-border 2s linear infinite;
}
@keyframes snake-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.visitor-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.hero-img {
    object-fit: cover;
    object-position: 0 -200px;
    height: 400px;
    width: 100%;
    filter: blur(1px) brightness(0.4);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(35, 78, 128, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
    padding: 2rem 1rem;
}
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.login-bg {
    min-height: 80vh;
    background: #181a1b;
}
.login-card {
    max-width: 400px;
    width: 100%;
    background: #23272b;
    color: #f8f9fa;
}
.login-title {
    color: #f8f9fa;
}
.open-bonus-btn-claimed {
    background: linear-gradient(90deg, #dc3545 60%, #ff914d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s;
    opacity: 0.85;
}
.open-bonus-btn-claimed:hover {
    background: linear-gradient(90deg, #bd2130 60%, #ff914d 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}
.open-bonus-btn-claimed {
    @extend .open-bonus-btn;
    background: linear-gradient(90deg, #dc3545 60%, #ff914d 100%);
    color: #fff;
    opacity: 0.85;
}
body,
html {
    font-family: "Readex Pro", sans-serif !important;
    margin: 0;
    padding: 0;
    background-color: #0f3d5c;
    /* overall app background */
    color: #eef2f5;
    /* default text color */
}
h2 {
    padding-bottom: 10px;
    padding-top: 5px;
}
.icon-menu-bottom {
    width: 25px;
    filter: invert(100%);
}
.icon-menu-50 {
    width: 50px;
}
.app-container {
    padding: 10px;
    width: 100%;
    max-width: 480px;
    /* simulate mobile width even on desktop */
    min-height: calc(100vh - 60px);
    /* account for bottom menu */
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 65px;
    /* avoid top menu */
    padding-bottom: 70px;
    /* bottom menu */
    background-color: #0f3d5c;
    color: #eef2f5;

    /* Homepage mobile layout */
    .homepage-mobile-bg {
        background: #0d1924ff;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    .homepage-mobile-container {
        max-width: 100vw;
        margin: 0 auto;
        padding: 0.5rem;
    }
    .homepage-mobile-card {
        background: #0d1924ff;
        color: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        padding: 1rem;
    }
    .homepage-section {
        margin-bottom: 1rem;
    }
    .homepage-section-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .homepage-section-content {
        background: #2b353fff;
        color: #ccc;
        border-radius: 8px;
        padding: 0.7rem;
        text-align: center;
    }
    .homepage-title {
        font-size: 1.7rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    /* Stylish open button */
    .open-bonus-btn {
        background: linear-gradient(90deg, #28a745 60%, #4e9af1 100%);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 0.7rem 1.2rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: background 0.2s, box-shadow 0.2s;
    }
    .open-bonus-btn:hover {
        background: linear-gradient(90deg, #218838 60%, #357abd 100%);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    }

    /* blue-canard */
    border-radius: 15px;
}

/* Top menu */
.top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 480px;
    height: 60px;
    background-color: #0c2e4a;
    /* darker blue */
    color: #d0e6f2;
    /* light text */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
    transition: top 0.6s ease;
    border-bottom: 1px solid #54778a;
    /* subtle grey-blue */
}

/* Bottom menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 60px;
    background-color: #0c2e4a;
    /* match top menu */
    border-top: 1px solid #54778a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

/* Bottom menu links */
.bottom-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #c0dbe5;
    /* lighter grey-blue */
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-menu a:hover,
.bottom-menu a.active {
    color: #1abc9c;
    /* teal accent */
}

/* Icons bigger for touch */
.bottom-menu a span:first-child {
    font-size: 20px;
}

/* Scrollbar styling */
.app-container::-webkit-scrollbar {
    width: 6px;
}

.app-container::-webkit-scrollbar-thumb {
    background-color: #1abc9c;
    /* teal accent */
    border-radius: 3px;
}

/* Side menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    /* hidden by default */
    width: 250px;
    height: 100%;
    background-color: #082a40;
    /* dark background */
    color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    z-index: 1500;
    transition: left 0.3s ease;
    padding-top: 60px;
    /* avoid top menu overlap */
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li {
    padding: 15px;
    border-bottom: 1px solid #1c3b55;
}

.side-menu li a {
    color: #c0dbe5;
    text-decoration: none;
    display: block;
}

.side-menu li a:hover {
    color: #1abc9c;
}

/* When open */
.side-menu.open {
    left: 0;
}

/* Overlay for side menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* semi-transparent black */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1400;
    /* just below side menu */
}

/* When menu is open */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BUTTONS */

.btn-join {
    border-radius: 10px 0px 10px 0px !important;
    transition: 0.6s;
    background-color: #0c2e4a !important;
}

.btn-join:hover {
    box-shadow: 0px 0px 50px #082a40;
    background-color: #26455e !important;
    transition: 0.6s;
}
