/* app.css - Styling for the User Front-end Application */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 7, 16, 0.75);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* Main Container Layout */
.main-container {
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 45px 0;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.badge-primary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 1rem; }
.block { display: block; }
.w-100 { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; border-radius: 12px; }
.btn-xs { padding: 4px 8px; font-size: 0.75rem; border-radius: 6px; }
.text-center { text-align: center; }

.hero-banner-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.slider-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    height: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(360deg, var(--bg-dark) 10%, rgba(0,0,0,0.1) 80%);
}

.slide-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    z-index: 5;
}

.slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.slide-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Catalog Filter */
.catalog-section {
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
}

.catalog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 15px 10px 45px;
    border-radius: 10px;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card-banner {
    position: relative;
    height: 120px;
    width: 100%;
}

.game-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.game-card-logo-container {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid rgba(17, 12, 28, 1);
    background: #09090b;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.game-card-logo-container img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.game-card-body {
    padding: 40px 15px 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.game-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Loading Spinners */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

/* Wizard Area */
.topup-wizard-section {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn-container {
    margin-bottom: 20px;
}

.game-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.game-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.game-header-info h2 {
    font-size: 1.8rem;
}

.game-header-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.wizard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 25px;
    align-items: start;
}

.wizard-card {
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.step-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 10px var(--primary-glow);
}

.account-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 15px;
}

/* Handle grid details if single field */
.account-fields-grid:has(#zone-id-group[style*="display: none"]) {
    grid-template-columns: 1fr;
}

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.nominal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.nominal-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

.nominal-card.selected {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.nominal-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.nominal-card p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

.nominal-card.selected p {
    color: #ffffff;
}

/* Payment Grid */
.payment-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: var(--transition);
}

.payment-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.04);
}

.payment-card.selected {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.payment-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-logo-mock {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-card-right {
    text-align: right;
}

.payment-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}

.payment-fee {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Checkout Contact Summary */
.wa-input-wrapper {
    display: flex;
    align-items: center;
}

.wa-prefix {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wa-input-wrapper input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.text-muted-small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.summary-checkout-box {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.summary-checkout-box h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.summary-row span:last-child {
    color: #ffffff;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 10px 0;
}

.summary-row.total-row {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.summary-row.total-row span:first-child {
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Order Tracker styling */
.tracking-section {
    padding: 50px 0;
}

.tracking-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px;
}

.track-input-group {
    display: flex;
    gap: 12px;
}

.track-input-group input {
    flex: 1;
}

.tracking-result-box {
    margin-top: 30px;
    animation: fadeIn 0.4s ease forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.result-header h3 {
    font-size: 1.3rem;
}

/* Stepper horizontal tracker */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 35px;
}

.stepper-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.step-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

/* Active states for stepper */
.stepper-step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.stepper-step.active .step-label {
    color: #ffffff;
    font-weight: 600;
}

.stepper-step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.stepper-step.completed .step-label {
    color: var(--success);
}

.stepper-step.cancelled .step-icon {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.stepper-step.cancelled .step-label {
    color: var(--danger);
}

.result-details {
    padding: 20px;
}

.result-details h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-item .value {
    font-size: 0.95rem;
    font-weight: 500;
}

.font-bold {
    font-weight: 700 !important;
}

.tracking-error-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-top: 30px;
    border-color: rgba(239, 68, 68, 0.2);
}

.tracking-error-box i {
    font-size: 2.2rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.invoice-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.invoice-id {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.invoice-id span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.invoice-id h4 {
    font-size: 0.95rem;
    color: var(--secondary);
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.invoice-row strong, .invoice-row span:last-child {
    color: #ffffff;
}

.invoice-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 8px 0;
}

.invoice-total {
    font-size: 1rem;
    font-weight: 700;
}

.invoice-total span:last-child {
    font-size: 1.15rem;
    font-weight: 800;
}

.payment-instructions {
    padding: 15px;
    background: rgba(255,255,255,0.02);
}

.qris-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    width: 210px;
    margin: 10px auto;
}

.qris-svg {
    border: 1px solid #e4e4e7;
    margin-bottom: 8px;
}

.qris-brand {
    color: #0b0a0f;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.bank-account-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}

.bank-account-box #bank-account-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.account-num-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.account-num-row .num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.bank-account-box .holder {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transfer-list {
    padding-left: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transfer-list li {
    margin-bottom: 6px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer Section */
.footer {
    border-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: rgba(8, 7, 16, 0.95);
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px 20px;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive styles */
@media(max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-banner-slider {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        height: 250px;
    }

    .wizard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media(max-width: 768px) {
    .nav-menu {
        display: none; /* Can build toggle or keep minimal for design simplicity */
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .catalog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stepper-wrapper::after {
        left: 20px;
        right: 20px;
    }
    
    .stepper-step {
        width: 65px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 3D Game Card Effects */
.game-card { transform-style: preserve-3d; perspective: 1000px; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.game-card:hover { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); box-shadow: 20px 20px 30px rgba(0,0,0,0.5), -10px -10px 20px rgba(139, 92, 246, 0.2); }
.game-card-logo-container { transform: translateZ(50px); transition: transform 0.4s ease; }
.game-card:hover .game-card-logo-container { transform: translateZ(80px) scale(1.15); }

/* Trading Card Style Overrides */
.trading-card { position: relative; width: 100%; min-height: 260px; height: 260px; aspect-ratio: 3/4; border-radius: 12px; border: 2px solid #b78a2e; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: center; background: #000; box-shadow: 0 0 15px rgba(183, 138, 46, 0.3); transition: transform 0.4s ease, box-shadow 0.4s ease; transform-style: preserve-3d; perspective: 1000px; padding: 0; }
.trading-card:hover { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); box-shadow: 0 15px 30px rgba(183, 138, 46, 0.6); z-index: 10; }
.card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.4s ease; display: block !important; }
.trading-card:hover .card-bg { transform: scale(1.05); }
.card-badge { position: absolute; top: 8px; right: 8px; background: #2563eb; color: white; padding: 4px 10px; font-size: 0.7rem; font-weight: bold; border-radius: 20px; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.card-action { position: absolute; bottom: 15px; width: 100%; display: flex; justify-content: center; z-index: 2; }
.btn-store { background: linear-gradient(180deg, #dbb050, #966f1e); color: #000; border: 1px solid #ffdc73; border-radius: 20px; padding: 5px 25px; font-weight: 800; font-size: 0.85rem; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s; }
.btn-store:hover { transform: scale(1.1); }

/* Testimonial Hover */
.testimonial-card:hover { transform: translateY(-10px) !important; box-shadow: 0 10px 30px rgba(183, 138, 46, 0.2) !important; z-index: 5; }

/* Payment Group Accordion */
.payment-group-details { margin-bottom: 15px; border-radius: 8px; border: 1px solid rgba(183, 138, 46, 0.3); }
.payment-group-summary { padding: 15px 20px; font-weight: bold; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: #fff; background: rgba(0,0,0,0.5); border-radius: 8px; }
.payment-group-summary::-webkit-details-marker { display: none; }
.payment-group-details[open] .payment-group-summary i { transform: rotate(180deg); }
.payment-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding: 20px; border-top: 1px solid rgba(183, 138, 46, 0.2); }
.payment-card.new-style { padding: 15px; border-radius: 8px; border: 1px solid rgba(183, 138, 46, 0.3); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.3s ease; }
.payment-card.new-style:hover { border-color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.payment-card.new-style.selected { border-color: #fbbf24 !important; background: rgba(251, 191, 36, 0.15); box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }

/* Nominal filter tabs styling */
.nom-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.nom-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.nom-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Override body background to support lightning canvas layering */
body {
    position: relative;
    background-image: none !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(8, 7, 16, 0.35), rgba(8, 7, 16, 0.45)),
        url('../images/bg-war.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2; /* Guaranteed to be behind canvas at z-index -1 */
    pointer-events: none;
}

/* Lightning Effect Canvas and Flash Overlay */
#lightning-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1; /* Placed in middle: above body::before (-2) but behind page content (0) */
}

#lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999; /* Full screen flash overlay */
    background: radial-gradient(circle, rgba(165, 180, 252, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    display: none;
    transition: opacity 0.05s ease-out;
}

/* Custom Cursor Hiding (active only when script starts to prevent locking out on errors) */
body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active select,
body.custom-cursor-active textarea,
body.custom-cursor-active .game-card,
body.custom-cursor-active .btn-store,
body.custom-cursor-active .filter-tab,
body.custom-cursor-active .faq-item,
body.custom-cursor-active .payment-card,
body.custom-cursor-active .nominal-card {
    cursor: none !important;
}

/* === SHINING CHARACTER WAVE ANIMATION === */
.shining-char {
    display: inline-block;
    transition: all 0.3s ease;
    animation: charWaveGlow 3.6s ease-in-out infinite;
    font-weight: 800;
}

@keyframes charWaveGlow {
    0%, 100% {
        transform: translateY(0);
        color: #ffffff;
        text-shadow: none;
    }
    14% {
        transform: translateY(-4px);
        color: #06b6d4; /* Cyan matching iCorps brand style */
        text-shadow: 0 0 8px #06b6d4, 0 0 16px #8b5cf6; /* Cyan & Violet neon glow */
    }
}

/* Logo Image Sizing in Header/Footer */
.logo-img-header {
    height: 38px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img-header {
    transform: rotate(5deg) scale(1.05); /* subtle micro-animation on hover */
}

/* Lightning Simulation Elements */
#lightning-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

#lightning-flash {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0;
    display: none;
}
