/* Swiper Styles */
.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

/* Shortcuts Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.shortcut-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 0, 26, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.shortcut-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.shortcut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(212, 0, 26, 0.12);
    border-color: var(--primary-red);
}

.shortcut-card:hover:before {
    transform: scaleX(1);
}

.shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 12px auto;
    transition: all 0.3s ease;
}

.shortcut-card:hover .shortcut-icon {
    transform: scale(1.1);
}

.icon-red {
    background: linear-gradient(135deg, var(--light-red), rgba(212, 0, 26, 0.2));
    color: var(--primary-red);
}

.icon-green {
    background: linear-gradient(135deg, rgba(0, 208, 69, 0.2), rgba(0, 208, 69, 0.1));
    color: var(--success-green);
}

.icon-gold {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(243, 156, 18, 0.1));
    color: var(--accent-gold);
}

.icon-dark {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.1), rgba(17, 17, 17, 0.05));
    color: var(--dark-gray);
}

.shortcut-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--light-gray), white);
}

.hero-image {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

/* Marquee Section */
.marquee-section {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    border-top: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.marquee-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.marquee-container {
    position: relative;
    z-index: 2;
}

.marquee-header {
    text-align: center;
    margin-bottom: 15px;
}

.marquee-header i {
    color: var(--primary-red);
    font-size: 1.5em;
    margin-right: 10px;
}

.marquee-header h3 {
    display: inline;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-red);
    text-shadow: none;
}

.marquee-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-text {
    display: inline-block;
    animation: scroll 5s linear infinite;
    font-size: 1em;
    font-weight: 500;
    will-change: transform;
}

.transaction-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px 20px;
    margin: 0 15px;
    border: 1px solid rgba(212, 0, 26, 0.1);
    position: relative;
    vertical-align: middle;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.transaction-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--success-green);
    border-radius: 2px 0 0 2px;
}

.user-profile {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(212, 0, 26, 0.3);
}

.username {
    font-weight: 600;
    color: var(--dark-gray);
    margin-right: 5px;
}

.game-info {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
}

.game-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
}

.game-name {
    font-weight: 500;
    color: var(--dark-gray);
}

.amount {
    color: var(--success-green);
    font-weight: bold;
    margin: 0 5px;
}

.status {
    background: var(--success-green);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 8px;
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.8em;
    margin-left: 8px;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 0 auto;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: var(--dark-red);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 0, 26, 0.05), transparent);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 0, 26, 0.2);
    border-color: var(--primary-red);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.service-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    height: 40px;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Game Cards */
.game-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 35px rgba(212, 0, 26, 0.2);
}

.game-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article Section */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-card .p-4 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 315px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* Features */
.feature-box {
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    transition: 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background-color: #f8f9fa;
    transform: translateY(-4px);
}

.feature-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    color: white;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h5 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    color: #999;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.login-tabs {
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.login-tabs .nav-link {
    color: #666;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 0;
    position: relative;
}

.login-tabs .nav-link.active {
    color: var(--primary-red);
    background: none;
    border-bottom: 3px solid var(--primary-red);
}

.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-google {
    background: #fff;
    border: 2px solid #ddd;
    color: #333;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #db4437;
    color: #db4437;
}

.btn-line {
    background: #00b900;
    border: 2px solid #00b900;
    color: white;
}

.btn-line:hover {
    background: #009900;
    border-color: #009900;
    color: white;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Auto Popup Styles */
.auto-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auto-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-content:hover {
    transform: scale(1.02);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.close-btn::before {
    content: "×";
    font-size: 1.2rem;
    line-height: 1;
}

.dont-show-check {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dont-show-check:hover {
    background: rgba(0, 0, 0, 0.8);
}

.dont-show-check input[type="checkbox"] {
    transform: scale(1.1);
    accent-color: var(--primary-red);
}

/* Auto Popup Overlay */
.ap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ap-overlay.ap-active {
    opacity: 1;
    visibility: visible;
}

/* Auto Popup Container */
.ap-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.ap-overlay.ap-active .ap-container {
    transform: scale(1);
}

/* Auto Popup Close Button */
.ap-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.ap-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Auto Popup Image */
.ap-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
}

.ap-image:not([data-link]) {
    cursor: default;
}

/* Auto Popup Text Content */
.ap-text {
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Auto Popup Don't Show Again */
.ap-dont-show {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ap-dont-show input {
    margin: 0;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ap-container {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }

    .ap-image {
        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 100px);
    }

    .ap-text {
        padding: 20px;
        max-height: calc(100vh - 80px);
    }
    
    .popup-content {
        max-width: 350px;
        width: 95%;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .dont-show-check {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-image {
        height: 250px;
    }

    .service-card {
        margin-bottom: 20px;
    }
    
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .marquee-text {
        font-size: 0.9em;
    }

    .transaction-item {
        padding: 6px 15px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 300px;
    }
}