.hero-section-prod-detail {
    padding: 180px 0 120px;
    background-image: url("../img/backgrounds/97.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section-prod-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section-prod-detail::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-blue);
    font-size: 18px;
}

.hero-image-content {
    flex: 0 0 400px;
}

.product-thumbnail-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.product-thumbnail-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.product-thumbnail {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.2), transparent);
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* Main Content Section */
.main-content-section {
    padding: 80px 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.form-container {
    padding-right: 20px;
}

.sidebar-container {
    position: sticky;
    top: 100px;
    padding-left: 20px;
}

/* step badge */
.step-card {
    position: relative;
}

/* Badge angka */
.step-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0033cc;
    border: none;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 15px;
    position: relative;
    z-index: 2;
}

/* Glass Card Styling */
.content-card {
    background: #1b1f3b;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: none;
    padding: 30px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 144, 226, 0.3);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-card .card-title {
    margin: -30px -30px 25px -30px;
    gap: 0;
    background: transparent;
    padding: 20px 30px;
    position: relative;
    z-index: 1;
    min-height: 50px;
    border-radius: 15px 15px 0 0;
    width: calc(100% + 60px);
    max-width: calc(100% + 60px);
}

/* Collapsible header styles */
.collapse-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 40px;
}

.collapse-header:hover {
    opacity: 0.9;
}

.collapse-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.collapse-header[aria-expanded="false"] .collapse-icon {
    transform: translateY(-50%) rotate(-90deg);
}

.collapse-header[aria-expanded="true"] .collapse-icon {
    transform: translateY(-50%) rotate(0deg);
}

.step-card .card-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    height: auto;
    background: linear-gradient(90deg, #00134E 0%, #003FFF 100%);
    border-radius: 15px 15px 0 0;
    z-index: -1;
}

@media (max-width: 768px) {
    .step-card .card-title::before {
        right: 0;
    }
}

/* Accordion Styling for Item Sections */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
    --bs-accordion-btn-focus-border-color: rgba(74, 144, 226, 0.3);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: rgba(74, 144, 226, 0.1);
    --bs-accordion-active-color: var(--text-white);
    margin-left: -30px;
    margin-right: -30px;
    width: calc(100% + 60px);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    box-shadow: none;
}

.accordion-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(74, 144, 226, 0.3);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Ensure chevron stays white when expanded */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background: transparent;
}

.accordion-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* Rating Card */
.overall-rating {
    text-align: left;
    margin-bottom: 25px;
    align-items: center;
    display: flex;
}

.rating-score {
    font-size: 50px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
    margin-right: 20px;
}

.rating-stars {
    color: #ffd700;
    font-size: 18px;
    margin: 8px 0;
}

.rating-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.rating-info {
    display: flex;
    flex-direction: column;
}

/* Order Summary */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.item-game,
.item-quantity {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.order-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid rgba(74, 144, 226, 0.3);
}

.order-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.order-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Game Description */
.game-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.game-description h5 {
    color: var(--text-white);
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.game-description ul {
    padding-left: 20px;
}

.game-description li {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

/* Fixed Payment Button - Floating Style */
.fixed-payment-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

.payment-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* Hide total summary in fixed button */
.total-summary {
    display: none;
}

.total-label {
    display: none;
}

.total-amount {
    display: none;
}

.btn-proceed {
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 15px;
    min-width: 180px;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

.btn-proceed:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, #5ba0f2, #84c9ff);
}

.btn-proceed:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    background: rgba(74, 144, 226, 0.5);
}

.btn-proceed:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    background: rgba(74, 144, 226, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .topup-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .sidebar-container {
        position: static;
        padding-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-image-content {
        flex: none;
    }

    .product-thumbnail-wrapper {
        transform: none;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-container {
        padding-right: 0;
    }
}

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

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

    .topup-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
        padding: 0 5px;
        /* Add small padding to prevent edge touching */
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 20px;
    }

    /* Adjust step card title for mobile padding (20px) */
    .step-card .card-title {
        margin: -20px -20px 20px -20px;
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
    }

    .step-card .card-title::before {
        border-radius: 15px 15px 0 0;
    }

    /* Adjust accordion for mobile padding (20px) */
    .accordion {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .collapse-icon {
        right: 15px;
    }

    .product-thumbnail {
        min-height: 200px;
        max-height: 300px;
    }

    .payment-button-wrapper {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .btn-proceed {
        width: 100%;
        min-width: auto;
    }

    .main-content-section {
        padding-bottom: 120px;
    }
}

/* Topup Grid */
.topup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.topup-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.topup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    border-color: var(--accent-blue);
    background: rgba(74, 144, 226, 0.1);
}

.topup-card.active {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.topup-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
}

.topup-diamonds {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.topup-price {
    font-size: 14px;
    color: var(--text-white);
    opacity: 0.8;
}

/* Membership Badge */
.membership-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.membership-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.membership-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.membership-badge.regular {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #fff;
}

/* Payment Methods - Copied from dashboard.css */
.payment-category-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.payment-methods-container {
    position: relative;
}

.payment-methods-group {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.payment-methods-group.active {
    display: block;
}

.payment-method-item {
    position: relative;
    height: 100%;
}

.payment-method-radio {
    display: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    height: 100%;
    min-height: 90px;
}

.payment-method-label:hover {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.payment-method-radio:checked+.payment-method-label {
    background: linear-gradient(135deg,
            rgba(74, 144, 226, 0.2) 0%,
            rgba(116, 185, 255, 0.1) 100%);
    border-color: #4a90e2;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
}

.payment-info {
    flex: 1 1 auto;
    margin-right: 12px;
}

.payment-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
}

.payment-fee {
    font-size: 12px;
    color: rgba(255, 165, 0, 0.8);
    font-weight: 500;
    margin-bottom: 4px;
}

.payment-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.3;
}

.payment-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 60px;
    height: auto;
}

.payment-icon-img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    height: auto;
    width: auto;
}

.payment-icon-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.no-payment-methods {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

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

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

/* Mobile Grid Fix - Ensure 2 columns using Flexbox */
@media (max-width: 768px) {
    .topup-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 0 5px !important;
    }

    .topup-card {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        margin: 0 !important;
    }
}