* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #220000;
    color: #fff;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

header,
.main-content,
.content,
.sidebar,
footer {
    position: relative;
    z-index: 2;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-image {
    width: 500px;
    height: 500px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.popup.fadeOut {
    animation: fadeOut 0.5s ease-in-out forwards;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #500c0c;
    border-bottom: 2px solid #ff0000;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo img {
    height: 80px;
}

.menu {
    display: flex;
    gap: 15px;
    position: relative;
    background: #500c0c;
    padding: 10px 20px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 5px;
}

.menu a:hover {
    color: orange;
}

.menu-item-wrapper {
    position: relative;
}

.nav-item-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000000cc;
    width: max-content;
    padding: 10px 50px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    z-index: 999;
}

.nav-item-content .flex-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.auto-box {
    text-align: center;
    width: 100px;
    transition: transform 0.3s;
    margin-bottom: 15px;
}

.auto-box img {
    width: auto;
    height: 90px;
    display: block;
    margin: 0 auto 5px;
}

.menu-item-title {
    color: #fff;
    font-size: 14px;
}

.menu-item-wrapper:hover .nav-item-content {
    display: block;
}

.auto-box:hover {
    transform: scale(1.1);
}

.main-content {
    flex: 1;
    display: flex;
    gap: 10px;
    margin-top: 100px;
    padding: 10px;
}

.sidebar {
    width: 20%;
    padding: 15px;
    background-image: url("https://res.cloudinary.com/dy1rcnflj/image/upload/v1728960514/bg-mahjoing-rog_pswqok.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.sidebar img {
    width: 100%;
    margin-bottom: 15px;
}

.sidebar h3 {
    margin-bottom: 10px;
}

.content {
    width: 60%;
    padding: 20px;
    border-left: 2px solid #8d0000;
    border-right: 2px solid #8d0000;
    overflow-y: auto;
}

h1,
h2,
h3,
h4 {
    color: #ca4444;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 500;
}

h4 {
    font-size: 20px;
    font-weight: 500;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d1d1;
    margin-bottom: 15px;
}

ul,
ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

strong {
    font-weight: 700;
    color: #ffffff;
}

.swiper {
    width: 100%;
    height: 300px;
    margin: 0 auto 20px auto;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.button-login-daftar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-weight: 700;
    gap: 10px;
}

.button-login-daftar a {
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s;
}

.login,
.register {
    color: #fff;
    padding: 15px 10px;
    font-size: 23px;
}

.login,
.login-button {
    background: #23afa9;
    border: 1px solid #220000;
}

.register,
.register-button {
    background: #b9b910;
    border: 1px solid #220000;
}

.button-login-daftar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
}

.button-login-daftar a:hover::before {
    animation: shine 1s forwards;
}

.withdraw-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, #ff0000, #bd0000);
    color: #ffffff;

    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    animation: slideUp 0.8s ease-out;
}

/* DOT */
.withdraw-floating .notif-dot {
    width: 10px;
    height: 10px;
    background: #ffd000;
    border-radius: 50%;
    position: relative;
    animation: pulse 1.2s infinite;
}

.withdraw-floating .notif-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: ripple 1.2s infinite;
}

/* ANIMASI */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .withdraw-floating {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 13px;
    }
}


@keyframes shine {
    100% {
        left: 125%;
    }
}

.button-login-daftar a:hover {
    transform: scale(1.05);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.online {
    display: flex;
    justify-content: center;
    margin: 5px;
}

.bank-list {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 120px;
    border-left: 4px solid #1eff00;
    border-bottom-left-radius: 1px;
    border-top-left-radius: 1px;
    animation: blink-border 1s infinite;
}

@keyframes blink-border {
    0% {
        border-left-color: #1eff00;
    }

    50% {
        border-left-color: #118f00;
    }

    100% {
        border-left-color: #1eff00;
    }
}

.bank-list img {
    width: 100%;
    height: 25px;
}

.copyright {
    text-align: center;
    color: #ffffff96;
    padding-top: 20px;
}

.copyright a {
    text-decoration: none;
}