@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #1f2937;
    --accent: #34d399;
    --text: #111827;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

.no-transition,
.no-transition *:not(.nav-indicator) {
    transition: none !important;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background-color: #111827 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.5) transparent;
    overflow-y: auto;
}


html:has(.admin-layout),
body:has(.admin-layout) {
    overflow: hidden !important;
    height: 100vh;
}


::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}

body {
    background-color: #111827 !important;
    min-height: 100%;
    margin: 0;
    overflow-y: auto;
}

#pageWrapper {
    background-color: var(--white);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    overflow-x: hidden;
    flex: 1;
    max-width: 100vw;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
        
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, 15px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    
}

.animate-page-entrance {
    animation: pageFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}


.game-card:nth-child(1),
.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2),
.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3),
.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-card:nth-child(4),
.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-card:nth-child(5),
.stat-card:nth-child(5) {
    animation-delay: 0.5s;
}

.game-card:nth-child(6),
.stat-card:nth-child(6) {
    animation-delay: 0.6s;
}


.admin-layout .main-content,
.checkout-section,
.payment-section,
.success-section,
.profile-section,
.contact-section,
.faq-section,
.legal-section,
.promo-section,

.about-hero .container {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    
}


.stat-card {
    opacity: 0;
    
    animation: fadeInUp 0.6s ease-out forwards;
}


.table-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}


section:not(.history-section):not(.check-order-section),
.admin-layout .main-content,
.login-container {
    animation: pageFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    
}


.legal-header {
    animation: none !important;
    opacity: 1 !important;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
        
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.navbar {
    z-index: 1000;
    
}


.checkout-section,
.payment-section,
.success-section,
.history-section,
.profile-section,
.contact-section,
.faq-section,
.legal-section,
.promo-section,
.promo-detail-section,
.check-order-section,
.banner-slider {
    padding-top: 90px !important;
}


.admin-layout .main-content {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .admin-layout .main-content {
        padding-top: 1rem !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .checkout-section,
    .payment-section,
    .success-section,
    .history-section,
    .profile-section,
    .contact-section,
    .faq-section,
    .promo-section,
    .check-order-section,
    .banner-slider {
        padding-top: 75px !important;
    }

    .legal-section {
        padding-top: 0 !important;
    }
}

header {
    flex-shrink: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


select {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 50px;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

select:hover {
    border-color: #d1d5db;
}


button,
.btn-topup,
.btn-secondary,
.btn-confirm,
.btn-primary,
.category-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active,
.btn-topup:active,
.btn-secondary:active,
.btn-confirm:active,
.btn-primary:active,
.category-btn:active {
    transform: scale(0.96);
}


input,
select,
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
}


.form-row select {
    width: 100%;
}


.modal select,
.admin-layout select {
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body {
        overflow-x: hidden !important;
    }
}


.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.flex-responsive {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flex-responsive {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        
    }
}


.navbar {
    background: #111827;
    padding: 0.5rem 0;
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    opacity: 0;
    
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    overflow: visible;
    

    
    transition:
        background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.8) !important;
    
    backdrop-filter: blur(15px);
    
    -webkit-backdrop-filter: blur(15px);
    padding: 0.4rem 0;
    top: 15px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}


.navbar .container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: padding;
}

.navbar.scrolled .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar.scrolled .logo-icon {
    width: 40px;
    height: 40px;
}

.navbar.scrolled .logo-icon i,
.navbar.scrolled .logo-icon svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .navbar.scrolled {
        width: 100%;
        max-width: 100%;
        top: 0;
        padding: 0.5rem 0;
        border-radius: 0;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    background: url('../assets/logo.png') center / contain no-repeat;
    font-size: 0;
    transition: none;
}


.login-header .logo-icon {
    width: 100px;
    height: 100px;
}

@media (max-width: 480px) {
    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    overflow: hidden;
    line-height: 1;
    
    display: flex;
    align-items: center;
}


.logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {

    0%,
    20% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.highlight {
    color: var(--primary);
}

.nav-menu {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
    
    font-size: 0.9rem;
    position: relative;
    
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
}

.nav-indicator {
    position: absolute;
    height: calc(100% - 1rem);
    background: var(--primary);
    border-radius: 100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    opacity: 0;
    
}

.nav-indicator.animated {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-menu li {
    position: relative;
    z-index: 1;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--white) !important;
    
}


.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


@media (max-width: 768px) {
    .navbar {
        overflow: visible !important;
        
    }

    .navbar .container {
        
        flex-wrap: wrap;
        position: relative;
        overflow: visible !important;
        
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    
    #navMenu {
        display: flex !important;
        flex-direction: column !important;
        list-style: none !important;
        position: absolute !important;

        
        top: calc(100% + 15px) !important;
        left: 5% !important;
        width: 90% !important;
        background: rgba(17, 24, 39, 0.95) !important;
        backdrop-filter: blur(10px) !important;

        
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        padding: 0 !important;
        transition: all 0.3s ease-in-out !important;

        z-index: 2147483647 !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    
    #navMenu.active {
        max-height: 80vh !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1rem 0 !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }

    #navMenu li {
        width: 100% !important;
        text-align: center !important;
    }

    #navMenu a {
        display: block !important;
        color: white !important;
        text-decoration: none !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    #navMenu a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    #navMenu li:last-child a {
        border-bottom: none !important;
    }
}


.hero {
    background: linear-gradient(to top, #ffffff 0%, #bdf1e1 10%, #8aeccd 20%, #30d8a3 60%, #19ce95 80%, #059669 100%);
    padding: 100px 1rem 1.5rem;
    color: var(--white);
    text-align: center;
}


.banner-slider+.hero {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 110px;
        
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.hero-title {
    color: var(--secondary);
    font-size: 3rem;
    margin-bottom: 0rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}


.hero .highlight {
    color: #fef08a;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-style: bold;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.hero-features {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.feature-item {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border-style: solid;
    border-width: .1rem;
    border-color: var(--secondary);
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 1rem;
}


@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}


.games-section {
    padding: 1.5rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
}


.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 480px) {
    .search-container {
        margin: 0 1.25rem 1.5rem;
    }
}

.search-input {
    width: 100%;
    padding: 0.6rem 0.8rem 0.6rem 2.8rem;
    border: 1.5px solid #cbccce;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1);
}

.search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-light);
}


.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: var(--white);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.games-grid {
    display: grid;
    
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    
    opacity: 0;
    
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.game-image {
    height: 120px;
    
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.game-icon {
    font-size: 3.5rem;
}

.game-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.game-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--secondary);
    line-height: 1.3;
}

.game-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-price {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-grow: 1;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.btn-topup {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-topup:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    flex: 0 0 auto;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0.6rem 0.75rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}


.checkout-section {
    padding: 1.5rem 0;
    min-height: 100vh;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.8rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-line {
    width: 80px;
    height: 2px;
    background: #e5e7eb;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .checkout-container {
        padding: 1.25rem;
    }

    .progress-steps {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .step-line {
        width: 30px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkout-header {
    margin-bottom: 2rem;
}

.game-banner {
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.banner-icon {
    font-size: 3rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    
    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
        
    }
}

.form-row input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-bottom: .5rem;
}

.product-option input {
    display: none;
}

.product-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-option input:checked+.product-card {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.payment-option input {
    display: none;
}

.payment-card {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-option input:checked+.payment-card {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.payment-icon {
    font-size: 1.5rem;
}

.order-summary {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.order-summary h3 {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 60px;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-dark);
}


.payment-section {
    padding: 2rem 0;
    min-height: 100vh;
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.payment-info {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-note {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    color: #78350f;
}

.payment-details {
    margin: 2rem 0;
    text-align: left;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-table tr.total-row td {
    font-size: 1.2rem;
    border-bottom: none;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .detail-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .detail-table tr.total-row td {
        font-size: 1rem;
    }
}

.payment-simulation {
    margin-top: 2rem;
}

.qr-dummy {
    margin: 2rem 0;
}

.qr-box {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f3f4f6;
    border: 3px dashed var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.timer {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 1s linear;
}

.btn-confirm {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}


.success-section {
    padding: 2rem 0;
    min-height: 100vh;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 5rem;
    animation: bounceIn 0.8s;
}

.success-title {
    color: var(--success);
    margin: 1rem 0;
}

.success-details {
    margin: 2rem 0;
    text-align: left;
}

.success-info {
    background: #d1fae5;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #78350f;
}

.success-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text);
}


.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #10b981 0%, #064e3b 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .login-header h2 {
        font-size: 1.35rem;
    }

    .auth-logo {
        height: 70px !important;
    }

    .auth-logo-container {
        margin-top: -0.5rem !important;
        margin-bottom: 1rem !important;
    }
}



main.auth-page {
    padding-top: 90px;
}

.login-container {
    width: 100%;
    max-width: 380px;
    z-index: 10;
    margin: 0 auto;
}

.login-box {
    background: var(--white);
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
}

@media (max-width: 480px) {
    .auth-page {
        padding-top: 75px !important;
        
        min-height: auto;
        display: block;
        
    }

    .login-container {
        max-width: 100%;
        padding: 1rem 0;
    }

    .login-box {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.login-header p {
    color: #6b7280;
    font-size: 0.85rem;
}

.login-header .logo-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.25rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-group .checkbox-wrapper {
    width: auto;
    margin-bottom: 0;
    padding: 0.6rem;
    background-color: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-group .checkbox-wrapper input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 2.5px solid #d1d5db !important;
    border-radius: 6px !important;
    background-color: var(--white) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

.form-group .checkbox-wrapper input[type="checkbox"]:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    transform: scale(1.05) !important;
}

.form-group .checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
}

.form-group .checkbox-wrapper input[type="checkbox"]:checked:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15) !important;
    transform: scale(1.05) !important;
}

.form-group .checkbox-wrapper input[type="checkbox"]:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

.form-group .checkbox-wrapper label {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    user-select: none !important;
    color: var(--text) !important;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #6b7280;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
}


.admin-layout {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    
    background: linear-gradient(to right, #1f2937 250px, var(--bg) 250px);
    
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
        height: auto;
        
        overflow: visible;
        
    }

    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #1f2937 !important;
        height: auto;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 0 !important;
        padding: 0.75rem 1rem !important;
        background: #1f2937 !important;
    }

    .sidebar-nav {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin: 0;
        
        padding: 0;
        padding-bottom: 1rem !important;

        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    
    .sidebar.open .sidebar-nav {
        max-height: 1000px;
        
        opacity: 1;
        margin-top: 0;
        transform: translateY(0);
    }

    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        text-align: left;
        border: none;
        border-bottom: 1px solid #374151;
    }

    .mobile-menu-toggle {
        display: block !important;
        width: 100%;
        padding: 1rem;
        background: var(--secondary);
        color: var(--white);
        text-align: left;
        border: none;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        border-bottom: 1px solid #374151;
    }

    .main-content {
        padding: 1.25rem 1rem !important;
        height: auto !important;
        
        overflow-y: visible !important;
        
    }

    .content-header {
        margin-bottom: 1.25rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .stat-card {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    .stat-icon {
        font-size: 1.75rem !important;
    }

    .stat-info h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0px !important;
    }

    .stat-info p {
        font-size: 0.8rem !important;
    }

    
    #productsContainer>div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    #productsContainer>div:last-child {
        border-bottom: none;
    }

    #productsContainer>div input,
    #productsContainer>div button {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

.mobile-menu-toggle {
    display: none;
    
}


.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg);
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    
}


.main-content {
    scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.4);
}

.sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
    background: #1f2937;
    color: var(--white);
    padding: 2rem 1rem;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    
    -ms-overflow-style: none;
    
}


.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.75rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(5px);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateX(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.content-header {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card.blue {
    border-left: 4px solid #3b82f6;
}

.stat-card.green {
    border-left: 4px solid #10b981;
}

.stat-card.yellow {
    border-left: 4px solid #f59e0b;
}

.stat-card.purple {
    border-left: 4px solid #8b5cf6;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.table-container {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-buttons form {
    margin: 0;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.85rem;
}


.settings-container {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.settings-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.settings-section h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table tr td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.detail-table tr td:first-child {
    font-weight: 700;
    color: var(--text-light);
    width: 220px;
    background: #f9fafb;
}

.detail-table tr:last-child td {
    border-bottom: none;
}



.footer {
    background: #111827;
    color: #d1d5db;
    padding: 2rem 0 1rem;
    
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    
    gap: 1.5rem;
    
    margin-bottom: 1.5rem;
    
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.6;
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-heading {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.25rem;
    
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: fall 3s linear;
    z-index: 9999;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin: 0;
        border: none;
    }

    .admin-layout {
        background: #1f2937;
        
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    
    .admin-layout .main-content {
        background: var(--bg);
        margin: 0 !important;
    }
}


.btn-danger-small {
    padding: 0.5rem 0.75rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-filter {
    padding: 0.75rem 1rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.btn-filter:hover {
    background: #111827;
}


.filter-box {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1rem 0 1.5rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 280px)) auto;
    gap: 1rem;
    align-items: end;
    justify-content: start;
    width: fit-content;
}

.filter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}


@media (min-width: 481px) {
    .filter-form {
        grid-template-rows: auto auto;
        column-gap: 1rem;
        row-gap: 0.35rem;
        align-items: start;
    }

    .filter-form .form-group {
        display: contents;
    }

    .filter-form .form-group label {
        grid-row: 1;
    }

    .filter-form .form-group input[type="date"] {
        grid-row: 2;
    }

    .filter-form .btn-filter {
        grid-row: 2;
        align-self: stretch;
    }
}

.filter-form label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.filter-form input[type="date"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    min-height: 44px;
    font-family: inherit;
}

@media (max-width: 480px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
}

.btn-wa {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: #22c55e;
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.btn-copy {
    padding: 0.5rem 0.75rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}


.btn-submit {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    min-height: 56px;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--primary-dark);
}


.trx-status-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.trx-status-select {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}


.trx-status-form .trx-status-submit {
    width: auto;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    min-height: 52px;
}

@media (max-width: 480px) {

    .trx-status-select,
    .trx-status-form .trx-status-submit {
        width: 100%;
    }
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    width: 100%;
    max-width: 560px;
    background: var(--white);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: calc(100vh - 4rem);
    overflow: auto;
}

.modal-content h2 {
    margin: 0 0 0.6rem;
    font-size: 1.3rem;
}

.modal-content form {
    display: grid;
    gap: 0.8rem;
}

.modal-content .form-group {
    margin-bottom: 0;
}

.modal-content textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
}

.modal-content input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}

.modal-content input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
}

.modal-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
}


.faq-section {
    padding: 2rem 0 4rem;
}

.faq-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.faq-category {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.faq-category h2 {
    margin-bottom: 0.75rem;
}

.faq-item {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1rem;
    margin: 0;
}

.faq-answer {
    display: none;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-cta {
    margin-top: 2rem;
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.faq-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}


.contact-section {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info-cards {
    display: grid;
    gap: 1rem;
}

.contact-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    font-size: 2rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.contact-form textarea,
.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
}


.contact-form .btn-submit,
.contact-form button[type="submit"],
.contact-form button {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    min-height: 56px;
    cursor: pointer;
}

.contact-form .btn-submit:hover,
.contact-form button[type="submit"]:hover,
.contact-form button:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


.promo-section {
    padding: 1rem 0 4rem;
}

.page-title {
    margin-top: 0 !important;
    margin-bottom: 0rem;
}

.page-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-promo .promo-banner {
    background: linear-gradient(135deg, var(--secondary), #111827);
    color: var(--white);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    overflow: hidden;
}

.promo-banner .banner-content {
    flex: 1 1 320px;
    min-width: 240px;
}

.promo-banner .banner-graphic {
    flex: 0 0 auto;
}

.promo-banner .btn-primary {
    display: inline-block;
    margin-top: 0.75rem;
}

.promo-banner .promo-period {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .featured-promo .promo-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-banner .banner-graphic {
        align-self: flex-end;
    }

    .promo-banner .btn-primary {
        width: 100%;
        text-align: center;
    }
}

.promo-badge {
    display: inline-block;
    background: var(--warning);
    color: #111827;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.75rem;
}

.banner-graphic {
    font-size: 3rem;
    opacity: 0.9;
}

.vouchers-section {
    margin-top: 2rem;
}

.vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.voucher-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.voucher-icon {
    font-size: 1.6rem;
}

.voucher-type {
    font-weight: 800;
    color: var(--secondary);
    font-size: 0.8rem;
}

.voucher-value {
    font-size: 2rem;
    margin: 0.25rem 0;
    color: var(--primary);
}

.voucher-code-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 0.75rem;
    border-radius: 12px;
    margin-top: 0.75rem;
}

.voucher-code {
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .voucher-code-box {
        justify-content: flex-start;
    }

    .voucher-code-box .btn-copy {
        width: 100%;
    }
}

.special-offers {
    margin-top: 2rem;
}

.promo-terms {
    margin-top: 2rem;
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    padding-left: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}


.promo-detail-section {
    padding-top: 75px !important;
    
    padding-bottom: 4rem;
}

.promo-detail-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.promo-detail-banner {
    width: 100%;
    position: relative;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    
}

.promo-detail-banner img {
    max-width: 100%;
    max-height: 280px;
    
    height: auto;
    display: block;
    object-fit: contain;
    
    border-radius: 16px;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    
}

.promo-detail-body {
    padding: 2.5rem;
}

.promo-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.promo-detail-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.promo-detail-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-back-home:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

@media (max-width: 768px) {
    .promo-detail-body {
        padding: 1.5rem;
    }

    .promo-detail-title {
        font-size: 1.5rem;
    }

    .promo-detail-btn-group .btn-primary,
    .promo-detail-btn-group .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


.about-hero {
    background: linear-gradient(to top, #ffffff 0%, #bdf1e1 10%, #8aeccd 20%, #30d8a3 60%, #19ce95 80%, #059669 100%);
    color: var(--secondary);
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.about-content {
    padding: .5rem 0 4rem;
}

.about-content>.container>div {
    margin-bottom: 2rem;
}

.about-content>.container>div:last-child {
    margin-bottom: 0;
}

.about-story p+p {
    margin-top: 0.75rem;
}

.about-team p {
    margin-top: 0.75rem;
}

.values-grid,
.offers-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.value-card,
.offer-card,
.team-member {
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.value-icon,
.offer-icon {
    font-size: 2rem;
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.about-cta {
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.about-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}


.legal-section {
    padding: 2rem 0 4rem;
}

.legal-content {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-block {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}


.history-section,
.check-order-section {
    padding: 2rem 0 6rem;
    flex: 1;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.filter-tab {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.filter-tab.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}


.history-filter-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.history-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.history-filter-form .form-group {
    margin: 0;
}

.history-filter-form input[type="date"],
.history-filter-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    min-height: 44px;
}

.history-apply-btn {
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    min-height: 44px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .history-filter-form {
        grid-template-columns: 1fr;
    }

    .history-apply-btn {
        width: 100%;
    }
}

.transactions-list {
    display: grid;
    gap: 1rem;
}

.transaction-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.trx-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.trx-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}


.empty-state {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 0.5rem;
    max-width: 560px;
}

.empty-icon {
    font-size: 2rem;
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    margin: 0;
    color: var(--text-light);
}

.empty-state .btn-primary {
    justify-self: start;
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    min-height: 44px;
}

@media (max-width: 480px) {
    .empty-state {
        max-width: 100%;
    }

    .empty-state .btn-primary {
        width: 100%;
    }
}

.check-order-box {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 850px;
    margin: 0 auto;
}

.check-form .form-group input {
    height: 60px;
    font-size: 1.1rem;
    padding: 0 1.5rem;
    border-radius: 12px;
}

@media (max-width: 480px) {

    .check-order-box,
    .transaction-card,
    .history-filter-card {
        padding: 1rem;
        
    }
}


.check-form .btn-submit {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    min-height: 56px;
    cursor: pointer;
}

.check-form .btn-submit:hover {
    background: var(--primary-dark);
}


.order-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    animation: resultDropdown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

@keyframes resultDropdown {
    0% {
        opacity: 0;
        transform: translateY(-25px) scale(0.97);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-badge.large {
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}



.profile-section {
    padding: 2rem 0 4rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.profile-stats .stat-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem;
    transition: all 0.3s ease;
}

.profile-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: var(--white);
    border-color: var(--primary);
}

.profile-stats .stat-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    display: block;
    transition: color 0.2s ease;
}

.profile-stats .stat-link:hover {
    color: var(--primary-dark);
}

.profile-stats .stat-value {
    display: block;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.profile-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-form small {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-light);
}

.profile-form input[disabled] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}


.banner-slider {
    width: 100%;
    padding: .25rem .25rem;
    background: linear-gradient(to bottom, #1f2937 25%, #059669 100%);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.banner-item {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.banner-item img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.banner-item {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/4;
}

@media (max-width: 768px) {
    .banner-item {
        aspect-ratio: 16/8;
    }
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-caption {
    position: absolute;
    inset: 0;
    padding: 1.5rem 5.5rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .banner-caption {
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
        justify-content: flex-end;
    }
}

.banner-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.2rem;
    line-height: 1.2;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.banner-item.active .banner-title {
    transform: translateY(0);
    opacity: 1;
}

.banner-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    max-width: 450px;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.banner-item.active .banner-description {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 1.5rem;
    }

    .banner-description {
        font-size: 0.9rem;
        display: none;
    }
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

@media (max-width: 640px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}


.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    width: 30px;
    background: var(--primary);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}


.legal-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #111827 100%);
    color: var(--white);
    text-align: center;
    height: 380px !important;
    
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 10;
}


.legal-header .container {
    height: 100% !important;
    position: relative !important;
    display: block !important;
    max-width: 1248px !important;
    
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.legal-badge {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%);
    top: 90px !important;
    padding: 0.5rem 1.25rem !important;
    white-space: nowrap !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    opacity: 0;
    
}

.legal-header h1 {
    position: absolute !important;
    left: 24px !important;
    right: 24px !important;
    top: 140px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    opacity: 0;
    
}

.legal-header p {
    position: absolute !important;
    left: 24px !important;
    right: 24px !important;
    top: 250px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    opacity: 0;
    
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 700px !important;
}

.legal-layout {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    
    gap: 3rem !important;
    padding: 5rem 24px !important;
    
    width: 100% !important;
    max-width: 1248px !important;
    margin: 0 auto !important;
    align-items: start !important;
    position: relative;
    z-index: 20;
    box-sizing: border-box !important;
}

.legal-sidebar {
    position: sticky !important;
    top: 100px !important;
    width: 280px !important;
    min-width: 280px !important;
    height: calc(100vh - 100px) !important;
}

.legal-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    background: var(--white) !important;
    padding: 3rem 1.5rem !important;
    
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.legal-nav>*:first-child {
    margin-top: 0 !important;
}

.legal-nav-item {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    padding: 0 1.25rem !important;
    color: var(--text-light) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


.legal-nav-item:hover {
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.08) !important;
    transform: translateX(6px) !important;
    box-shadow: -4px 0 12px rgba(16, 185, 129, 0.05);
}


.legal-nav-item.active {
    color: var(--white) !important;
    background: var(--primary) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
    transform: translateX(8px) scale(1.02) !important;
}


@keyframes nav-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.legal-nav-item.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: nav-pulse 2s infinite;
}


.legal-nav-item:active {
    transform: translateX(4px) scale(0.98) !important;
    transition: all 0.1s ease;
}

.legal-content {
    background: var(--white) !important;
    padding: 3rem !important;
    
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    box-sizing: border-box !important;
    
    
}




.legal-header .legal-badge {
    opacity: 0;
    animation: fadeInUpCentered 0.6s ease-out forwards;
    animation-delay: 0.2s;
}


.legal-header h1 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
}


.legal-header p {
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.6s;
}


.legal-nav {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.6s;
}


.legal-content .legal-block {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-content .legal-block:nth-child(1) {
    animation-delay: 0.6s;
}

.legal-content .legal-block:nth-child(2) {
    animation-delay: 0.7s;
}

.legal-content .legal-block:nth-child(3) {
    animation-delay: 0.8s;
}

.legal-content .legal-block:nth-child(4) {
    animation-delay: 0.9s;
}

.legal-content .legal-block:nth-child(5) {
    animation-delay: 1.0s;
}

.legal-content>*:first-child,
.legal-content>.legal-block:first-child,
.legal-content>.legal-block:first-child>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 992px) {
    .legal-content {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }
}

.legal-block {
    margin-bottom: 3.5rem;
}

.legal-block:last-child {
    margin-bottom: 0;
}

.legal-block:first-child,
.legal-block:first-child>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.legal-block h2 {
    font-size: 1.8rem !important;
    color: var(--secondary) !important;
    margin-bottom: 2rem !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    
    height: 48px !important;
    
    line-height: 1 !important;
    gap: 1rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

@media (max-width: 768px) {
    .legal-block h2 {
        font-size: 1.35rem;
    }

    .legal-block h2::before {
        height: 18px;
        width: 4px;
    }
}

.legal-block h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 99px;
    flex-shrink: 0;
    
    margin-top: 4px;
    
}

.legal-block h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.legal-block p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.legal-block ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 480px) {
    .legal-block ul li {
        word-break: break-all;
        
        padding-left: 1.25rem;
    }
}

.legal-block ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}


@media (max-width: 992px) {
    .legal-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 0 2rem 0 !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: -1.5rem !important;
        box-sizing: border-box !important;
    }

    .legal-header {
        height: auto !important;
        min-height: 0 !important;
        padding: 30px 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .legal-header .container {
        height: auto !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 1rem !important;
        text-align: center !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .legal-badge,
    .legal-header .legal-badge {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 0.75rem !important;
        opacity: 1 !important;
    }

    .legal-header h1 {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        height: auto !important;
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin: 0 0 0.5rem 0 !important;
        display: block !important;
        opacity: 1 !important;
    }

    .legal-header p {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        height: auto !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
        opacity: 1 !important;
    }

    #pageWrapper:has(.legal-header) {
        background: linear-gradient(to bottom, #064e3b 0%, #059669 20%, var(--white) 40%) !important;
    }

    .legal-sidebar {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 1.25rem !important;
        margin-top: -0.5rem !important;
        z-index: auto !important;
        background: transparent !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .legal-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 0.5rem !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    .legal-nav::-webkit-scrollbar {
        display: none !important;
    }

    .legal-nav-item {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        height: auto !important;
        padding: 0.5rem 0.9rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        background: transparent !important;
        border: 1px solid #e5e7eb !important;
        transform: none !important;
    }

    .legal-nav-item.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
        box-shadow: none !important;
    }

    .legal-nav-item.active::after {
        display: none !important;
    }

    .legal-nav-item:hover {
        transform: none !important;
    }

    .legal-content {
        padding: 1.5rem 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
        background: white !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04) !important;
        margin-top: 1rem !important;
    }

    .legal-content .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .legal-content .values-grid,
    .legal-content .team-grid,
    .legal-content .offers-grid,
    .legal-content .stats-showcase {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .legal-block {
        margin-bottom: 2rem !important;
    }

    .legal-block h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        height: auto !important;
    }

    .legal-block h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .legal-block ul {
        padding-left: 0 !important;
    }

    .legal-block ul li {
        padding-left: 1.25rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }

    .legal-content .faq-cta {
        padding: 1.5rem 1rem !important;
    }

    .legal-content .faq-cta .btn-primary {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
    }
}


@media (max-width: 480px) {
    .legal-header {
        padding: 80px 1rem 0.75rem !important;
        
    }

    .legal-header h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .legal-header p {
        font-size: 0.9rem !important;
    }

    .legal-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .legal-sidebar {
        top: 60px !important;
    }

    .legal-nav {
        padding: 0.4rem 0.5rem !important;
    }

    .legal-nav-item {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    .legal-content {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }

    .legal-block h2 {
        font-size: 1.25rem !important;
    }

    .legal-block h3 {
        font-size: 1rem !important;
    }

    .legal-block p,
    .legal-block li {
        font-size: 0.9rem !important;
    }
}


.navbar.scrolled {
    background: rgba(17, 24, 39, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}





@media (max-width: 768px) {


    .legal-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
    }

    .legal-block {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .legal-block p,
    .legal-block li,
    .legal-block h2,
    .legal-block h3,
    .legal-block strong {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        max-width: 100% !important;
    }

    .legal-block ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .legal-block ul li {
        padding-left: 1.5rem !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .faq-container,
    .faq-item,
    .faq-question,
    .faq-answer,
    .faq-answer p {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    
    .testimonial-card,
    .testimonial-content,
    .testimonial-text {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    
    .contact-form,
    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
    }

    
    .blog-card,
    .blog-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    
    .career-card,
    .job-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    
    .values-grid,
    .value-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    
    .grid-2-col {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}


@media (max-width: 480px) {
    .legal-content {
        padding: 1rem 0.75rem !important;
        margin-top: 1rem !important;
    }

    .legal-block h2 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
    }

    .legal-block h3 {
        font-size: 1rem !important;
    }

    .legal-block p,
    .legal-block li {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }

    .legal-block ul li {
        padding-left: 1.25rem !important;
    }

    
    .legal-block {
        margin-bottom: 2rem !important;
    }

    .faq-question h3 {
        font-size: 0.95rem !important;
    }

    .faq-answer p {
        font-size: 0.9rem !important;
    }
}



@media (max-width: 768px) {

    
    .legal-content>.legal-block>div[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    
    .legal-content div[style*="background: #f9fafb"][style*="border-radius"] {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .legal-content p[style*="font-style: italic"] {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    
    .legal-content div[style*="display: flex"][style*="align-items: center"][style*="gap"] {
        gap: 0.75rem !important;
    }

    
    .legal-content div[style*="border-radius: 50%"][style*="width: 40px"] {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.8rem !important;
    }

    
    .flex-responsive[style*="padding"] {
        flex-direction: column !important;
        padding: 1rem 0 !important;
        gap: 0.5rem !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .flex-responsive[style*="padding"]:last-child {
        border-bottom: none !important;
    }

    
    .legal-content>div[style*="linear-gradient"] {
        padding: 2rem 1.25rem !important;
        border-radius: 16px !important;
        margin-top: 2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .legal-content>div[style*="linear-gradient"] h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .legal-content>div[style*="linear-gradient"] p {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
        opacity: 0.9 !important;
    }

    .legal-content>div[style*="linear-gradient"] .btn-primary {
        padding: 0.75rem 2rem !important;
        font-size: 0.9rem !important;
    }

    
    .contact-form {
        width: 100% !important;
    }

    .contact-form .grid-2-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .contact-form .form-group {
        width: 100% !important;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100% !important;
        padding: 0.9rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        border: 1.5px solid #e5e7eb !important;
        box-sizing: border-box !important;
    }

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: var(--primary) !important;
        outline: none !important;
    }

    .contact-form button[type="submit"] {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    
    .legal-content div[style*="border-left: 4px"] {
        padding: 1.25rem !important;
        border-radius: 0 12px 12px 0 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .legal-content div[style*="border: 2px dashed"] {
        padding: 2rem 1.25rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .legal-content div[style*="border: 2px dashed"] div[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }

    
    .legal-content .grid-2-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .legal-content .grid-2-col>div {
        padding: 1.25rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .legal-content .grid-2-col div[style*="border-radius: 50%"] {
        width: 50px !important;
        height: 50px !important;
    }

    
    .legal-content div[style*="grid-template-columns: repeat(auto-fit"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .legal-content div[style*="grid-template-columns: repeat(auto-fit"]>div {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }

    
    .faq-cta,
    .legal-content>div[style*="text-align: center"][style*="margin-top"] {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
        margin-top: 2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .legal-block .grid-2-col h3 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .legal-block .grid-2-col p {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }
}


@media (max-width: 480px) {

    
    .legal-content div[style*="background: #f9fafb"][style*="border-radius"] {
        padding: 1rem !important;
    }

    .legal-content p[style*="font-style: italic"] {
        font-size: 0.9rem !important;
    }

    
    .legal-content>div[style*="linear-gradient"] {
        padding: 1.5rem 1rem !important;
    }

    .legal-content>div[style*="linear-gradient"] h3 {
        font-size: 1.1rem !important;
    }

    
    .legal-content div[style*="border-left: 4px"] {
        padding: 1rem !important;
    }

    
    .legal-content .grid-2-col>div {
        padding: 1rem !important;
    }

    
    .legal-content div[style*="grid-template-columns: repeat(auto-fit"]>div {
        padding: 1rem !important;
    }

    
    .legal-content div[style*="border-radius: 50%"][style*="width: 40px"],
    .legal-content div[style*="border-radius: 50%"][style*="width: 60px"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.7rem !important;
    }
}


@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 1rem !important;
    }

    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    pre,
    code {
        white-space: pre-wrap !important;
        word-break: break-word !important;
        overflow-x: auto !important;
    }

    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    cursor: pointer;
    border: none;
    backdrop-filter: blur(10px);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.back-to-top span {
    position: relative;
    z-index: 1;
    line-height: 1;
    transform: translateY(-2px);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


@keyframes back-to-top-pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(16, 185, 129, 0.6);
    }
}

.back-to-top.show {
    animation: back-to-top-pulse 2s ease-in-out infinite;
}

.back-to-top.show:hover {
    animation: none;
}


@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}




@media (max-width: 768px) {

    
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    
    .container,
    .payment-container,
    .success-container,
    .login-box {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }

    
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    
    
    body>section:first-of-type,
    main>section:first-of-type {
        padding-top: 90px !important;
    }

    .admin-layout .main-content {
        padding-top: 0px !important;
        
        margin-top: 0 !important;
    }

    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea,
    .btn-topup,
    .btn-confirm,
    .btn-submit {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        
    }

    
    .grid-2-col,
    .grid-3-col,
    .grid-4-col,
    .payment-methods {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    
    .stat-card,
    .info-box {
        margin-bottom: 1rem !important;
    }

    
    .admin-layout,
    .main-content {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .table-container {
        width: 100% !important;
        max-width: calc(100vw - 2rem) !important;
        
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
        border: 1px solid #e5e7eb !important;
        margin-bottom: 1.5rem !important;
        display: block !important;
        background: white !important;
    }

    table {
        min-width: 600px !important;
        
        display: table !important;
        width: 100% !important;
    }

    
    th:nth-child(1),
    td:nth-child(1),
    
    th:nth-child(6),
    td:nth-child(6)

    
        {
        display: none !important;
    }

    
    td button,
    td form {
        margin-bottom: 4px !important;
    }

    
    .content-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }


    
    .modal-content {
        width: 95% !important;
        margin: 10% auto !important;
        padding: 1.5rem !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    
    .navbar {
        height: 70px !important;
        
        display: flex !important;
        align-items: center !important;
    }

    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
        position: relative !important;
        overflow: visible !important;
    }

    .logo,
    .logo a {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .logo-text {
        padding-top: 3px !important;
        
    }

    
    .nav-toggle {
        display: block !important;
        background: transparent !important;
        border: none !important;
        padding: 10px !important;
        margin-right: -10px !important;
        width: 45px !important;
        height: 45px !important;
    }

    .nav-toggle .bar {
        display: block !important;
        height: 3px !important;
        width: 25px !important;
        margin: 5px auto !important;
        background-color: white !important;
        border-radius: 3px !important;
        transition: 0.3s !important;
    }

    
    .legal-layout {
        display: flex !important;
        flex-direction: column !important;
        padding-top: 1rem !important;
        gap: 0rem !important;
    }

    .legal-sidebar {
        padding-top: 1.5rem !important;
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 90 !important;
    }

    .legal-nav {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 0.75rem !important;
        gap: 0.75rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        
    }

    .legal-nav::-webkit-scrollbar {
        display: none !important;
        
    }

    .legal-nav-item {
        flex: 0 0 auto !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        border: 1px solid #e5e7eb !important;
    }

    .legal-nav-item.active {
        border-color: var(--primary) !important;
    }

    .legal-content {
        margin-top: 1.5rem !important;
        padding: 1.5rem !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        
    }

    .footer-brand,
    .footer-col {
        width: 100% !important;
        margin-bottom: 0 !important;
        display: block !important;
        height: auto !important;
    }

    .footer-brand p {
        margin-bottom: 0.5rem !important;
    }

    .footer-heading {
        margin-bottom: 0.5rem !important;
    }
}


@media (max-width: 768px) {

    .nav-indicator {
        display: none !important;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .game-actions .btn-topup {
        width: auto !important;
        display: flex !important;
        flex: 1 !important;
    }

    .game-actions .btn-secondary {
        display: flex !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .promo-terms {
        padding-left: 1.25rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn-secondary.btn-small {
        width: auto !important;
        display: flex !important;
        font-size: 0.7rem !important;
    }

    .banner-slider .container {
        overflow-x: visible !important;
    }

    .game-card {
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr !important;
    }

    .game-actions {
        flex-direction: column;
    }

    .game-actions .btn-topup,
    .game-actions .btn-secondary {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .feature-item {
        max-width: 100%;
    }
}


@media (max-width: 768px) {

    #pageWrapper:has(.auth-page) {
        background: transparent;
    }

    #pageWrapper:has(.auth-page) .auth-page {
        margin-top: -75px;
        padding-top: 75px;
        min-height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #pageWrapper:has(.auth-page) .login-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #pageWrapper:has(.auth-page) .footer {
        margin-top: auto;
    }

    .legal-section {
        padding-top: 75px !important;
    }

    .legal-block .faq-question h3 {
        font-size: 0.95rem !important;
    }

    .legal-block .faq-answer p {
        font-size: 0.85rem !important;
    }

    .legal-content [style*="border-left: 4px"] {
        padding: 1rem !important;
        border-radius: 0 12px 12px 0 !important;
        margin-top: 1rem !important;
    }

    .legal-content [style*="border-left: 4px"] h3 {
        font-size: 1rem !important;
    }

    .legal-content [style*="border-left: 4px"] p {
        font-size: 0.9rem !important;
    }

    .legal-content [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .legal-content [style*="grid-template-columns: repeat("] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .legal-content [style*="background: linear-gradient(135deg, var(--primary)"] {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        text-align: center !important;
    }

    .legal-content [style*="background: linear-gradient(135deg, var(--primary)"] h3 {
        font-size: 1.1rem !important;
    }

    .legal-content [style*="background: linear-gradient(135deg, var(--primary)"] p {
        font-size: 0.9rem !important;
    }

    .legal-content [style*="background: linear-gradient(135deg, var(--primary)"] .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }

    .legal-sidebar [style*="background: var(--primary)"] {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        margin-top: 1rem !important;
    }

    .legal-sidebar [style*="background: var(--primary)"] h4 {
        font-size: 1rem !important;
    }

    .legal-sidebar [style*="background: var(--primary)"] p {
        font-size: 0.85rem !important;
    }

    .legal-content article {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .legal-content article > div:first-child {
        flex: none !important;
        width: 100% !important;
        height: 120px !important;
    }

    .legal-content article > div:last-child {
        flex: none !important;
        min-width: 0 !important;
        padding: 1rem !important;
    }

    .legal-content article h3 {
        font-size: 1rem !important;
    }

    .legal-content article p {
        font-size: 0.85rem !important;
    }

    .legal-content .contact-form .grid-2-col {
        display: flex !important;
        flex-direction: column !important;
    }

    .legal-content .contact-form input,
    .legal-content .contact-form select,
    .legal-content .contact-form textarea {
        font-size: 16px !important;
        padding: 0.75rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    .legal-content .contact-form .btn-primary {
        width: 100% !important;
        padding: 0.85rem !important;
        border-radius: 10px !important;
        font-size: 16px !important;
    }

    .legal-content [style*="background: #f9fafb"][style*="padding: 3rem"] {
        padding: 1.5rem 1rem !important;
    }

    .legal-content [style*="background: #f9fafb"][style*="padding: 3rem"] h3 {
        font-size: 1.1rem !important;
    }

    .legal-content [style*="background: #f9fafb"][style*="padding: 3rem"] p {
        font-size: 0.9rem !important;
    }

    .legal-content [style*="border-radius: 50%"][style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.9rem !important;
    }

    .legal-content [style*="border: 1px solid #e5e7eb"][style*="border-radius: 12px"] {
        padding: 1rem !important;
        text-align: center !important;
    }

    .legal-content [style*="border: 1px solid #e5e7eb"][style*="border-radius: 12px"] h3 {
        font-size: 0.95rem !important;
    }

    .legal-content [style*="border: 1px solid #e5e7eb"][style*="border-radius: 12px"] p {
        font-size: 0.8rem !important;
    }

    .legal-content .legal-block [style*="display: flex"][style*="gap"] {
        gap: 0.5rem !important;
    }

    .legal-content .legal-block i[data-lucide] {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
    }

    .legal-content .faq-question {
        gap: 0.5rem !important;
    }

    .legal-content .faq-question h3 {
        flex: 1 !important;
    }

    .legal-content [style*="border: 2px dashed"] {
        padding: 1.5rem 1rem !important;
    }

    .legal-content .post-content {
        padding: 1rem 0 !important;
    }

    .legal-content .post-content h2 {
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .legal-content .post-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .legal-content .post-content img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 1rem 0 !important;
    }

    .legal-content [style*="display: flex"][style*="gap: 10px"] {
        flex-wrap: wrap !important;
    }

    .legal-content [style*="display: flex"][style*="gap: 10px"] > span {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    .legal-sidebar [style*="display: flex"][style*="flex-direction: column"] {
        gap: 0.5rem !important;
    }

    .legal-sidebar [style*="display: flex"][style*="flex-direction: column"] > a {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.75rem !important;
    }

    .legal-content .flex-responsive {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .legal-content .flex-responsive > div:first-child {
        font-size: 1rem !important;
    }

    .legal-content .flex-responsive p {
        font-size: 0.85rem !important;
    }

    .legal-content .flex-responsive small {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {

    .legal-header {
        padding: 75px 0.75rem 1.25rem !important;
    }

    .legal-header h1 {
        font-size: 1.4rem !important;
    }

    .legal-header p {
        font-size: 0.85rem !important;
    }

    .legal-header .legal-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.75rem !important;
    }

    .legal-nav {
        padding: 0.4rem !important;
        gap: 0.4rem !important;
    }

    .legal-nav-item {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .legal-content {
        padding: 1rem 0.75rem !important;
        border-radius: 12px !important;
    }

    .legal-block h2 {
        font-size: 1.1rem !important;
    }

    .legal-block p,
    .legal-block li {
        font-size: 0.85rem !important;
    }

    .legal-content article > div:first-child {
        height: 100px !important;
    }
}