body {
    font-family: 'Koulen', sans-serif;
    background-color: #16a34a;
}

.bg-custom-1 { background-color: #15803d; }
.bg-custom-2 { background-color: #166534; }
.bg-custom-3 { background-color: #14532d; }

.logo-img { height: clamp(32px, 6vw, 48px); }
.logo-text { font-size: clamp(20px, 4vw, 36px); }

.section-title {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.25rem;
}
@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }

.features-container {
    display: flex;
    gap: 6px;
    padding: 6px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 4px;
    background-color: #15803d;
    color: white;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.feature-text {
    font-weight: bold;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.section-title-parallelogram {
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.ticket-banner {
    background-color: #15803d;
    color: white;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 3px;
    white-space: nowrap;
}

.active-product {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
    transform: scale(1.02);
    position: relative;
    overflow: visible;
}

.active-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0;
    height: 0;
    border-top: 24px solid #16a34a;
    border-left: 24px solid transparent;
    z-index: 10;
}

.active-check {
    position: absolute;
    top: -22px;
    right: 2px;
    width: 16px;
    height: 16px;
    color: white;
    z-index: 11;
}

.product-card {
    transition: all 0.2s ease-in-out;
    border-width: 2px;
    border-color: #e5e7eb;
    position: relative;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bg-bg-2 {
    background-color: #16a34a;
}

.account-inputs {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.account-inputs input {
    flex: 1;
    min-width: 0;
}

.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-overlay-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qr-overlay-header {
    background: white;
    color: #1f2933;
    padding: 20px 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.qr-title {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.qr-overlay-header.qr-loading-active .qr-title {
    opacity: 0;
    visibility: hidden;
}

.qr-overlay-body {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.qr-loading-icon {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-instructions {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.qr-loading-active .qr-instructions {
    opacity: 0;
    visibility: hidden;
}

.qr-image-container {
    margin: 0 auto 20px;
    max-width: 280px;
    padding: 15px;
}

.qr-base64-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.qr-base64-image:hover {
    transform: scale(1.02);
}

.footer-text {
    font-size: 14px;
    color: #4b5563;
    margin-top: 20px;
    line-height: 1.4;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f3f4f6;
}

.close-modal-btn svg {
    stroke: #6b7280;
    width: 20px;
    height: 20px;
}

.close-modal-btn:hover svg {
    stroke: #1f2933;
}

.mySwiper {
    border-radius: 1rem;
    overflow: hidden;
}

.mySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
}

.mySwiper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.bannerSwiper {
    border-radius: 1rem;
    overflow: hidden;
}

.bannerSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
}

.bannerSwiper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.events-swiper .swiper-slide img { 
    border-radius: 0.75rem; 
    transition: transform 0.3s ease; 
}
.events-swiper .swiper-slide img:hover { 
    transform: scale(1.05); 
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-container {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #16a34a;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Dangrek', sans-serif;
    outline: none;
}

.search-input:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.search-results {
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.game-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.game-item:hover { background-color: #f3f4f6; }

.game-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    margin-right: 1rem;
    object-fit: cover;
}

.game-item span {
    font-size: 1rem;
    color: #374151;
    font-weight: bold;
}

.close-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
}

.menu-container {
    background-color: white;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.3s ease-out;
    font-family: 'Dangrek', sans-serif;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-300px); }
    to { opacity: 1; transform: translateX(0); }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #16a34a;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-logo-img { height: 40px; width: auto; }

.menu-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #15803d;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    color: #374151;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #374151;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
}

.menu-link:hover {
    color: #16a34a;
    transform: translateX(5px);
}

.menu-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.menu-footer-text {
    color: #6b7280;
    font-size: 0.9rem;
}

@keyframes slide-up {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

.roblox-header {
    background: linear-gradient(90deg, #e60012 0%, #ff3355 100%);
}

.roblox-button {
    background: linear-gradient(90deg, #e60012 0%, #ff3355 100%);
}

.roblox-button:hover {
    background: linear-gradient(90deg, #cc0010 0%, #e62a4d 100%);
}

.roblox-input {
    border-color: #e60012;
}

.roblox-input:focus {
    border-color: #ff3355;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.2);
}

@media (min-width: 640px) {
    .feature-item {
        padding: 8px 10px;
        gap: 6px;
    }
    .feature-text {
        font-size: 0.75rem;
    }
    .feature-icon {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .feature-item {
        padding: 8px 12px;
        gap: 8px;
    }
    .feature-text {
        font-size: 0.8rem;
    }
    .feature-icon {
        font-size: 1rem;
    }
    .top-desktop-spacing {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .desktop-summary {
        display: none !important;
    }
    .account-inputs {
        flex-direction: row;
    }
    .account-inputs input {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .fixed-summary-mobile {
        display: none !important;
    }
    .desktop-summary {
        display: block !important;
    }
}

.english-text {
    font-family: 'Bebas Neue', sans-serif;
}

.khmer-text {
    font-family: 'Koulen', sans-serif;
}